:root {
    --bg: #0b0f14;
    --surface: rgba(18, 24, 33, 0.92);
    --surface-2: rgba(13, 18, 25, 0.9);
    --surface-3: rgba(22, 28, 38, 0.92);
    --border: rgba(129, 140, 153, 0.18);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #f8fafc;
    --accent-weak: rgba(248, 250, 252, 0.08);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow: 0 18px 42px rgba(3, 7, 18, 0.32);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.5rem;
    --spacing-6: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: inherit;
}

a:hover {
    color: #ffffff;
}

::selection {
    background: rgba(248, 250, 252, 0.16);
}

.app-shell {
    min-height: 100vh;
}

.container {
    max-width: 1180px;
}

.topbar {
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(129, 140, 153, 0.1);
    z-index: 1040;
}

.topbar-panel {
    border: 1px solid var(--border);
    background: rgba(13, 18, 25, 0.84);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
}

.brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(248, 250, 252, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.06);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(248, 250, 252, 0.03);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.55);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.app-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.125rem;
    scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.04);
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s ease;
}

.nav-chip:hover,
.nav-chip.active {
    color: #ffffff;
    border-color: var(--border-strong);
    background: rgba(248, 250, 252, 0.1);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.panel-hero {
    padding: 1.5rem;
}

.auth-panel {
    padding: 1.25rem;
}

.hero-section {
    margin-top: 0.25rem;
}

.hero-title,
.section-title,
.panel-title {
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    max-width: 12ch;
    margin: 0;
}

.section-title {
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    font-weight: 650;
    margin: 0;
}

.panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.hero-copy,
.supporting-copy,
.footer-copy,
.notice-card p,
.empty-state p,
.task-summary {
    color: var(--muted);
}

.hero-copy {
    margin-top: 0.9rem;
    max-width: 65ch;
    font-size: 0.98rem;
}

.hero-grid,
.stats-grid {
    display: grid;
    gap: 0.9rem;
}

.hero-grid,
.stats-grid.four-up {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

.metric-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.03);
    padding: 1rem;
    min-height: 108px;
}

.metric-card.compact {
    min-height: auto;
    padding: 0.95rem;
}

.metric-label {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}

.metric-value {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.12;
}

.metric-meta {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.eyebrow {
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.task-platform,
.list-title,
.notice-title,
.footer-title,
.empty-title,
.field-value,
.task-meta-value,
.vip-price,
.task-detail-reward,
.countdown-value {
    color: #ffffff;
}

.task-platform {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.task-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.task-card,
.vip-card,
.ops-card {
    height: 100%;
}

.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.task-meta-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    background: rgba(248, 250, 252, 0.04);
    color: #e2e8f0;
    font-size: 0.76rem;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.95rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tone-muted {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.tone-warning {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.26);
    color: #fcd34d;
}

.tone-success {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.26);
    color: #86efac;
}

.tone-danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fca5a5;
}

.notice-card,
.countdown-card,
.field-panel,
.empty-state {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.04);
    padding: 1rem;
}

.notice-card.notice-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.18);
}

.notice-card.notice-muted {
    background: rgba(148, 163, 184, 0.06);
}

.notice-title,
.empty-title,
.footer-title {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.timeline-list {
    display: grid;
    gap: 0.8rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.timeline-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.timeline-item.is-dimmed {
    opacity: 0.55;
}

.timeline-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
    background: rgba(248, 250, 252, 0.05);
}

.list-shell {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    transition: background 0.18s ease;
}

.list-row:first-child {
    border-top: 0;
}

.list-row:hover {
    background: rgba(248, 250, 252, 0.03);
}

.list-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.list-amount {
    font-weight: 600;
    color: #ffffff;
}

.ledger-row {
    align-items: flex-start;
}

.ledger-values {
    min-width: 185px;
}

.ledger-delta {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.84rem;
}

.ledger-delta.is-positive {
    color: #bbf7d0;
}

.ledger-delta.is-negative {
    color: #fecaca;
}

.ledger-delta.is-warning {
    color: #fde68a;
}

.task-detail-reward,
.vip-price,
.countdown-value {
    font-size: clamp(1.4rem, 2.8vw, 2.05rem);
    font-weight: 700;
    line-height: 1.08;
}

.countdown-card.ready {
    border-color: rgba(52, 211, 153, 0.35);
}

.countdown-value.ready {
    color: #86efac;
}

.pre-wrap {
    white-space: pre-wrap;
}

.panel-head {
    background: rgba(248, 250, 252, 0.03);
}

.footer-panel {
    border: 1px solid var(--border);
    background: rgba(13, 18, 25, 0.84);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(248, 250, 252, 0.08);
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
}

.footer-link:hover {
    color: #ffffff;
    border-color: rgba(248, 250, 252, 0.22);
}

.auth-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.04);
    color: var(--muted);
    padding: 0.55rem 0.9rem;
}

.auth-tabs .nav-link.active {
    background: rgba(248, 250, 252, 0.12);
    border-color: rgba(248, 250, 252, 0.14);
    color: #ffffff;
}

