:root {
    --bg: #f5f7fb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: rgba(255, 255, 255, .9);
    --brand: #0f766e;
    --brand-2: #2563eb;
    --danger: #e11d48;
    --gold: #b98521;
    --shadow: 0 20px 55px rgba(15, 23, 42, .12);
    --shadow-strong: 0 28px 75px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(15, 118, 110, .18), transparent 32rem),
        radial-gradient(circle at 88% 8%, rgba(185, 133, 33, .16), transparent 28rem),
        linear-gradient(135deg, #f8fafc 0%, #eef4f7 48%, #f7f4ee 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: stretch;
}

.auth-copy, .auth-panel, .panel, .stat-card, .price-card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.auth-copy::before, .auth-panel::before, .panel::before, .stat-card::before, .price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.55) 42%, transparent 58%);
    transform: translateX(-120%);
    animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
    0%, 48% { transform: translateX(-120%); }
    68%, 100% { transform: translateX(120%); }
}

.auth-copy {
    min-height: 620px;
    padding: 44px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.auth-logo {
    width: min(260px, 100%);
    height: auto;
    display: block;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.auth-copy h1 {
    margin: 22px 0 14px;
    font-size: clamp(38px, 5.8vw, 72px);
    line-height: 1;
    max-width: 650px;
}

.auth-copy p {
    max-width: 560px;
    color: #334155;
    font-size: 18px;
    line-height: 1.7;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(37, 99, 235, .28);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
}

.mini-grid span, .quick-grid a {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    font-weight: 700;
}

.mini-grid span {
    color: #1f2937;
    min-height: 64px;
    display: grid;
    align-items: center;
}

.auth-panel {
    padding: 34px;
    border-radius: 8px;
    align-self: center;
}

.auth-panel h2, .panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.auth-panel p, .muted, .hint, small {
    color: var(--muted);
    line-height: 1.55;
}

.stack, .form-panel form, .form-panel {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

label small {
    font-weight: 600;
    color: var(--muted);
}

input, select, textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 28px rgba(15, 118, 110, .23);
}
.btn.ghost { color: var(--brand); background: #e8f6f4; border-color: #cce9e5; }
.btn.plain { color: var(--muted); background: #fff; border-color: var(--line); }
.btn.danger { color: #fff; background: var(--danger); }
.auth-switch {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-switch span {
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.switch-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cce9e5;
    border-radius: 8px;
    color: var(--brand);
    background: linear-gradient(135deg, #ffffff, #e8f6f4);
    box-shadow: 0 12px 24px rgba(15, 118, 110, .1);
    font-weight: 900;
    transition: transform .2s, box-shadow .2s;
}

.switch-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 118, 110, .14);
}
.notice {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #bfe5df;
    border-radius: 8px;
    color: #0f513f;
    background: #e8f6f1;
    font-weight: 700;
}

.sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    z-index: 10;
    width: 260px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.logo {
    display: block;
    margin-bottom: 18px;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.sidebar nav {
    display: grid;
    gap: 6px;
    margin: 28px 0;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 700;
    transition: background .2s, color .2s, transform .2s;
}

.sidebar nav a:hover, .sidebar nav a.active {
    color: #fff;
    background: rgba(255,255,255,.12);
    transform: translateX(3px);
}

.plan-chip {
    margin-top: auto;
    padding: 12px;
    border-radius: 8px;
    color: #fef3c7;
    background: rgba(185, 133, 33, .18);
    border: 1px solid rgba(251, 191, 36, .25);
    font-weight: 900;
    text-align: center;
}

.app {
    width: calc(100% - 308px);
    margin-left: 308px;
    padding: 22px 22px 52px 0;
    transition: margin-left .22s ease, width .22s ease;
}

.topbar {
    position: static;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.68));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: 30px;
}

.eyebrow {
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
}

.top-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.dashboard-stats,
.dashboard-main-grid,
.dashboard-secondary-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-main-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.dashboard-secondary-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.dashboard-panel {
    height: 100%;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .96), rgba(37, 99, 235, .92)),
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.28), transparent 18rem);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    text-align: left;
}

.dashboard-hero h2 {
    margin: 6px 0 8px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.08;
}

