/*
 * FlushStream — Design System v2 "Modern Hybrid"
 * Inspired by RushStream: clean + personality
 * Palette: Blue #1A56DB · Teal #06B6D4 · Purple #7C3AED
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ═══ TOKENS ═══ */
:root {
    --fs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-white: #FFFFFF;
    --fs-black: #0F172A;

    --fs-bg: #F8FAFC;
    --fs-bg-subtle: #F1F5F9;
    --fs-bg-muted: #E8EDF2;

    --fs-border: #E2E8F0;
    --fs-border-strong: #CBD5E1;

    --fs-text: #0F172A;
    --fs-text-secondary: #475569;
    --fs-text-muted: #94A3B8;

    --fs-primary: #1A56DB;
    --fs-primary-hover: #1648B8;
    --fs-primary-subtle: rgba(26, 86, 219, 0.08);
    --fs-primary-light: #DBEAFE;

    --fs-accent: #06B6D4;
    --fs-accent-hover: #0891B2;
    --fs-accent-subtle: rgba(6, 182, 212, 0.08);

    --fs-vip: #7C3AED;
    --fs-vip-subtle: rgba(124, 58, 237, 0.08);
    --fs-vip-light: #EDE9FE;

    --fs-success: #10B981;
    --fs-success-bg: #ECFDF5;
    --fs-warning: #F59E0B;
    --fs-warning-bg: #FFFBEB;
    --fs-error: #EF4444;
    --fs-error-bg: #FEF2F2;

    --fs-gradient: linear-gradient(135deg, #1A56DB 0%, #06B6D4 100%);
    --fs-gradient-dark: linear-gradient(135deg, #0F2A6B 0%, #065A6B 100%);
    --fs-gradient-vip: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);

    --fs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --fs-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    --fs-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
    --fs-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --fs-shadow-float: 0 8px 24px rgba(26, 86, 219, 0.20);

    --fs-radius: 12px;
    --fs-radius-sm: 8px;
    --fs-radius-lg: 16px;
    --fs-radius-xl: 20px;
    --fs-radius-full: 9999px;

    --fs-space-1: 4px;
    --fs-space-2: 8px;
    --fs-space-3: 12px;
    --fs-space-4: 16px;
    --fs-space-5: 20px;
    --fs-space-6: 24px;
    --fs-space-8: 32px;
    --fs-space-10: 40px;
    --fs-space-12: 48px;

    --fs-tabbar-h: 64px;
    --fs-header-h: 56px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--fs-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--fs-text);
    background: var(--fs-bg);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    overflow-x: hidden;
}

a { color: var(--fs-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ═══ TYPOGRAPHY ═══ */
.fs-h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--fs-text); }
.fs-h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--fs-text); }
.fs-h3 { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--fs-text); }
.fs-body { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--fs-text-secondary); }
.fs-caption { font-size: 12px; font-weight: 500; color: var(--fs-text-muted); }
.fs-overline { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fs-text-muted); }
.fs-mono { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.fs-big-number { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--fs-text); }

/* ═══ PAGE HEADER (internal pages) ═══ */
.fs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: var(--fs-header-h);
    padding: 0 var(--fs-space-4);
    background: var(--fs-white);
    box-shadow: var(--fs-shadow-sm);
}

.fs-header-back,
.fs-header-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-text);
    text-decoration: none;
    flex-shrink: 0;
    border-radius: var(--fs-radius-sm);
}
.fs-header-back:hover,
.fs-header-action:hover {
    text-decoration: none;
    background: var(--fs-bg-muted);
}

.fs-header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-header-spacer {
    width: 36px;
    flex-shrink: 0;
}

/* ═══ HERO HEADER (gradient) ═══ */
.fs-hero {
    background: var(--fs-gradient);
    padding: var(--fs-space-5) var(--fs-space-4) var(--fs-space-12);
    color: var(--fs-white);
    position: relative;
}

.fs-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--fs-space-4);
}

.fs-hero-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.fs-hero-subtitle {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.fs-hero-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-white);
    text-decoration: none;
    border-radius: var(--fs-radius-sm);
}
.fs-hero-back:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

.fs-hero-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-white);
    background: rgba(255,255,255,0.15);
    border-radius: var(--fs-radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Balance card floating over hero */
.fs-balance-float {
    margin: -36px var(--fs-space-4) var(--fs-space-4);
    padding: var(--fs-space-5);
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    box-shadow: var(--fs-shadow-md);
    position: relative;
    z-index: 10;
}

.fs-balance-float-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fs-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--fs-space-2);
}

.fs-balance-float-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--fs-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.fs-balance-float-actions {
    position: absolute;
    top: var(--fs-space-4);
    right: var(--fs-space-4);
    display: flex;
    gap: 8px;
}

.fs-balance-float-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-primary);
    color: var(--fs-white);
    border-radius: var(--fs-radius-sm);
    text-decoration: none;
    font-size: 18px;
    transition: background 0.15s;
}
.fs-balance-float-btn:hover { background: var(--fs-primary-hover); text-decoration: none; color: var(--fs-white); }
.fs-balance-float-btn.secondary { background: var(--fs-bg-muted); color: var(--fs-primary); }

.fs-eye-toggle {
    background: none;
    border: none;
    color: var(--fs-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

/* ═══ CONTENT WRAPPER ═══ */
.fs-content {
    padding: var(--fs-space-5) var(--fs-space-4);
}

/* ═══ CARDS ═══ */
.fs-card {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    margin-bottom: var(--fs-space-4);
}

.fs-card-muted {
    background: var(--fs-bg-subtle);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    margin-bottom: var(--fs-space-4);
}

.fs-card-accent {
    background: var(--fs-white);
    border: 2px solid var(--fs-primary);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    margin-bottom: var(--fs-space-4);
}

.fs-card-flush {
    background: var(--fs-white);
    border-top: 1px solid var(--fs-border);
    border-bottom: 1px solid var(--fs-border);
    padding: var(--fs-space-5) var(--fs-space-4);
    margin: 0 calc(-1 * var(--fs-space-4)) var(--fs-space-4);
}

/* ═══ BUTTONS ═══ */
.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.fs-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fs-btn-primary {
    background: var(--fs-gradient);
    color: var(--fs-white);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.25);
}
.fs-btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
    transform: translateY(-1px);
}