.form-label {
    color: #cbd5e1;
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.form-control,
.form-control:focus,
textarea.form-control {
    background: rgba(248, 250, 252, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #ffffff;
    border-radius: var(--radius-sm);
    min-height: 2.95rem;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.76);
}

.form-control:focus {
    border-color: rgba(248, 250, 252, 0.28);
    box-shadow: 0 0 0 0.18rem rgba(248, 250, 252, 0.08);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    min-height: 2.8rem;
    box-shadow: none !important;
}

.btn-light {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #111827;
}

.btn-light:hover,
.btn-light:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
}

.btn-outline-light {
    color: #e2e8f0;
    border-color: rgba(248, 250, 252, 0.18);
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(248, 250, 252, 0.28);
    color: #ffffff;
}

.btn-outline-danger {
    border-color: rgba(248, 113, 113, 0.34);
    color: #fca5a5;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.44);
    color: #fecaca;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toast-stack {
    z-index: 1090;
    width: min(360px, calc(100vw - 1.5rem));
}

.toast {
    background: transparent;
}

.toast-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(13, 18, 25, 0.96);
    box-shadow: var(--shadow);
}

.toast-shell.tone-success {
    border-color: rgba(52, 211, 153, 0.3);
}

.toast-shell.tone-danger {
    border-color: rgba(248, 113, 113, 0.3);
}

.toast-shell.tone-warning {
    border-color: rgba(251, 191, 36, 0.28);
}

.toast-shell.tone-info {
    border-color: rgba(148, 163, 184, 0.22);
}

.toast-body {
    padding: 0.95rem 0 0.95rem 1rem;
    color: #ffffff;
}

.btn-close:focus {
    box-shadow: none;
}

.task-card-preview {
    opacity: 0.95;
}

.small-status {
    font-size: 0.88rem;
}

.field-value {
    font-size: 0.94rem;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(248, 250, 252, 0.45);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .hero-grid,
    .stats-grid.four-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid.three-up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .panel,
    .panel-hero {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    .hero-grid,
    .stats-grid.four-up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 767.98px) {
    .topbar-panel,
    .panel,
    .panel-hero,
    .auth-panel,
    .footer-panel {
        padding: 1rem;
    }

    .hero-title {
        max-width: none;
    }

    .list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ledger-values,
    .list-row .ms-auto {
        width: 100%;
        margin-left: 0 !important;
    }

    .stats-grid.two-up,
    .task-meta-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .user-chip {
        max-width: 100%;
    }
}


/* front-app-refresh */
.front-app-body {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.26), transparent 36%),
        radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.18), transparent 28%),
        linear-gradient(180deg, #050814 0%, #090f22 42%, #0b1020 100%);
    color: #f8fafc;
    overflow-x: hidden;
}

.front-main {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0.5rem 1rem calc(6.8rem + env(safe-area-inset-bottom));
}

.front-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding: 1rem 1rem 0.35rem;
}

.front-topbar-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 16, 32, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 55px rgba(2, 6, 23, 0.35);
}

.front-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
}

.front-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.front-glow {
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(55px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.front-glow-one {
    top: -90px;
    left: -40px;
    background: rgba(59, 130, 246, 0.28);
}

.front-glow-two {
    top: 80px;
    right: -70px;
    background: rgba(168, 85, 247, 0.22);
}

.brand-mark-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(217, 70, 239, 0.95));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.25);
}

.brand-mark svg,
.quick-action-icon svg,
.feature-icon svg,
.task-platform-icon svg,
.task-row-arrow svg,
.bottom-nav-icon svg,
.mini-icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.mini-pill,
.mini-link,
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}

.mini-icon-btn {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
}

.mini-link:hover,
.mini-icon-btn:hover,
.mini-pill:hover,
.tag-chip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.secondary-chip {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.22);
    background: rgba(109, 40, 217, 0.18);
}

.compact-chip {
    max-width: 74%;
    overflow: hidden;
}

.app-page-section {
    margin-bottom: 1rem;
}

.app-card {
    display: block;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(14, 19, 41, 0.96), rgba(9, 13, 29, 0.98));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
    text-decoration: none;
}

.app-card:hover {
    color: #ffffff;
}

