/* ═══════════════════════════════════════════
   STOKVEL HUB — Global Styles
   Mobile-first, dark theme, gold/green palette
═══════════════════════════════════════════ */
:root {
    --bg: #0f0f0f;
    --surface: #191919;
    --card: #212121;
    --card2: #272727;
    --border: #2e2e2e;
    --border2: #3a3a3a;
    --gold: #c9a84c;
    --gold-lt: #e8c97a;
    --gold-dk: #8a6e2a;
    --green: #2d6a4f;
    --green-lt: #52b788;
    --amber: #e07b39;
    --amber-lt: #f4a261;
    --red: #9b2335;
    --red-lt: #e05263;
    --blue-lt: #3498db;
    --purple-lt: #a569bd;
    --cream: #f0e6d3;
    --text: #e8e0d4;
    --text-dim: #888072;
    --text-muted: #555047;
    --r: 14px;
    --r-sm: 8px;
    --sidebar-w: 210px;
    --topbar-h: 56px;
    --bottom-h: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Shell layout ─────────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    /*display: none;*/
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    /**/
    display: flex;
    flex-direction: column;
    height: 100vh;
    /**/
    overflow-y: auto;
    z-index: 100;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .main-area {
        margin-left: var(--sidebar-w);
    }
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 200;
}

@media (min-width: 768px) {
    .topbar {
        left: var(--sidebar-w);
    }
}

.topbar-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    color: var(--gold-lt);
    flex: 1;
}

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

.page-content {
    padding-top: var(--topbar-h);
    padding-bottom: var(--bottom-h);
    padding-left: 16px;
    padding-right: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .page-content {
        padding: calc(var(--topbar-h) + 24px) 28px 24px;
    }
}

/* ── Bottom nav ───────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 200;
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    cursor: pointer;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: var(--text-dim);
    transition: color .2s;
}

    .bnav-item.active, .bnav-item:focus {
        color: var(--gold-lt);
    }

.bnav-icon {
    font-size: 20px;
}

.bnav-label {
    font-size: 9px;
    font-weight: 500;
}

/* ── Sidebar nav ──────────────────────────────────────────────── */

.drawer-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer-group-name {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-lt);
    margin-bottom: 2px;
}

.drawer-group-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.group-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 20px;
    font-size: 11px;
    color: var(--gold-lt);
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg,var(--gold),var(--amber));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-lt);
}

.logo-group {
    font-size: 11px;
    color: var(--text-dim);
}

.nav-badge {
    display: inline-flex;
    margin: 10px 20px;
    padding: 4px 10px;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 20px;
    font-size: 11px;
    color: var(--gold-lt);
}

.nav-links {
    padding: 10px;
    flex: 1;
}

.nav-section {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 8px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all .15s;
    margin-bottom: 1px;
}

    .nav-item:hover {
        background: var(--card);
        color: var(--text);
    }

    .nav-item.active {
        background: rgba(201,168,76,.08);
        color: var(--gold-lt);
        font-weight: 500;
    }

.nav-profile {
    margin-top: auto; /* 👈 This pushes it to the absolute bottom */
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--green),var(--gold-dk));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.profile-name {
    font-size: 13px;
    font-weight: 500;
}

.profile-role {
    font-size: 11px;
    color: var(--gold);
}

/**/
/**/

.drawer-footer {
    padding: 16px 10px;
    border-top: 1px solid var(--border);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card);
    border-radius: var(--r-sm);
    cursor: pointer;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--gold-dk));
}

.profile-name {
    font-size: 13px;
    font-weight: 500;
}

.profile-role {
    font-size: 11px;
    color: var(--gold);
}

/* ── Page elements ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    margin-top: 16px;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cream);
}

.page-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 3px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: var(--cream);
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

/* ── Stat cards ───────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    cursor: pointer;
    transition: transform .2s;
}

    .stat-card:active {
        transform: scale(.98);
    }

.stat-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 3px;
}

.stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.stat-note {
    font-size: 10px;
    margin-top: 5px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
    line-height: 1;
}

    .btn:active {
        transform: scale(.97);
    }

.btn-gold {
    background: var(--gold);
    color: #1a0f00;
}

    .btn-gold:hover {
        background: var(--gold-lt);
    }

.btn-green {
    background: var(--green);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border2);
}

    .btn-outline:hover {
        border-color: var(--gold);
        color: var(--gold-lt);
    }

.btn-ghost {
    background: var(--card2);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 4px 9px;
    font-size: 11px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.b-green {
    background: rgba(82,183,136,.15);
    color: var(--green-lt);
    border: 1px solid rgba(82,183,136,.2);
}

.b-gold {
    background: rgba(201,168,76,.15);
    color: var(--gold-lt);
    border: 1px solid rgba(201,168,76,.2);
}

.b-red {
    background: rgba(224,82,99,.12);
    color: var(--red-lt);
    border: 1px solid rgba(224,82,99,.2);
}

.b-blue {
    background: rgba(52,152,219,.12);
    color: var(--blue-lt);
    border: 1px solid rgba(52,152,219,.2);
}

.b-amber {
    background: rgba(244,162,97,.12);
    color: var(--amber-lt);
    border: 1px solid rgba(244,162,97,.2);
}

.b-gray {
    background: rgba(100,100,100,.15);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

/* ── Avatars ──────────────────────────────────────────────────── */
.av {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.av-sm {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.av-md {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.av-lg {
    width: 52px;
    height: 52px;
    font-size: 18px;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
}

.member-name {
    flex: 1;
    font-size: 13px;
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 5px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text);
    transition: border-color .2s;
    outline: none;
}

    .form-control:focus {
        border-color: var(--gold);
    }

    .form-control option {
        background: var(--surface);
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Table ────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(46,46,46,.5);
    vertical-align: middle;
}

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

/* ── Progress ─────────────────────────────────────────────────── */
.prog-track {
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .8s ease;
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(6px);
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity .3s;
}

@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r) var(--r) 0 0;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 600px) {
    .modal {
        border-radius: var(--r);
    }
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border2);
    border-radius: 2px;
    margin: 10px auto 0;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    color: var(--cream);
}