.fs-btn-accent {
    background: var(--fs-accent);
    color: var(--fs-white);
}
.fs-btn-accent:hover:not(:disabled) {
    background: var(--fs-accent-hover);
}

.fs-btn-secondary {
    background: var(--fs-white);
    color: var(--fs-text);
    border: 1px solid var(--fs-border-strong);
}
.fs-btn-secondary:hover:not(:disabled) {
    background: var(--fs-bg-subtle);
    border-color: var(--fs-text-muted);
}

.fs-btn-ghost {
    background: transparent;
    color: var(--fs-text-secondary);
}
.fs-btn-ghost:hover:not(:disabled) {
    background: var(--fs-bg-muted);
    color: var(--fs-text);
}

.fs-btn-danger {
    background: var(--fs-error);
    color: var(--fs-white);
}

.fs-btn-vip {
    background: var(--fs-gradient-vip);
    color: var(--fs-white);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.fs-btn-block {
    width: 100%;
}

.fs-btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.fs-btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 15px;
}

.fs-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--fs-radius-sm);
}

/* ═══ FORMS ═══ */
.fs-field {
    margin-bottom: var(--fs-space-4);
}

.fs-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text);
    margin-bottom: var(--fs-space-1);
}

.fs-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--fs-text);
    background: var(--fs-white);
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fs-input::placeholder {
    color: var(--fs-text-muted);
}

.fs-input:focus {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 3px var(--fs-primary-subtle);
}

.fs-input-error {
    border-color: var(--fs-error);
}
.fs-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.fs-input-wrap {
    position: relative;
}

.fs-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fs-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.fs-field-error .fs-input {
    border-color: var(--fs-error);
}

.fs-field-hint {
    font-size: 12px;
    color: var(--fs-text-muted);
    margin-top: var(--fs-space-1);
}

.fs-phone-row {
    display: flex;
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fs-phone-row:focus-within {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 3px var(--fs-primary-subtle);
}
.fs-phone-prefix {
    flex-shrink: 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-text-secondary);
    background: var(--fs-bg-muted);
    border-right: 1px solid var(--fs-border);
}
.fs-phone-row .fs-input {
    border: none;
    border-radius: 0;
    flex: 1;
}
.fs-phone-row .fs-input:focus {
    box-shadow: none;
}

/* ═══ SEARCH BAR ═══ */
.fs-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 44px;
    background: var(--fs-bg-muted);
    border-radius: var(--fs-radius-full);
    margin: 0 var(--fs-space-4) var(--fs-space-4);
}

.fs-search i {
    color: var(--fs-text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.fs-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--fs-text);
}
.fs-search input::placeholder { color: var(--fs-text-muted); }

/* ═══ TABBAR ═══ */
.fs-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--fs-tabbar-h);
    background: var(--fs-white);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
    z-index: 9990;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.fs-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--fs-text-muted);
    padding: 6px 0;
    transition: color 0.15s;
}

.fs-tab:hover {
    text-decoration: none;
    color: var(--fs-text-secondary);
}

.fs-tab i {
    font-size: 22px;
    line-height: 1;
}

.fs-tab-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fs-tab.active {
    color: var(--fs-primary);
}

/* Center deposit tab */
.fs-tab-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}

.fs-tab-center-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fs-primary);
    color: var(--fs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: none;
    transition: background 0.2s;
}
.fs-tab-center:hover .fs-tab-center-btn {
    background: var(--fs-primary-hover);
}
.fs-tab-center:hover { text-decoration: none; }
.fs-tab-center.active .fs-tab-center-btn {
    background: var(--fs-primary);
}

.fs-tab-center .fs-tab-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--fs-primary);
    letter-spacing: 0.02em;
}

/* ═══ ALERT / NOTICE ═══ */
.fs-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: var(--fs-space-3) var(--fs-space-4);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: var(--fs-space-4);
    border-radius: var(--fs-radius-sm);
    border: 1px solid;
}

.fs-alert i {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}

.fs-alert-info {
    background: var(--fs-primary-subtle);
    border-color: rgba(26, 86, 219, 0.15);
    color: var(--fs-primary);
}

.fs-alert-success {
    background: var(--fs-success-bg);
    border-color: #A7F3D0;
    color: var(--fs-success);
}

.fs-alert-warning {
    background: var(--fs-warning-bg);
    border-color: #FDE68A;
    color: var(--fs-warning);
}

.fs-alert-error {
    background: var(--fs-error-bg);
    border-color: #FECACA;
    color: var(--fs-error);
}

/* ═══ MODAL ═══ */
.fs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fs-modal-overlay.show {
    display: flex;
}

.fs-modal {
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    width: 100%;
    max-width: 360px;
    box-shadow: var(--fs-shadow-lg);
    overflow: hidden;
}

.fs-modal-head {
    padding: var(--fs-space-6) var(--fs-space-5) var(--fs-space-3);
    text-align: center;
}

.fs-modal-icon {
    font-size: 32px;
    color: var(--fs-primary);
    margin-bottom: var(--fs-space-3);
}

.fs-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-modal-body {
    padding: var(--fs-space-3) var(--fs-space-5);
    text-align: center;
}

.fs-modal-footer {
    display: flex;
    gap: 10px;
    padding: var(--fs-space-4) var(--fs-space-5) var(--fs-space-5);
}

.fs-modal-footer .fs-btn {
    flex: 1;
}

.fs-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-bg-muted);
    border: none;
    border-radius: var(--fs-radius-full);
    color: var(--fs-text-muted);
    cursor: pointer;
    font-size: 14px;
}

/* ═══ TOAST ═══ */
.fs-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--fs-text);
    color: var(--fs-white);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--fs-radius-sm);
    z-index: 99999;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.fs-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.fs-toast.success { background: var(--fs-success); }
