:root {
    --bg: #050009;
    --bg-2: #080010;
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: #a1a1aa;
    --primary: #a855f7;
    --violet: #7c3aed;
    --glow: #d946ef;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 8px;
    --shadow: 0 20px 80px rgba(168, 85, 247, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.2), transparent 28rem),
        linear-gradient(135deg, var(--bg), #0f0219 52%, var(--bg-2));
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    padding: 0.8rem 0.9rem;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

select option {
    background: #12051f;
    color: var(--text);
}

label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.public-area {
    min-height: 100vh;
}

.landing-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    right: auto;
    width: min(1120px, calc(100% - 2rem));
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(13, 3, 24, 0.78);
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.14);
}

.landing-header nav {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
}

.landing-header .brand {
    color: #f5e8ff;
    font-size: 1.08rem;
    font-weight: 800;
}

.landing-header .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
}

.brand.center {
    justify-content: center;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(168, 85, 247, 0.78);
    border-radius: var(--radius);
    color: #d8b4fe;
    background: rgba(17, 5, 29, 0.92);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.92);
    box-shadow:
        0 0 18px rgba(168, 85, 247, 0.5),
        inset 0 0 16px rgba(124, 58, 237, 0.2);
}

.hero {
    min-height: 92vh;
    display: grid;
    align-items: center;
    padding: 7rem clamp(1rem, 6vw, 6rem) 4rem;
    background-position: center;
    background-size: cover;
}

.hero-copy {
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(3.4rem, 12vw, 8.5rem);
    line-height: 0.9;
    margin-bottom: 1.2rem;
}

.hero p {
    max-width: 600px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.landing-hero {
    position: relative;
    min-height: 90vh;
    justify-items: center;
    text-align: center;
    overflow: hidden;
    padding: 9.4rem 1rem 3.6rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
    background:
        radial-gradient(circle at 50% 22%, rgba(168, 85, 247, 0.24), transparent 14rem),
        radial-gradient(circle at 50% 52%, rgba(124, 58, 237, 0.2), transparent 24rem),
        linear-gradient(180deg, #050009 0%, #070011 58%, #030006 100%);
    background-position: center;
    background-size: cover;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(168, 85, 247, 0.08), transparent 18%, transparent 82%, rgba(217, 70, 239, 0.07)),
        radial-gradient(circle at center, transparent 0, transparent 28rem, rgba(0, 0, 0, 0.48) 100%);
}

.hero-copy-centered {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 760px;
    flex-direction: column;
    align-items: center;
}

.hero-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-bottom: 2.75rem;
    border: 2px solid rgba(216, 180, 254, 0.74);
    border-radius: 22px;
    color: #d8b4fe;
    font-size: 4.4rem;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 0 16px rgba(216, 180, 254, 0.9);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.22) inset,
        0 0 34px rgba(168, 85, 247, 0.56),
        0 0 88px rgba(168, 85, 247, 0.24);
    background: linear-gradient(145deg, rgba(31, 14, 47, 0.92), rgba(18, 6, 32, 0.84));
}

.access-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 28px;
    margin-bottom: 1.35rem;
    padding: 0.28rem 0.74rem;
    border: 1px solid rgba(168, 85, 247, 0.54);
    border-radius: 999px;
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.17);
    font-size: 0.82rem;
    font-weight: 700;
}

.access-pill span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d946ef;
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.92);
}

.landing-hero h1 {
    max-width: 680px;
    margin-bottom: 1.55rem;
    font-size: clamp(2.32rem, 4.6vw, 3.45rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.landing-hero h1 span {
    display: block;
    color: #e9a8ff;
    text-shadow: 0 0 28px rgba(217, 70, 239, 0.28);
}

.landing-hero p {
    max-width: 690px;
    margin-bottom: 1.9rem;
    color: #aaa3bb;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.52;
}

.landing-hero .action-row {
    justify-content: center;
}

.landing-hero .button.primary {
    min-height: 46px;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    color: #100018;
    font-size: 0.92rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c45cff, #7c3aed);
    box-shadow: 0 0 36px rgba(168, 85, 247, 0.64);
}

.landing-features {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.4rem 0 2.2rem;
}

.landing-feature-stack {
    display: grid;
    gap: 1.1rem;
}

.landing-feature-card {
    min-height: 142px;
    display: grid;
    align-content: center;
    gap: 0.68rem;
    padding: 1.35rem;
    border-color: rgba(168, 85, 247, 0.38);
    background: rgba(8, 3, 16, 0.86);
    box-shadow: none;
}

.landing-feature-card h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.landing-feature-card p {
    margin-bottom: 0;
    color: #aaa3d3;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.55;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fde047;
    font-size: 1.28rem;
    background: rgba(168, 85, 247, 0.18);
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.54);
}

.section-band .section-copy h2,
.faq-section .section-copy h2 {
    max-width: 760px;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.08;
}

.section-band .section-copy p,
.faq-section .section-copy p {
    font-size: 0.98rem;
}

.section-band .section-copy,
.faq-section .section-copy {
    max-width: 900px;
}

.clean-list {
    display: grid;
    gap: 0.55rem;
    margin: 1.1rem 0 1.1rem;
    padding: 0;
    list-style: none;
    color: #f5e8ff;
    font-weight: 800;
}

.clean-list li {
    padding-left: 1.15rem;
    position: relative;
}

.clean-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d946ef;
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.8);
}

.faq-list {
    display: grid;
    gap: 0.85rem;
    width: min(900px, 100%);
    margin-top: 1.4rem;
}

.faq-list details {
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: var(--radius);
    background: rgba(8, 3, 16, 0.74);
    padding: 1rem 1.1rem;
}

.faq-list summary {
    cursor: pointer;
    color: #f8f2ff;
    font-weight: 850;
}

.faq-list p {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.support-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 8rem 0 4rem;
}

.support-copy {
    margin-bottom: 1.2rem;
}

.support-copy h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.support-copy p {
    max-width: 680px;
    font-size: 0.98rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.support-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    min-height: 260px;
}

.support-card h2 {
    margin: 0;
    font-size: 1.08rem;
}

.support-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
}

.landing-feature-card:nth-child(2) .feature-icon {
    color: #e9d5ff;
}

.landing-feature-card:nth-child(3) .feature-icon {
    color: #f5f3ff;
}

.section-grid,
.section-band,
.plans-preview,
.faq-section,
.landing-footer {
    padding: 4rem clamp(1rem, 6vw, 6rem);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.section-copy {
    max-width: 760px;
}

.section-copy.compact {
    margin-bottom: 1.25rem;
}

.section-copy h2,
.panel-head h1,
.narrow-panel h1,
.auth-panel h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.feature-grid,
.plan-grid,
.dashboard-grid,
.task-grid,
.profile-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.plan-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.landing-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.app-shell,
.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.side-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
    border-right: 1px solid var(--line);
    background: rgba(8, 0, 16, 0.76);
    backdrop-filter: blur(18px);
    overflow-y: auto;
}

.side-nav .brand {
    margin-bottom: 1.25rem;
}

.side-nav a:not(.brand) {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.7rem 0.85rem;
    color: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
}

.side-nav a.active,
.side-nav a:not(.brand):hover {
    color: var(--text);
    background: rgba(168, 85, 247, 0.16);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.35);
}

.main-area {
    width: 100%;
    max-width: 1440px;
    padding: 1.25rem clamp(1rem, 3vw, 2rem) 6rem;
}

