/* ============================================================
   KuberAds — Light Professional Theme
   Font Awesome icons, white/blue fintech design
   ============================================================ */

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

:root {
    /* Colors */
    --primary:        #1a3a6b;
    --primary-mid:    #1e4db7;
    --primary-light:  #2563eb;
    --primary-soft:   #eff6ff;
    --accent:         #f97316;
    --accent-soft:    #fff7ed;
    --success:        #16a34a;
    --success-soft:   #f0fdf4;
    --danger:         #dc2626;
    --danger-soft:    #fef2f2;
    --warning:        #d97706;
    --warning-soft:   #fffbeb;
    --gold:           #b45309;
    --gold-light:     #f59e0b;

    /* Backgrounds */
    --bg:             #f4f6fb;
    --bg-white:       #ffffff;
    --bg-card:        #ffffff;
    --bg-header:      #000000;

    /* Text */
    --text:           #111827;
    --text-soft:      #374151;
    --text-muted:     #6b7280;
    --text-light:     #9ca3af;

    /* Borders */
    --border:         #e5e7eb;
    --border-mid:     #d1d5db;

    /* Layout */
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      16px;
    --shadow:         0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
    --nav-height:     64px;
    --header-height:  56px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box;-webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font-family: inherit; }

/* ---- App Shell ---- */
.app-wrapper { display: flex; justify-content: center; min-height: 100vh; background: #dde3ee; }
.app-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.top-header {
    background: var(--bg-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-circle {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.95rem;
}
.logo-text { font-size: 1.05rem; font-weight: 800; color: #ffffff; letter-spacing: 0.3px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    position: relative;
    transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.notif-btn { position: relative; }
.notif-badge {
    position: absolute; top: -3px; right: -3px;
    background: #ffffff; color: #000000;
    font-size: 0.58rem; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.lang-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.75rem; font-weight: 600; color: white;
    cursor: pointer;
}

/* ============================================================
   FLASH MESSAGE
   ============================================================ */
.flash-msg {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-success { background: #d1fae5; color: #065f46; border-bottom: 1px solid #a7f3d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fecaca; }
.flash-info    { background: #dbeafe; color: #1e40af; border-bottom: 1px solid #bfdbfe; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; padding-bottom: var(--nav-height); overflow-y: auto; background: var(--bg); }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    height: var(--nav-height);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 100;
}
.nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; padding: 8px 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    border: none; background: none;
}
.nav-item.active { color: var(--primary-light); }
.nav-item .nav-icon { font-size: 1.15rem; line-height: 1; }
.nav-item .nav-label { font-size: 0.65rem; font-weight: 600; }

/* ============================================================
   HERO / BANNER SECTION
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #1d4ed8 100%);
    padding: 20px 16px 40px;
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0; height: 24px;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
}
.hero-greeting { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.hero-name { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 14px; }
.hero-balance-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.hero-balance-val { font-size: 2.2rem; font-weight: 900; color: white; letter-spacing: -1px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 16px 10px;
}
.section-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.section-link { font-size: 0.78rem; color: var(--primary-light); font-weight: 600; }

/* ============================================================
   STAT CARDS (Home)
   ============================================================ */
.home-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.home-stat-card {
    border: solid 1px #acacac59;
    border-radius: var(--radius);
    padding: 16px 14px;
    display: flex; align-items: center; gap: 12px;
}
.stat-icon-wrap {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
}
.stat-icon-wrap.blue   { background: #eff6ff; color: #2563eb; }
.stat-icon-wrap.orange { background: #fff7ed; color: #ea580c; }
.stat-icon-wrap.green  { background: #f0fdf4; color: #16a34a; }
.stat-icon-wrap.gold   { background: #fef9c3; color: var(--gold); }
.stat-icon-wrap svg    { width: 20px; height: 20px; }
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ============================================================
   QUICK ACTIONS (Circular icons row)
   ============================================================ */
.quick-actions { display: flex; justify-content: space-around; padding: 4px 8px 16px; }
.quick-action {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    flex: 1;
}
.quick-action-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: white;
}
.quick-action-icon.blue   { border: solid 1px #3b82f6;color: #3b82f6; }
.quick-action-icon.orange { border: solid 1px #f97316;color: #f97316; }
.quick-action-icon.teal   { border: solid 1px #14b8a6;color: #14b8a6; }
.quick-action-icon.purple { border: solid 1px #8b5cf6;color: #8b5cf6; }
.quick-action-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-align: center; }

/* ============================================================
   TASK HALL CARDS
   ============================================================ */
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.task-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    border: 1px solid var(--border);
}
.task-card:hover { box-shadow: var(--shadow-md); }
.task-platform-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white; flex-shrink: 0;
}
.task-card-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.task-card-sub  { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   ACTIVITY TICKER
   ============================================================ */
.ticker-bar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0 16px 16px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    overflow: hidden;
}
.ticker-label {
    background: var(--primary-light); color: white;
    font-size: 0.65rem; font-weight: 800;
    padding: 3px 8px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
}
.ticker-text { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   CARDS (Generic)
   ============================================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-padded { padding: 16px; }

/* ============================================================
   FORMS (User)
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 0.75rem; font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.form-input {
    width: 100%; padding: 11px 12px;
    border: 1.5px solid var(--border-mid);
    color: var(--text);
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary-light); background: white; }
.form-select {
    width: 100%; padding: 11px 12px;
    background: var(--bg);
    border: 1.5px solid var(--border-mid);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none; appearance: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    width: 100%; padding: 13px;
    background: var(--primary-light);
    color: white;
    border: none; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-primary:hover { background: var(--primary); }
.btn-outline {
    width: 100%; padding: 11px;
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary-light);
    border-radius: 50px;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn-sm-primary {
    padding: 7px 16px;
    background: var(--primary-light); color: white;
    border: none; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
}
.btn-sm-outline {
    padding: 7px 16px;
    background: transparent; color: var(--primary-light);
    border: 1.5px solid var(--primary-light);
    border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.btn-accent {
    width: 100%; padding: 13px;
    background: var(--accent); color: white;
    border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
    display: flex;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: var(--header-height); z-index: 9;
}
.tab-item {
    flex: 1; padding: 12px 8px;
    text-align: center;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-item.active { color: var(--primary-light); border-bottom-color: var(--primary-light); }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page { min-height: 100vh; background: var(--bg); }
.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    padding: 40px 24px 60px;
    text-align: center;
}
.auth-logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15); border-radius: 18px;
    margin-bottom: 12px;
    font-size: 1.8rem; color: white;
}
.auth-title { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 4px; }
.auth-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.auth-card {
    background: white;
    border-radius: 20px 20px 0 0;
    margin-top: -24px;
    padding: 24px;
    min-height: calc(100vh - 180px);
    position: relative;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.auth-tabs {
    display: flex; gap: 0;
    border: solid 1px #1d479d;
    border-radius: 50px;
    padding: 3px;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1; padding: 10px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: 50px; cursor: pointer;
    transition: all 0.2s;
    border: none; background: transparent;
    font-family: inherit;
}
.auth-tab.active { background: #1d479d; color: #ffffff; }

/* ============================================================
   VIP PLANS
   ============================================================ */
.vip-current-card {
    margin: 16px;
    background: #3165ba;
    border-radius: var(--radius);
    padding: 20px 16px;
    color: white;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 14px;
}
.vip-card-text { flex: 1; }
.vip-sublabel { font-size: 0.7rem; color: rgba(255,255,255,0.65); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.vip-level-name { font-size: 1.3rem; font-weight: 800; color: white; margin: 4px 0; }
.vip-level-desc { font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.vip-upgrade { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
.vip-card-icon { font-size: 2.4rem; color: var(--gold-light); }

.plan-cards { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.plan-card {
    background: white; border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card-top {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    padding: 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.plan-card-top.gold  { background: linear-gradient(135deg, #92400e, #d97706); }
.plan-card-top.green { background: linear-gradient(135deg, #065f46, #10b981); }
.plan-name  { font-size: 1rem; font-weight: 800; color: white; }
.plan-price { font-size: 1.1rem; font-weight: 800; color: white; }
.plan-body  { padding: 14px 16px; }
.plan-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.plan-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem;
}
.plan-detail-row .lbl { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.plan-detail-row .lbl i { width: 14px; color: var(--primary-light); }
.plan-detail-row .val { font-weight: 700; color: var(--text); }
.plan-footer { border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.plan-min-note { font-size: 0.72rem; color: var(--text-muted); }
.plan-btn {
    background: var(--primary-light); color: white;
    border: none; padding: 9px 20px;
    border-radius: 20px; 
    font-weight: 400 !important; 
    font-size: 0.82rem;
    cursor: pointer; font-family: inherit;
    transition: background 0.2s;
}
.plan-btn:hover { background: var(--primary); }
.plan-btn.active { background: var(--success); cursor: default; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-header {
    background: linear-gradient(135deg, #3d86f6 0%, var(--primary-mid) 60%, #203777 100%);
    padding: 20px 16px 50px;
    position: relative;
}
.profile-user-row { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: white; flex-shrink: 0;
}
.profile-name  { font-size: 1.05rem; font-weight: 800; color: white; }
.profile-phone { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 3px; }
.profile-id    { font-size: 0.73rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

.profile-balance-card {
    margin: -30px 16px 16px;
    background: white;
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-md);
    position: relative; z-index: 2;
}
.balance-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.balance-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.balance-action-btn {
    font-size: 0.72rem; color: var(--primary-light); font-weight: 600;
    background: var(--primary-soft); border: none; padding: 4px 10px;
    border-radius: 12px; cursor: pointer; font-family: inherit;
}
.balance-amount { font-size: 1.8rem; font-weight: 900; color: var(--text); margin-bottom: 14px; }
.balance-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--border); padding-top: 14px; }
.balance-stat { text-align: center; }
.balance-stat:not(:last-child) { border-right: 1px solid var(--border); }
.balance-stat-val { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.balance-stat-lbl { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; }

.profile-action-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.profile-action-btn {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 6px;
    text-align: center; font-size: 0.73rem; color: var(--text-soft); font-weight: 600;
    box-shadow: var(--shadow); cursor: pointer; display: block;
    transition: box-shadow 0.2s;
}
.profile-action-btn:hover { box-shadow: var(--shadow-md); }
.profile-action-btn i { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.profile-action-btn.blue   i { color: var(--primary-light); }
.profile-action-btn.orange i { color: var(--accent); }
.profile-action-btn.green  i { color: var(--success); }

.profile-vip-widget {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #78350f, #b45309);
    border-radius: var(--radius); padding: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: 0 4px 16px rgba(180,83,9,0.3);
}
.vip-widget-title { font-size: 0.9rem; font-weight: 800; color: white; }
.vip-widget-text p { font-size: 0.75rem; color: rgba(255,255,255,0.75); margin-top: 4px; }
.btn-activate-vip {
    background: #fef3c7; color: #92400e;
    padding: 9px 16px; border-radius: 20px;
    font-weight: 800; font-size: 0.8rem; white-space: nowrap;
    border: none; cursor: pointer; font-family: inherit;
}

.profile-menu { margin: 0 16px 16px; background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 6px 10px;
    color: var(--text-soft); border-bottom: 1px solid var(--border);
    transition: background 0.15s; cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg); }
.menu-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.menu-label { flex: 1; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.menu-arrow { color: var(--text-light); font-size: 0.8rem; }
.menu-badge {
    background: var(--danger); color: white;
    font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 8px;
}

/* ============================================================
   WALLET / RECORDS
   ============================================================ */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    border-radius: var(--radius); margin: 16px; padding: 20px 16px;
    box-shadow: var(--shadow-md);
}
.wallet-bal-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.wallet-bal-val { font-size: 2rem; font-weight: 900; color: white; margin-bottom: 16px; }
.wallet-btns { display: flex; gap: 10px; }
.wallet-btn {
    flex: 1; padding: 10px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 700; cursor: pointer; font-family: inherit;
    border: none; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wallet-btn.primary { background: white; color: var(--primary); }
.wallet-btn.outline { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.4); }

.form-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 16px;}
.form-card-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

.quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.amount-chip {
    padding: 7px 14px; border-radius: 20px;
    border: 1.5px solid var(--border-mid);
    font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    text-align: center;
}
.amount-chip:hover {
    background: var(--primary-soft); border-color: var(--primary-light); color: var(--primary-light);
}

.amount-chip.selected {
    background: var(--primary-light); border-color: var(--primary-light); color: #ffffff;
}

.info-box {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: 0.78rem; color: #1e40af; line-height: 1.6; margin-bottom: 14px;
    display: flex; gap: 8px; align-items: flex-start;
}
.info-box i { margin-top: 2px; flex-shrink: 0; }

/* Transactions */
.tx-item {
    display: flex; align-items: center; gap: 12px;
    background: white; border-radius: var(--radius-sm);
    padding: 13px 14px; border: 1px solid var(--border);
}
.tx-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.tx-icon.credit { background: var(--success-soft); color: var(--success); }
.tx-icon.debit  { background: var(--danger-soft);  color: var(--danger); }
.tx-info { flex: 1; min-width: 0; }
.tx-type { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.tx-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.tx-amount { font-size: 0.95rem; font-weight: 800; white-space: nowrap; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }
.badge-status { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 0.62rem; font-weight: 700; }
.badge-pending   { background: #f8b306; color: #ffffff; }
.badge-agreed  { background: #0c54c1; color: #ffffff; }
.badge-paying  { background: #e55305; color: #ffffff; }
.badge-completed { background: #0cc145; color: #ffffff; }
.badge-approved  { background: #0cc145; color: #ffffff; }
.badge-rejected  { background: #ca1111; color: #ffffff; }

/* ============================================================
   REFERRAL
   ============================================================ */
.referral-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    padding: 28px 20px; text-align: center; color: white;
}
.referral-hero h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.referral-hero p  { font-size: 0.82rem; opacity: 0.8; }
.referral-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.referral-stat-card { border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; border: 1px solid var(--border); }
.referral-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.referral-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.referral-link-card { margin: 0 16px 12px; background: white; border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); }
.referral-link-row { display: flex; gap: 8px; margin-top: 6px; }
.referral-link-input { flex: 1; border: 1.5px solid var(--border-mid); color: var(--text-muted); padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; outline: none; }
.btn-copy {
    background: var(--primary-light); color: white; border: none;
    padding: 9px 14px; border-radius: var(--radius-sm); font-size: 0.8rem;
    cursor: pointer; white-space: nowrap; font-family: inherit;
}
.invited-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.invited-item { display: flex; align-items: center; gap: 12px; background: white; border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); }
.invited-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: var(--primary-light); flex-shrink: 0; }
.invited-info { flex: 1; min-width: 0; }
.invited-phone { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.invited-date  { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.invited-bonus { font-size: 0.9rem; font-weight: 800; color: var(--success); }

/* ============================================================
   VIDEO PAGE
/* ============================================================
   VIDEO WATCH PAGE
   ============================================================ */
/* Step Indicator */
.video-phase-indicator {
    display: flex; align-items: center; padding: 14px 16px; gap: 0;
    background: white; border-bottom: 1px solid var(--border);
}
.phase-step {
    flex: 1; text-align: center; padding: 8px 4px;
    font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    position: relative;
}
.phase-step::after {
    content: ''; position: absolute; top: 50%; right: -50%;
    width: 100%; height: 2px; background: var(--border); z-index: 0;
    transform: translateY(-50%);
}
.phase-step:last-child::after { display: none; }
.phase-step-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border: 2px solid var(--border);
    font-size: 0.9rem; color: var(--text-muted); z-index: 1; position: relative;
    transition: all 0.3s;
}
.phase-step.active .phase-step-icon { background: var(--primary-light); border-color: var(--primary-light); color: white; }
.phase-step.active { color: var(--primary-light); }
.phase-step.done   .phase-step-icon { background: var(--success); border-color: var(--success); color: white; }
.phase-step.done   { color: var(--success); }
/* Also support old class for backward compat */
.video-phase-bar { display: flex; gap: 6px; padding: 12px 16px; }

/* Video wrapper */
.video-wrapper {
    width: calc(100% - 28px); margin: 12px 14px;
    aspect-ratio: 16/9; background: #000;
    border-radius: var(--radius); overflow: hidden;
    position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Force YouTube iframe to push bottom controls bar outside visible box */
.video-wrapper iframe {
    width: 100% !important;
    height: calc(100% + 56px) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border: none !important;
}

/* Bottom mask: Sleek black bar that completely hides Share, Watch Later, Recommendations & YouTube button */
.video-bottom-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #000;
    z-index: 20;
    pointer-events: auto;
}

/* Click shield: Transparent layer preventing user interaction from triggering YouTube overlays or external redirects */
.video-click-shield {
    position: absolute;
    inset: 0;
    bottom: 48px;
    z-index: 15;
    background: transparent;
    cursor: pointer;
}

/* Watching overlay */
.watching-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.88);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    z-index: 90;
}
.watching-overlay.show { opacity: 1; pointer-events: auto !important; }
.watching-text { font-size: 1rem; font-weight: 700; color: white; text-align: center; }
.watching-countdown { font-size: 2.4rem; font-weight: 900; color: #fbbf24; }
.btn-watching {
    background: var(--success); color: white; border: none;
    padding: 12px 28px; border-radius: 24px; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px;
    pointer-events: auto !important;
}

/* Captcha section */
.captcha-section {
    padding: 24px 16px; text-align: center;
    background: white; margin: 12px 14px;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.captcha-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.captcha-desc  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.captcha-question {
    font-size: 2.4rem; font-weight: 900; color: var(--primary-light);
    background: var(--primary-soft); padding: 14px 28px; border-radius: var(--radius);
    display: inline-block; margin-bottom: 16px; letter-spacing: 2px;
}
.captcha-input {
    width: 100%; max-width: 200px; text-align: center;
    font-size: 1.6rem; font-weight: 800; letter-spacing: 4px;
    padding: 12px; border: 2px solid var(--border-mid);
    border-radius: var(--radius-sm); background: white; margin: 0 auto 14px; display: block;
    outline: none; font-family: inherit;
}
.captcha-input:focus { border-color: var(--primary-light); }
.reward-info {
    background: var(--success-soft); border: 1px solid #a7f3d0;
    border-radius: 8px; padding: 10px 14px; font-size: 0.82rem;
    color: var(--success); font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}

/* Success screen */
.success-overlay {
    background: white; border-radius: var(--radius);
    padding: 36px 20px 28px; text-align: center;
    margin: 12px 14px; box-shadow: var(--shadow);
    border: 1px solid #d1fae5;
}
.success-check  { margin-bottom: 14px; }
.success-title  { font-size: 1.25rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.success-amount { font-size: 2.4rem; font-weight: 900; color: var(--success); margin: 14px 0; letter-spacing: -1px; }
/* Legacy compat */
.success-card { background: white; border-radius: var(--radius); padding: 32px 20px; text-align: center; margin: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.success-icon  { font-size: 3rem; color: var(--success); margin-bottom: 10px; }



/* ============================================================
   RANKING
   ============================================================ */
.ranking-hero { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); padding: 24px 16px 14px; text-align: center; }
.ranking-hero h2 { font-size: 1.2rem; font-weight: 800; color: white; }
.podium-row { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 16px 16px 0; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.podium-avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid white; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: var(--primary); }
.podium-item.first .podium-avatar { width: 64px; height: 64px; border-color: var(--gold-light); }
.podium-bar { width: 100%; border-radius: 8px 8px 0 0; background: rgba(255,255,255,0.2); }
.podium-item.first  .podium-bar { height: 70px; background: rgba(255,255,255,0.3); }
.podium-item.second .podium-bar { height: 50px; }
.podium-item.third  .podium-bar { height: 35px; }
.podium-name { font-size: 0.68rem; font-weight: 700; color: white; text-align: center; }

.ranking-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.ranking-item { display: flex; align-items: center; gap: 12px; background: white; border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.rank-num { width: 28px; font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-align: center; }
.rank-info { flex: 1; }
.rank-phone  { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.rank-detail { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.rank-value  { font-size: 0.9rem; font-weight: 800; color: var(--primary-light); }
.ranking-tabs { display: flex; background: white; border-bottom: 1px solid var(--border); }
.ranking-tab { flex: 1; padding: 12px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; cursor: pointer; border-top: none; border-left: none; border-right: none; background: none; font-family: inherit; }
.ranking-tab.active { color: var(--primary-light); border-bottom-color: var(--primary-light); }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.page-header-back {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; height: 50px; background: white;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-top: 0;
}
.back-btn {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--bg); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); cursor: pointer; font-size: 0.82rem;
    flex-shrink: 0; text-decoration: none; transition: background 0.15s;
}
.back-btn:hover { background: var(--primary-soft); }
.page-header-title { font-size: 0.95rem; font-weight: 800; color: var(--text); flex: 1; }

.vip-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white; font-size: 0.62rem; padding: 2px 7px; border-radius: 6px; font-weight: 800;
    vertical-align: middle;
}

.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 3rem; color: var(--text-light); margin-bottom: 12px; }
.empty-state p { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* Lang Modal */
.lang-modal { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.lang-modal.active { pointer-events: all; }
.lang-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s; }
.lang-modal.active .lang-backdrop { opacity: 1; }
.lang-options {
    position: absolute; top: var(--header-height); right: 8px;
    background: white; border-radius: var(--radius); padding: 8px;
    min-width: 180px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
    transform: translateY(-10px) scale(0.95); opacity: 0;
    transition: all 0.2s;
}
.lang-modal.active .lang-options { transform: translateY(0) scale(1); opacity: 1; }
.lang-option-title { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 8px 8px; }
.lang-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    font-size: 0.875rem; font-weight: 500; color: var(--text);
    transition: background 0.15s;
}
.lang-opt:hover { background: var(--bg); }
.lang-opt i { width: 18px; color: var(--primary-light); }

/* Toast */
.toast-container { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: rgb(36, 24, 24); padding: 10px 20px; border-radius: 24px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* PWA Modal */
.pwa-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9998; display: flex; align-items: flex-end; justify-content: center; }
.pwa-modal.hidden { display: none; }
.pwa-modal-inner { background: white; border-radius: 20px 20px 0 0; padding: 28px 24px 40px; width: 100%; max-width: 430px; text-align: center; }
.pwa-modal-inner h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.pwa-modal-inner p  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }

/* Banner Slider */
.banner-slider { overflow: hidden; margin: 0 16px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.banner-slide { background: linear-gradient(135deg, var(--primary-mid), var(--primary-light)); padding: 20px; border-radius: var(--radius); color: white; }
.banner-slide h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.banner-slide p  { font-size: 0.78rem; opacity: 0.85; }

/* Activity Feed */
.activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.activity-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--primary-light); flex-shrink: 0; }
.activity-text { flex: 1; font-size: 0.78rem; color: var(--text-muted); }
.activity-amount { font-size: 0.82rem; font-weight: 700; color: var(--success); }

/* Bank Cards */
.bank-card-item { background: white; border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.bank-card-item.primary-card { border-color: var(--primary-light); border-width: 2px; }