.fs-toast.error { background: var(--fs-error); }

/* ═══ BADGE / PILL ═══ */
.fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--fs-radius-full);
}

.fs-badge-default { background: var(--fs-bg-muted); color: var(--fs-text-secondary); }
.fs-badge-primary { background: var(--fs-primary-light); color: var(--fs-primary); }
.fs-badge-accent { background: var(--fs-accent-subtle); color: var(--fs-accent); }
.fs-badge-success { background: var(--fs-success-bg); color: var(--fs-success); }
.fs-badge-warning { background: var(--fs-warning-bg); color: var(--fs-warning); }
.fs-badge-error { background: var(--fs-error-bg); color: var(--fs-error); }
.fs-badge-vip { background: var(--fs-vip-light); color: var(--fs-vip); }

.fs-badge-live {
    background: var(--fs-error);
    color: var(--fs-white);
    font-size: 10px;
    height: 22px;
    padding: 0 8px;
    gap: 4px;
    border-radius: var(--fs-radius-sm);
}
.fs-badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--fs-white);
    border-radius: 50%;
    animation: fs-pulse 1.5s ease infinite;
}

.fs-badge-yield {
    background: var(--fs-success);
    color: var(--fs-white);
    font-size: 11px;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--fs-radius-sm);
    font-weight: 700;
}

@keyframes fs-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ═══ EMPTY STATE ═══ */
.fs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--fs-space-10) var(--fs-space-5);
}

.fs-empty-icon {
    font-size: 48px;
    color: var(--fs-border-strong);
    margin-bottom: var(--fs-space-4);
}

.fs-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fs-text);
    margin-bottom: var(--fs-space-2);
}

.fs-empty-text {
    font-size: 13px;
    color: var(--fs-text-muted);
    margin-bottom: var(--fs-space-5);
    max-width: 260px;
}

/* ═══ STAT GRID ═══ */
.fs-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: var(--fs-space-4);
}

.fs-stat-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fs-stat-item {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-3) var(--fs-space-4);
    text-align: center;
}

.fs-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--fs-text);
    margin-bottom: 2px;
}

.fs-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══ MENU LIST (profile, settings) ═══ */
.fs-menu-group {
    margin-bottom: var(--fs-space-5);
}

.fs-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0 var(--fs-space-2);
}

.fs-menu-list {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    overflow: hidden;
}

.fs-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--fs-space-4);
    border-bottom: 1px solid var(--fs-border);
    color: var(--fs-text);
    text-decoration: none;
    transition: background 0.15s;
}

.fs-menu-item:last-child {
    border-bottom: none;
}

.fs-menu-item:hover {
    text-decoration: none;
    background: var(--fs-bg-subtle);
}

.fs-menu-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-primary-subtle);
    color: var(--fs-primary);
    border-radius: var(--fs-radius-sm);
    flex-shrink: 0;
    font-size: 16px;
}

.fs-menu-text {
    flex: 1;
    min-width: 0;
}

.fs-menu-text-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-text);
}

.fs-menu-text-sub {
    font-size: 12px;
    color: var(--fs-text-muted);
}

.fs-menu-arrow {
    font-size: 14px;
    color: var(--fs-text-muted);
}

.fs-menu-badge {
    background: var(--fs-error);
    color: var(--fs-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: var(--fs-radius-full);
}

/* ═══ TRANSACTION LIST ═══ */
.fs-tx-list {
    list-style: none;
}

.fs-tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fs-border);
}

.fs-tx-item:last-child {
    border-bottom: none;
}

.fs-tx-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--fs-bg-muted);
    color: var(--fs-text-secondary);
    border-radius: var(--fs-radius-sm);
}

.fs-tx-icon.income { background: var(--fs-success-bg); color: var(--fs-success); }
.fs-tx-icon.expense { background: var(--fs-error-bg); color: var(--fs-error); }
.fs-tx-icon.pending { background: var(--fs-warning-bg); color: var(--fs-warning); }

.fs-tx-info {
    flex: 1;
    min-width: 0;
}

.fs-tx-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--fs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-tx-date {
    font-size: 12px;
    color: var(--fs-text-muted);
}

.fs-tx-amount {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.fs-tx-amount.positive { color: var(--fs-success); }
.fs-tx-amount.negative { color: var(--fs-text); }

/* ═══ FILTER CHIPS ═══ */
.fs-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: var(--fs-space-3) var(--fs-space-4);
    margin-bottom: var(--fs-space-3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fs-filters::-webkit-scrollbar { display: none; }

.fs-filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text-secondary);
    background: var(--fs-white);
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.fs-filter-btn.active {
    background: var(--fs-primary);
    color: var(--fs-white);
    border-color: var(--fs-primary);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.20);
}
.fs-filter-btn:hover:not(.active) {
    background: var(--fs-bg-muted);
    border-color: var(--fs-text-muted);
}

/* ═══ DASHBOARD (index) ═══ */
.fs-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fs-space-3) var(--fs-space-4);
    background: var(--fs-white);
}

.fs-dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-dash-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.fs-dash-brand span {
    font-size: 18px;
    font-weight: 800;
    color: var(--fs-text);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* User card (dashboard) */
.fs-user-card {
    margin: var(--fs-space-3) var(--fs-space-4) var(--fs-space-4);
    padding: var(--fs-space-5);
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    display: flex;
    align-items: center;
    gap: 14px;
}

.fs-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--fs-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--fs-white);
    background: var(--fs-gradient);
    flex-shrink: 0;
    overflow: hidden;
}

.fs-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-user-info {
    flex: 1;
    min-width: 0;
}

.fs-user-greeting {
    font-size: 12px;
    color: var(--fs-text-muted);
}

.fs-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.fs-user-balance-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--fs-text);
    letter-spacing: -0.02em;
}

/* 6 Quick Actions (3x2 grid) */
.fs-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 var(--fs-space-4) var(--fs-space-5);
}

.fs-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s;
    background: transparent;
    border: none;
}
.fs-action-item:hover { text-decoration: none; transform: translateY(-2px); }