.app-topbar,
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.app-topbar h1,
.admin-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.topbar-actions,
.action-row,
.admin-actions,
.split-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.glass-card,
.balance-card,
.plan-card,
.auth-panel,
.narrow-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.glass-card,
.balance-card,
.plan-card {
    padding: 1.1rem;
}

.balance-card {
    min-height: 190px;
    display: grid;
    align-content: space-between;
    gap: 0.75rem;
}

.balance-card strong,
.plan-card strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.primary-balance {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.26), rgba(255, 255, 255, 0.06));
    border-color: rgba(217, 70, 239, 0.48);
}

.content-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.content-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title h2,
.plan-card h3 {
    margin-bottom: 0.35rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.metric-row div {
    min-height: 78px;
    padding: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
}

.metric-row span,
.eyebrow,
.fine-print,
.muted {
    color: var(--muted);
}

.metric-row strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 44px;
    padding: 0.75rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.button.primary {
    border-color: rgba(217, 70, 239, 0.65);
    background: linear-gradient(135deg, var(--primary), var(--violet));
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.32);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.04);
}

.button.small {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
}

.icon-button {
    width: 44px;
    padding: 0;
}

.badge,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(168, 85, 247, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
}

.badge.success,
.status.successful,
.status.approved,
.status.qualified,
.status.paid,
.status.active {
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.44);
    background: rgba(34, 197, 94, 0.12);
}

.status.pending,
.status.processing {
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.44);
    background: rgba(245, 158, 11, 0.12);
}

.status.failed,
.status.rejected,
.status.cancelled {
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.44);
    background: rgba(239, 68, 68, 0.12);
}

.form-stack,
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
    grid-column: span 2;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.check-line input {
    width: auto;
    min-height: auto;
}

.auth-panel,
.narrow-panel {
    width: min(96vw, 520px);
    margin: 8vh auto;
    padding: 1.5rem;
}

.auth-panel.wide {
    width: min(96vw, 760px);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    align-content: start;
    justify-items: center;
    padding: 2.65rem 1rem 3rem;
    background:
        radial-gradient(circle at 50% 7%, rgba(168, 85, 247, 0.2), transparent 16rem),
        linear-gradient(180deg, #13021d 0%, #070011 38%, #050009 100%);
}

.auth-login-page {
    padding-top: 5.2rem;
}

.auth-brand {
    margin-bottom: 1.55rem;
    color: #f5e8ff;
    font-size: 1.1rem;
    font-weight: 850;
}

.auth-card {
    width: min(448px, 100%);
    padding: 1.8rem;
    border: 1px solid rgba(168, 85, 247, 0.48);
    border-radius: 22px;
    background: rgba(5, 0, 13, 0.9);
    box-shadow: 0 0 34px rgba(168, 85, 247, 0.12);
}

.auth-card h1 {
    margin-bottom: 0.55rem;
    color: #faf7ff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.08;
}

.auth-card > p {
    margin-bottom: 1.45rem;
    color: #9f97b2;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    gap: 0.48rem;
    color: #9f97b2;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form input {
    min-height: 46px;
    border-color: rgba(168, 85, 247, 0.42);
    border-radius: 18px;
    background: rgba(14, 5, 26, 0.92);
    color: #f8f2ff;
    padding: 0.86rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-form input::placeholder {
    color: rgba(159, 151, 178, 0.72);
}

.auth-form input:focus {
    border-color: rgba(216, 180, 254, 0.95);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16), 0 0 24px rgba(168, 85, 247, 0.28);
}

.auth-form .button.primary {
    min-height: 44px;
    margin-top: 0.25rem;
    border-radius: 18px;
    color: #120018;
    font-size: 0.92rem;
    font-weight: 900;
    background: linear-gradient(135deg, #c455ff, #7138ff);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.38);
}

.admin-auth-card {
    border-color: rgba(34, 197, 94, 0.28);
    background:
        radial-gradient(circle at 78% 8%, rgba(34, 197, 94, 0.12), transparent 13rem),
        linear-gradient(145deg, rgba(18, 7, 31, 0.55), rgba(7, 0, 15, 0.5));
}

.admin-auth-card .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: #bbf7d0;
}

.auth-fine-print {
    margin: 1rem 0 0;
    text-align: center;
    color: #8f879f;
    font-size: 0.78rem;
}

.auth-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.32rem;
    margin-top: 1.35rem;
    color: #9f97b2;
    font-size: 0.94rem;
    font-weight: 600;
}

.auth-switch a {
    color: #e7b6ff;
    font-weight: 850;
}

.finance-engine-card {
    width: min(1040px, 100%);
    margin: 1.2rem auto;
    padding: 1.25rem;
    overflow: hidden;
    border-radius: 36px 22px 34px 24px;
}

.finance-engine-head,
.finance-engine-body {
    display: grid;
    gap: 1rem;
}

.finance-engine-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.finance-engine-head h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
}

.finance-engine-head p,
.finance-empty {
    margin-bottom: 0;
}

.finance-engine-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    align-items: stretch;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 999px;
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.12);
    font-family: var(--display-font);
    font-weight: 800;
}

.live-pill span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
    animation: live-pulse 1.6s ease-in-out infinite;
}

.chart-stage {
    position: relative;
    min-height: 245px;
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 26px 16px 28px 18px;
    background:
        radial-gradient(circle at 72% 20%, rgba(217, 70, 239, 0.14), transparent 12rem),
        rgba(5, 0, 13, 0.5);
    padding: 0.75rem;
    overflow: hidden;
}

.chart-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(233, 168, 255, 0.09), transparent);
    transform: translateX(-100%);
    animation: chart-scan 6s ease-in-out infinite;
}

.chart-stage svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 225px;
    overflow: visible;
}

.chart-grid-lines line {
    stroke: rgba(216, 180, 254, 0.1);
    stroke-width: 1;
}

.chart-volume rect {
    fill: rgba(168, 85, 247, 0.12);
}

.chart-candle {
    stroke-width: 2;
    stroke-linejoin: round;
}

.chart-candle.up {
    fill: rgba(34, 197, 94, 0.16);
    stroke: rgba(74, 222, 128, 0.72);
}

.chart-candle.down {
    fill: rgba(244, 114, 182, 0.12);
    stroke: rgba(244, 114, 182, 0.68);
}

