@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #f4f6f5;
    --bg-glow-1: rgba(13, 107, 88, 0.08);
    --bg-glow-2: rgba(165, 124, 51, 0.06);
    --page-veil: rgba(13, 107, 88, 0.05);
    --primary-soft: rgba(13, 107, 88, 0.12);
    --primary-soft-hover: rgba(13, 107, 88, 0.18);
    --focus-ring: rgba(13, 107, 88, 0.14);
    --accent-soft: rgba(165, 124, 51, 0.12);
    --accent-soft-hover: rgba(165, 124, 51, 0.18);
    --cardinal: #a11f2c;
    --cardinal-soft: rgba(161, 31, 44, 0.12);
    --cardinal-soft-strong: rgba(161, 31, 44, 0.18);
    --panel: #fffdf9;
    --ink: #15201c;
    --muted: #66726d;
    --line: #d8dfda;
    --primary: #0d6b58;
    --primary-dark: #084d40;
    --accent: #a57c33;
    --danger: #b9453b;
    --topbar-bg: rgba(244, 246, 245, 0.92);
    --topbar-line: rgba(215, 223, 218, 0.9);
    --radius: 14px;
    --shadow: 0 20px 48px rgba(21, 32, 28, 0.08);
}

:root[data-theme="violet"],
body[data-theme="violet"] {
    --bg: #efe8ff;
    --bg-glow-1: rgba(123, 92, 255, 0.2);
    --bg-glow-2: rgba(187, 140, 255, 0.22);
    --page-veil: rgba(123, 92, 255, 0.14);
    --primary-soft: rgba(123, 92, 255, 0.12);
    --primary-soft-hover: rgba(123, 92, 255, 0.2);
    --focus-ring: rgba(123, 92, 255, 0.15);
    --accent-soft: rgba(187, 140, 255, 0.14);
    --accent-soft-hover: rgba(187, 140, 255, 0.2);
    --panel: #f5efff;
    --line: #ddd4f4;
    --primary: #7b5cff;
    --primary-dark: #5639d9;
    --accent: #bb8cff;
    --topbar-bg: rgba(244, 239, 255, 0.92);
    --topbar-line: rgba(220, 211, 247, 0.88);
}