.fs-action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-primary-subtle);
    color: var(--fs-primary);
    border-radius: var(--fs-radius);
    font-size: 22px;
    transition: background 0.15s;
}
.fs-action-item:hover .fs-action-icon {
    background: var(--fs-primary-light);
}

.fs-action-icon.accent { background: var(--fs-accent-subtle); color: var(--fs-accent); }
.fs-action-icon.vip { background: var(--fs-vip-subtle); color: var(--fs-vip); }
.fs-action-icon.success { background: var(--fs-success-bg); color: var(--fs-success); }
.fs-action-icon.warning { background: var(--fs-warning-bg); color: var(--fs-warning); }
.fs-action-icon.error { background: var(--fs-error-bg); color: var(--fs-error); }

.fs-action-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Tutorial steps */
.fs-tutorial {
    margin: 0 var(--fs-space-4) var(--fs-space-5);
    padding: var(--fs-space-5);
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
}

.fs-tutorial-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fs-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--fs-space-4);
}

.fs-tutorial-step {
    display: flex;
    gap: 14px;
    padding: 10px 0;
}

.fs-tutorial-step + .fs-tutorial-step {
    border-top: 1px solid var(--fs-border);
}

.fs-tutorial-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fs-primary-light);
    color: var(--fs-primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fs-tutorial-text {
    flex: 1;
    font-size: 13px;
    color: var(--fs-text-secondary);
    line-height: 1.5;
}

.fs-tutorial-text strong {
    color: var(--fs-primary);
    font-weight: 600;
}

/* Ticker */
.fs-ticker {
    padding: 0 var(--fs-space-4);
    margin-bottom: var(--fs-space-4);
    overflow: hidden;
    height: 28px;
}

.fs-ticker-inner {
    display: flex;
    gap: 40px;
    animation: fs-ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.fs-ticker-inner span {
    font-size: 12px;
    color: var(--fs-text-muted);
    flex-shrink: 0;
}

@keyframes fs-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section title */
.fs-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 var(--fs-space-4);
    margin-bottom: var(--fs-space-3);
}

.fs-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fs-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--fs-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.fs-section-link:hover {
    color: var(--fs-primary-hover);
}

/* Plan cards (dashboard view) */
.fs-plans {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 var(--fs-space-4);
    margin-bottom: var(--fs-space-5);
}

.fs-plan {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    overflow: hidden;
}

.fs-plan-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--fs-space-4);
}

.fs-plan-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: var(--fs-bg-muted);
    border-radius: var(--fs-radius-sm);
    flex-shrink: 0;
}

.fs-plan-info {
    flex: 1;
    min-width: 0;
}

.fs-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-text);
}

.fs-plan-yield {
    font-size: 12px;
    color: var(--fs-success);
    font-weight: 600;
}

.fs-plan-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--fs-text);
    text-align: right;
    white-space: nowrap;
}

.fs-plan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--fs-border);
}

.fs-plan-stat {
    padding: 10px;
    text-align: center;
    border-right: 1px solid var(--fs-border);
}
.fs-plan-stat:last-child { border-right: none; }

.fs-plan-stat-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-plan-stat-lbl {
    font-size: 10px;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fs-plan-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fs-white);
    background: var(--fs-gradient);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.15s;
}
.fs-plan-btn:hover:not(:disabled) { opacity: 0.9; }
.fs-plan-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══ AUTH PAGES ═══ */
.fs-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fs-bg);
}

.fs-auth-top {
    padding: var(--fs-space-5) var(--fs-space-5) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-auth-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.fs-auth-brand {
    font-size: 17px;
    font-weight: 800;
    color: var(--fs-text);
    text-transform: uppercase;
}

.fs-auth-heading {
    padding: var(--fs-space-8) var(--fs-space-5) var(--fs-space-3);
}

.fs-auth-heading h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--fs-text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.fs-auth-heading p {
    font-size: 14px;
    color: var(--fs-text-muted);
    margin: 0;
}

.fs-auth-form {
    padding: 0 var(--fs-space-5);
    flex: 1;
}

.fs-auth-footer {
    padding: var(--fs-space-4) var(--fs-space-5);
    text-align: center;
    font-size: 13px;
    color: var(--fs-text-muted);
    margin-top: var(--fs-space-4);
}

.fs-auth-footer a {
    font-weight: 600;
    color: var(--fs-primary);
}

.fs-auth-segments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
    margin-bottom: var(--fs-space-5);
}

.fs-auth-seg {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text-muted);
    background: var(--fs-bg);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.fs-auth-seg.active {
    background: var(--fs-primary);
    color: var(--fs-white);
}

.fs-auth-step-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fs-auth-progress {
    height: 3px;
    background: var(--fs-border);
    margin: var(--fs-space-4) var(--fs-space-5) 0;
    border-radius: var(--fs-radius-full);
    overflow: hidden;
}

.fs-auth-progress-bar {
    height: 100%;
    background: var(--fs-gradient);
    transition: width 0.3s;
    border-radius: var(--fs-radius-full);
}

.fs-auth-step {
    display: none;
}
.fs-auth-step.active {
    display: block;
}

.fs-auth-step-head {
    margin-bottom: var(--fs-space-5);
}

.fs-auth-step-kicker {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.fs-auth-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-auth-actions {
    display: flex;
    gap: 10px;
    padding-top: var(--fs-space-4);
}

.fs-auth-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px var(--fs-space-5);
    flex: 1;
}

.fs-auth-success.show {
    display: flex;
}

.fs-auth-success-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--fs-success-bg);
    color: var(--fs-success);
    border-radius: var(--fs-radius-full);
    margin-bottom: var(--fs-space-5);
}

.fs-auth-success h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--fs-text);
    margin: 0 0 8px;
}

.fs-auth-success p {
    font-size: 14px;
    color: var(--fs-text-muted);
    margin: 0 0 var(--fs-space-6);
}