.chart-line {
    fill: none;
    stroke: url(#financeGlow);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.48));
    stroke-dasharray: 900;
    animation: chart-draw 7s ease-in-out infinite;
}

.chart-fill {
    fill: url(#financeArea);
    animation: chart-breathe 3.8s ease-in-out infinite;
}

.chart-dot {
    fill: #f0abfc;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1;
    filter: drop-shadow(0 0 10px rgba(240, 171, 252, 0.72));
    animation: dot-pulse 2.8s ease-in-out infinite;
}

.dot-two {
    animation-delay: 0.4s;
}

.dot-three {
    animation-delay: 0.8s;
}

.chart-axis-label {
    fill: rgba(216, 180, 254, 0.62);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.finance-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.finance-metrics div {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 24px 16px 26px 18px;
    background: rgba(10, 1, 18, 0.54);
}

.finance-metrics span {
    color: #aaa3bb;
    font-size: 0.82rem;
}

.finance-metrics strong {
    font-size: 1.1rem;
}

.finance-empty {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px dashed rgba(216, 180, 254, 0.28);
    border-radius: 22px;
    background: rgba(5, 0, 13, 0.38);
}

.admin-command-center {
    display: grid;
    gap: 1rem;
}

.admin-command-head {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -0.25rem 0 0.35rem;
    padding: 0.8rem;
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 28px 18px 30px 20px;
    backdrop-filter: blur(22px);
}

.admin-command-head h1 {
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(360px, 100%);
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 999px;
    background: rgba(5, 0, 13, 0.46);
}

.admin-search input {
    width: 100%;
    min-height: 36px;
    border: 0;
    padding: 0;
    background: transparent;
}

.admin-mobile-nav {
    display: none;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 0.85rem;
}

.admin-stat-grid .balance-card {
    min-height: 138px;
    padding: 1rem;
}

.admin-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.admin-action-grid,
.admin-chart-grid,
.admin-review-list,
.admin-filters {
    display: grid;
    gap: 0.7rem;
}

.admin-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-action-grid .button {
    justify-content: flex-start;
    min-height: 44px;
}

.admin-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-chart,
.admin-review-list div {
    min-height: 112px;
    padding: 0.9rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 24px 16px 26px 18px;
    background:
        linear-gradient(rgba(216, 180, 254, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 180, 254, 0.06) 1px, transparent 1px),
        rgba(5, 0, 13, 0.42);
    background-size: 28px 28px;
}

.admin-chart span,
.admin-review-list span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-chart p {
    margin-top: 1.6rem;
    color: #aaa3bb;
    font-size: 0.86rem;
}

.admin-review-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-review-list strong {
    display: block;
    color: #fff;
    font-size: 1.5rem;
}

.admin-filters {
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: center;
    margin-bottom: 0.9rem;
}

.admin-filters input,
.admin-filters select {
    min-height: 42px;
}

.page-admin table {
    font-size: 0.9rem;
}

.page-admin th,
.page-admin td {
    white-space: nowrap;
}

.page-admin .responsive-table {
    border-radius: 22px;
}

.page-admin .form-grid {
    gap: 0.75rem;
}

.page-admin textarea {
    min-height: 105px;
}

.leaderboard-hero {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
}

.leaderboard-hero::before {
    content: "";
    position: absolute;
    inset: -25% -10% auto;
    height: 320px;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 52%, rgba(34, 197, 94, 0.18), transparent 11rem),
        radial-gradient(circle at 26% 42%, rgba(217, 70, 239, 0.2), transparent 12rem);
}

.leaderboard-hero > * {
    position: relative;
    z-index: 1;
}

.leaderboard-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 0.35rem 0.35rem 1rem;
}

.leaderboard-head h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.leaderboard-countdown {
    display: grid;
    gap: 0.2rem;
    min-width: 170px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 22px 14px 24px 16px;
    background: rgba(3, 39, 18, 0.52);
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.16);
}

.leaderboard-countdown span,
.podium-card small,
.leaderboard-row span {
    color: var(--muted);
    font-size: 0.78rem;
}

.leaderboard-countdown strong {
    color: #dcfce7;
    font-family: var(--display-font);
    font-size: 1rem;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
    margin: 0.35rem 0 1rem;
}

.podium-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.42rem;
    min-height: 190px;
    padding: 1.25rem 0.85rem 1rem;
    text-align: center;
    border: 1px solid rgba(216, 180, 254, 0.24);
    border-radius: 34px 18px 30px 22px;
    background:
        linear-gradient(155deg, rgba(12, 68, 33, 0.5), rgba(14, 4, 24, 0.54)),
        rgba(7, 0, 15, 0.48);
    box-shadow: 0 20px 60px rgba(12, 68, 33, 0.18), 0 0 34px rgba(217, 70, 239, 0.12);
    backdrop-filter: blur(22px);
}

.podium-card.rank-1 {
    min-height: 230px;
    order: 2;
    border-color: rgba(250, 204, 21, 0.4);
    background:
        linear-gradient(155deg, rgba(82, 70, 0, 0.55), rgba(14, 4, 24, 0.52)),
        rgba(7, 0, 15, 0.48);
    transform: translateY(-12px);
}

.podium-card.rank-2 {
    order: 1;
}

.podium-card.rank-3 {
    order: 3;
}

.diamond-rank,
.mini-diamond {
    display: grid;
    place-items: center;
    border: 1px solid rgba(233, 168, 255, 0.76);
    background: rgba(168, 85, 247, 0.16);
    box-shadow: 0 0 24px rgba(217, 70, 239, 0.35);
    transform: rotate(45deg);
}

.diamond-rank {
    width: 62px;
    height: 62px;
    margin-bottom: 0.3rem;
    border-radius: 18px 12px 18px 12px;
}

.rank-1 .diamond-rank {
    width: 76px;
    height: 76px;
    border-color: rgba(250, 204, 21, 0.76);
    background: rgba(250, 204, 21, 0.16);
    box-shadow: 0 0 34px rgba(250, 204, 21, 0.28);
}

.diamond-rank span,
.mini-diamond span {
    transform: rotate(-45deg);
    color: #fff7ff;
    font-family: var(--display-font);
    font-weight: 900;
}

.rank-label {
    display: inline-flex;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.16);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rank-1 .rank-label {
    color: #fef9c3;
    background: rgba(250, 204, 21, 0.16);
}

.podium-card h3 {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-card strong {
    color: #dcfce7;
    font-size: 1.15rem;
}

.rank-1 strong {
    color: #fde047;
}

.leaderboard-list {
    display: grid;
    gap: 0.65rem;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 24px 16px 26px 18px;
    background: rgba(5, 0, 13, 0.42);
}

.mini-diamond {
    width: 34px;
    height: 34px;
    border-radius: 10px 7px 10px 7px;
}

.leaderboard-row div:nth-child(2),
.leaderboard-prize {
    display: grid;
    gap: 0.14rem;
}

.leaderboard-prize {
    justify-items: end;
    text-align: right;
}

.leaderboard-prize strong {
    color: #dcfce7;
}

.deduction-card {
    padding: 1rem;
}

.deduction-card .metric-row {
    margin: 0.75rem 0;
}

.deduction-card .button {
    width: fit-content;
}

.admin-balance-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    width: min(420px, 100%);
}

.admin-balance-form input,
.admin-balance-form select,
.admin-balance-form button {
    min-height: 38px;
}

.copy-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.5rem;
}

.list-stack {
    display: grid;
    gap: 0.75rem;
}

.list-item {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.list-item.inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
}

.empty-state {
    padding: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

.empty-state.wide {
    grid-column: 1 / -1;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.compact-table table {
    min-width: 540px;
}

.subnav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.subnav a {
    flex: 0 0 auto;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
}

.subnav a.active {
    color: var(--text);
    background: rgba(168, 85, 247, 0.18);
}

.task-card {
    display: grid;
    gap: 0.75rem;
}

.proof-form {
    margin-top: 0.75rem;
}

.task-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.proof-details {
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 22px 14px 24px 16px;
    background: rgba(5, 0, 13, 0.34);
    overflow: hidden;
}

.proof-details summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    color: #f5d0fe;
    font-family: var(--display-font);
    font-weight: 900;
}

.proof-details .proof-form {
    padding: 0 0.9rem 0.9rem;
}

.mobile-record-list {
    display: none;
}

.mobile-record-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 24px 16px 26px 18px;
    background: linear-gradient(145deg, rgba(18, 7, 31, 0.55), rgba(7, 0, 15, 0.5));
    box-shadow: var(--shadow);
}

