/* Earnovastation - app & landing layouts */

/* ========== LANDING ========== */
.landing-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 18, 32, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .landing-nav { background: rgba(255, 255, 255, .85); }
.landing-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
}
.landing-links {
    display: flex; gap: 28px;
}
.landing-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}
.landing-links a:hover { color: var(--text); }
.landing-nav-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px) {
    .landing-links { display: none; }
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, .25), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(251, 191, 36, .15), transparent 50%);
    pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px;
    align-items: center;
    position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px; font-weight: 700; color: var(--text);
    margin-bottom: 4px;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-card::before {
    content: ""; position: absolute; inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), transparent 50%, var(--accent));
    z-index: -1;
    opacity: .4;
    filter: blur(20px);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-balance-num { font-size: 38px; font-weight: 800; font-family: 'Space Grotesk'; color: var(--text); }
.hero-pulse {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(16, 185, 129, .14);
    color: var(--success);
    font-size: 11px; font-weight: 600;
}
.hero-pulse::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 0 0 var(--success);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-tx-list { display: flex; flex-direction: column; gap: 10px; }
.hero-tx-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: 12px;
    font-size: 13px;
}
.hero-tx-meta { display: flex; align-items: center; gap: 10px; }
.hero-tx-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-50); color: var(--primary-600);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
}

/* Sections */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    color: var(--primary-600);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 12px;
}
.section h2 { margin-bottom: 12px; }
.section-lead { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all .2s ease;
    position: relative;
}
.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.pillar-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary-600);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.pillar-card h3 { margin-bottom: 8px; }

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.coverage-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}
.coverage-flag {
    font-size: 32px; margin-bottom: 8px;
}
.coverage-name { font-weight: 600; }
.coverage-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--text-muted);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--text-muted); }

.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
}
.testimonial-quote { font-size: 16px; color: var(--text); margin-bottom: 18px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

/* Landing footer */
.landing-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding-top: 60px;
    margin-top: 60px;
}
.landing-footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 720px) { .landing-footer-inner { grid-template-columns: 1fr 1fr; } }
.landing-footer h5 {
    font-size: 12px; text-transform: uppercase; color: var(--text-muted);
    letter-spacing: .08em; margin-bottom: 14px;
}
.landing-footer a {
    display: block; color: var(--text); margin-bottom: 8px;
    font-size: 14px;
}
.landing-footer a:hover { color: var(--primary); }
.landing-footer-base {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* CTA banner */
.cta-banner {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, .8); margin-bottom: 28px; font-size: 17px; }
.cta-banner .btn { background: #fff; color: var(--primary-700); }

/* ========== AUTH PAGES ========== */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-side {
    background: var(--gradient-hero);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::after {
    content: ""; position: absolute; right: -100px; bottom: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(rgba(251, 191, 36, .25), transparent 70%);
}
.auth-side .brand-name, .auth-side .brand { color: #fff; }
.auth-side .brand-mark { background: rgba(255, 255, 255, .15); backdrop-filter: blur(10px); }

.auth-quote {
    font-size: 22px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.4;
    max-width: 420px;
    margin-bottom: 18px;
}
.auth-meta-row {
    display: flex; gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 28px;
}
.auth-meta-num { font-size: 24px; font-weight: 700; }
.auth-meta-label { font-size: 12px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .06em; }

.auth-form-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 32px;
}
.auth-form {
    width: 100%; max-width: 420px;
}
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form p.lead { color: var(--text-muted); margin-bottom: 32px; }

.auth-error {
    padding: 12px 14px;
    background: rgba(225, 29, 72, .12);
    color: var(--danger);
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(225, 29, 72, .25);
}
.auth-success {
    padding: 12px 14px;
    background: rgba(16, 185, 129, .12);
    color: var(--success);
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, .25);
}

.auth-foot { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }

/* ========== APP SHELL ========== */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 16px;
}
.sidebar-brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-close { display: none; background: transparent; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 12px;
    margin-bottom: 18px;
}
.sidebar-user-name { font-weight: 600; font-size: 14px; }
.sidebar-user-level { font-size: 11px; color: var(--text-muted); }

.sidebar-nav {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1;
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all .12s;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.is-active {
    background: var(--primary-50);
    color: var(--primary-600);
}
.sidebar-link.is-active svg path { stroke: var(--primary-600); }
.sidebar-section {
    padding: 16px 14px 6px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted); font-weight: 600;
}