/* ═══ PROFILE PAGE (my.php) ═══ */
.fs-profile-header {
    background: var(--fs-gradient);
    padding: var(--fs-space-6) var(--fs-space-4) var(--fs-space-5);
    color: var(--fs-white);
}

.fs-profile-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--fs-space-4);
}

.fs-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--fs-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--fs-primary);
    background: var(--fs-white);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-profile-greeting {
    font-size: 12px;
    opacity: 0.8;
}

.fs-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-white);
}

.fs-profile-phone {
    font-size: 13px;
    opacity: 0.7;
}

.fs-profile-badges {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.fs-profile-badge-current {
    background: rgba(255,255,255,0.2);
    color: var(--fs-white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--fs-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-profile-badge-next {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--fs-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-balance-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: var(--fs-space-3) var(--fs-space-4) 0;
    margin-top: calc(-20px);
    position: relative;
    z-index: 10;
}

.fs-balance-strip-item {
    background: var(--fs-white);
    border-radius: var(--fs-radius);
    padding: 14px;
    text-align: center;
    box-shadow: var(--fs-shadow-sm);
    border: 1px solid var(--fs-border);
}

.fs-balance-strip-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-balance-strip-lbl {
    font-size: 10px;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Quick actions (profile page 4-col) */
.fs-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: var(--fs-space-4);
}

.fs-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px;
    text-decoration: none;
    color: var(--fs-text-secondary);
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}
.fs-quick-action:hover {
    text-decoration: none;
    background: var(--fs-bg-subtle);
    border-color: var(--fs-primary);
}
.fs-quick-action i {
    font-size: 20px;
    color: var(--fs-primary);
}
.fs-quick-action span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.fs-quick-action.checkin-loading { opacity: 0.5; pointer-events: none; }
.fs-quick-action.checkin-done { border-color: var(--fs-success); background: var(--fs-success-bg); }
.fs-quick-action.checkin-done i { color: var(--fs-success); }
.fs-quick-action.checkin-done span { color: var(--fs-success); }
.fs-quick-action.disabled { opacity: 0.4; pointer-events: none; }

/* ═══ AMOUNT INPUT (recharge/withdraw) ═══ */
.fs-amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: var(--fs-space-4);
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius);
    margin-bottom: var(--fs-space-3);
    background: var(--fs-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fs-amount-wrap:focus-within {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 3px var(--fs-primary-subtle);
}

.fs-amount-prefix {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-amount-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: 800;
    color: var(--fs-text);
    background: transparent;
    letter-spacing: -0.02em;
    min-width: 0;
}

.fs-amount-input::placeholder {
    color: var(--fs-text-muted);
    font-weight: 500;
}

.fs-quick-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--fs-space-4);
}

.fs-quick-val {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text-secondary);
    background: var(--fs-white);
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.fs-quick-val:hover,
.fs-quick-val.active {
    background: var(--fs-primary);
    color: var(--fs-white);
    border-color: var(--fs-primary);
}

/* ═══ KEY-VALUE TABLE ═══ */
.fs-kv-table {
    margin-bottom: var(--fs-space-4);
}

.fs-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--fs-border);
}

.fs-kv-row:last-child {
    border-bottom: none;
}

.fs-kv-label {
    font-size: 13px;
    color: var(--fs-text-muted);
}

.fs-kv-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--fs-text);
}

/* ═══ COPY FIELD ═══ */
.fs-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--fs-bg-subtle);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    margin-bottom: var(--fs-space-3);
}

.fs-copy-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--fs-text);
    word-break: break-all;
}

.fs-copy-btn {
    flex-shrink: 0;
    background: var(--fs-primary);
    border: none;
    color: var(--fs-white);
    cursor: pointer;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--fs-radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fs-copy-btn:hover { background: var(--fs-primary-hover); }

/* ═══ TEAM PAGE ═══ */
.fs-invite-card {
    padding: var(--fs-space-5);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    margin-bottom: var(--fs-space-4);
}

.fs-invite-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--fs-space-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Level tabs */
.fs-level-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: var(--fs-space-3) var(--fs-space-4);
    margin-bottom: var(--fs-space-4);
    scrollbar-width: none;
}
.fs-level-tabs::-webkit-scrollbar { display: none; }

.fs-level-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 2px solid var(--fs-border);
    border-radius: var(--fs-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--fs-white);
    min-width: 80px;
}

.fs-level-tab-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--fs-text);
}

.fs-level-tab-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-muted);
}

.fs-level-tab.active {
    border-color: var(--fs-primary);
    background: var(--fs-primary-subtle);
}
.fs-level-tab.active .fs-level-tab-num { color: var(--fs-primary); }
.fs-level-tab.active .fs-level-tab-pct { color: var(--fs-primary); }

/* Status card (team) */
.fs-status-card {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    text-align: center;
    margin: var(--fs-space-4);
    margin-bottom: var(--fs-space-4);
}

.fs-status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--fs-space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-primary-subtle);
    color: var(--fs-primary);
    border-radius: var(--fs-radius);
    font-size: 24px;
}

.fs-status-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fs-status-level {
    font-size: 20px;
    font-weight: 800;
    color: var(--fs-text);
    margin-bottom: var(--fs-space-3);
}

/* ═══ PROGRESS BAR ═══ */
.fs-progress {
    height: 8px;
    background: var(--fs-bg-muted);
    border-radius: var(--fs-radius-full);
    overflow: hidden;
}

.fs-progress-bar {
    height: 100%;
    background: var(--fs-gradient);
    border-radius: var(--fs-radius-full);
    transition: width 0.3s;
}

.fs-progress-bar.success { background: var(--fs-success); }
.fs-progress-bar.accent { background: var(--fs-accent); }
.fs-progress-bar.vip { background: var(--fs-gradient-vip); }

/* ═══ BAU (FLOATING + PAGE) ═══ */
.fs-fab {
    position: fixed;
    right: 14px;
    bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 9998;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.40), 0 0 0 0 rgba(245, 158, 11, 0.4);
    animation: fs-fab-float 3s ease-in-out infinite, fs-fab-ring 3s ease-out infinite;
    font-size: 22px;
    overflow: visible;
}
.fs-fab i { position: relative; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.fs-fab:hover {
    text-decoration: none;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.50);
}
.fs-fab:active { transform: scale(0.95); }