.mini-list {
    display: grid;
    gap: 0.35rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.legal-page {
    width: min(980px, calc(100vw - 2rem));
    margin: 6rem auto;
    padding: 1rem;
}

.legal-page h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.profile-links {
    margin-top: 1rem;
}

.link-card {
    min-height: 82px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(5, 0, 9, 0.78);
    backdrop-filter: blur(12px);
}

.modal.open {
    display: grid;
}

.modal-panel {
    position: relative;
    width: min(94vw, 560px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid rgba(217, 70, 239, 0.45);
    border-radius: var(--radius);
    background: #10041b;
    box-shadow: 0 0 60px rgba(217, 70, 239, 0.24);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: min(420px, calc(100vw - 2rem));
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #12051f;
    color: var(--text);
    box-shadow: var(--shadow);
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.bottom-nav {
    display: none;
}

.lucide-icon,
.feature-icon svg,
.flow-icon svg {
    width: 1.18em;
    height: 1.18em;
    flex: 0 0 auto;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.45));
}

.side-nav .lucide-icon {
    margin-right: 0.65rem;
}

.button .lucide-icon,
.badge .lucide-icon {
    margin-right: 0.45rem;
}

.inline-form {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions form {
    margin: 0;
}

@media (max-width: 980px) {
    .landing-header nav a:not(.button) {
        display: none;
    }

    .section-grid,
    .content-grid.two,
    .app-shell,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .side-nav {
        display: none;
    }

    .page-admin .side-nav {
        display: none;
    }

    .admin-mobile-nav {
        position: sticky;
        top: 0.5rem;
        z-index: 30;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(118px, max-content);
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.65rem;
        scroll-snap-type: x mandatory;
    }

    .admin-mobile-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 40px;
        padding: 0.55rem 0.7rem;
        border: 1px solid rgba(216, 180, 254, 0.18);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(5, 0, 13, 0.42);
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .admin-mobile-nav a.active {
        color: #fff;
        border-color: rgba(233, 168, 255, 0.52);
        background: rgba(168, 85, 247, 0.2);
    }

    .main-area {
        padding: 1rem 1rem 6.5rem;
    }

    .page-admin .main-area {
        padding-bottom: 2rem;
    }

    .admin-command-head,
    .admin-control-grid {
        grid-template-columns: 1fr;
    }

    .admin-command-head {
        position: relative;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 72px;
        border-top: 1px solid var(--line);
        background: rgba(8, 0, 16, 0.9);
        backdrop-filter: blur(18px);
    }

    .bottom-nav a,
    .bottom-nav button {
        display: grid;
        place-items: center;
        gap: 0.2rem;
        min-width: 0;
        border: 0;
        border-radius: 0;
        color: var(--muted);
        background: transparent;
        font-family: var(--display-font);
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .bottom-nav a.active,
    .bottom-nav button.active {
        color: var(--text);
        background: rgba(168, 85, 247, 0.14);
    }

    .mobile-more-menu {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 82px;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.75rem;
        border: 1px solid rgba(216, 180, 254, 0.24);
        border-radius: 26px 18px 28px 20px;
        background: rgba(8, 0, 16, 0.88);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 30px rgba(168, 85, 247, 0.22);
        backdrop-filter: blur(22px);
    }

    .mobile-more-menu[hidden] {
        display: none;
    }

    .mobile-more-menu a {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        border: 1px solid rgba(216, 180, 254, 0.18);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.04);
        font-family: var(--display-font);
        font-weight: 800;
    }

    .mobile-more-menu a.active {
        color: #fff;
        border-color: rgba(233, 168, 255, 0.5);
        background: rgba(168, 85, 247, 0.2);
    }

    .form-grid,
    .span-2 {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .hero {
        min-height: 86vh;
        padding-top: 6rem;
    }

    .landing-hero {
        min-height: 88vh;
        padding-top: 8.25rem;
    }

    .landing-hero h1 {
        font-size: 2.55rem;
    }

    .landing-hero p {
        font-size: 0.98rem;
    }

    .list-item.inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    .main-area {
        padding: 0.75rem 0.75rem 5.8rem;
    }

    .dashboard-grid,
    .feature-grid,
    .plan-grid,
    .task-grid,
    .profile-links {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .content-grid,
    .content-grid.two,
    .section-grid,
    .plan-grid.large {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .glass-card,
    .balance-card,
    .plan-card,
    .support-card,
    .landing-feature-card,
    .auth-card,
    .narrow-panel {
        padding: 1rem;
        border-radius: 24px 16px 26px 18px;
    }

    .balance-card {
        min-height: auto;
    }

    .balance-card strong,
    .primary-balance strong {
        font-size: 1.55rem;
        line-height: 1.05;
    }

    .metric-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .metric-row div {
        min-width: 0;
        padding: 0.75rem;
    }

    .app-topbar,
    .admin-head,
    .card-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stat-grid,
    .admin-chart-grid,
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-stat-grid .balance-card {
        min-height: 112px;
    }

    .admin-command-head .topbar-actions,
    .admin-command-head .button,
    .admin-search {
        width: 100%;
    }

    .admin-command-head .button {
        justify-content: center;
    }

    .topbar-actions,
    .action-row,
    .admin-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .action-row .button,
    .topbar-actions .button,
    .admin-actions .button {
        flex: 1 1 140px;
        justify-content: center;
    }

    .responsive-table {
        width: calc(100% + 0.5rem);
        margin: 0 -0.25rem;
    }

    .desktop-table {
        display: none;
    }

    .mobile-record-list {
        display: grid;
        gap: 0.75rem;
    }

    table {
        font-size: 0.82rem;
    }

    .subnav {
        margin: -0.15rem -0.25rem 0.75rem;
        padding: 0.25rem 0.25rem 0.65rem;
        gap: 0.45rem;
        scrollbar-width: none;
    }

    .subnav::-webkit-scrollbar {
        display: none;
    }

    .subnav a {
        min-height: 38px;
        padding: 0.5rem 0.7rem;
        border-radius: 999px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .task-card {
        gap: 0.7rem;
    }

    .task-card p {
        margin: 0;
    }

    .task-actions .button,
    .proof-details .button {
        width: 100%;
        justify-content: center;
    }

    .proof-details summary {
        min-height: 42px;
        padding: 0.65rem 0.75rem;
    }

    .proof-details textarea {
        min-height: 88px;
    }

    .landing-header {
        padding: 0.75rem 1rem;
    }

    .landing-header nav {
        display: none;
    }

    .hero-logo-mark {
        width: 78px;
        height: 78px;
        margin-bottom: 2.4rem;
        font-size: 3.9rem;
    }

    .landing-hero h1 {
        font-size: 2.25rem;
    }

    .landing-demo {
        width: min(100% - 1rem, 1120px);
        padding-top: 1.2rem;
    }

    .flow-visual {
        min-height: 280px;
        border-radius: 28px 18px 30px 20px;
    }

    .flow-card {
        width: 148px;
        padding: 0.75rem;
    }

    .flow-card strong {
        font-size: 1rem;
    }

    .landing-features {
        padding-top: 2.7rem;
    }

    .landing-feature-card {
        min-height: 138px;
        padding: 1.35rem;
    }

    .support-page {
        padding-top: 7rem;
    }

    .brand span:last-child {
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .finance-engine-card {
        padding: 1rem;
        border-radius: 28px 18px 30px 20px;
    }

    .finance-engine-head {
        gap: 0.7rem;
    }

    .chart-stage {
        min-height: 210px;
        padding: 0.45rem;
    }

    .chart-stage svg {
        min-height: 195px;
    }

    .finance-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .finance-metrics div {
        padding: 0.7rem;
    }

    .finance-metrics strong {
        font-size: 0.95rem;
    }
}

/* UnityForge visual polish layer */
:root {
    --radius: 22px;
    --radius-lg: 30px;
    --display-font: "Playfair Display", Inter, system-ui, sans-serif;
    --shadow: 0 18px 55px rgba(108, 33, 184, 0.28), 0 2px 18px rgba(217, 70, 239, 0.12);
}

::selection {
    color: #090011;
    background: #e9a8ff;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 70, 239, 0.15), transparent 20rem),
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.18), transparent 22rem),
        linear-gradient(135deg, var(--bg), #11031d 52%, var(--bg-2));
}

h1,
h2,
h3,
.brand,
.button,
.badge,
.status,
.eyebrow,
.side-nav a,
.bottom-nav a,
.bottom-nav button {
    font-family: var(--display-font);
    letter-spacing: 0;
}

p,
li,
label,
td,
th,
input,
select,
textarea,
summary {
    line-height: 1.65;
}

.main-area h1,
.admin-head h1,
.panel-head h1,
.narrow-panel h1 {
    font-size: clamp(1.7rem, 3.1vw, 2.75rem);
    line-height: 1.08;
}

.section-copy h2,
.card-title h2,
.plan-card h3,
.auth-card h1,
.support-copy h1,
.legal-page h1 {
    line-height: 1.12;
}

.section-copy h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.card-title h2,
.plan-card h3,
.support-card h2,
.glass-card h2,
.balance-card h2 {
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}

a,
button,
summary,
.side-nav a,
.bottom-nav a,
.bottom-nav button,
.list-item,
.glass-card,
.balance-card,
.plan-card,
.support-card,
.landing-feature-card {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

a:hover,
summary:hover,
.side-nav a:hover,
.bottom-nav a:hover,
.bottom-nav button:hover {
    color: #f5d0fe;
    text-shadow: 0 0 18px rgba(217, 70, 239, 0.5);
}

.landing-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5, 0, 9, 0.78), rgba(5, 0, 9, 0.92)),
        var(--landing-bg) center top / cover fixed;
}

.landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 16%, rgba(168, 85, 247, 0.22), transparent 18rem),
        radial-gradient(circle at 18% 78%, rgba(217, 70, 239, 0.12), transparent 20rem);
}

.landing-page > * {
    position: relative;
    z-index: 1;
}

.landing-header,
.side-nav,
.bottom-nav,
.app-topbar,
.admin-head {
    border-color: rgba(216, 180, 254, 0.24);
    background: rgba(8, 0, 16, 0.66);
    box-shadow: 0 14px 42px rgba(25, 4, 40, 0.35);
}

.landing-hero {
    background: transparent;
    border-bottom: 0;
}

.landing-hero::before {
    background:
        linear-gradient(90deg, rgba(168, 85, 247, 0.06), transparent 20%, transparent 80%, rgba(217, 70, 239, 0.06)),
        radial-gradient(circle at center, transparent 0, transparent 28rem, rgba(0, 0, 0, 0.35) 100%);
}

.landing-hero h1 {
    max-width: 760px;
    font-size: clamp(2.15rem, 4.2vw, 3.25rem);
    line-height: 1.14;
}

.landing-demo {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 1.2rem;
    align-items: center;
}

.flow-visual {
    position: relative;
    min-height: 360px;
    border: 1px solid rgba(216, 180, 254, 0.24);
    border-radius: 38px 18px 34px 24px;
    background: rgba(5, 0, 13, 0.54);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.flow-orbit {
    position: absolute;
    inset: 52px;
    border: 1px dashed rgba(216, 180, 254, 0.32);
    border-radius: 999px;
    animation: slow-spin 16s linear infinite;
}

.flow-orbit::before,
.flow-orbit::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d946ef;
    box-shadow: 0 0 24px rgba(217, 70, 239, 0.9);
}

.flow-orbit::before {
    top: -6px;
    left: 50%;
}

.flow-orbit::after {
    bottom: -6px;
    right: 22%;
}

.flow-card {
    position: absolute;
    display: grid;
    gap: 0.25rem;
    width: 190px;
    padding: 1rem;
    border: 1px solid rgba(216, 180, 254, 0.28);
    border-radius: 26px 16px 28px 18px;
    background: rgba(14, 5, 26, 0.78);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26), 0 0 28px rgba(168, 85, 247, 0.18);
    backdrop-filter: blur(18px);
    animation: float-card 4.6s ease-in-out infinite;
}

.flow-card-one {
    top: 42px;
    left: 42px;
}

.flow-card-two {
    top: 138px;
    right: 48px;
    animation-delay: 0.7s;
}

.flow-card-three {
    left: calc(50% - 95px);
    bottom: 38px;
    animation-delay: 1.2s;
}

.flow-card strong {
    font-family: var(--display-font);
    color: #fff7ff;
    font-size: 1.2rem;
}

.flow-card small {
    color: #aaa3bb;
    font-size: 0.82rem;
}

.glass-card,
.balance-card,
.plan-card,
.auth-panel,
.auth-card,
.narrow-panel,
.support-card,
.landing-feature-card,
.list-item,
.metric-row div,
.empty-state,
.modal-panel,
.subnav a,
.faq-list details {
    border-color: rgba(216, 180, 254, 0.24);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(18, 7, 31, 0.55), rgba(7, 0, 15, 0.5));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.balance-card:nth-child(1),
.plan-card:nth-child(3n + 1),
.landing-feature-card:nth-child(1) {
    border-radius: 34px 18px 30px 22px;
}

.balance-card:nth-child(2),
.plan-card:nth-child(3n + 2),
.landing-feature-card:nth-child(2) {
    border-radius: 20px 34px 22px 30px;
}

.balance-card:nth-child(3),
.plan-card:nth-child(3n),
.landing-feature-card:nth-child(3) {
    border-radius: 30px 22px 36px 18px;
}

.glass-card:hover,
.balance-card:hover,
.plan-card:hover,
.support-card:hover,
.landing-feature-card:hover,
.list-item:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 168, 255, 0.55);
    box-shadow: 0 24px 70px rgba(108, 33, 184, 0.35), 0 0 32px rgba(217, 70, 239, 0.16);
}