.sidebar-balance {
    margin-top: 16px;
    padding: 14px;
    background: var(--gradient-balance);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.sidebar-balance-amount {
    font-size: 22px;
    font-family: 'Space Grotesk';
    font-weight: 700;
    margin: 4px 0;
}
.sidebar-balance-actions { display: flex; gap: 6px; margin-top: 10px; }
.sidebar-balance-actions .btn { flex: 1; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: 64px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 clamp(12px, 3vw, 28px);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
}
.topbar-burger { display: none; background: transparent; border: 0; color: var(--text); cursor: pointer; padding: 4px; }
.topbar-title {
    font-family: 'Space Grotesk';
    font-weight: 700; font-size: 18px;
    text-transform: capitalize;
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-bell {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
}
.bell-dot {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: #fff;
    border-radius: 999px;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.topbar-profile { text-decoration: none; }

.content {
    padding: 28px;
    max-width: 1400px;
    width: 100%;
}
@media (max-width: 1024px) {
    .app-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; top: 0; left: 0;
        width: 280px; height: 100vh;
        z-index: 80;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.is-open { transform: none; }
    .sidebar-close { display: inline-flex; }
    .topbar-burger { display: inline-flex; }
    .content { padding: 18px; }
}

@media (max-width: 720px) {
    .topbar-signout { display: none; }
    .topbar { gap: 8px; }
    .topbar-title { font-size: 16px; }
}

@media (max-width: 540px) {
    .topbar-tools { gap: 6px; }
    .theme-toggle, .topbar-bell { width: 34px; height: 34px; }
    .topbar-profile .avatar.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
}

/* Sidebar sign-out (always visible) */
.sidebar-signout {
    display: flex; align-items: center; gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500; font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: all .12s;
}
.sidebar-signout:hover {
    background: rgba(225, 29, 72, .1);
    color: var(--danger);
    border-color: rgba(225, 29, 72, .2);
}

/* ========== DASHBOARD HERO BALANCE (the big upgrade) ========== */
.balance-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.balance-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, .14), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(251, 191, 36, .1), transparent 40%);
    pointer-events: none;
}
.balance-hero > * { position: relative; }
.balance-hero-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.balance-hero-label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .12em;
}
.balance-hero-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    letter-spacing: -.03em;
    margin-bottom: 8px;
}
.balance-hero-secondary {
    font-size: 15px; color: var(--text-muted); margin-bottom: 28px;
}
.balance-hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.balance-hero-actions .btn-primary, .balance-hero-actions .btn-accent {
    min-height: 50px; padding: 14px 28px; font-size: 15px;
    box-shadow: 0 8px 24px -8px rgba(16, 185, 129, .5);
}
.balance-hero-tips {
    display: flex; gap: 26px; margin-top: 22px;
    flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
}

/* KPI tier-2 strip */
.kpi-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 24px;
}
@media (max-width: 720px) { .kpi-strip { grid-template-columns: 1fr 1fr; } }
.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
}
.kpi-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-50);
    color: var(--primary-600);
    flex-shrink: 0;
}
.kpi-icon-amber { background: rgba(251, 191, 36, .15); color: var(--accent-600); }
.kpi-icon-info { background: rgba(14, 165, 233, .15); color: var(--info); }
.kpi-num { font-family: 'Space Grotesk'; font-size: 22px; font-weight: 700; color: var(--text); }
.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Two-column grids */
.dash-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.section-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.section-card-head h3 {
    font-family: 'Space Grotesk'; font-size: 16px; font-weight: 700;
    margin: 0;
}
.section-card-head a { font-size: 13px; color: var(--primary-600); font-weight: 500; }

.task-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-2);
    margin-bottom: 8px;
}
.task-row:last-child { margin-bottom: 0; }
.task-row-main { flex: 1; min-width: 0; }
.task-row-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.task-row-meta { font-size: 12px; color: var(--text-muted); }
.task-reward { font-family: 'Space Grotesk'; font-weight: 700; color: var(--success); }

.tx-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: 0; }
.tx-row-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--surface-2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 700; font-size: 13px;
}
.tx-row-icon.is-credit { background: rgba(16, 185, 129, .14); color: var(--success); }
.tx-row-icon.is-debit { background: rgba(225, 29, 72, .14); color: var(--danger); }
.tx-row-main { flex: 1; min-width: 0; }
.tx-row-title { font-weight: 500; font-size: 13px; }
.tx-row-time { font-size: 11px; color: var(--text-muted); }
.tx-row-amt { font-family: 'Space Grotesk'; font-weight: 700; }

.progress {
    width: 100%;
    height: 8px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: width .3s ease;
}

.achievement {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-2);
    margin-bottom: 8px;
}
.achievement-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.achievement.is-locked { opacity: .45; }
.achievement.is-locked .achievement-icon { background: var(--surface-3); }