.fs-fab-sparkle {
    position: absolute;
    width: 5px; height: 5px;
    background: #FDE68A;
    border-radius: 50%;
    opacity: 0;
    animation: fs-sparkle 2.5s ease-in-out infinite;
}
.fs-fab-sparkle      { top: -4px; right: 2px; animation-delay: 0s; }
.fs-fab-sparkle.s2   { top: 6px; right: -6px; animation-delay: 0.8s; width: 4px; height: 4px; }
.fs-fab-sparkle.s3   { bottom: 2px; left: -4px; animation-delay: 1.6s; width: 3px; height: 3px; }

@keyframes fs-fab-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes fs-fab-ring {
    0% { box-shadow: 0 4px 16px rgba(245,158,11,0.40), 0 0 0 0 rgba(245,158,11,0.35); }
    70% { box-shadow: 0 4px 16px rgba(245,158,11,0.40), 0 0 0 10px rgba(245,158,11,0); }
    100% { box-shadow: 0 4px 16px rgba(245,158,11,0.40), 0 0 0 0 rgba(245,158,11,0); }
}
@keyframes fs-sparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 1; transform: scale(1) translateY(-6px); }
}

/* Bau page dark theme */
.fs-bau-page {
    background: linear-gradient(180deg, #0A0F1A 0%, #0F172A 40%, #1A1F35 100%);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    color: var(--fs-white);
}

.fs-bau-page .fs-header {
    background: transparent;
    box-shadow: none;
}
.fs-bau-page .fs-header-back,
.fs-bau-page .fs-header-title {
    color: var(--fs-white);
}

.fs-bau-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #F59E0B, #F97316, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.fs-bau-subtitle {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--fs-space-5);
}

.fs-bau-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: var(--fs-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--fs-radius-full);
    margin: 0 auto var(--fs-space-5);
    border: none;
    cursor: pointer;
    max-width: fit-content;
}

.fs-bau-chest {
    display: flex;
    justify-content: center;
    padding: var(--fs-space-5);
}

.fs-bau-chest img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(245, 158, 11, 0.3));
}

.fs-bau-progress-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    margin: 0 var(--fs-space-4) var(--fs-space-5);
    text-align: center;
}

.fs-bau-progress-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--fs-space-3);
}

.fs-bau-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.10);
    border-radius: var(--fs-radius-full);
    overflow: hidden;
    margin-bottom: var(--fs-space-2);
}

.fs-bau-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    border-radius: var(--fs-radius-full);
    transition: width 0.3s;
}

.fs-bau-progress-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.fs-bau-progress-text span {
    color: #F59E0B;
    font-weight: 700;
}

.fs-prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 var(--fs-space-4);
    margin-bottom: var(--fs-space-4);
}

.fs-prize-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-3);
    text-align: center;
    transition: border-color 0.2s;
}
.fs-prize-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.fs-prize-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--fs-radius-sm);
    margin-bottom: var(--fs-space-2);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--fs-radius-sm);
    margin-bottom: var(--fs-space-2);
    background: rgba(255,255,255,0.04);
}

.fs-prize-icon {
    font-size: 28px;
    margin-bottom: var(--fs-space-2);
}

.fs-prize-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.fs-prize-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

/* ═══ PRODUCT PAGE (mercado) ═══ */
.fs-prod-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 var(--fs-space-4);
    margin-bottom: var(--fs-space-5);
}

.fs-prod-card {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    overflow: hidden;
    background: var(--fs-white);
    box-shadow: var(--fs-shadow-sm);
    transition: box-shadow 0.2s;
}
.fs-prod-card:hover { box-shadow: var(--fs-shadow-md); }

.fs-prod-img-wrap {
    aspect-ratio: 16 / 9;
    background: var(--fs-bg-muted);
    overflow: hidden;
    position: relative;
}

.fs-prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-prod-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.fs-prod-body {
    padding: var(--fs-space-4);
}

.fs-prod-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text);
    margin-bottom: 2px;
}

.fs-prod-sub {
    font-size: 12px;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--fs-space-3);
}

.fs-prod-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: var(--fs-space-3);
}

.fs-prod-stat {
    background: var(--fs-bg-subtle);
    border-radius: var(--fs-radius-sm);
    padding: 10px;
}

.fs-prod-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fs-prod-stat-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--fs-text);
    margin-top: 2px;
}
.fs-prod-stat-val.green { color: var(--fs-success); }

.fs-prod-return {
    background: var(--fs-bg-muted);
    border-radius: var(--fs-radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--fs-space-3);
}

.fs-prod-return-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fs-prod-return-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--fs-text);
}

.fs-prod-limit {
    font-size: 12px;
    color: var(--fs-text-muted);
    text-align: center;
    margin-bottom: var(--fs-space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.fs-prod-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fs-white);
    background: var(--fs-gradient);
    border: none;
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.20);
    transition: all 0.2s;
}
.fs-prod-btn:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(26, 86, 219, 0.30); transform: translateY(-1px); }
.fs-prod-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.fs-prod-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--fs-text);
    margin-bottom: var(--fs-space-3);
    letter-spacing: -0.02em;
}

/* My products (purchased) */
.fs-my-prod-card {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-4);
    margin-bottom: var(--fs-space-3);
    background: var(--fs-white);
}

.fs-my-prod-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--fs-space-3);
}

.fs-my-prod-img {
    width: 44px;
    height: 44px;
    border-radius: var(--fs-radius-sm);
    object-fit: cover;
    background: var(--fs-bg-muted);
}

.fs-my-prod-status {
    margin-top: var(--fs-space-2);
}

/* ═══ PIX / PAYMENT PAGES ═══ */
.fs-pix-page {
    background: var(--fs-white);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

.fs-pix-amount {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--fs-text);
    padding: var(--fs-space-5) 0;
    letter-spacing: -0.02em;
}