input,
select,
textarea,
.button,
.icon-button,
.badge,
.status,
.toast {
    border-radius: 999px;
}

textarea,
.modal-panel,
.toast {
    border-radius: var(--radius-lg);
}

.button:hover,
.icon-button:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 168, 255, 0.72);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.36);
}

.icon-button::before,
.modal-close::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
}

.flow-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(233, 168, 255, 0.7);
    border-radius: 16px 12px 18px 13px;
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.34);
}

.icon-copy::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 5px;
    box-shadow: 5px -5px 0 -2px #12051f, 5px -5px 0 0 currentColor;
}

.icon-copy.copied::before {
    width: 16px;
    height: 9px;
    border: 0;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    border-radius: 0;
    transform: rotate(-45deg);
    box-shadow: none;
}

.icon-logout::before {
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 999px;
}

.modal-close {
    font-size: 0;
}

.modal-close::before {
    width: 16px;
    height: 16px;
    background:
        linear-gradient(45deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%);
}

.feature-icon {
    display: grid;
    place-items: center;
}

.feature-icon,
.flow-icon {
    color: #f0abfc;
}

.bottom-nav .lucide-icon {
    margin: 0;
}

.flow-icon .lucide-icon,
.feature-icon .lucide-icon {
    margin: 0;
}

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes live-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.45);
        opacity: 1;
    }
}

