@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

:root {
    --green: #16a34a;
    --green-light: #22c55e;
    --green-mid: #15803d;
    --green-btn: #16a34a;
    --green-bg: #f0fdf4;
    --accent: #4ade80;
    --text: #111827;
    --gray: #6b7280;
    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
    --radius: 18px;
    --radius-sm: 12px;
}

/* ===================== HERO HEADER ===================== */
.hero-header {
    background: linear-gradient(145deg, var(--green-mid) 0%, var(--green) 60%, var(--green-light) 100%);
    padding: 0; position: relative; overflow: hidden;
    min-height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.hero-header::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
}
.hero-header::after {
    content: ''; position: absolute; left: -50px; bottom: -70px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}
.hero-brand { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: 2px; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.hero-tagline { color: rgba(255,255,255,0.85); font-size: 13px; z-index: 2; margin-top: 4px; font-weight: 500; }

/* ===================== LOGO CIRCLE ===================== */
.logo-circle {
    width: 84px; height: 84px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.20); margin: 0 auto 14px; z-index: 2; position: relative;
    border: 3px solid rgba(255,255,255,0.7);
}
.logo-circle svg { width: 50px; height: 50px; }

/* ===================== HOME TOPBAR ===================== */
.topbar-home {
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 100%);
    padding: 14px 18px; display: flex; align-items: center;
    justify-content: space-between; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.topbar-home-title { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.topbar-icons { display: flex; gap: 12px; }
.topbar-icons svg { width: 22px; height: 22px; color: rgba(255,255,255,0.9); cursor: pointer; }

/* ===================== PAGE TOPBAR ===================== */
.page-topbar {
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    color: #fff; padding: 16px 18px; font-size: 17px; font-weight: 800;
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}
.back-arrow {
    width: 36px; height: 36px; background: rgba(255,255,255,0.18);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 20px; font-weight: 700;
    flex-shrink: 0; border: 1px solid rgba(255,255,255,0.25);
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 448px;
    background: #fff; display: flex;
    z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}
.nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; padding: 12px 0 10px;
    color: #9ca3af; text-decoration: none; font-size: 10px; font-weight: 700;
    transition: all 0.2s; position: relative;
}
.nav-item.active { color: var(--green); }
.nav-item.active svg { filter: drop-shadow(0 2px 4px rgba(22,163,74,0.35)); }
.nav-item svg { width: 22px; height: 22px; margin-bottom: 4px; }
.nav-item span { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }

/* ===================== MAIN CONTENT ===================== */
.main-content { padding-bottom: 96px; }