.fs-pix-qr {
    display: flex;
    justify-content: center;
    padding: var(--fs-space-4);
}

.fs-pix-qr img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
}

.fs-pix-timer {
    text-align: center;
    padding: var(--fs-space-3);
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--fs-text);
}

/* ═══ GOALS / PREMIOS PAGE ═══ */
.fs-goal-card {
    background: var(--fs-white);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-5);
    margin-bottom: var(--fs-space-4);
}

.fs-goal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--fs-space-3);
}

.fs-goal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-goal-desc {
    font-size: 13px;
    color: var(--fs-text-muted);
    margin-top: 2px;
}

.fs-goal-reward {
    background: var(--fs-success-bg);
    color: var(--fs-success);
    font-size: 16px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--fs-radius-sm);
    white-space: nowrap;
}

.fs-goal-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--fs-space-2);
}

.fs-goal-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-goal-progress-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--fs-primary);
}

.fs-goal-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    margin-top: var(--fs-space-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-goal-btn.locked {
    background: var(--fs-bg-muted);
    color: var(--fs-text-muted);
    cursor: not-allowed;
}

.fs-goal-btn.unlocked {
    background: var(--fs-gradient);
    color: var(--fs-white);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.20);
}

.fs-goal-btn.claimed {
    background: var(--fs-success-bg);
    color: var(--fs-success);
    cursor: default;
}

/* ═══ VIP JOURNEY PAGE ═══ */
.fs-vip-tier {
    background: var(--fs-white);
    border: 2px solid var(--fs-border);
    border-radius: var(--fs-radius-lg);
    padding: var(--fs-space-5);
    margin-bottom: var(--fs-space-5);
    position: relative;
}

.fs-vip-tier.locked { opacity: 0.7; }
.fs-vip-tier.unlocked { border-color: var(--fs-vip); }

.fs-vip-tier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--fs-space-3);
}

.fs-vip-tier-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fs-radius-full);
    font-size: 16px;
}

.fs-vip-tier-icon.bronze { background: #FEF3C7; color: #B45309; }
.fs-vip-tier-icon.silver { background: #F1F5F9; color: #475569; }
.fs-vip-tier-icon.gold { background: #FEF3C7; color: #D97706; }

.fs-vip-tier-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text-muted);
}
.fs-vip-tier.unlocked .fs-vip-tier-name { color: var(--fs-vip); }

.fs-vip-plan-card {
    background: var(--fs-bg-subtle);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: var(--fs-space-4);
    text-align: center;
    margin-bottom: var(--fs-space-3);
}

.fs-vip-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-vip-plan-return {
    font-size: 22px;
    font-weight: 800;
    color: var(--fs-text);
}

.fs-vip-req {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fs-text-secondary);
    padding: 6px 0;
}

.fs-vip-req i {
    color: var(--fs-text-muted);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.fs-vip-req .fs-badge { margin-left: auto; }

/* ═══ CODE REDEMPTION MODAL ═══ */
.fs-code-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    overflow: hidden;
    margin: var(--fs-space-4) 0;
    transition: border-color 0.2s;
}
.fs-code-input-wrap:focus-within {
    border-color: var(--fs-primary);
}

.fs-code-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fs-text);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.fs-code-input::placeholder {
    color: var(--fs-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* ═══ WELCOME MODAL (post-login) ═══ */
.fs-welcome-modal {
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    width: 100%;
    max-width: 360px;
    box-shadow: var(--fs-shadow-lg);
    overflow: hidden;
    position: relative;
}

.fs-welcome-header {
    text-align: center;
    padding: var(--fs-space-6) var(--fs-space-5) var(--fs-space-3);
}

.fs-welcome-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--fs-space-3);
    object-fit: contain;
}

.fs-welcome-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--fs-text);
    margin-bottom: 6px;
}

.fs-welcome-text {
    font-size: 13px;
    color: var(--fs-text-muted);
    line-height: 1.5;
}

.fs-welcome-bonus {
    padding: 0 var(--fs-space-5);
    margin-bottom: var(--fs-space-4);
}

.fs-welcome-bonus-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--fs-text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--fs-space-3);
}

.fs-welcome-bonus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--fs-border);
}
.fs-welcome-bonus-row:last-child { border-bottom: none; }

.fs-welcome-bonus-text {
    font-size: 13px;
    color: var(--fs-text-secondary);
}

.fs-welcome-bonus-text strong {
    color: var(--fs-text);
    font-weight: 700;
}

.fs-welcome-bonus-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--fs-success);
}

.fs-welcome-footer {
    padding: var(--fs-space-3) var(--fs-space-5) var(--fs-space-5);
}

.fs-welcome-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--fs-space-3) 0;
    font-size: 12px;
    color: var(--fs-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

/* ═══ GROUP MODAL (post-login) ═══ */
.fs-group-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fs-group-modal-overlay.show { display: flex; }

.fs-group-modal {
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    width: 100%;
    max-width: 340px;
    padding: var(--fs-space-6);
    text-align: center;
    box-shadow: var(--fs-shadow-lg);
}

.fs-group-modal-icon {
    font-size: 28px;
    color: var(--fs-primary);
    margin-bottom: var(--fs-space-3);
}

.fs-group-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-text);
    margin-bottom: var(--fs-space-2);
}

.fs-group-modal-text {
    font-size: 13px;
    color: var(--fs-text-secondary);
    margin-bottom: var(--fs-space-5);
    line-height: 1.5;
}

.fs-group-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fs-group-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--fs-border-strong);
    border-radius: var(--fs-radius-sm);
    color: var(--fs-text);
    background: var(--fs-white);
    cursor: pointer;
}
.fs-group-modal-btn:hover { background: var(--fs-bg-subtle); text-decoration: none; }
.fs-group-modal-btn.whatsapp { color: #25D366; border-color: #25D366; }
.fs-group-modal-btn.telegram { color: #0088CC; border-color: #0088CC; }
.fs-group-modal-btn.close-btn { color: var(--fs-text-muted); border-color: transparent; }

/* ═══ NOTIFICATION BELL ═══ */
.fs-notif-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-text);
    background: none;
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    position: relative;
    font-size: 18px;
}