@keyframes chart-draw {
    0% {
        stroke-dashoffset: 900;
        opacity: 0.35;
    }
    42%,
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes chart-scan {
    0%,
    58% {
        transform: translateX(-100%);
        opacity: 0;
    }
    72% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes chart-breathe {
    0%,
    100% {
        opacity: 0.16;
    }
    50% {
        opacity: 0.38;
    }
}

@keyframes dot-pulse {
    0%,
    100% {
        transform: translateY(0) scale(0.92);
        opacity: 0.72;
    }
    50% {
        transform: translateY(-6px) scale(1.18);
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .landing-demo {
        grid-template-columns: 1fr;
    }

    .flow-visual {
        min-height: 320px;
    }

    .finance-engine-head,
    .finance-engine-body {
        grid-template-columns: 1fr;
    }

    .leaderboard-head,
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .podium-card,
    .podium-card.rank-1,
    .podium-card.rank-2,
    .podium-card.rank-3 {
        order: initial;
        min-height: auto;
        transform: none;
    }

    .admin-balance-form {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .landing-hero h1 {
        font-size: 2rem;
    }

    .flow-card {
        width: 148px;
    }

    .finance-engine-card {
        padding: 1rem;
        border-radius: 28px 18px 30px 20px;
    }

    .chart-stage {
        min-height: 210px;
        padding: 0.45rem;
    }

    .chart-stage svg {
        min-height: 195px;
    }

    .finance-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .finance-metrics div {
        padding: 0.7rem;
    }

    .finance-metrics strong {
        font-size: 0.95rem;
    }

    .leaderboard-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .leaderboard-prize {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }
}

/* Android-first app polish */
:root {
    --radius: 18px;
    --radius-lg: 20px;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 18px rgba(168, 85, 247, 0.12);
}

html,
body {
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.18), transparent 18rem),
        linear-gradient(180deg, #080010 0%, #050009 48%, #07000f 100%);
}

.app-shell,
.admin-shell {
    display: block;
    min-height: 100vh;
}

.side-nav,
.page-admin .side-nav {
    display: none;
}

.main-area {
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
    padding: 0.85rem 0.85rem 6.5rem;
}

.page-admin .main-area {
    width: min(100%, 760px);
    max-width: 760px;
    padding-bottom: 2rem;
}

.app-topbar,
.admin-head {
    position: sticky;
    top: 0;
    z-index: 35;
    flex-direction: column;
    align-items: flex-start;
    margin: -0.85rem -0.85rem 0.85rem;
    padding: 0.85rem;
    border-bottom: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(8, 0, 16, 0.92);
    backdrop-filter: blur(20px);
}

.app-topbar h1,
.admin-head h1 {
    font-size: 1.45rem;
}

.dashboard-grid,
.feature-grid,
.plan-grid,
.task-grid,
.profile-links,
.content-grid,
.content-grid.two,
.section-grid,
.finance-engine-body,
.finance-engine-head,
.form-grid {
    grid-template-columns: 1fr;
}

.span-2 {
    grid-column: auto;
}

.glass-card,
.balance-card,
.plan-card,
.auth-panel,
.auth-card,
.narrow-panel,
.support-card,
.landing-feature-card,
.list-item,
.metric-row div,
.empty-state,
.modal-panel,
.subnav a,
.faq-list details,
.finance-engine-card,
.flow-visual,
.flow-card,
.mobile-record-card {
    border-radius: var(--radius-lg);
}

.balance-card:nth-child(1),
.balance-card:nth-child(2),
.balance-card:nth-child(3),
.plan-card:nth-child(3n + 1),
.plan-card:nth-child(3n + 2),
.plan-card:nth-child(3n),
.landing-feature-card:nth-child(1),
.landing-feature-card:nth-child(2),
.landing-feature-card:nth-child(3) {
    border-radius: var(--radius-lg);
}

.glass-card:hover,
.balance-card:hover,
.plan-card:hover,
.support-card:hover,
.landing-feature-card:hover,
.list-item:hover,
.button:hover,
.icon-button:hover,
.podium-card,
.podium-card.rank-1,
.podium-card.rank-2,
.podium-card.rank-3 {
    transform: none;
}

h1,
h2,
h3,
.brand,
.button,
.badge,
.status,
.eyebrow,
.side-nav a,
.bottom-nav a,
.bottom-nav button {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card-title,
.app-topbar,
.admin-head {
    gap: 0.65rem;
}

.card-title {
    flex-direction: column;
}

.card-title h2,
.glass-card h2,
.balance-card h2 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.balance-card,
.glass-card,
.plan-card {
    padding: 1rem;
}

.balance-card {
    min-height: auto;
}

.balance-card strong,
.primary-balance strong {
    font-size: 1.6rem;
    line-height: 1.1;
}

.metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.metric-row div {
    min-height: 70px;
    padding: 0.72rem;
}

.metric-row strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.topbar-actions,
.action-row,
.admin-actions {
    width: 100%;
    gap: 0.55rem;
}

.action-row .button,
.topbar-actions .button,
.admin-actions .button {
    flex: 1 1 130px;
}

input,
select,
textarea,
.button,
.icon-button,
.badge,
.status,
.toast {
    border-radius: var(--radius);
}

.button,
.icon-button {
    min-height: 46px;
}

.subnav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.5rem;
    margin: 0 -0.85rem 0.85rem;
    padding: 0 0.85rem 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav a {
    min-height: 38px;
    padding: 0.52rem 0.72rem;
    white-space: nowrap;
    font-size: 0.78rem;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 50;
    display: grid;
    width: min(100%, 520px);
    min-height: 70px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    transform: translateX(-50%);
    border-top: 1px solid rgba(216, 180, 254, 0.2);
    background: rgba(8, 0, 16, 0.94);
    backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav button {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 0.18rem;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1;
}

.bottom-nav a.active,
.bottom-nav button.active {
    color: var(--text);
    background: rgba(168, 85, 247, 0.16);
}

.mobile-more-menu {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 82px;
    z-index: 60;
    display: grid;
    width: min(calc(100% - 1.5rem), 500px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.75rem;
    transform: translateX(-50%);
    border: 1px solid rgba(216, 180, 254, 0.24);
    border-radius: var(--radius-lg);
    background: rgba(8, 0, 16, 0.94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(22px);
}

.mobile-more-menu[hidden] {
    display: none;
}

.mobile-more-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
}

.admin-mobile-nav {
    position: sticky;
    top: 4.2rem;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.5rem;
    overflow-x: auto;
    margin: 0 -0.85rem 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0;
    background: rgba(8, 0, 16, 0.82);
    scrollbar-width: none;
}

.admin-mobile-nav::-webkit-scrollbar {
    display: none;
}

.admin-mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.desktop-table {
    display: none;
}

.mobile-record-list {
    display: grid;
    gap: 0.75rem;
}

.responsive-table {
    overflow-x: auto;
}

table {
    min-width: 680px;
}

.finance-engine-card {
    width: 100%;
    margin: 0.85rem 0;
}

.chart-stage {
    min-height: 180px;
    padding: 0.45rem;
}

.chart-stage svg {
    min-height: 170px;
}

.finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-orbit,
.flow-card {
    animation: none;
}

@media (min-width: 760px) {
    .main-area {
        padding-top: 1rem;
    }

    .page-admin .main-area {
        width: min(100%, 860px);
        max-width: 860px;
    }
}

@media (max-width: 380px) {
    .main-area {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .metric-row,
    .finance-metrics {
        grid-template-columns: 1fr;
    }

    .bottom-nav a,
    .bottom-nav button {
        font-size: 0.65rem;
    }
}

/* Brand hierarchy and studio watermark */
.app-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    margin-bottom: 0.75rem;
    padding: 0.68rem 0.85rem;
}

.app-brand-top {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.72rem;
}

.app-brand-top .logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    font-size: 1.32rem;
}

.app-brand-top span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.app-brand-top strong {
    display: block;
    color: #fff7ff;
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.55);
}

.app-brand-top small {
    display: block;
    color: #b8a8cc;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
}

.app-topbar .topbar-actions {
    width: auto;
    flex: 0 0 auto;
}

.app-topbar .badge {
    min-height: 30px;
    padding: 0.25rem 0.56rem;
    font-size: 0.72rem;
}

.studio-watermark {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.25rem;
    text-align: center;
}

.studio-watermark a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: var(--radius);
    color: #cdbde3;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.74rem;
    font-weight: 800;
}

.studio-watermark a:hover {
    color: #fff;
    border-color: rgba(233, 168, 255, 0.48);
    background: rgba(168, 85, 247, 0.13);
}

.public-watermark {
    padding-bottom: 1rem;
}

@media (max-width: 380px) {
    .app-brand-top {
        gap: 0.58rem;
    }

    .app-brand-top .logo-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .app-brand-top strong {
        font-size: 1.06rem;
    }

    .app-topbar .badge {
        font-size: 0.66rem;
    }
}

/* Profile wallet and device security */
.profile-balance-hero {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.profile-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.84), rgba(20, 184, 166, 0.7)),
        rgba(8, 0, 16, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.profile-avatar {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #16a34a;
    background: #fff;
    font-size: 2.15rem;
    font-weight: 950;
}

.profile-identity {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.profile-identity strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.05;
}

.profile-identity span,
.profile-identity small {
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-weight: 700;
}

.profile-identity em {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.24rem;
    padding: 0.28rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius);
    color: #ecfdf5;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
}

.deposit-balance-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.26);
    border-radius: var(--radius-lg);
    background: rgba(4, 18, 9, 0.78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.deposit-balance-panel span {
    display: block;
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 800;
}

.deposit-balance-panel strong {
    display: block;
    margin-top: 0.18rem;
    color: #bbf7d0;
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1;
}

.deposit-balance-panel .button {
    flex: 0 0 auto;
    border-color: rgba(34, 197, 94, 0.62);
    color: #052e16;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.26);
}

.security-divider {
    height: 1px;
    margin: 1rem 0;
    background: rgba(216, 180, 254, 0.16);
}

.device-alert-stack,
.device-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.dashboard-security-alert {
    margin-bottom: 1rem;
}

.device-alert,
.device-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.device-alert-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.device-alert strong,
.device-alert span,
.device-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-alert strong {
    color: #fff7ff;
    font-size: 0.92rem;
}

.device-alert span,
.device-row span {
    color: #b8a8cc;
    font-size: 0.78rem;
    white-space: nowrap;
}

.button.danger {
    border-color: rgba(239, 68, 68, 0.58);
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.18);
}

.device-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.device-row em {
    padding: 0.22rem 0.5rem;
    border-radius: var(--radius);
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.14);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 900;
}

