/* Account Page - aligned with main design system */

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 115, 85, 0.1) 0%, transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(196, 57, 44, 0.08) 0%, transparent 30%),
        var(--gallery-white);
}

.account-header {
    background: rgba(248, 246, 241, 0.94);
}

.account-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 108px 16px 56px;
}

.account-intro {
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: linear-gradient(145deg, #fffefb 0%, #f8f4ec 100%);
    padding: 20px;
    margin-bottom: 14px;
}

.account-intro h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.account-intro p {
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.lang-toggle {
    display: inline-flex;
    gap: 6px;
}

.lang-toggle button {
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-900);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
}

.lang-toggle button.active {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.label {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.value {
    margin: 7px 0 0;
    color: var(--black);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

.panel {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    margin-bottom: 10px;
}

.panel h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
}

.panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn.primary {
    background: var(--red-accent);
    color: #fff;
}

.btn.primary:hover {
    background: var(--red-hover);
}

.btn.secondary {
    background: #fff;
    color: var(--black);
    border-color: var(--gray-200);
}

.btn.secondary:hover {
    background: #f7f3ec;
}

.notice {
    margin: 10px 0 0;
    min-height: 1.2rem;
    font-size: 0.84rem;
    color: var(--gray-600);
}

.notice.error {
    color: #b02a37;
}

.notice.ok {
    color: #157347;
}

.list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px;
    background: #fffcf8;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.item-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--black);
}

.item-meta {
    margin: 4px 0 0;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.status {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.status.active {
    background: #e7f6ee;
    color: #157347;
    border-color: #b9dfc8;
}

.status.paused {
    background: #fff1ea;
    color: #b54a2a;
    border-color: #ebc2b2;
}

.table-wrap {
    margin-top: 10px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

thead {
    background: #f7f3ec;
}

th,
td {
    text-align: left;
    padding: 9px;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.amount.plus {
    color: #157347;
    font-weight: 700;
}

.amount.minus {
    color: #b02a37;
    font-weight: 700;
}

.empty {
    margin: 10px 0 0;
    color: var(--gray-600);
    font-size: 0.84rem;
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .account-page {
        padding-top: 90px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-cta {
        display: none;
    }
}