.gradient-card {
    background:
        radial-gradient(circle at 5% 0%, rgba(59, 130, 246, 0.22), transparent 40%),
        radial-gradient(circle at 100% 10%, rgba(217, 70, 239, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(21, 27, 63, 0.98), rgba(11, 15, 34, 0.98));
}

.hero-card,
.slim-hero-card,
.detail-hero-card {
    padding: 1.1rem;
}

.tiny-eyebrow {
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
}

.app-hero-title,
.app-section-title,
.vip-banner-title {
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.app-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.app-hero-title.compact-title,
.compact-title {
    font-size: 1.45rem;
}

.app-section-title {
    font-size: 1.2rem;
    font-weight: 650;
}

.app-hero-copy,
.app-copy,
.list-meta-line,
.stat-meta,
.balance-sub,
.app-inline-note,
.task-row-subtitle,
.wallet-field-row,
.wallet-summary-list span,
.wallet-summary-list strong {
    color: #b7bfd7;
}

.hero-avatar,
.profile-avatar-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #d946ef);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(79, 70, 229, 0.32);
}

.hero-avatar {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.profile-avatar-large {
    width: 4rem;
    height: 4rem;
    font-size: 1.35rem;
}

.balance-card,
.payment-hero-box,
.vip-highlight-card {
    border-radius: 22px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(109, 40, 217, 0.94) 65%, rgba(217, 70, 239, 0.84));
}

.balance-value,
.payment-price,
.detail-amount,
.stat-value,
.reward-strong,
.task-row-reward {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.04;
}

.balance-value,
.payment-price {
    font-size: 2rem;
}

.detail-amount {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.15rem;
}

.reward-strong,
.task-row-reward {
    font-size: 1rem;
}

.mini-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.vip-chip-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 248, 210, 0.18);
    border: 1px solid rgba(254, 240, 138, 0.32);
    color: #fff7d6;
    font-size: 0.78rem;
    font-weight: 700;
}

.app-inline-note {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(129, 140, 248, 0.18);
    background: rgba(124, 58, 237, 0.08);
    font-size: 0.88rem;
}

.section-heading-app {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mini-stat-grid {
    display: grid;
    gap: 0.85rem;
}

.mini-stat-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    min-height: 116px;
}

.feature-shortcuts,
.quick-action-grid {
    display: grid;
    gap: 0.75rem;
}

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

.quick-action,
.feature-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    border-radius: 18px;
    padding: 0.75rem 0.4rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-action:hover,
.feature-shortcut:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.quick-action-icon,
.feature-icon,
.task-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 18px;
    color: #ffffff;
}

.quick-action-icon,
.feature-icon {
    width: 2.45rem;
    height: 2.45rem;
    background: rgba(255, 255, 255, 0.1);
}

.task-platform-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.task-platform-icon.large-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.small-menu-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.accent-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.accent-pink {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.accent-violet {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.accent-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.accent-blue {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.accent-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.accent-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
}

.app-task-list,
.app-list-stack,
.auth-stack,
.timeline-mini-list {
    display: grid;
    gap: 0.85rem;
}

.task-row-card,
.app-list-item,
.task-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.task-row-card {
    align-items: stretch;
}

.task-row-content,
.menu-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.task-row-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
}

.task-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
}

.task-row-title,
.list-title-strong {
    color: #ffffff;
    font-weight: 650;
    line-height: 1.25;
}

.task-row-subtitle,
.list-meta-line {
    display: block;
    font-size: 0.82rem;
}

.task-row-arrow,
.bottom-nav-icon {
    color: rgba(255, 255, 255, 0.72);
}

.task-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.category-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

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

.category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    text-decoration: none;
    white-space: nowrap;
}

.category-tab.active,
.category-tab:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(217, 70, 239, 0.92));
    border-color: rgba(217, 70, 239, 0.4);
    color: #ffffff;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.detail-mini-value {
    color: #ffffff;
    font-weight: 600;
}

.timeline-mini-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.timeline-mini-index {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
}

.front-countdown-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.countdown-display {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.05;
}

.empty-tip {
    color: #b7bfd7;
    font-size: 0.92rem;
}

.auth-card-panel {
    padding: 1rem;
}

.auth-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.btn-gradient {
    color: #ffffff;
    border: 0;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.32) !important;
}

.btn-gradient:hover,
.btn-gradient:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #8b5cf6 0%, #c026d3 100%);
}

.withdraw-card-shell {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-field-row,
.wallet-summary-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.wallet-field-input {
    margin-top: 0.45rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

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

.ledger-value-inline {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.ledger-value-inline.is-positive {
    color: #86efac;
}

.ledger-value-inline.is-negative {
    color: #fca5a5;
}

.vip-level-row.is-selected {
    border-color: rgba(216, 180, 254, 0.38);
    box-shadow: 0 0 0 1px rgba(216, 180, 254, 0.16), 0 24px 60px rgba(2, 6, 23, 0.42);
}

.bottom-app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    pointer-events: none;
}

.bottom-app-nav-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.15rem;
    padding: 0.45rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 28, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.46);
    pointer-events: auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.6rem;
    border-radius: 18px;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(109, 40, 217, 0.32), rgba(59, 130, 246, 0.18));
}

.bottom-nav-item:hover {
    color: #ffffff;
}

.bottom-nav-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 420px) {
    .balance-value,
    .payment-price {
        font-size: 1.75rem;
    }

    .quick-action-grid {
        gap: 0.55rem;
    }

    .mini-stat-grid.three-cols,
    .detail-meta-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .front-user-row {
        flex-wrap: wrap;
    }

    .compact-chip {
        max-width: 100%;
    }
}


.auth-page-shell {
    max-width: 980px;
    margin-inline: auto;
}

.auth-page-grid,
.onboarding-flow-grid,
.auth-link-grid {
    display: grid;
    gap: 0.9rem;
}

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

.onboarding-step-card {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.step-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.auth-link-grid .btn {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-code-input {
    text-align: center;
    letter-spacing: 0.45rem;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .auth-page-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

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

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