.device-row em.blocked {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 380px) {
    .profile-banner,
    .deposit-balance-panel {
        padding: 0.85rem;
    }

    .profile-avatar {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        font-size: 1.8rem;
    }

    .deposit-balance-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .deposit-balance-panel .button {
        width: 100%;
    }

    .device-alert {
        grid-template-columns: 1fr;
    }

    .device-alert-actions {
        justify-content: stretch;
    }

    .device-alert-actions form,
    .device-alert-actions .button {
        width: 100%;
    }
}

/* Dashboard cleanup, compact pages, and six-item navigation */
.notification-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem;
}

.notification-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(216, 180, 254, 0.24);
    border-radius: var(--radius);
    background: rgba(168, 85, 247, 0.13);
}

.notification-strip strong,
.notification-strip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-strip small {
    color: #b8a8cc;
    font-size: 0.76rem;
    font-weight: 700;
}

.notification-strip em {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #d946ef;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 950;
    box-shadow: 0 0 24px rgba(217, 70, 239, 0.36);
}

.balance-carousel-card {
    display: grid;
    gap: 0.8rem;
    min-height: 178px;
    margin-bottom: 0.85rem;
    padding: 1rem;
    border-color: rgba(217, 70, 239, 0.42);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.23), rgba(7, 0, 15, 0.72));
}

.balance-slide {
    display: none;
}

.balance-slide.is-active {
    display: grid;
    gap: 0.45rem;
}

.balance-slide strong {
    color: #fff7ff;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.balance-slide p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.balance-carousel-actions {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.55rem;
}

.balance-carousel-actions span {
    color: #d8b4fe;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 900;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.85rem 0;
}

.quick-action {
    display: grid;
    min-height: 76px;
    place-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.45rem;
    text-align: center;
    color: #f8f2ff;
    font-size: 0.74rem;
    font-weight: 900;
}

.quick-action .lucide-icon {
    margin: 0;
    font-size: 1.35rem;
}

.dashboard-compact-grid {
    gap: 0.75rem;
}

.compact-action-card,
.compact-contest-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: auto;
}

.compact-action-card h2,
.compact-contest-card h2 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.compact-action-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.compact-referral-card {
    display: grid;
    align-content: center;
    min-height: auto;
}

.finance-engine-card .chart-stage {
    margin-top: 0.75rem;
}

.activity-hub-grid {
    display: grid;
    gap: 0.75rem;
}

.activity-primary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.activity-primary-card h2 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.activity-primary-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-page-head {
    margin-bottom: 0.8rem;
}

.plan-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.compact-plan-card {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-height: auto;
    padding: 0.85rem;
}

.compact-plan-head {
    display: grid;
    gap: 0.35rem;
}

.compact-plan-card h3 {
    margin: 0;
    font-size: 1rem;
}

.compact-plan-card strong {
    font-size: 1.45rem;
}

.compact-plan-card p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.compact-plan-card .mini-list {
    display: grid;
    gap: 0.42rem;
    margin: 0;
}

.compact-plan-card .mini-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(216, 180, 254, 0.14);
    font-size: 0.74rem;
}

.compact-plan-card .mini-list li::before {
    display: none;
}

.compact-plan-card .mini-list strong {
    font-size: 0.76rem;
}

.compact-plan-card .button {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem;
    font-size: 0.76rem;
}

.notification-list,
.history-stack {
    display: grid;
    gap: 0.85rem;
}

.notification-read-all-form {
    margin-top: 0.75rem;
}

.notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.notification-actions {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
}

.notification-actions form,
.notification-actions .button {
    width: 100%;
}

.notification-item h2 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.notification-item p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.notification-item small {
    display: block;
    margin-top: 0.35rem;
    color: #9f97b2;
    font-size: 0.72rem;
}

.form-note {
    margin-top: 0.85rem;
}

.bottom-nav {
    min-height: 78px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bottom-nav a,
.bottom-nav button {
    gap: 0.22rem;
    padding: 0.4rem 0.15rem;
    font-size: 0.62rem;
}

.bottom-nav .lucide-icon {
    width: 1.55rem;
    height: 1.55rem;
}

.main-area {
    padding-bottom: 7.6rem;
}

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

    .plan-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-plan-card {
        padding: 0.72rem;
    }

    .compact-plan-card h3 {
        font-size: 0.92rem;
    }

    .compact-plan-card strong {
        font-size: 1.18rem;
    }

    .compact-plan-card .badge {
        width: fit-content;
        max-width: 100%;
        font-size: 0.64rem;
    }

    .notification-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .notification-actions {
        justify-items: stretch;
    }

    .notification-read-all-form .button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .plan-grid.large,
    .dashboard-compact-grid,
    .activity-hub-grid {
        grid-template-columns: 1fr;
    }

    .compact-action-card,
    .compact-contest-card,
    .activity-primary-card,
    .notification-item {
        grid-template-columns: 1fr;
    }

    .notification-actions {
        justify-items: stretch;
    }

    .bottom-nav a,
    .bottom-nav button {
        font-size: 0.56rem;
    }
}