.modal-close {
    width: 28px;
    height: 28px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ── Toasts ───────────────────────────────────────────────────── */
.toast-area {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: 90%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-area {
        bottom: 24px;
        left: auto;
        right: 24px;
        transform: none;
        width: auto;
    }
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green-lt);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 13px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .toast.warn {
        border-left-color: var(--gold);
    }

    .toast.error {
        border-left-color: var(--red-lt);
    }

/* ── Misc ─────────────────────────────────────────────────────── */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all .2s;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
    }

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 4px;
}

/* ── Auth pages (Login / Register / Setup) ────────────────────── */
.auth-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .18;
}

.auth-glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.auth-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, var(--green) 0%, transparent 70%);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 24px 16px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.auth-logo {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--gold-lt);
    text-align: center;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 28px;
}

.auth-error {
    background: rgba(224,82,99,.1);
    border: 1px solid rgba(224,82,99,.25);
    border-radius: var(--r-sm);
    color: var(--red-lt);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-success {
    background: rgba(82,183,136,.1);
    border: 1px solid rgba(82,183,136,.25);
    border-radius: var(--r-sm);
    color: var(--green-lt);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-dim);
}

    .auth-remember input[type="checkbox"] {
        accent-color: var(--gold);
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-dim);
}

    .auth-footer a {
        color: var(--gold);
        text-decoration: none;
    }

        .auth-footer a:hover {
            color: var(--gold-lt);
            text-decoration: underline;
        }

.btn-loading {
    opacity: .7;
    cursor: not-allowed;
}

.auth-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}

.auth-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-muted);
}

    .auth-step.active {
        background: var(--gold);
        border-color: var(--gold);
        color: #1a0f00;
    }

    .auth-step.done {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.auth-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 40px;
}

    .auth-step-line.done {
        background: var(--green);
    }

/* ── User menu (TopBar top-right) ────────────────────────────── */
.user-menu-wrap {
    position: relative;
}

.user-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--gold-dk));
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
    flex-shrink: 0;
}

    .user-menu-btn:hover,
    .user-menu-btn.active {
        border-color: var(--gold);
        transform: scale(1.05);
    }

.user-menu-initials {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    pointer-events: none;
}

/* Dropdown panel */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    box-shadow: 0 12px 48px rgba(0,0,0,.55);
    z-index: 500;
    overflow: hidden;
    /* Subtle slide-in */
    animation: dropdown-in .15s ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.user-dropdown-header {
    padding: 14px 16px 12px;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 11px;
    color: var(--gold);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s, color .15s;
}

    .user-dropdown-item:hover {
        background: var(--card2);
        color: var(--gold-lt);
    }

.user-dropdown-item--danger:hover {
    background: rgba(224,82,99,.08);
    color: var(--red-lt);
}

.user-dropdown-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }



/*************************/
/*************************/
/*************************/


/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
}

.page-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 3px;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 26px;
    }
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: var(--cream);
    font-weight: 600;
}

.card-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.card-body {
    padding: 16px;
}

@media (min-width: 768px) {
    .card-header {
        padding: 16px 20px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-body {
        padding: 20px;
    }
}

/* Tabs */
.tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1px;
    scrollbar-width: none;
}

    .tabs-scroll::-webkit-scrollbar {
        display: none;
    }

.tabs {
    display: flex;
    gap: 2px;
    background: var(--surface);
    border-radius: var(--r-sm);
    padding: 3px;
    width: max-content;
    min-width: 100%;
    margin-bottom: 16px;
}

.tab {
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all .15s;
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

    .tab.active {
        background: var(--card);
        color: var(--cream);
    }

/* Payout rotation */
.rotation-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rotation-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    color: var(--gold-lt);
}

.rotation-info {
    flex: 1;
}

.rotation-name {
    font-size: 13px;
    font-weight: 500;
}

.rotation-date {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.rotation-amount {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    color: var(--gold-lt);
}