/* ===================== BALANCE HERO CARD ===================== */
.balance-hero {
    margin: 16px 16px 0;
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 60%, #4ade80 100%);
    border-radius: 22px; padding: 22px 20px 20px;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 28px rgba(22,163,74,0.35);
}
.balance-hero::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; background: rgba(255,255,255,0.08); border-radius: 50%;
}
.balance-hero::after {
    content: ''; position: absolute; left: -30px; bottom: -50px;
    width: 140px; height: 140px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.balance-hero-label { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; z-index: 1; position: relative; }
.balance-hero-amount { color: #fff; font-size: 38px; font-weight: 900; margin: 4px 0 2px; z-index: 1; position: relative; letter-spacing: -1px; }
.balance-hero-sub { display: flex; gap: 16px; margin-top: 14px; z-index: 1; position: relative; }
.balance-hero-sub-item { background: rgba(255,255,255,0.15); border-radius: 12px; padding: 10px 14px; flex: 1; border: 1px solid rgba(255,255,255,0.2); }
.balance-hero-sub-item .lbl { color: rgba(255,255,255,0.75); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.balance-hero-sub-item .val { color: #fff; font-size: 17px; font-weight: 800; margin-top: 2px; }

/* ===================== QUICK ACTIONS ===================== */
.quick-actions {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; padding: 16px 16px 4px;
}
/* ===== QUICK ACTION BUTTONS — LIGHT STYLE ===== */
.qa-item { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; text-decoration: none !important; }
.qa-icon {
    width: 58px !important; height: 58px !important; border-radius: 18px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: transform 0.18s !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
}
.qa-icon:active { transform: scale(0.90) !important; }
.qa-icon svg { width: 26px !important; height: 26px !important; fill: none !important; stroke: #374151 !important; }
.qa-label { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.2px !important; color: #374151 !important; }

.qa-checkin  { background: #fff4ed !important; } .qa-checkin svg  { stroke: #f97316 !important; } .qa-label-checkin  { color: #f97316 !important; }
.qa-records  { background: #f5f0ff !important; } .qa-records svg  { stroke: #7c3aed !important; } .qa-label-records  { color: #7c3aed !important; }
.qa-deposit  { background: #ecfeff !important; } .qa-deposit svg  { stroke: #0891b2 !important; } .qa-label-deposit  { color: #0891b2 !important; }
.qa-withdraw { background: #f0fdf4 !important; } .qa-withdraw svg { stroke: #059669 !important; } .qa-label-withdraw { color: #059669 !important; }
.qa-orders   { background: #fff1f2 !important; } .qa-orders svg   { stroke: #e11d48 !important; } .qa-label-orders   { color: #e11d48 !important; }
.qa-support  { background: #eff6ff !important; } .qa-support svg  { stroke: #2563eb !important; } .qa-label-support  { color: #2563eb !important; }

/* ===================== SECTION HEADER ===================== */
.section-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 10px;
}
.section-hdr-title { font-size: 15px; font-weight: 800; color: #111827; letter-spacing: 0.2px; }
.section-hdr-link { font-size: 12px; font-weight: 700; color: var(--green); text-decoration: none; }

/* ===================== PLAN CARD ===================== */
.plan-card {
    background: #fff; border-radius: var(--radius);
    margin: 0 16px 14px; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.plan-card-top {
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    padding: 14px 16px 12px; display: flex; align-items: center; justify-content: space-between;
}
.plan-card-top-title { color: #fff; font-size: 15px; font-weight: 800; }
.plan-badge {
    background: rgba(255,255,255,0.22); color: #fff;
    border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
}
.plan-card-body { padding: 14px 16px; }
.plan-info-row { display: flex; align-items: center; gap: 14px; }
.plan-icon { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.plan-icon-placeholder {
    width: 72px; height: 72px; background: var(--green-bg); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0;
    border: 1px solid rgba(22,163,74,0.15);
}
.plan-stats { display: flex; gap: 24px; flex: 1; }
.plan-stat { display: flex; flex-direction: column; }
.plan-stat .val { font-size: 20px; font-weight: 900; color: var(--green); }
.plan-stat .lbl { font-size: 10px; color: #9ca3af; margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f3f4f6; }
.plan-price { font-size: 18px; font-weight: 900; color: #111827; }
.plan-price span { font-size: 12px; color: #9ca3af; font-weight: 500; }
.plan-timer {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; border: none; border-radius: 20px; padding: 10px 20px;
    font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

/* ===================== FEED ===================== */
.feed-card {
    background: #fff; border-radius: var(--radius);
    margin: 0 16px 14px; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
}
.feed-header {
    padding: 14px 16px 10px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.feed-header-dot {
    width: 8px; height: 8px; background: #22c55e;
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.feed-header-title { font-size: 13px; font-weight: 800; color: #111827; }
.feed-wrapper { height: 200px; overflow: hidden; position: relative; }
.feed-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 50px; background: linear-gradient(to top, #fff, transparent); z-index: 2;
}
.feed-scroll { display: flex; flex-direction: column; animation: feedScrollUp 28s linear infinite; }
.feed-scroll:hover { animation-play-state: paused; }
@keyframes feedScrollUp { 0%{transform:translateY(0)} 100%{transform:translateY(-50%)} }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f9fafb; }
.feed-avatar { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.feed-text { flex: 1; }
.feed-name { font-size: 12px; font-weight: 700; color: #374151; }
.feed-desc { font-size: 11px; font-weight: 600; margin-top: 1px; }
.feed-time { font-size: 10px; color: #d1d5db; font-weight: 600; }

/* ===================== BANNER SLIDER ===================== */
.banner-slider { overflow: hidden; position: relative; background: #e5e7eb; width: 100%; display: block; }
.banner-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.banner-slide { min-width: 100%; width: 100%; height: 200px; flex-shrink: 0; overflow: hidden; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 5; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.3s; }
.banner-dot.active { background: #fff; width: 20px; border-radius: 3px; }

/* ===================== AUTH PAGES ===================== */
.auth-page { background: #fff; min-height: 100vh; }
.auth-form { padding: 28px 22px 100px; }
.form-group { margin-bottom: 20px; }
.form-label { font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 8px; display: block; letter-spacing: 0.4px; text-transform: uppercase; }
.input-wrap {
    display: flex; align-items: center;
    border: 2px solid #e5e7eb; border-radius: 14px; padding: 0 16px;
    background: #f9fafb; transition: all 0.2s;
}
.input-wrap:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(22,163,74,0.10); }
.input-wrap svg { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; }
.input-wrap input { flex: 1; border: none; background: transparent; padding: 14px 10px; font-size: 15px; outline: none; color: #111827; font-weight: 500; }
.input-wrap input::placeholder { color: #d1d5db; }
.send-otp-btn {
    background: var(--green); color: #fff; border: none;
    border-radius: 10px; padding: 10px 14px; font-size: 12px; font-weight: 700;
    cursor: pointer; white-space: nowrap; margin-left: 8px;
}
.send-otp-btn:disabled { background: #d1d5db; cursor: not-allowed; }
.eye-btn { background: none; border: none; cursor: pointer; padding: 4px; }
.eye-btn svg { color: #9ca3af; width: 20px; height: 20px; }
.main-btn {
    display: block; width: 100%;
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    color: #fff; border: none; border-radius: 14px; padding: 16px;
    font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 8px;
    text-align: center; text-decoration: none;
    box-shadow: 0 6px 20px rgba(22,163,74,0.30); letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.main-btn:active { transform: scale(0.98); }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: #6b7280; font-weight: 500; }
.auth-footer a { color: var(--green); font-weight: 800; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.auth-divider span { font-size: 12px; color: #9ca3af; font-weight: 600; }
.error-msg { background: #fef2f2; color: #dc2626; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 600; border-left: 4px solid #ef4444; }
.success-msg { background: #f0fdf4; color: #16a34a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 600; border-left: 4px solid #22c55e; }

/* ===================== TAB BAR ===================== */
.tab-bar {
    display: flex; background: #f3f4f6; border-radius: 14px;
    margin: 14px 16px; padding: 4px; gap: 4px;
}
.tab-btn {
    flex: 1; text-align: center; padding: 10px 0; border-radius: 10px;
    font-size: 13px; font-weight: 700; color: #6b7280;
    cursor: pointer; border: none; background: transparent; transition: all 0.2s; text-decoration: none;
}
.tab-btn.active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

/* ===================== PRODUCT CARDS ===================== */
.product-card {
    background: #fff; border-radius: var(--radius);
    margin: 0 16px 14px; padding: 0; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
}
.product-card-header {
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.product-badge { color: #fff; font-size: 14px; font-weight: 800; }
.product-days { background: rgba(255,255,255,0.2); color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.3); }
.product-body { padding: 14px 16px; }
.product-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-icon-wrap {
    width: 80px; height: 80px; border-radius: 14px; overflow: hidden;
    background: var(--green-bg); display: flex; align-items: center; justify-content: center;
    font-size: 40px; flex-shrink: 0; border: 1px solid rgba(22,163,74,0.12);
}
.product-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-nums { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.product-num .val { font-size: 18px; font-weight: 900; color: var(--green); }
.product-num .lbl { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 1px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.product-price { font-size: 20px; font-weight: 900; color: #111827; }
.buy-btn {
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    color: #fff; border: none; border-radius: 10px; padding: 10px 22px;
    font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 12px rgba(22,163,74,0.28);
}
.plan-timer {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; border: none; border-radius: 10px; padding: 10px 18px;
    font-size: 14px; font-weight: 800; cursor: pointer; letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(249,115,22,0.30);
}

/* ===================== PROFILE ===================== */
.profile-hero {
    background: linear-gradient(145deg, var(--green-mid), var(--green));
    padding: 24px 18px 60px; position: relative; overflow: hidden;
}
.profile-hero::before { content:''; position:absolute; right:-50px; top:-50px; width:200px; height:200px; background:rgba(255,255,255,0.08); border-radius:50%; }
.logout-btn {
    position: absolute; top: 20px; right: 18px; width: 40px; height: 40px;
    background: rgba(255,255,255,0.18); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
}
.profile-info { display: flex; align-items: center; gap: 14px; }
.profile-avatar-wrap {
    width: 66px; height: 66px; border-radius: 18px; overflow: hidden;
    background: rgba(255,255,255,0.2); display: flex; align-items: center;
    justify-content: center; font-size: 28px; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { color: #fff; font-size: 20px; font-weight: 900; }
.profile-id-badge {
    display: inline-block; margin-top: 6px; background: rgba(255,255,255,0.2);
    border-radius: 20px; padding: 4px 14px; color: rgba(255,255,255,0.9);
    font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,0.3);
}
.balance-card {
    background: #fff; border-radius: 22px; margin: -36px 16px 0;
    padding: 20px 12px; display: flex; box-shadow: var(--shadow-lg);
    position: relative; z-index: 10; border: 1px solid rgba(0,0,0,0.05);
}
.balance-col { flex: 1; text-align: center; }
.balance-col + .balance-col { border-left: 1px solid #f3f4f6; }
.balance-amount { font-size: 18px; font-weight: 900; color: #111827; margin-bottom: 3px; }
.balance-label { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.menu-section { margin: 14px 16px 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.menu-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    border-bottom: 1px solid #f9fafb; text-decoration: none; color: #111827;
    font-size: 14px; font-weight: 600; transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f9fafb; }
.menu-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    display: flex; align-items: center; justify-content: center;
}
.menu-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.menu-text { flex: 1; font-size: 14px; font-weight: 600; }
.menu-arrow { color: #d1d5db; font-size: 20px; }
.menu-chevron { margin-left: auto; color: #d1d5db; }
.menu-chevron svg { width: 16px; height: 16px; }

/* ===================== PROMOTION ===================== */
.ref-card { background: #fff; border-radius: var(--radius); margin: 14px 16px; padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.ref-link-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ref-link-box {
    flex: 1; border: 2px dashed #d1fae5; border-radius: 12px; padding: 11px 14px;
    font-size: 12px; color: #374151; display: flex; align-items: center; gap: 8px;
    overflow: hidden; background: #f0fdf4; font-weight: 500;
}
.ref-link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    color: #fff; border: none; border-radius: 12px; padding: 12px 18px;
    font-weight: 800; font-size: 13px; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(22,163,74,0.25);
}
.stats-row { display: flex; gap: 10px; }
.stat-box { flex: 1; background: #f0fdf4; border-radius: 14px; padding: 14px; text-align: center; border: 1px solid #d1fae5; }
.stat-box .sv { font-size: 22px; font-weight: 900; color: var(--green); }
.stat-box .sl { font-size: 10px; color: #6b7280; margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.level-card { background: #fff; border-radius: var(--radius); margin: 0 16px 14px; padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.level-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.level-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: #111827; }
.level-dot { width: 16px; height: 16px; background: linear-gradient(135deg, var(--green-mid), var(--green)); border-radius: 6px; }
.view-more { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.level-stats { background: #f0fdf4; border-radius: 12px; padding: 14px; display: flex; border: 1px solid #d1fae5; }
.level-stat { flex: 1; text-align: center; }
.level-stat .lv { font-size: 18px; font-weight: 900; color: var(--green); }
.level-stat .ll { font-size: 10px; color: #6b7280; margin-top: 3px; font-weight: 600; text-transform: uppercase; }
.how-it-works { background: #fff; border-radius: var(--radius); margin: 0 16px 14px; padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.how-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin-bottom: 12px; color: #111827; }
.how-bullet { width: 10px; height: 10px; background: linear-gradient(135deg, var(--green-mid), var(--green)); border-radius: 50%; }
.how-text { font-size: 13px; color: #6b7280; line-height: 1.8; }
.how-text strong { color: var(--green); font-weight: 700; }

/* ===================== CARDS ===================== */
.card { background: #fff; border-radius: var(--radius); padding: 18px; margin: 0 16px 14px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }

/* ===================== MODALS ===================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(6px);
}
.modal-box { background: #fff; border-radius: 24px; padding: 28px 22px; max-width: 380px; width: 100%; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.25); }
.modal-title { background: linear-gradient(135deg, var(--green-mid), var(--green)); color: #fff; text-align: center; border-radius: 14px; padding: 10px 20px; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; background: #fee2e2; color: #dc2626; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 16px; font-weight: 900; }
.modal-row { text-align: center; font-size: 13px; color: #4b5563; margin: 8px 0; line-height: 1.6; font-weight: 500; }
.modal-info-icon { color: var(--green); font-size: 22px; }
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; border-radius: 14px; padding: 14px; margin-top: 16px; font-size: 14px; font-weight: 800; text-decoration: none; border: none; cursor: pointer; width: 100%; box-shadow: 0 4px 16px rgba(14,165,233,0.30); }

/* ===================== FLASH / ALERTS ===================== */
.flash { padding: 12px 16px; border-radius: 12px; margin: 12px 16px; font-size: 13px; font-weight: 600; }
.flash-err { background: #fef2f2; color: #dc2626; border-left: 4px solid #ef4444; }
.flash-ok { background: #f0fdf4; color: #16a34a; border-left: 4px solid #22c55e; }

/* ===================== CHECKIN ===================== */
.checkin-btn {
    display: block; width: 100%;
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    color: #fff; border: none; border-radius: 14px; padding: 16px;
    font-size: 16px; font-weight: 800; cursor: pointer; text-align: center;
    margin-top: 12px; box-shadow: 0 6px 20px rgba(22,163,74,0.28);
}
.checkin-btn:disabled { background: #e5e7eb; color: #9ca3af; box-shadow: none; cursor: default; }

/* ===================== GATEWAY / RECHARGE ===================== */
.gateway-card {
    border: 2px solid #e5e7eb; border-radius: 14px; padding: 16px;
    cursor: pointer; transition: all .2s; margin-bottom: 12px;
    display: flex; align-items: center; gap: 14px; background: #fff;
}
.gateway-card.selected, .gateway-card:hover { border-color: var(--green); background: #f0fdf4; box-shadow: 0 0 0 3px rgba(22,163,74,0.10); }
.gateway-card input[type=radio] { display:none; }
.gateway-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--green-mid), var(--green)); display: flex; align-items: center; justify-content:center; font-size: 24px; flex-shrink: 0; }
.gateway-name { font-weight: 800; font-size: 14px; color: #111827; }
.gateway-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; font-weight: 500; }
.check-circle { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d1d5db; display: flex; align-items:center; justify-content:center; flex-shrink: 0; }
.gateway-card.selected .check-circle { background: var(--green); border-color: var(--green); color: #fff; }

/* ===================== OTP BOXES ===================== */
.otp-status { font-size: 12px; margin-top: 6px; padding: 8px 12px; border-radius: 10px; display:none; font-weight: 600; }
.otp-status.success { background: #f0fdf4; color: var(--green); display:block; border-left: 3px solid #22c55e; }
.otp-status.error { background: #fef2f2; color: #dc2626; display:block; border-left: 3px solid #ef4444; }
.otp-status.info { background: #eff6ff; color: #1d4ed8; display:block; border-left: 3px solid #3b82f6; }
.countdown { font-size: 12px; color: #9ca3af; margin-top: 4px; display:none; font-weight: 500; }
.otp-boxes { display:flex; gap: 8px; }
.otp-boxes input {
    width: 44px; height: 52px; text-align: center; font-size: 22px;
    font-weight: 800; border: 2px solid #e5e7eb; border-radius: 12px;
    outline: none; transition: all .2s; background: #f9fafb;
    font-family: inherit;
}
.otp-boxes input:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }

/* ===================== EARNINGS/ACTION ROW ===================== */
.action-row { display: flex; gap: 12px; padding: 14px 16px; }
.action-card { flex: 1; background: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); text-decoration: none; color: #111827; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid rgba(0,0,0,0.04); }
.action-card svg { width: 28px; height: 28px; color: var(--green); }
.earnings-row { display: flex; gap: 12px; padding: 0 16px 14px; }
.earnings-card { flex: 1; background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.earnings-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; margin-right: 6px; }
.earnings-label { font-size: 11px; color: #6b7280; margin-bottom: 6px; font-weight: 600; }
.earnings-val { font-size: 22px; font-weight: 900; color: var(--green); }
.section-title { font-size: 14px; font-weight: 800; padding: 4px 16px 10px; color: #111827; }

/* ===================== PROFILE HEADER (non-hero version) ===================== */
.profile-header { background: linear-gradient(135deg, var(--green-mid), var(--green)); padding: 20px 18px; display: flex; align-items: center; gap: 12px; position: relative; }
.profile-avatar { width: 54px; height: 54px; background: rgba(255,255,255,0.2); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 2px solid rgba(255,255,255,0.4); }
.profile-phone { color: #fff; font-size: 17px; font-weight: 800; }
.profile-orders { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.4); color: #fff; border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.profile-withdraw-bar { background: rgba(255,255,255,0.14); margin: 10px 18px 0; border-radius: 12px; padding: 10px 16px; color: rgba(255,255,255,0.9); font-size: 13px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ===================== MISC ===================== */
.page-topbar a[style*="position:absolute"] { display: none; }
.promo-header { background: linear-gradient(135deg, var(--green-mid), var(--green)); padding: 0; }
.promo-title { color: #fff; font-size: 22px; font-weight: 900; text-align: center; padding: 16px 0 20px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 360px) {
    .balance-hero-amount { font-size: 32px; }
    .qa-icon { width: 50px; height: 50px; border-radius: 16px; }
    .quick-actions { gap: 8px; padding: 14px 12px 4px; }
}