:root[data-theme="blue"],
body[data-theme="blue"] {
    --bg: #e9f2ff;
    --bg-glow-1: rgba(45, 108, 223, 0.2);
    --bg-glow-2: rgba(118, 184, 255, 0.22);
    --page-veil: rgba(45, 108, 223, 0.14);
    --primary-soft: rgba(45, 108, 223, 0.12);
    --primary-soft-hover: rgba(45, 108, 223, 0.2);
    --focus-ring: rgba(45, 108, 223, 0.15);
    --accent-soft: rgba(118, 184, 255, 0.14);
    --accent-soft-hover: rgba(118, 184, 255, 0.2);
    --panel: #edf4ff;
    --line: #d9e6fb;
    --primary: #2d6cdf;
    --primary-dark: #184db6;
    --accent: #76b8ff;
    --topbar-bg: rgba(238, 245, 255, 0.92);
    --topbar-line: rgba(214, 226, 247, 0.9);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    transition: background-color 220ms ease, color 220ms ease;
    background:
        radial-gradient(circle at 12% 0%, var(--bg-glow-1), transparent 26%),
        radial-gradient(circle at 96% 0%, var(--bg-glow-2), transparent 24%),
        linear-gradient(180deg, var(--page-veil), transparent 280px),
        var(--bg);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
.brand strong {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -0.02em;
}

section[id],
.panel[id] {
    scroll-margin-top: 96px;
}

button,
input,
select,
textarea {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--primary-dark);
    border-radius: var(--radius);
    font-weight: 800;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.guest-nav a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.guest-nav a:first-child {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.guest-nav a:nth-child(2) {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(15, 143, 114, 0.18);
}

.nav form {
    margin: 0;
}

.menu-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.menu-button {
    flex: 0 0 auto;
}

.menu-panel {
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    display: grid;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 40;
    margin-top: 0;
}

.menu-panel[hidden] {
    display: none;
}

.menu-group {
    display: grid;
    gap: 8px;
}

.menu-group + .menu-group {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.menu-panel a,
.menu-panel button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    text-align: left;
    border-radius: var(--radius);
}

.menu-panel a {
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
}

.menu-panel a:hover {
    border-color: rgba(15, 143, 114, 0.35);
    background: var(--primary-soft-hover);
}

.menu-actions form {
    margin: 0;
}

.shell {
    width: min(1160px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.alert {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alert.success {
    border-color: rgba(15, 143, 114, 0.32);
    color: var(--primary-dark);
}

.alert.error {
    border-color: rgba(194, 65, 53, 0.35);
    color: var(--danger);
}

.auth-layout,
.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-layout {
    grid-template-columns: minmax(0, 1fr);
}

.auth-panel,
.panel,
.wallet,
.metrics article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.auth-panel {
    padding: clamp(22px, 4vw, 34px);
}

.auth-panel.muted {
    background: var(--panel);
}

.auth-panel h1,
.auth-panel h2,
.hero-row h1,
.section-title h2 {
    margin: 0;
    line-height: 1.08;
}

.auth-panel h1 {
    font-size: clamp(30px, 5vw, 48px);
    max-width: 520px;
}

.auth-panel h2,
.section-title h2 {
    font-size: 23px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stack {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

input[type="file"] {
    padding-top: 8px;
    padding-bottom: 8px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-grid;
    width: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    color: #9a3412;
    background: linear-gradient(180deg, #fff4e5, #fde7c7);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 12px;
    box-shadow: none;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: linear-gradient(180deg, #ffe8c8, #fdc99a);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}

.password-toggle-icon {
    display: inline-grid;
    place-items: center;
}

.password-toggle-icon svg {
    width: 18px;
    height: 18px;
}

.password-field[data-visible="true"] [data-password-icon="show"] {
    display: none;
}

.password-field[data-visible="false"] [data-password-icon="hide"] {
    display: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.primary {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.18);
}

.primary:hover {
    background: linear-gradient(135deg, #fb923c, #d97706);
}

.secondary {
    color: #9a3412;
    background: linear-gradient(180deg, #fff4e5, #fed7aa);
    border: 1px solid rgba(234, 88, 12, 0.18);
}

.secondary:hover {
    background: linear-gradient(180deg, #fde5c0, #fdc98a);
}

.transaction-form {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--transaction-form-border, var(--line));
    background: var(--transaction-form-bg, var(--panel));
    box-shadow: var(--transaction-form-shadow, var(--shadow));
}

.transaction-form label {
    color: var(--transaction-form-label, var(--muted));
}

.transaction-form input,
.transaction-form select,
.transaction-form textarea {
    color: var(--transaction-form-ink, var(--ink));
    background: var(--transaction-input-bg, var(--panel));
    border-color: var(--transaction-input-border, var(--line));
}

.transaction-form input::placeholder,
.transaction-form textarea::placeholder {
    color: var(--transaction-placeholder, var(--muted));
}

.transaction-form input:focus,
.transaction-form select:focus,
.transaction-form textarea:focus {
    border-color: var(--transaction-focus, var(--primary));
    box-shadow: 0 0 0 3px var(--transaction-focus-ring, var(--focus-ring));
}

.transaction-form-deposit {
    --transaction-form-bg: linear-gradient(180deg, #f2eaff 0%, #e1d1ff 100%);
    --transaction-form-border: rgba(101, 70, 204, 0.34);
    --transaction-form-shadow: 0 22px 40px rgba(91, 63, 214, 0.16);
    --transaction-form-label: #5236b2;
    --transaction-form-ink: #2a185f;
    --transaction-input-bg: rgba(255, 255, 255, 0.82);
    --transaction-input-border: rgba(123, 92, 255, 0.3);
    --transaction-placeholder: #826eb8;
    --transaction-focus: #7b5cff;
    --transaction-focus-ring: rgba(123, 92, 255, 0.18);
}

.transaction-form-deposit .primary {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.transaction-form-deposit .primary:hover {
    background: linear-gradient(135deg, #fb923c, #d97706);
}

.transaction-form-withdrawal {
    --transaction-form-bg: linear-gradient(180deg, #efd084 0%, #d49a1c 100%);
    --transaction-form-border: rgba(120, 81, 7, 0.34);
    --transaction-form-shadow: 0 22px 40px rgba(126, 84, 10, 0.16);
    --transaction-form-label: #5d3900;
    --transaction-form-ink: #3f2800;
    --transaction-input-bg: rgba(255, 247, 227, 0.84);
    --transaction-input-border: rgba(144, 98, 10, 0.3);
    --transaction-placeholder: #8c6622;
    --transaction-focus: #a86c00;
    --transaction-focus-ring: rgba(168, 108, 0, 0.2);
}

.transaction-form-withdrawal .secondary {
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.transaction-form-withdrawal .secondary:hover {
    background: linear-gradient(135deg, #fb923c, #9a3412);
}

.danger {
    color: #fff;
    background: var(--danger);
}

.danger:hover {
    background: #a8362c;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    color: #9a3412;
    background: linear-gradient(180deg, #fff4e5, #fed7aa);
    border: 1px solid rgba(234, 88, 12, 0.18);
}

.admin-hint {
    margin-top: 18px;
    padding: 12px;
    color: var(--muted);
    background: var(--panel);
    border-radius: var(--radius);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.auth-note {
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 520px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.auth-points span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: var(--primary-dark);
    background: rgba(13, 107, 88, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.ghost {
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
}

body.dashboard-page .shell {
    width: min(1160px, calc(100% - 32px));
    margin: 24px auto 56px;
    padding: 0 0 144px;
}

body.dashboard-page .panel,
body.dashboard-page .wallet,
body.dashboard-page .metrics article {
    padding: 16px;
}

body.dashboard-page .grid.two,
body.dashboard-page .metrics {
    grid-template-columns: 1fr;
}

body.dashboard-page .hero-row,
body.dashboard-page .section-title,
body.dashboard-page .validation-item {
    align-items: stretch;
    flex-direction: column;
}

body.dashboard-page .hero-row {
    display: grid;
}

body.dashboard-page .task-card {
    grid-template-columns: 1fr;
}

body.dashboard-page .task-form {
    justify-self: start;
}

body.dashboard-page .wallet {
    min-width: 0;
}

body.dashboard-page .phone-banner.panel,
body.dashboard-page .phone-notice.panel {
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (min-width: 861px) {
    body.dashboard-page .panel,
    body.dashboard-page .wallet,
    body.dashboard-page .metrics article {
        padding: 20px;
    }

    body.dashboard-page .dashboard-home {
        gap: 16px;
    }
}

.dashboard-home {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.phone-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 214, 84, 0.12), transparent 24%),
        radial-gradient(circle at 92% 0%, rgba(91, 145, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0d1424 0%, #152446 54%, #244f7b 100%);
    border-color: transparent;
}

.phone-banner .eyebrow,
.phone-banner .subtle {
    color: rgba(255, 255, 255, 0.78);
}

.phone-banner-copy {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px 4px 18px 0;
}

.site-brand-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-brand-strip {
    margin-bottom: 14px;
}

.site-brand-strip strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.site-brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.site-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portal-identity .eyebrow {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.portal-identity-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.portal-identity-name {
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.08;
    font-weight: 900;
}

.identity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.identity-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.portal-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 68px;
    height: 68px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portal-avatar-sm {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.portal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portal-avatar-icon {
    display: inline-grid;
    place-items: center;
}

.portal-avatar-icon svg {
    width: 28px;
    height: 28px;
}

.portal-avatar-sm .portal-avatar-icon svg {
    width: 22px;
    height: 22px;
}

.phone-banner .hero-pills {
    gap: 8px;
}

.phone-banner .meta-pill {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-actions .link-button {
    width: 100%;
    min-width: 0;
    border-radius: 999px;
}

.hero-actions .ghost {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(251, 146, 60, 0.35);
}

.hero-actions .ghost:hover {
    background: rgba(245, 158, 11, 0.32);
}

.bank-summary {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bank-summary .eyebrow,
.bank-summary span,
.bank-summary small,
.bank-summary strong {
    color: #fff;
}

.bank-summary strong {
    font-size: 38px;
    line-height: 1;
}

.bank-summary small {
    color: rgba(255, 255, 255, 0.8);
}

.bank-summary .account-meta {
    padding-top: 6px;
}

.bank-summary .account-meta div {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.status-strip div {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.98));
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 0 0;
    align-items: stretch;
}

.page-actions {
    grid-auto-rows: minmax(94px, auto);
}

.page-panel-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.page-panel-footer .link-button {
    min-width: 132px;
}

body.dashboard-page .page-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel.history-surface,
.floating-sheet.history-surface {
    background: linear-gradient(180deg, #edf0f3 0%, #dfe4e8 100%);
    border-color: #c8d0d7;
}

.history-surface .section-title h2,
.history-surface .eyebrow,
.history-surface th,
.history-surface td,
.history-surface .subtle {
    color: #24313d;
}

.history-table-wrap {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(160, 171, 181, 0.34);
    border-radius: 18px;
}

.history-table-wrap table {
    background: transparent;
}

.home-action {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 9px;
    padding: 16px 12px;
    color: #fff7ed;
    text-align: center;
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
    border: 1px solid rgba(154, 52, 18, 0.42);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(154, 52, 18, 0.22);
}

.home-action.active {
    border-color: rgba(120, 34, 13, 0.62);
    background: linear-gradient(180deg, #fb923c 0%, #9a3412 100%);
}

.home-action.active .home-action-icon {
    box-shadow: 0 14px 24px rgba(120, 34, 13, 0.28);
}

.home-action span:last-child {
    color: #fff1e6;
    font-size: 12px;
    line-height: 1.35;
}

.home-action-copy {
    display: grid;
    gap: 2px;
    justify-items: center;
    min-width: 0;
}

.home-action-copy strong {
    color: #fff7ed;
    font-size: 14px;
    line-height: 1.15;
}

.home-action-copy small {
    color: rgba(255, 247, 237, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.home-action-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff7ed;
    background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
    border: 1px solid rgba(154, 52, 18, 0.26);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 12px 22px rgba(154, 52, 18, 0.18);
}

.home-action-icon svg {
    width: 22px;
    height: 22px;
}

.home-section-heading {
    margin: 8px 6px 2px;
    font-size: 28px;
    line-height: 1.08;
}

.bottom-nav {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 30;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: min(720px, calc(100% - 12px));
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 248, 250, 0.96);
    border: 1px solid rgba(188, 196, 203, 0.92);
    border-bottom-width: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 30px rgba(16, 21, 25, 0.16);
    transform: translateX(-50%);
}

.bottom-nav-item {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px 6px;
    color: #66707a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    border-radius: 16px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.bottom-nav-item span:last-child {
    white-space: nowrap;
}

.bottom-nav-item.active {
    color: #3f4750;
    background: rgba(108, 118, 128, 0.1);
}

.bottom-nav-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: currentColor;
    background: linear-gradient(180deg, #d7dde2 0%, #b7c0c8 100%);
    border: 1px solid rgba(114, 124, 133, 0.28);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.bottom-nav-icon svg {
    width: 16px;
    height: 16px;
}

.bottom-nav-item.active .bottom-nav-icon {
    color: #3f4750;
    background: linear-gradient(180deg, #ccd3d9 0%, #aeb8c0 100%);
    border-color: rgba(94, 103, 112, 0.26);
}

.hero-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.hero-copy {
    display: grid;
    gap: 14px;
}

.hero-row > div:first-child {
    min-width: 0;
    padding: 12px 0;
}

.hero-row h1 {
    font-size: clamp(30px, 5vw, 46px);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: var(--primary-dark);
    background: rgba(13, 107, 88, 0.1);
    border: 1px solid rgba(13, 107, 88, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.account-summary {
    position: relative;
    gap: 12px;
}

.account-summary strong {
    font-size: 38px;
}

.account-summary small {
    line-height: 1.5;
}

.account-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 10px;
}

.account-meta div {
    display: grid;
    gap: 3px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.account-meta span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-meta strong {
    font-size: 14px;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.status-strip div {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.status-strip strong {
    font-size: 14px;
}

.status-strip span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.subtle {
    color: var(--muted);
}

.wallet {
    display: grid;
    min-width: 280px;
    padding: 20px;
    align-content: center;
    gap: 7px;
}

.wallet span,
.metrics span,
.task-item span,
.validation-item span,
.referrals span,
small {
    color: var(--muted);
}

.wallet strong {
    font-size: 31px;
}

.wallet.admin strong {
    font-size: 46px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metrics article {
    display: grid;
    gap: 8px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: var(--card-bg, var(--panel));
}

.metrics strong {
    font-size: 22px;
}

.metrics article::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 143, 114, 0.12), transparent 68%);
    pointer-events: none;
}

.metrics article > *,
.levels div > *,
.task-card > * {
    position: relative;
    z-index: 1;
}

.metrics article[data-metric="balance"] {
    --card-bg: linear-gradient(180deg, rgba(15, 143, 114, 0.09), var(--panel));
    --icon-bg: rgba(15, 143, 114, 0.12);
    --icon-color: var(--primary-dark);
}

.metrics article[data-metric="deposits"] {
    --card-bg: linear-gradient(180deg, rgba(240, 180, 41, 0.12), var(--panel));
    --icon-bg: rgba(240, 180, 41, 0.18);
    --icon-color: #8a6207;
}

.metrics article[data-metric="withdrawals"] {
    --card-bg: linear-gradient(180deg, rgba(194, 65, 53, 0.09), var(--panel));
    --icon-bg: rgba(194, 65, 53, 0.12);
    --icon-color: #9f342b;
}

.metrics article[data-metric="tasks"] {
    --card-bg: linear-gradient(180deg, rgba(69, 103, 255, 0.08), var(--panel));
    --icon-bg: rgba(69, 103, 255, 0.12);
    --icon-color: #3249bf;
}

.metrics article[data-metric="pending"] {
    --card-bg: linear-gradient(180deg, rgba(240, 180, 41, 0.1), var(--panel));
    --icon-bg: rgba(240, 180, 41, 0.16);
    --icon-color: #845d04;
}

.metrics article[data-metric="level"] {
    --card-bg: linear-gradient(180deg, rgba(15, 143, 114, 0.06), var(--panel));
    --icon-bg: rgba(15, 143, 114, 0.12);
    --icon-color: var(--primary-dark);
}

.panel {
    padding: 20px;
    margin-bottom: 18px;
}

[data-floating-panel] {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(8, 12, 18, 0.62);
    backdrop-filter: blur(10px);
}

[data-floating-panel][hidden] {
    display: none;
}

.floating-sheet {
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(8, 12, 18, 0.28);
}

[data-floating-panel] .section-title {
    margin-bottom: 18px;
}

.operations-sheet {
    width: min(560px, 100%);
}

.withdrawal-panel .floating-sheet {
    width: min(560px, 100%);
}

.history-panel .floating-sheet {
    width: min(820px, 100%);
}

.tasks-panel .floating-sheet {
    width: min(960px, 100%);
    max-height: min(90vh, 860px);
}

.vip-panel .floating-sheet {
    width: min(960px, 100%);
    max-height: min(90vh, 860px);
}

.profit-panel .floating-sheet {
    width: min(960px, 100%);
    max-height: min(90vh, 860px);
}

body.dashboard-page .overview-panel .floating-sheet {
    width: min(960px, 100%);
    max-height: min(90vh, 860px);
}

body.dashboard-page .profit-panel .metrics {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.06), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(8, 12, 18, 0.06);
}

.overview-card-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-radius: 14px;
}

.overview-card-icon svg {
    width: 20px;
    height: 20px;
}

.overview-card-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.overview-card strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.12;
}

.overview-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.overview-card[data-overview-card="account"] {
    --primary-soft: rgba(15, 143, 114, 0.12);
}

.overview-card[data-overview-card="balance"] {
    --primary-soft: rgba(15, 143, 114, 0.12);
}

.overview-card[data-overview-card="deposits"] {
    --primary-soft: rgba(240, 180, 41, 0.18);
}

.overview-card[data-overview-card="tasks"] {
    --primary-soft: rgba(69, 103, 255, 0.12);
}

.overview-card[data-overview-card="level"] {
    --primary-soft: rgba(161, 31, 44, 0.12);
}

.overview-card[data-overview-card="activity"] {
    --primary-soft: rgba(142, 92, 240, 0.12);
}

.overview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.overview-actions .link-button,
.overview-actions button {
    width: 100%;
    min-width: 0;
}

.settings-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.settings-actions form {
    margin: 0;
}

.settings-actions .link-button,
.settings-actions button {
    width: 100%;
    min-width: 0;
}

.settings-actions .danger .dashboard-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.theme-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.theme-option {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    text-align: left;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.05), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(8, 12, 18, 0.06);
}

.theme-option:hover {
    border-color: rgba(15, 143, 114, 0.35);
}

.theme-option[aria-pressed="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.theme-swatch {
    display: block;
    width: 64px;
    height: 54px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-swatch-neutral {
    background: linear-gradient(135deg, #f6f7f4, #d9e0db 45%, #b8c7c0);
}

.theme-swatch-violet {
    background: linear-gradient(135deg, #f2ecff, #cab7ff 45%, #8c67ff);
}

.theme-swatch-blue {
    background: linear-gradient(135deg, #eff6ff, #b8d7ff 45%, #5a9cff);
}

.theme-option-copy {
    display: grid;
    gap: 3px;
}

.theme-option-copy strong {
    font-size: 15px;
    line-height: 1.12;
}

.theme-option-copy small {
    color: var(--muted);
    line-height: 1.45;
}

.theme-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.action-badge {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    color: #fff;
    background: var(--danger);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.operations-actions,
.floating-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.modal-close:hover {
    background: var(--primary-soft);
}

.reveal-panel {
    display: grid;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.reveal-panel .section-title {
    margin-bottom: 0;
}

.reveal-toggle {
    padding: 0 14px;
    min-width: 96px;
}

#operations .deposit-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 152px;
    padding: 0 18px 0 14px;
    color: #fff;
    background: linear-gradient(135deg, #7b5cff, #5b3fd6);
    border-radius: 999px;
    box-shadow: 0 14px 24px rgba(91, 63, 214, 0.22);
}

#operations .deposit-toggle::before {
    content: "+";
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
}

#operations .deposit-toggle:hover {
    background: linear-gradient(135deg, #6c4ff0, #4c31bf);
}

#operations .deposit-toggle[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(135deg, #6c4ff0, #4c31bf);
}

#operations .deposit-toggle[aria-expanded="true"]::before {
    content: "-";
    background: rgba(255, 255, 255, 0.34);
}

.withdrawal-toggle {
    color: #fff;
    background: linear-gradient(135deg, #9a6700, #7b5000);
    box-shadow: 0 14px 24px rgba(126, 84, 10, 0.22);
}

.withdrawal-panel .withdrawal-toggle:hover,
.withdrawal-panel .withdrawal-toggle[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(135deg, #845800, #603d00);
}

.reveal-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--primary);
}

.reveal-body {
    margin-top: 16px;
}

.reveal-body[hidden] {
    display: none;
}

.settings-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.settings-links a {
    min-width: 132px;
}

.settings-links a[href="#operations"],
.settings-links a[href="#settings-withdrawal"],
.menu-panel a[data-section-opener="operations"] {
    --icon-bg: rgba(15, 143, 114, 0.12);
    --icon-color: var(--primary-dark);
}

.settings-links a[href="#settings-history"] {
    --icon-bg: rgba(69, 103, 255, 0.12);
    --icon-color: #3249bf;
}

.settings-links a[href="#notifications"] {
    --icon-bg: rgba(142, 92, 240, 0.12);
    --icon-color: #6438a8;
}

.settings-links a[href="#support"],
.menu-panel a[data-section-opener="support"] {
    --icon-bg: rgba(69, 103, 255, 0.12);
    --icon-color: #3249bf;
}

.settings-links a[href="#referral"],
.menu-panel a[data-section-opener="referral"] {
    --icon-bg: rgba(240, 180, 41, 0.18);
    --icon-color: #8a6207;
}

.settings-links a[href="#tasks"],
.menu-panel a[data-section-opener="tasks"] {
    --icon-bg: rgba(69, 103, 255, 0.12);
    --icon-color: #3249bf;
}

.menu-panel a[data-settings-opener] {
    --icon-bg: rgba(102, 114, 109, 0.12);
    --icon-color: #5b665f;
}

.notifications-panel .floating-sheet {
    width: min(860px, 100%);
    max-height: min(90vh, 820px);
}

.assistance-panel .floating-sheet {
    width: min(860px, 100%);
    max-height: min(90vh, 820px);
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.support-form,
.support-thread,
.support-admin-list {
    display: grid;
    gap: 14px;
}

.support-thread-list {
    display: grid;
    gap: 12px;
}

.support-message {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.04), var(--panel));
}

.support-message.from-admin {
    border-color: rgba(15, 143, 114, 0.3);
    background: linear-gradient(180deg, rgba(15, 143, 114, 0.09), var(--panel));
}

.support-message.from-user {
    border-color: rgba(102, 114, 109, 0.18);
}

.support-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.support-message-meta strong {
    color: var(--ink);
}

.support-message p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.support-attachment {
    display: inline-block;
    max-width: 320px;
}

.support-attachment-preview {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.support-thread-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.support-thread-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.support-thread-head strong {
    display: block;
    font-size: 16px;
}

.support-thread-head small {
    color: var(--muted);
}

.support-reply-form {
    display: grid;
    gap: 12px;
}

.support-reply-form textarea {
    min-height: 96px;
}

.notifications-grid {
    margin-bottom: 16px;
}

.notifications-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.04), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
}

.notification-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.notification-item span,
.notification-item small {
    display: block;
    color: var(--muted);
}

.notification-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #6438a8;
    background: rgba(142, 92, 240, 0.12);
    border-radius: 14px;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.settings-section {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.settings-subtitle {
    margin-bottom: 0;
}

.settings-subtitle h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.1;
}

.about-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 820px;
}

.proof-link {
    display: inline-block;
    margin-top: 6px;
}

.proof-preview {
    display: block;
    max-width: 220px;
    max-height: 160px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
}

.date-pill,
.code,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.date-pill,
.code {
    color: var(--primary-dark);
    background: rgba(15, 143, 114, 0.12);
}

.dashboard-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--icon-color, var(--primary-dark));
    background: var(--icon-bg, rgba(15, 143, 114, 0.12));
}

.dashboard-icon svg {
    width: 20px;
    height: 20px;
}

.menu-panel a .dashboard-icon,
.link-button .dashboard-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
}

.menu-panel a .dashboard-icon svg,
.link-button .dashboard-icon svg {
    width: 16px;
    height: 16px;
}

.metrics article .dashboard-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 2px;
    border-radius: 16px;
}

.task-emoji svg {
    width: 28px;
    height: 28px;
}

.task-emoji,
.task-card .task-emoji {
    color: var(--primary-dark);
}

.levels div .dashboard-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 3px;
}

.task-list,
.levels,
.referrals,
.validation-list {
    display: grid;
    gap: 12px;
}

.task-item,
.validation-item,
.referrals div,
.levels div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.task-item > div,
.validation-item > div,
.levels div {
    display: grid;
    gap: 5px;
}

.task-item.done {
    border-color: rgba(15, 143, 114, 0.3);
    background: rgba(15, 143, 114, 0.08);
}

.task-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.03), var(--panel));
}

.task-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.task-emoji {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.1), rgba(13, 107, 88, 0.18));
    box-shadow: 0 14px 26px rgba(13, 107, 88, 0.12);
    font-size: 28px;
}

.task-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.task-motion {
    position: relative;
    display: grid;
    min-height: 34px;
    margin-top: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.04), rgba(13, 107, 88, 0.02));
}

.task-motion-track {
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(13, 107, 88, 0.18) 18%, rgba(165, 124, 51, 0.5) 50%, rgba(13, 107, 88, 0.18) 82%, transparent 100%);
    background-size: 120px 100%;
}

.task-motion-truck {
    position: absolute;
    top: 50%;
    left: calc(18px + (var(--task-progress, 0) * (100% - 36px)));
    display: inline-grid;
    width: 34px;
    height: 30px;
    place-items: center;
    color: var(--task-truck-color, var(--primary-dark));
    background: var(--task-truck-bg, rgba(15, 143, 114, 0.12));
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(23, 33, 29, 0.12);
    transform: translate(-50%, -50%);
    transition:
        left 220ms linear,
        color 220ms ease,
        background-color 220ms ease,
        opacity 220ms ease;
}

.task-motion-truck svg {
    width: 18px;
    height: 18px;
}

.task-card.task-running .task-motion-track {
    animation: task-track-flow 1s linear infinite;
}

.task-card.task-running .task-motion-truck {
    animation: task-truck-bob 900ms ease-in-out infinite;
}

.task-card.done .task-motion {
    opacity: 0.76;
}

.task-card.done .task-motion-truck {
    left: calc(18px + (100% - 36px));
    opacity: 0.56;
}

.task-card[data-level="LV1"] {
    --task-truck-bg: rgba(15, 143, 114, 0.12);
    --task-truck-color: var(--primary-dark);
}

.task-card[data-level="LV2"] {
    --task-truck-bg: rgba(240, 180, 41, 0.18);
    --task-truck-color: #8a6207;
}

.task-card[data-level="LV3"] {
    --task-truck-bg: rgba(69, 103, 255, 0.14);
    --task-truck-color: #3249bf;
}

.task-card[data-level="LV4"] {
    --task-truck-bg: rgba(142, 92, 240, 0.16);
    --task-truck-color: #6438a8;
}

.task-card[data-level="LV5"] {
    --task-truck-bg: rgba(240, 180, 41, 0.2);
    --task-truck-color: #845d04;
}

.task-state {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.task-form {
    margin: 0;
}

.task-launch {
    min-width: 78px;
    padding: 0 14px;
    font-size: 18px;
}

.task-card.done .task-emoji {
    background: rgba(13, 107, 88, 0.18);
}

@keyframes task-track-flow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 120px 0;
    }
}

@keyframes task-truck-bob {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-2px);
    }
}

.levels div {
    align-items: start;
    position: relative;
    overflow: hidden;
    background: var(--card-bg, var(--panel));
}

.levels div::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--level-accent, var(--primary));
}

.levels .active {
    border-color: rgba(240, 180, 41, 0.75);
    background: rgba(240, 180, 41, 0.14);
}

.levels div[data-level-card="LV1"] {
    --card-bg: linear-gradient(180deg, rgba(15, 143, 114, 0.06), var(--panel));
    --icon-bg: rgba(15, 143, 114, 0.12);
    --icon-color: var(--primary-dark);
    --level-accent: rgba(15, 143, 114, 0.35);
}

.levels div[data-level-card="LV2"] {
    --card-bg: linear-gradient(180deg, rgba(240, 180, 41, 0.08), var(--panel));
    --icon-bg: rgba(240, 180, 41, 0.18);
    --icon-color: #8a6207;
    --level-accent: rgba(240, 180, 41, 0.42);
}

.levels div[data-level-card="LV3"] {
    --card-bg: linear-gradient(180deg, rgba(69, 103, 255, 0.07), var(--panel));
    --icon-bg: rgba(69, 103, 255, 0.12);
    --icon-color: #3249bf;
    --level-accent: rgba(69, 103, 255, 0.42);
}

.levels div[data-level-card="LV4"] {
    --card-bg: linear-gradient(180deg, rgba(142, 92, 240, 0.08), var(--panel));
    --icon-bg: rgba(142, 92, 240, 0.14);
    --icon-color: #6438a8;
    --level-accent: rgba(142, 92, 240, 0.45);
}

.levels div[data-level-card="LV5"] {
    --card-bg: linear-gradient(180deg, rgba(240, 180, 41, 0.1), var(--panel));
    --icon-bg: rgba(240, 180, 41, 0.2);
    --icon-color: #845d04;
    --level-accent: rgba(240, 180, 41, 0.52);
}

.levels .locked {
    border-color: rgba(161, 31, 44, 0.5);
    background: linear-gradient(180deg, var(--cardinal-soft), var(--panel));
    box-shadow: 0 18px 34px rgba(161, 31, 44, 0.08);
    opacity: 0.96;
    --card-bg: linear-gradient(180deg, var(--cardinal-soft), var(--panel));
    --icon-bg: var(--cardinal-soft-strong);
    --icon-color: #7d1822;
    --level-accent: rgba(161, 31, 44, 0.56);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.locked-badge {
    color: #fff;
    background: linear-gradient(135deg, var(--cardinal), #6f131b);
    box-shadow: 0 10px 18px rgba(161, 31, 44, 0.22);
}

.levels .locked strong,
.levels .locked span:not(.level-badge),
.levels .locked small {
    color: #711823;
}

.dashboard-enhanced .metrics article,
.dashboard-enhanced .home-action,
.dashboard-enhanced .status-strip div,
.dashboard-enhanced .task-card,
.dashboard-enhanced .levels div,
.dashboard-enhanced .menu-panel a,
.dashboard-enhanced .settings-links a,
.dashboard-enhanced .link-button {
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease;
    animation: dashboard-rise 620ms cubic-bezier(0.2, 0.85, 0.3, 1) both;
    animation-delay: var(--dashboard-delay, 0ms);
}

.dashboard-enhanced .metrics article:hover,
.dashboard-enhanced .home-action:hover,
.dashboard-enhanced .status-strip div:hover,
.dashboard-enhanced .task-card:hover,
.dashboard-enhanced .levels div:hover,
.dashboard-enhanced .menu-panel a:hover,
.dashboard-enhanced .settings-links a:hover {
    transform: translateY(-2px);
}

@keyframes dashboard-rise {
    from {
        transform: translateY(12px) scale(0.985);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.page-actions .home-action {
    min-height: 104px;
}

.page-actions .home-action,
.page-actions .home-action:hover,
.page-actions .home-action:focus-visible,
.page-actions .home-action.active {
    animation: none;
    transform: none;
}

.home-action {
    min-width: 0;
}

.home-action-copy {
    min-width: 0;
}

.home-action-copy strong {
    overflow-wrap: anywhere;
}

.deposit-methods-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 2px;
}

.deposit-methods-panel.compact {
    margin-top: 18px;
}

.deposit-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.deposit-method-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.05), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.deposit-method-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.deposit-method-network {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deposit-method-card strong {
    font-size: 18px;
    line-height: 1.15;
}

.deposit-method-sim {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.deposit-method-card small {
    color: var(--muted);
    line-height: 1.45;
}

.deposit-method-syntax {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(123, 92, 255, 0.08);
    border: 1px dashed rgba(123, 92, 255, 0.28);
    border-radius: 16px;
}

.deposit-method-syntax-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-method-syntax-title {
    color: #6438a8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deposit-method-syntax p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: #9a3412;
    background: linear-gradient(180deg, #fff4e5, #fed7aa);
    border: 1px solid rgba(234, 88, 12, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.copy-button:hover {
    background: linear-gradient(180deg, #fde5c0, #fdc98a);
}

.copy-button.copied {
    color: #0d6b58;
    background: rgba(13, 107, 88, 0.14);
    border-color: rgba(13, 107, 88, 0.24);
}

.copy-button-icon {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
}

.copy-button-icon svg {
    width: 16px;
    height: 16px;
}

.admin-settings-grid {
    align-items: start;
    margin-bottom: 18px;
}

.branding-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.branding-preview img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.deposit-method-admin-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.deposit-method-admin-card {
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.admin-card-form {
    margin-top: 0;
}

.admin-method-catalog {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.admin-method-shell {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(13, 107, 88, 0.05), var(--panel));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.admin-method-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-method-shell-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.admin-method-shell .deposit-method-admin-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-inline-form {
    margin: 0;
}

.admin-inline-danger-form {
    display: flex;
    justify-content: flex-end;
}

.method-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.method-actions button,
.admin-inline-danger-form button {
    min-width: 120px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.compact table {
    min-width: 480px;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.status.pending {
    color: #845d04;
    background: rgba(240, 180, 41, 0.18);
}

.status.active {
    color: var(--primary-dark);
    background: rgba(15, 143, 114, 0.12);
}

.status.inactive {
    color: #7d5d10;
    background: rgba(240, 180, 41, 0.18);
}

.status.banned {
    color: var(--danger);
    background: rgba(194, 65, 53, 0.12);
}

.status.approved {
    color: var(--primary-dark);
    background: rgba(15, 143, 114, 0.12);
}

.status.paid {
    color: #11315f;
    background: rgba(27, 63, 122, 0.14);
}

.status.rejected {
    color: var(--danger);
    background: rgba(194, 65, 53, 0.12);
}

.history-status.approved,
.history-status.paid {
    color: #eef4ff;
    background: linear-gradient(135deg, #0f2147, #183468);
    border-color: rgba(15, 33, 71, 0.42);
    box-shadow: 0 10px 18px rgba(15, 33, 71, 0.18);
}

.validation-item {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) auto auto;
}

.admin-validation-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
    align-items: start;
    gap: 16px;
    padding: 16px;
}

.validation-note-field {
    min-width: 0;
}

.validation-note-field input {
    margin-top: 4px;
}

.validation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-self: stretch;
}

.validation-actions button {
    min-width: 120px;
}

.user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.user-actions form {
    margin: 0;
    width: 100%;
}

.user-actions button {
    width: 100%;
    min-width: 0;
}

.admin-user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-user-actions form {
    width: 100%;
}

.admin-user-actions button {
    width: 100%;
}

@media (max-width: 860px) {
    body.dashboard-page .topbar {
        display: none;
    }

    body.admin-page .topbar {
        align-items: stretch;
    }

    body.admin-page .menu-shell {
        width: 100%;
        align-items: stretch;
    }

    body.admin-page .menu-button {
        display: none;
    }

    body.admin-page .menu-panel,
    body.admin-page .menu-panel[hidden] {
        display: grid !important;
        width: 100%;
    }

    body.dashboard-page .shell {
        width: min(100% - 16px, 430px);
        margin: 0 auto;
        padding: 12px 0 120px;
    }

    body.dashboard-page .phone-banner {
        grid-template-columns: 1fr;
    }

    .topbar,
    .hero-row,
    .section-title,
    .validation-item {
        align-items: stretch;
        flex-direction: column;
    }

    .bottom-nav {
        display: grid;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .auth-layout,
    .grid.two,
    .metrics,
    .overview-grid,
    .support-layout,
    .deposit-methods-grid,
    .admin-settings-grid,
    .status-strip,
    .account-meta {
        grid-template-columns: 1fr;
    }

    .hero-row {
        display: grid;
    }

    .task-card {
        grid-template-columns: 1fr;
    }

    .task-form {
        justify-self: start;
    }

    .method-actions {
        flex-direction: column;
    }

    .admin-method-catalog {
        grid-template-columns: 1fr;
    }

    .hero-actions .link-button,
    .user-actions form,
    .user-actions button,
    .admin-inline-danger-form button,
    .method-actions button,
    .validation-item button,
    .task-form,
    .task-form button {
        width: 100%;
    }

    .task-form {
        justify-self: stretch;
    }

    .wallet {
        min-width: 0;
    }

    .site-brand-strip {
        gap: 10px;
    }

    .site-brand-strip strong {
        font-size: 16px;
    }

    .validation-item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-validation-item {
        grid-template-columns: 1fr;
    }

    .validation-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-inline-danger-form,
    .method-actions {
        justify-content: stretch;
    }

    .validation-item input,
    .validation-item button {
        width: 100%;
    }

    body.dashboard-page .shell {
        padding-bottom: 132px;
    }
}

@media (max-width: 720px) {
    .home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 861px) {
    .bottom-nav {
        bottom: 18px;
        width: min(760px, calc(100% - 64px));
        padding: 14px 16px;
        border-radius: 28px;
        background: rgba(246, 248, 250, 0.92);
        border-color: rgba(188, 196, 203, 0.8);
        border-bottom-width: 1px;
        box-shadow: 0 18px 40px rgba(16, 21, 25, 0.12);
        backdrop-filter: blur(18px);
    }

    .bottom-nav-item {
        gap: 6px;
        padding: 12px 10px 10px;
        border-radius: 18px;
        font-size: 12px;
    }

    .bottom-nav-item:hover {
        background: rgba(108, 118, 128, 0.08);
        transform: translateY(-1px);
    }

    .bottom-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 14px;
        background: linear-gradient(180deg, #dbe0e5 0%, #bbc4cb 100%);
    }

    .bottom-nav-item.active {
        background: rgba(108, 118, 128, 0.12);
    }

    .bottom-nav-item.active .bottom-nav-icon {
        background: linear-gradient(180deg, #cfd6db 0%, #aeb8c1 100%);
    }
}

@media (max-width: 560px) {
    .topbar {
        position: static;
    }

    .shell {
        width: min(100% - 22px, 1160px);
        margin-top: 18px;
    }

    .brand small {
        display: none;
    }

    .nav:not(.guest-nav) a {
        display: none;
    }

    body.dashboard-page .phone-banner {
        padding: 16px;
    }

    .phone-banner-copy {
        padding: 0;
    }

    .site-brand-mark {
        width: 38px;
        height: 38px;
    }

    .auth-panel,
    .panel,
    .wallet,
    .metrics article {
        padding: 16px;
    }

    .home-actions {
        gap: 10px;
    }

    .home-action {
        padding: 14px 10px;
    }

    .deposit-method-card,
    .deposit-method-admin-card {
        padding: 12px;
    }

    .theme-switcher {
        grid-template-columns: 1fr;
    }

    .theme-option {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .theme-swatch {
        width: 54px;
        height: 46px;
    }

    .support-thread-head,
    .support-message-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet strong {
        font-size: 26px;
    }

    .bank-summary strong {
        font-size: 30px;
    }
}