/* Onboarding */
.onb-shell {
    max-width: 720px; margin: 60px auto; padding: 0 24px;
}
.onb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow);
}
.onb-progress {
    display: flex; gap: 8px; margin-bottom: 36px;
}
.onb-dot {
    flex: 1; height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    transition: background .2s;
}
.onb-dot.is-active { background: var(--primary); }
.onb-illustration {
    height: 180px;
    background: var(--gradient-balance);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    margin-bottom: 28px;
}
.onb-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px;
}

/* Activate */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 960px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transition: all .2s;
}
.plan-card.is-popular {
    border-color: var(--primary);
    box-shadow: 0 14px 40px -16px rgba(16, 185, 129, .4);
}
.plan-card.is-popular::before {
    content: "Recommended";
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .08em;
}
.plan-name { font-family: 'Space Grotesk'; font-size: 20px; margin-bottom: 4px; }
.plan-price { font-family: 'Space Grotesk'; font-size: 40px; font-weight: 800; margin: 16px 0 6px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 22px 0; }
.plan-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.plan-features li::before {
    content: "✓"; color: var(--primary-600);
    font-weight: 700; font-size: 14px;
}
.plan-card .btn { width: 100%; }

/* Tasks page */
.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all .15s;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.task-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.task-card-platform { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: .06em; }
.task-card-reward { font-family: 'Space Grotesk'; font-size: 20px; font-weight: 700; color: var(--success); }
.task-card-route {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13px;
}
.task-card-route .arrow { color: var(--primary); font-weight: 700; }

.filters {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.filters .field { margin-bottom: 0; min-width: 160px; }
.filters .field span { display: none; }

/* Wallet aggregate cards */
.aggregates {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
@media (max-width: 900px) { .aggregates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .aggregates { grid-template-columns: 1fr; } }
.agg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.agg-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.agg-card-num { font-family: 'Space Grotesk'; font-size: 24px; font-weight: 700; margin-top: 6px; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side { display: flex; flex-direction: column; gap: 16px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Notifications dropdown */
.notif-panel {
    position: absolute; top: 56px; right: 28px;
    width: 360px; max-height: 480px; overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: none; z-index: 60;
}
.notif-panel.is-open { display: block; }
.notif-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item.is-unread { background: var(--primary-50); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ========== TASK WIZARD ========== */
.task-wizard .wizard-header {
    display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
    justify-content: space-between;
}
.pill-emerald {
    background: rgba(16, 185, 129, .12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, .25);
}
.info-callout {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--primary-50);
    color: var(--text);
    font-size: 13px;
    border: 1px solid var(--border);
}
.info-callout.info-warn {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .35);
    color: var(--text);
}
.wizard-steps {
    display: flex; gap: 8px;
    list-style: none; padding: 0; margin: 18px 0 14px;
    overflow-x: auto;
}
.wizard-steps li {
    flex: 1 1 0;
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
    display: flex; align-items: center; gap: 10px;
}
.wizard-steps li span {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--border);
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.wizard-steps li.is-active {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--text);
}
.wizard-steps li.is-active span {
    background: var(--primary); color: #fff;
}
.wizard-steps li.is-done span {
    background: var(--success); color: #fff;
}
.wizard-pane {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    margin-bottom: 14px;
}
.wizard-pane-title {
    font-family: 'Space Grotesk';
    font-size: 16px;
    margin-bottom: 14px;
}
.wizard-nav {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-top: 8px;
}
.kv {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
}
.kv span { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.kv strong.has-planted-error {
    color: var(--warning);
    border-left: 3px solid var(--warning);
    padding-left: 6px;
    margin-left: -3px;
}

/* Reward breakdown */
.reward-breakdown {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.rb-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.rb-row + .rb-row { border-top: 1px solid var(--border); }
.rb-row.rb-bonus strong { color: var(--success); }
.rb-row.rb-warn strong { color: var(--warning); }
.rb-row.rb-total {
    border-top: 2px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
    font-size: 16px;
}
.rb-row.rb-total strong { color: var(--success); font-family: 'Space Grotesk'; font-size: 18px; }

/* ========== PROXIES PAGE ========== */
.proxy-kpis {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
@media (max-width: 900px) { .proxy-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .proxy-kpis { grid-template-columns: 1fr; } }
.proxy-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.proxy-kpi-label { color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.proxy-kpi-value { font-family: 'Space Grotesk'; font-size: 22px; font-weight: 700; margin-top: 4px; }
.proxy-kpi-sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.earnings-explainer {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary-50), transparent);
    margin-bottom: 22px;
}
.earnings-explainer-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk'; font-size: 18px; font-weight: 700;
    margin-bottom: 10px;
}
.earnings-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-top: 8px;
}
@media (max-width: 720px) { .earnings-grid { grid-template-columns: 1fr; } }
.earnings-grid .kv { background: var(--surface); }

/* Marketplace card density */
.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.market-card .name { font-weight: 600; font-size: 15px; }
.market-card .meta { color: var(--text-muted); font-size: 12px; }
.market-card .price { font-family: 'Space Grotesk'; font-weight: 700; font-size: 22px; }
.market-card .est { font-size: 12px; color: var(--success); }
.market-card .payback { font-size: 11px; color: var(--text-muted); }

/* Your-proxies cards (mobile) */
.proxy-cards { display: none; flex-direction: column; gap: 10px; }
.proxy-card-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
    font-size: 13px;
}
.proxy-card-row .row-title { font-weight: 600; font-size: 14px; }
.proxy-card-row .row-meta { color: var(--text-muted); font-size: 12px; grid-column: 1 / -1; }
.proxy-card-row .row-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }

@media (max-width: 720px) {
    .proxy-table-wrap { display: none; }
    .proxy-cards { display: flex; }
}

/* ========== VISUAL CLARITY ENHANCEMENTS ========== */

/* Workflow type badges with distinct colors */
.workflow-shipping { 
    background: rgba(14, 165, 233, .14) !important; 
    color: var(--info) !important; 
    border-color: rgba(14, 165, 233, .25) !important;
}
.workflow-inventory { 
    background: rgba(139, 92, 246, .14) !important; 
    color: #8b5cf6 !important; 
    border-color: rgba(139, 92, 246, .25) !important;
}
.workflow-customs { 
    background: rgba(249, 115, 22, .14) !important; 
    color: #f97316 !important; 
    border-color: rgba(249, 115, 22, .25) !important;
}
.workflow-tracking { 
    background: rgba(236, 72, 153, .14) !important; 
    color: #ec4899 !important; 
    border-color: rgba(236, 72, 153, .25) !important;
}
.workflow-generic { 
    background: rgba(100, 116, 139, .14) !important; 
    color: #64748b !important; 
    border-color: rgba(100, 116, 139, .25) !important;
}

/* Task row status indicators */
.task-row {
    border-left: 3px solid transparent;
    transition: all .15s ease;
}
.task-row:hover {
    transform: translateX(2px);
}
.task-row-status-pending {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, .05), transparent);
}
.task-row-status-in_progress {
    border-left-color: var(--info);
    background: linear-gradient(90deg, rgba(14, 165, 233, .05), transparent);
}
.task-row-status-completed {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(16, 185, 129, .05), transparent);
}

/* Transaction row type indicators */
.tx-row {
    border-left: 3px solid transparent;
}
.tx-row-type-deposit { border-left-color: var(--success); }
.tx-row-type-withdrawal { border-left-color: var(--warning); }
.tx-row-type-earning { border-left-color: #8b5cf6; }
.tx-row-type-referral { border-left-color: #ec4899; }
.tx-row-type-purchase { border-left-color: var(--danger); }
.tx-row-type-activation { border-left-color: var(--info); }

/* Card status borders */
.card-status-premium {
    border-color: rgba(139, 92, 246, .4);
    box-shadow: 0 4px 20px -8px rgba(139, 92, 246, .3);
}
.card-status-active {
    border-color: rgba(16, 185, 129, .4);
    box-shadow: 0 4px 20px -8px rgba(16, 185, 129, .3);
}
.card-status-inactive {
    border-color: rgba(100, 116, 139, .4);
    opacity: .9;
}
.card-status-expired {
    border-color: rgba(225, 29, 72, .4);
    opacity: .85;
}

/* Table row status backgrounds */
table.data tr.status-pending td { background: rgba(245, 158, 11, .04); }
table.data tr.status-completed td { background: rgba(16, 185, 129, .04); }
table.data tr.status-rejected td { background: rgba(225, 29, 72, .04); }
table.data tr.status-processing td { background: rgba(14, 165, 233, .04); }

/* Proxy status indicators */
.proxy-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.proxy-status-dot.active { background: var(--success); box-shadow: 0 0 0 2px rgba(16, 185, 129, .2); }
.proxy-status-dot.inactive { background: var(--warning); box-shadow: 0 0 0 2px rgba(245, 158, 11, .2); }
.proxy-status-dot.expired { background: var(--danger); box-shadow: 0 0 0 2px rgba(225, 29, 72, .2); }

/* Marketplace card enhancements */
.market-card.premium {
    border-color: rgba(139, 92, 246, .3);
    background: linear-gradient(135deg, var(--surface), rgba(139, 92, 246, .03));
}
.market-card.premium::before {
    content: "★";
    position: absolute;
    top: 8px;
    right: 12px;
    color: #8b5cf6;
    font-size: 14px;
}

/* Destination dropdown styling */
.field select[data-validate] {
    cursor: pointer;
}
.field select[data-validate]:focus {
    border-color: var(--primary);
}
.field select option:disabled {
    color: var(--text-muted);
    font-style: italic;
}