.dashboard-hero p, .dashboard-hero .eyebrow {
    color: rgba(255,255,255,.78);
}

.hero-balance {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}

.hero-balance span {
    display: block;
    color: rgba(255,255,255,.76);
    font-weight: 800;
}

.hero-balance strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.stats-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card, .panel, .price-card {
    border-radius: 8px;
    padding: 20px;
    min-width: 0;
    text-align: left;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 26px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.premium-stat {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease;
}

.premium-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.sparkline {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 38px;
    margin: 12px 0;
    flex: 0 0 38px;
}

.sparkline i {
    width: 100%;
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, var(--brand), rgba(15,118,110,.18));
}

.sparkline i:nth-child(1) { height: 42%; }
.sparkline i:nth-child(2) { height: 66%; }
.sparkline i:nth-child(3) { height: 52%; }
.sparkline i:nth-child(4) { height: 86%; }
.sparkline i:nth-child(5) { height: 74%; }
.sparkline.down i {
    background: linear-gradient(180deg, var(--danger), rgba(225,29,72,.16));
}
.sparkline.down i:nth-child(1) { height: 74%; }
.sparkline.down i:nth-child(2) { height: 52%; }
.sparkline.down i:nth-child(3) { height: 82%; }
.sparkline.down i:nth-child(4) { height: 48%; }
.sparkline.down i:nth-child(5) { height: 62%; }

.meter {
    height: 10px;
    margin: 22px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.meter em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.meter.gold em {
    background: linear-gradient(90deg, var(--gold), #22c55e);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.sidebar-collapsed .sidebar {
    width: 86px;
}

.sidebar-collapsed .logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: left center;
}

.sidebar-collapsed .sidebar nav a {
    justify-content: center;
    padding: 12px;
}

.sidebar-collapsed .sidebar nav a span,
.sidebar-collapsed .plan-chip {
    display: none;
}

.sidebar-collapsed .app {
    width: calc(100% - 134px);
    margin-left: 134px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    min-width: 0;
}

.panel-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.panel-head a, .panel-head span { color: var(--brand); font-weight: 900; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    padding: 0 0 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    text-align: left;
}
th:last-child { text-align: right; }
td {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
td:first-child { min-width: 0; overflow-wrap: anywhere; }
td:last-child { text-align: right; font-weight: 900; white-space: nowrap; padding-left: 12px; }
td small, .mini-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
.income { color: var(--brand); }
.expense { color: var(--danger); }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.premium-actions .quick-grid a {
    min-height: 86px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(232,246,244,.68));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.premium-actions .quick-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(15,118,110,.35);
    box-shadow: 0 16px 34px rgba(15,23,42,.1);
}

.premium-actions .quick-grid .icon {
    width: 24px;
    height: 24px;
    color: var(--brand);
}

.chart-panel, .upcoming-panel {
    min-height: 310px;
}

.bar-chart {
    min-height: 190px;
    display: flex;
    align-items: end;
    gap: 16px;
    padding: 14px 0 6px;
}

.chart-col {
    flex: 1;
    min-width: 42px;
    display: grid;
    gap: 8px;
    text-align: center;
}

.chart-bars {
    height: 160px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #eef4f7);
}

.chart-bars i {
    width: 12px;
    min-height: 6px;
    border-radius: 999px 999px 2px 2px;
}

.income-bar { background: linear-gradient(180deg, var(--brand), #99f6e4); }
.expense-bar { background: linear-gradient(180deg, var(--danger), #fecdd3); }

.premium-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
}

.premium-row b {
    color: var(--brand-2);
    white-space: nowrap;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.mini-row i {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}

.account-list {
    display: grid;
    gap: 10px;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.account-item:hover,
.account-item.active {
    transform: translateY(-2px);
    border-color: rgba(15,118,110,.36);
    box-shadow: 0 16px 30px rgba(15,23,42,.08);
}

.account-item.active {
    background: linear-gradient(135deg, rgba(232,246,244,.96), rgba(239,246,255,.94));
}

.account-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.account-item b {
    white-space: nowrap;
}

.account-detail {
    margin-top: 16px;
}

.account-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 900;
}

.pagination a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.segmented label, .check-grid label, .inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.74);
}
.segmented input, .check-grid input, .inline input { width: auto; min-height: auto; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.report-filter {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}
.report-download { margin-bottom: 18px; }

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}
.bar-row div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}
.bar-row em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.bar-row b { text-align: right; }

.pricing {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.price-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.price-card strong {
    font-size: 32px;
}
.price-card.featured {
    color: #fff;
    background: linear-gradient(145deg, rgba(15, 118, 110, .96), rgba(37, 99, 235, .94));
}
.price-card.featured p, .price-card.featured span { color: rgba(255,255,255,.82); }
.price-card form { margin-top: auto; }

.admin-list { display: grid; gap: 10px; }
.admin-row {
    display: grid;
    grid-template-columns: 1.3fr .75fr .95fr .55fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
}
.admin-row.request-row {
    grid-template-columns: 1.4fr 1fr .7fr;
}

.admin-users {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.admin-user-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.76);
}

.user-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-card-head span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--brand);
    background: #e8f6f4;
    font-size: 12px;
    font-weight: 900;
}