.fs-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--fs-error);
    color: var(--fs-white);
    border-radius: var(--fs-radius-full);
    line-height: 1;
}
.fs-notif-badge.show { display: flex; }

/* ═══ NOTIFICATION PANEL ═══ */
.fs-notif-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    z-index: 1500;
    display: none;
}
.fs-notif-panel-overlay.show { display: block; }

.fs-notif-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--fs-white);
    z-index: 1501;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.10);
}
.fs-notif-panel.show { right: 0; }

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

.fs-notif-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fs-text);
}

.fs-notif-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    color: var(--fs-text);
    cursor: pointer;
}
.fs-notif-panel-close:hover { background: var(--fs-bg-muted); }

.fs-notif-panel-actions { padding: 10px 20px; }

.fs-notif-mark-all {
    background: none;
    border: none;
    color: var(--fs-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.fs-notif-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.fs-notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fs-border);
    align-items: flex-start;
    cursor: pointer;
}
.fs-notif-item.unread {
    background: var(--fs-primary-subtle);
    margin: 0 -20px;
    padding: 14px 20px;
    border-radius: var(--fs-radius-sm);
}

.fs-notif-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--fs-bg-muted);
    color: var(--fs-text-secondary);
    border-radius: var(--fs-radius-sm);
}
.fs-notif-item-icon.rendimento { background: var(--fs-success-bg); color: var(--fs-success); }
.fs-notif-item-icon.sistema { background: var(--fs-primary-subtle); color: var(--fs-primary); }
.fs-notif-item-icon.bonus { background: var(--fs-warning-bg); color: var(--fs-warning); }

.fs-notif-item-body { flex: 1; min-width: 0; }
.fs-notif-item-title { font-size: 13px; font-weight: 600; color: var(--fs-text); }
.fs-notif-item-msg { font-size: 12px; color: var(--fs-text-muted); margin-top: 2px; line-height: 1.4; }
.fs-notif-item-time { font-size: 11px; color: var(--fs-text-muted); margin-top: 4px; }

.fs-notif-item-dot {
    width: 8px;
    height: 8px;
    background: var(--fs-primary);
    border-radius: var(--fs-radius-full);
    flex-shrink: 0;
    margin-top: 6px;
}
.fs-notif-item.read .fs-notif-item-dot { display: none; }

.fs-notif-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fs-text-muted);
}
.fs-notif-empty i { font-size: 40px; margin-bottom: 12px; display: block; color: var(--fs-border-strong); }
.fs-notif-empty p { font-size: 13px; }

/* ═══ SPINNER ═══ */
.fs-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--fs-border);
    border-top-color: var(--fs-primary);
    border-radius: 50%;
    animation: fs-spin 0.6s linear infinite;
}

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

.fs-btn .fs-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

/* ═══ REFERRAL SECTION (profile) ═══ */
.fs-referral-section {
    padding: var(--fs-space-4);
}

.fs-referral-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--fs-space-4);
    background: var(--fs-bg-subtle);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius-sm);
    margin-bottom: var(--fs-space-3);
}

.fs-referral-code-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fs-referral-code-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--fs-text);
    background: var(--fs-primary-light);
    padding: 4px 12px;
    border-radius: var(--fs-radius-sm);
}

/* ═══ LOGOUT ═══ */
.fs-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-error);
    background: var(--fs-error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--fs-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    margin-top: var(--fs-space-5);
}
.fs-logout-btn:hover { background: rgba(239, 68, 68, 0.10); text-decoration: none; color: var(--fs-error); }

/* ═══ UTILITIES ═══ */
.fs-mt-1 { margin-top: 4px; }
.fs-mt-2 { margin-top: 8px; }
.fs-mt-3 { margin-top: 12px; }
.fs-mt-4 { margin-top: 16px; }
.fs-mt-5 { margin-top: 20px; }
.fs-mb-1 { margin-bottom: 4px; }
.fs-mb-2 { margin-bottom: 8px; }
.fs-mb-3 { margin-bottom: 12px; }
.fs-mb-4 { margin-bottom: 16px; }
.fs-mb-5 { margin-bottom: 20px; }
.fs-px-4 { padding-left: 16px; padding-right: 16px; }
.fs-text-center { text-align: center; }
.fs-text-right { text-align: right; }
.fs-text-success { color: var(--fs-success); }
.fs-text-error { color: var(--fs-error); }
.fs-text-warning { color: var(--fs-warning); }
.fs-text-primary { color: var(--fs-primary); }
.fs-text-accent { color: var(--fs-accent); }
.fs-text-vip { color: var(--fs-vip); }
.fs-text-muted { color: var(--fs-text-muted); }
.fs-hidden { display: none !important; }
.fs-flex { display: flex; }
.fs-flex-col { display: flex; flex-direction: column; }
.fs-items-center { align-items: center; }
.fs-justify-between { justify-content: space-between; }
.fs-gap-2 { gap: 8px; }
.fs-gap-3 { gap: 12px; }
.fs-gap-4 { gap: 16px; }
.fs-w-full { width: 100%; }
.fs-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-font-bold { font-weight: 700; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 360px) {
    .fs-user-balance-amount { font-size: 18px; }
    .fs-action-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .fs-action-icon { width: 40px; height: 40px; font-size: 18px; }
    .fs-plan-stats { grid-template-columns: 1fr; }
    .fs-prize-grid { grid-template-columns: repeat(2, 1fr); }
    .fs-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .fs-prod-stats { grid-template-columns: 1fr; }
}

/* ═══ SAFE AREA ═══ */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(var(--fs-tabbar-h) + env(safe-area-inset-bottom) + 12px);
    }
}

@keyframes fs-bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 0; background: transparent; }

/* ═══ SELECTION ═══ */
::selection { background: rgba(26, 86, 219, 0.15); }

/* Turnstile */
.cf-turnstile { margin-bottom: var(--fs-space-4); }
