:root {
    --brand: #c9a25a;
    --brand-dark: #9a7a3f;
    --accent: #1f7a56;
    --accent-dark: #166346;
    --bg: #f0f4f8;
    --card: #ffffff;
    --text: #1b1f24;
    --muted: #5b6775;
    --border: rgba(0,0,0,.08);
    --shadow: 0 4px 16px rgba(0,0,0,.06);
    --shadow-hover: 0 12px 32px rgba(0,0,0,.11);
    --radius: 18px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* ─── Shell ─────────────────────────────────── */
.account-shell {
    background: var(--bg);
    font-family: var(--font);
}

/* ─── Card ──────────────────────────────────── */
.account-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ─── Sidebar header ────────────────────────── */
.account-header {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #fff;
}

.account-header__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.1px;
}

.account-header__subtitle {
    opacity: .7;
    font-size: 12px;
    margin-top: 3px;
    letter-spacing: .02em;
}

/* ─── Main content area ─────────────────────── */
.account-main {
    padding: 28px 32px;
}

.account-main h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0 0 6px;
    color: var(--text);
}

.account-main > p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.55;
    opacity: 1;
}

/* ─── Buttons ───────────────────────────────── */
.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    letter-spacing: .01em;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

.account-btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(31, 122, 86, .25);
}

.account-btn--primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(31, 122, 86, .32);
    transform: translateY(-1px);
}

.account-btn--ghost {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.account-btn--ghost:hover {
    background: var(--bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ─── Inputs ────────────────────────────────── */
.account-input {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    background: #fff;
    outline: none;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

.account-input:focus {
    border-color: rgba(31, 122, 86, .45);
    box-shadow: 0 0 0 4px rgba(31, 122, 86, .10);
}

/* ─── Table ─────────────────────────────────── */
.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.account-table th,
.account-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: 14px;
}

.account-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    background: rgba(240, 244, 248, .8);
}

.account-table tbody tr {
    transition: background .1s;
}

.account-table tbody tr:hover td {
    background: rgba(240, 244, 248, .6);
}

.account-table tr:last-child td {
    border-bottom: none;
}

.right {
    text-align: right;
}

/* ─── Badges ────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.badge--green {
    background: rgba(31, 122, 86, .10);
    color: #166346;
    border-color: rgba(31, 122, 86, .18);
}

.badge--gold {
    background: rgba(201, 162, 90, .12);
    color: #7c5f2a;
    border-color: rgba(201, 162, 90, .22);
}

.badge--gray {
    background: rgba(0, 0, 0, .05);
    color: #3c4754;
    border-color: rgba(0,0,0,.08);
}

.badge--red {
    background: rgba(199, 55, 55, .09);
    color: #9a1f1f;
    border-color: rgba(199, 55, 55, .18);
}

/* ─── Links ─────────────────────────────────── */
.account-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.account-link::after {
    content: '→';
    opacity: .7;
    font-size: 12px;
    transition: transform .15s, opacity .15s;
}

.account-link:hover {
    color: var(--accent-dark);
}

.account-link:hover::after {
    transform: translateX(3px);
    opacity: 1;
}

/* ─── Empty state ───────────────────────────── */
.empty {
    text-align: center;
    padding: 60px 24px;
}

.empty__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.empty__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* ─── Loading ───────────────────────────────── */
.box {
    padding: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 900px) {
    .account-shell > div {
        grid-template-columns: 1fr !important;
    }

    aside {
        position: static !important;
    }

    .account-main {
        padding: 20px 22px;
    }
}

@media (max-width: 580px) {
    .account-main {
        padding: 18px 16px;
    }

    .account-main h2 {
        font-size: 22px;
    }
}