.guide-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 118, 110, .96), rgba(185, 133, 33, .9));
    box-shadow: var(--shadow-strong);
}

.guide-hero h2 {
    margin: 6px 0 10px;
    font-size: 34px;
}

.guide-hero p,
.guide-hero .eyebrow {
    color: rgba(255,255,255,.82);
    max-width: 760px;
}

.guide-score {
    min-width: 150px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    text-align: center;
    background: rgba(255,255,255,.13);
}

.guide-score strong {
    display: block;
    font-size: 42px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.guide-index {
    position: sticky;
    top: 16px;
}

.guide-index a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.guide-index b,
.guide-steps b {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-card {
    position: relative;
    min-height: 230px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.guide-number {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: 900;
    font-size: 13px;
}

.guide-card h2 {
    margin: 0 0 10px;
}

.guide-card p {
    color: #334155;
    line-height: 1.65;
}

.guide-card small {
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.guide-steps div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.74);
}

.ticket {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.reply {
    width: min(720px, 100%);
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.reply.admin {
    margin-left: auto;
    background: #e8f6f4;
}
.reply-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .65s ease forwards;
}

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .stats-grid, .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-main-grid,
    .dashboard-secondary-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .admin-row { grid-template-columns: 1fr 1fr; }
    .account-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-index { position: static; }
    .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-copy { min-height: 420px; }
    .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar {
        position: static;
        width: auto;
        margin: 12px;
    }
    .sidebar-collapsed .sidebar {
        width: auto;
    }
    .sidebar-collapsed .logo img {
        width: 100%;
        height: auto;
    }
    .sidebar-collapsed .sidebar nav a span,
    .sidebar-collapsed .plan-chip {
        display: inline;
    }
    .sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 18px 0;
    }
    .app {
        width: auto;
        margin: 0;
        padding: 0 12px 36px;
    }
    .sidebar-collapsed .app {
        width: auto;
        margin: 0;
    }
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-hero {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .guide-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero-balance {
        width: 100%;
        min-width: 0;
    }
    .guide-score {
        width: 100%;
        min-width: 0;
        text-align: left;
    }
    .top-actions { justify-content: flex-start; }
    .report-filter, .bar-row { grid-template-columns: 1fr; }
    .bar-row b { text-align: left; }
}

@media (max-width: 560px) {
    .auth-body { padding: 12px; }
    .auth-copy, .auth-panel, .panel, .stat-card, .price-card { padding: 16px; }
    .stats-grid, .stats-grid.compact, .dashboard-stats, .pricing, .quick-grid, .check-grid, .admin-users, .guide-cards, .guide-steps { grid-template-columns: 1fr; }
    .sidebar nav { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .top-actions { width: 100%; }
    .mini-row { align-items: flex-start; flex-direction: column; }
    .account-item { align-items: flex-start; flex-direction: column; }
    .account-filter { grid-template-columns: 1fr; }
    .premium-row { align-items: flex-start; flex-direction: column; }
    .bar-chart { overflow-x: auto; }
    .chart-col { min-width: 54px; }
    td:last-child { text-align: left; }
}