/* Focused admin pages */
.page-admin .main-area {
    width: min(100%, 820px);
    max-width: 820px;
    padding-bottom: 2.5rem;
}

.admin-page {
    gap: 0.9rem;
    min-width: 0;
}

.page-admin,
.page-admin .admin-shell,
.page-admin .main-area,
.page-admin .admin-page,
.page-admin .glass-card,
.page-admin .admin-page-card,
.page-admin .list-stack,
.page-admin .list-item,
.page-admin form,
.page-admin label {
    max-width: 100%;
    min-width: 0;
}

.admin-page-head {
    position: static;
    margin: -0.85rem -0.85rem 0.6rem;
    padding: 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 0 0 20px 20px;
    background: rgba(8, 0, 16, 0.94);
    box-shadow: none;
}

.admin-page-head h1 {
    font-size: 1.42rem;
    line-height: 1.1;
}

.admin-page-subtitle {
    margin: 0.28rem 0 0;
    color: #b8a8cc;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-page-head .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.admin-page-head .button,
.admin-page-head .badge {
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 0.48rem 0.62rem;
    font-size: 0.76rem;
    line-height: 1.15;
    text-align: center;
}

.admin-search {
    width: 100%;
    border-radius: 18px;
}

.admin-mobile-nav {
    position: static;
    margin-bottom: 0.65rem;
    max-width: 100%;
}

.admin-mobile-nav a.active {
    color: #fff;
    border-color: rgba(217, 70, 239, 0.58);
    background: rgba(168, 85, 247, 0.22);
}

.admin-kpi-grid,
.admin-page-grid {
    display: grid;
    gap: 0.75rem;
}

.admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-page-grid.two {
    grid-template-columns: 1fr;
}

.admin-page-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    overflow: hidden;
}

.admin-page-card .card-title {
    margin-bottom: 0;
}

.admin-kpi {
    min-height: 96px;
    padding: 0.85rem;
}

.admin-kpi span,
.admin-cost-strip span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-kpi strong {
    display: block;
    margin-top: 0.4rem;
    overflow-wrap: anywhere;
    font-size: 1.36rem;
    line-height: 1.05;
}

.admin-action-grid {
    grid-template-columns: 1fr;
}

.admin-action-grid .button {
    justify-content: flex-start;
}

.admin-section-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.5rem;
    max-width: 100%;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-section-tabs::-webkit-scrollbar {
    display: none;
}

.admin-section-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 0.72rem;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 850;
}

.admin-section-tabs a.active {
    color: #fff;
    border-color: rgba(217, 70, 239, 0.58);
    background: rgba(168, 85, 247, 0.22);
}

.admin-action-card {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-height: 150px;
    padding: 1rem;
    color: var(--text);
}

.admin-action-card.primary-action {
    border-color: rgba(217, 70, 239, 0.46);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.24), rgba(255, 255, 255, 0.06));
}

.admin-action-card strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 950;
}

.admin-action-card span:not(.feature-icon) {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.page-admin .empty-state {
    min-height: 88px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px dashed rgba(216, 180, 254, 0.24);
    border-radius: var(--radius);
    color: #b8a8cc;
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
}

.admin-review-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-review-list.compact a {
    min-height: 90px;
    padding: 0.8rem;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-review-list.compact span {
    display: block;
}

.admin-cost-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.admin-cost-strip strong {
    display: block;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.page-admin .responsive-table {
    border-radius: 16px;
}

.page-admin table {
    min-width: 760px;
}

.page-admin th,
.page-admin td {
    white-space: nowrap;
}

.page-admin .admin-actions,
.page-admin .inline-form {
    align-items: center;
}

.page-admin .inline-form {
    display: flex;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

.page-admin .inline-form input,
.page-admin .inline-form select {
    min-width: 130px;
    min-height: 36px;
}

.page-admin .form-grid {
    gap: 0.65rem;
}

.page-admin textarea {
    min-height: 96px;
}

.admin-role-form {
    margin-top: 0.75rem;
}

.admin-compact-list {
    max-height: 260px;
    overflow: auto;
    padding-right: 0.2rem;
}

.page-admin input,
.page-admin select,
.page-admin textarea,
.page-admin .button,
.page-admin .badge,
.page-admin .status {
    min-width: 0;
}

.page-admin .list-item,
.page-admin .list-item *,
.page-admin .card-title,
.page-admin .card-title *,
.page-admin td,
.page-admin th {
    overflow-wrap: anywhere;
}

.page-admin .list-item p,
.page-admin .list-item span {
    margin-bottom: 0;
}

@media (max-width: 430px) {
    .admin-page-head .topbar-actions {
        grid-template-columns: 1fr 1fr;
    }

    .admin-page-head .topbar-actions .badge {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .admin-kpi-grid,
    .admin-review-list.compact,
    .admin-cost-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-admin .main-area {
        width: 100%;
        max-width: 100%;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .page-admin .admin-page-head {
        margin-left: -0.7rem;
        margin-right: -0.7rem;
    }

    .page-admin .admin-mobile-nav {
        margin-left: -0.7rem;
        margin-right: -0.7rem;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .page-admin .admin-page-card {
        padding: 0.82rem;
    }

    .page-admin .list-item.inline {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.4rem;
    }

    .page-admin .form-grid,
    .page-admin .form-stack {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .page-admin .span-2 {
        grid-column: auto;
    }

    .page-admin .responsive-table {
        overflow: visible;
        border-radius: 0;
    }

    .page-admin .responsive-table table,
    .page-admin .responsive-table thead,
    .page-admin .responsive-table tbody,
    .page-admin .responsive-table tr,
    .page-admin .responsive-table th,
    .page-admin .responsive-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .page-admin .responsive-table table {
        border-spacing: 0;
    }

    .page-admin .responsive-table thead {
        display: none;
    }

    .page-admin .responsive-table tbody {
        display: grid;
        gap: 0.7rem;
    }

    .page-admin .responsive-table tr {
        display: grid;
        gap: 0.42rem;
        padding: 0.75rem;
        border: 1px solid rgba(216, 180, 254, 0.18);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.045);
    }

    .page-admin .responsive-table td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        gap: 0.55rem;
        align-items: start;
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 0.84rem;
    }

    .page-admin .responsive-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.66rem;
        font-weight: 900;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .page-admin .responsive-table td[data-label="Actions"],
    .page-admin .responsive-table td[data-label="Action"] {
        grid-template-columns: 1fr;
        padding-top: 0.35rem;
    }

    .page-admin .responsive-table td[data-label="Actions"]::before,
    .page-admin .responsive-table td[data-label="Action"]::before {
        margin-bottom: 0.1rem;
    }

    .page-admin .admin-actions,
    .page-admin .inline-form,
    .page-admin .admin-actions form {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .page-admin .inline-form input,
    .page-admin .inline-form select,
    .page-admin .inline-form button,
    .page-admin .admin-actions .button {
        width: 100%;
        min-width: 0;
    }

    .page-admin .status {
        width: fit-content;
        max-width: 100%;
    }
}

@media (min-width: 760px) {
    .admin-page-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
