
/* =========================================
   1. CORE VARIABLES, FONTS & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Inter:wght@400;600;800&family=Oswald:wght@500;700&display=swap');

:root {
    /* --- COLOR PALETTE --- */
    --primary: #FF3D3D; /* HGZY Signature Red */
    --primary-dark: #D32F2F;
    --primary-soft: #FFEBEE;
    
    --grad-primary: linear-gradient(135deg, #FF5F5F 0%, #FF2E2E 100%);
    --grad-gold: linear-gradient(135deg, #FDD835 0%, #F57F17 100%);
    --grad-agency: linear-gradient(180deg, #FF7E5F 0%, #FEB47B 100%); /* Orange Gradient for Agency */
    --grad-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
    
    --bg-body: #F2F4F8;
    --bg-card: #FFFFFF;
    
    --text-main: #212121;
    --text-sub: #757575;
    
    /* --- SHADOWS --- */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-float: 0 15px 35px rgba(0,0,0,0.12);
    --shadow-glow: 0 5px 15px rgba(255, 61, 61, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for Bottom Nav */
    overflow-x: hidden;
}

/* Mobile Container Constraint */
.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* UTILITIES */
.hidden { display: none !important; }
.text-red { color: #E53935; }
.text-green { color: #43A047; }
.text-gold { color: #FFC107; }
.text-blue { color: #2196F3; }
.bold { font-weight: 700; }

.full-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.full-btn:active { transform: scale(0.97); }

.btn-primary { 
    background: var(--grad-primary); 
    box-shadow: var(--shadow-glow); 
}
.btn-danger { background: #E53935; box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3); }
.btn-gold { background: var(--grad-gold); color: #333; box-shadow: 0 4px 10px rgba(253, 216, 53, 0.4); }

/* =========================================
   2. AUTH PAGE DESIGN (LOGIN / REGISTER)
   ========================================= */
.auth-wrap {
    background: #fff;
    min-height: 100vh;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
}

.auth-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}
.auth-nav-top i { font-size: 20px; color: #333; cursor: pointer; padding: 5px; }
.auth-title { 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--primary); 
    font-family: 'Oswald', sans-serif; 
    letter-spacing: 1px;
    font-style: italic;
}
.lang-flag { 
    display: flex; align-items: center; gap: 6px; 
    font-size: 13px; color: #555; 
    border: 1px solid #eee; padding: 5px 12px; border-radius: 20px; 
    background: #FAFAFA;
}
.lang-flag img { width: 22px; border-radius: 2px; }

/* Auth Headers */
.auth-header-text { margin-bottom: 35px; }
.auth-header-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; color: #1a1a1a; letter-spacing: -0.5px; }
.auth-header-text p { color: var(--text-sub); font-size: 14px; }

/* Input Fields (Professional) */
.inp-field {
    position: relative;
    background: #F5F7FA;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    padding: 4px 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.inp-field:focus-within { 
    border-color: var(--primary); 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.1);
}

.inp-field .icon { 
    color: var(--primary); 
    font-size: 20px; 
    width: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.inp-field .prefix { 
    font-weight: 600; 
    color: #333; 
    margin-right: 12px; 
    padding-right: 12px; 
    border-right: 1px solid #ddd; 
    font-size: 15px;
}
.inp-field input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 16px;
    outline: none;
    color: #333;
    font-weight: 500;
}
.inp-field .eye { color: #ccc; cursor: pointer; padding: 5px; font-size: 18px; transition: color 0.2s; }
.inp-field .eye:hover { color: #333; }

/* Checkbox */
.agree-box { 
    display: flex; align-items: flex-start; gap: 10px; 
    font-size: 13px; margin-bottom: 30px; color: #666; line-height: 1.4;
}
.agree-box input { accent-color: var(--primary); width: 18px; height: 18px; margin-top: 2px; }

/* Buttons */
.auth-main-btn {
    width: 100%; padding: 16px; 
    background: var(--grad-primary);
    color: #fff; border: none; border-radius: 30px; 
    font-size: 16px; font-weight: 700;
    margin-bottom: 20px; cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 61, 61, 0.3);
}
.auth-sec-btn {
    width: 100%; padding: 15px; background: #fff;
    color: var(--primary); border: 1px solid var(--primary); 
    border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* =========================================
   3. HEADER & HOME (LOBBY)
   ========================================= */
.header {
    background: #fff; 
    padding: 10px 15px; 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 100; 
    box-shadow: var(--shadow-sm); height: 60px;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.app-logo { width: 35px; height: 35px; object-fit: contain; }
.app-name { 
    font-weight: 900; font-size: 20px; color: var(--primary); 
    font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; font-style: italic;
}

.balance-chip {
    background: #F9FAFB; padding: 6px 14px; border-radius: 20px;
    font-size: 15px; font-weight: 700; color: #333; 
    display: flex; gap: 8px; align-items: center; border: 1px solid #eee;
}
.balance-chip i { color: var(--primary); font-size: 16px; }

.notice-bar { 
    background: #FFF8E1; padding: 10px 15px; margin: 10px 15px; border-radius: 30px; 
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: #F57C00; 
    border: 1px solid #FFE0B2;
}
.notice-bar i { color: #FFA000; }

.slider-container { padding: 0 15px; margin-bottom: 20px; margin-top: 10px; }
.slider-img { 
    width: 100%; height: 160px; object-fit: cover; 
    border-radius: 16px; display: none; cursor: pointer; 
    box-shadow: var(--shadow-md);
}
.slider-img.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from{opacity:0.5} to{opacity:1} }

.section-header { 
    padding: 0 15px; margin-bottom: 12px; 
    display: flex; align-items: center; gap: 8px; 
}
.fire-icon { color: #FF6D00; font-size: 20px; }
.section-header h3 { font-size: 18px; font-weight: 700; color: #333; }

/* --- GAME GRID: FLATTENED LIST STYLE WITH RED BORDER --- */
.game-grid { 
    display: flex; flex-direction: column; gap: 15px; padding: 0 15px 30px; 
}

.game-card {
    position: relative; 
    width: 100%; 
    height: 100px; /* Rectangular/Flat */
    border-radius: 12px; 
    overflow: hidden; 
    cursor: pointer;
    border: 2px solid var(--primary); /* RED FRAME */
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.game-card:active { transform: scale(0.97); }

.game-card img { 
    width: 100%; height: 100%; object-fit: cover; opacity: 0.85; 
}

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    padding: 0 25px; 
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.card-overlay h4 { 
    color: #FFD700; font-size: 24px; font-weight: 900; 
    margin-bottom: 4px; text-transform: uppercase; font-style: italic;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); font-family: 'Oswald', sans-serif;
}
.card-overlay span { 
    color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
    background: rgba(255, 61, 61, 0.8); padding: 3px 8px; border-radius: 4px;
}

/* Partner Games Grid (50+ Items) */
.partner-game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 15px 30px;
}
.partner-game-card {
    display: block; position: relative; aspect-ratio: 1; 
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.partner-game-card img { width: 100%; height: 100%; object-fit: cover; }
.pg-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 10px;
    text-align: center; padding: 5px; font-weight: 600;
}

/* =========================================
   4. GAME INTERFACE (TIMER & BETTING)
   ========================================= */
.game-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; background: var(--grad-primary); color: #fff;
    box-shadow: var(--shadow-sm);
}
.back-btn { background: none; border: none; color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 5px; cursor: pointer; }

.game-frame { 
    background: #fff; margin: 15px; border-radius: 16px; 
    padding: 15px; box-shadow: var(--shadow-md); border: 1px solid #f0f0f0;
}

.timer-box { 
    background: #FFF0F0; border: 1px solid #FFCDD2; border-radius: 12px; 
    padding: 15px 20px; display: flex; justify-content: space-between; 
    align-items: center; margin-bottom: 20px;
}
.timer-info p, .timer-clock p { font-size: 12px; color: #888; margin-bottom: 4px; }
#period-num { font-size: 18px; font-weight: 700; color: #333; }
#countdown { font-family: 'Roboto Mono', monospace; font-size: 26px; font-weight: 700; color: var(--primary); }

.color-row { display: flex; gap: 10px; margin-bottom: 15px; }
.btn-bet { 
    flex: 1; padding: 14px; border: none; border-radius: 8px; 
    color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: pointer;
}
.btn-green { background: #43A047; } .btn-violet { background: #8E24AA; } .btn-red { background: #E53935; }

.number-grid { 
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; 
    margin-bottom: 15px; padding: 10px; background: #FAFAFA; border-radius: 12px;
}
.ball-btn { 
    width: 100%; aspect-ratio: 1; border-radius: 50%; border: none; 
    background-size: cover; background-position: center; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); cursor: pointer;
}
.ball-0 { background-image: url('ball_00.webp'); } .ball-1 { background-image: url('ball_1.webp'); }
.ball-2 { background-image: url('ball_2.webp'); } .ball-3 { background-image: url('ball_3.webp'); }
.ball-4 { background-image: url('ball_4.webp'); } .ball-5 { background-image: url('ball_5.webp'); }
.ball-6 { background-image: url('ball_6.webp'); } .ball-7 { background-image: url('ball_7.webp'); }
.ball-8 { background-image: url('ball_8.webp'); } .ball-9 { background-image: url('ball_9.webp'); }

.size-row { display: flex; gap: 10px; }
.btn-size { 
    flex: 1; padding: 12px; border: none; color: #fff; font-weight: 700; 
    border-radius: 30px; text-transform: uppercase; font-size: 14px; cursor: pointer;
}
.btn-big { background: #FB8C00; box-shadow: 0 4px 8px rgba(251, 140, 0, 0.3); }
.btn-small { background: #1E88E5; box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3); }

/* History Table - TEXT COLOR BASED */
.history-section { 
    background: #fff; margin: 15px; border-radius: 16px; 
    padding: 15px; box-shadow: var(--shadow-sm);
}
.tab-menu { display: flex; border-bottom: 2px solid #f5f5f5; margin-bottom: 10px; }
.tab-item { 
    flex: 1; text-align: center; padding: 12px; font-size: 14px; 
    font-weight: 600; color: #999; border-bottom: 3px solid transparent; 
    cursor: pointer; margin-bottom: -2px;
}
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

.table-wrap { max-height: 400px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
thead { background: #f9f9f9; position: sticky; top: 0; }
th { padding: 12px; color: #666; font-weight: 600; font-size: 12px; }
td { padding: 12px 5px; border-bottom: 1px solid #f0f0f0; font-weight: 500; }

/* Result Text Colors (Requested) */
.res-num-text { font-size: 18px; font-weight: 800; font-family: 'Roboto', sans-serif; }
.text-c-green { color: #43A047; }
.text-c-red { color: #E53935; }
.text-grad-0 { 
    background: linear-gradient(135deg, #E53935 50%, #8E24AA 50%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.text-grad-5 { 
    background: linear-gradient(135deg, #43A047 50%, #8E24AA 50%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

/* Dots */
.dot-wrap { display: flex; justify-content: center; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d-green { background: #43A047; } .d-red { background: #E53935; } .d-violet { background: #8E24AA; }

/* =========================================
   5. ACTIVITY PAGE (Redesigned)
   ========================================= */
.page-nav { 
    padding: 15px; background: #fff; display: flex; align-items: center; 
    gap: 15px; font-size: 18px; font-weight: 700; color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 50;
}

/* Top Buttons Row */
.act-top-menu {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    padding: 20px 15px; background: #fff; margin-bottom: 15px;
}
.act-top-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer;
}
.act-top-btn img { width: 45px; height: 45px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.act-top-btn span { font-size: 11px; font-weight: 600; color: #444; }

/* Info Boxes List */
.act-info-grid { display: flex; flex-direction: column; gap: 15px; padding: 0 15px 30px; }
.act-info-box {
    background: #fff; border-radius: 12px; padding: 15px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.aib-left h4 { font-size: 16px; margin-bottom: 4px; }
.aib-left p { font-size: 12px; color: #888; margin-bottom: 10px; }
.btn-sm { padding: 6px 15px; background: var(--grad-primary); color: #fff; border: none; border-radius: 20px; font-size: 12px; cursor: pointer; }
.aib-img { width: 80px; height: 80px; object-fit: contain; }

/* Daily Task Subpage */
.task-container { padding: 20px; }
.task-item { 
    background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm);
}
.ti-info h4 { font-size: 15px; margin-bottom: 5px; }
.ti-info p { font-size: 12px; color: var(--primary); font-weight: 600; }
.task-item button { padding: 8px 15px; background: #E0E0E0; border: none; border-radius: 6px; cursor: pointer; color: #555; }

/* =========================================
   6. PROMOTION / AGENCY (PROFESSIONAL)
   ========================================= */
.promo-header {
    background: var(--grad-agency);
    padding: 40px 20px 90px;
    color: #fff; text-align: center;
    border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
    position: relative; box-shadow: 0 10px 30px rgba(255, 126, 95, 0.3);
}
.promo-header h1 { font-size: 42px; margin: 10px 0 20px; font-weight: 800; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.promo-sub-stats { 
    font-size: 13px; opacity: 0.95; display: inline-block;
    padding: 8px 20px; border-radius: 20px; background: rgba(255,255,255,0.15);
}

.promo-stats-grid {
    background: #fff; margin: -70px 15px 25px; border-radius: 20px;
    padding: 25px; box-shadow: var(--shadow-float); display: flex; position: relative; z-index: 10;
}
.ps-col { flex: 1; text-align: center; }
.ps-col:first-child { border-right: 1px solid #f0f0f0; }
.ps-col h4 { font-size: 11px; color: #999; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.ps-val-box p { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #444; }
.ps-val-box span { color: var(--primary); font-weight: 800; font-size: 16px; margin-right: 4px; }

.promo-menu { background: #fff; margin: 0 15px 30px; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 5px 0; overflow: hidden; }
.pm-row {
    display: flex; align-items: center; padding: 16px 20px;
    border-bottom: 1px solid #f9f9f9; cursor: pointer; transition: background 0.2s;
}
.pm-row:active { background: #f5f5f5; }
.pm-row:last-child { border-bottom: none; }
.pm-icon { width: 35px; color: var(--primary); font-size: 20px; }
.pm-text { flex: 1; font-size: 15px; font-weight: 500; color: #333; }
.pm-val { font-size: 13px; color: #888; margin-right: 12px; font-weight: 500; }
.copy-icon { background: #FFF0F0; color: var(--primary); padding: 8px; border-radius: 6px; font-size: 14px; }

/* Commission Table */
.comm-table { width: 100%; border-collapse: collapse; }
.comm-table th { background: #eee; padding: 10px; font-size: 12px; }
.comm-table td { padding: 10px; border-bottom: 1px solid #eee; font-size: 12px; }

/* =========================================
   7. WALLET & DEPOSIT
   ========================================= */
.wallet-card-main {
    background: var(--grad-dark);
    margin: 20px 15px; padding: 35px 20px; border-radius: 20px;
    color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    position: relative; overflow: hidden;
}
.wallet-card-main::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%); pointer-events: none;
}
#wallet-total-big { font-size: 40px; margin: 10px 0 20px; font-weight: 700; letter-spacing: 1px; }
.turnover-txt { 
    font-size: 12px; background: rgba(255,255,255,0.15); display: inline-block; 
    padding: 6px 14px; border-radius: 20px; margin-bottom: 25px; backdrop-filter: blur(5px);
}
.wallet-stats { display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.wallet-stats h4 { font-size: 16px; margin-top: 5px; }

.wallet-btns-row { display: flex; gap: 15px; padding: 0 15px; margin-bottom: 25px; }
.btn-deposit { flex: 1; padding: 16px; border-radius: 16px; border: none; font-weight: 700; background: var(--grad-primary); color: #fff; box-shadow: 0 5px 15px rgba(255, 61, 61, 0.3); }
.btn-withdraw { flex: 1; padding: 16px; border-radius: 16px; border: 1px solid #eee; font-weight: 700; background: #fff; color: #333; box-shadow: var(--shadow-sm); }

/* Deposit Form */
.form-container { padding: 20px; }
.inp-label { font-size: 14px; color: #555; margin-bottom: 12px; font-weight: 600; }
.pay-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 25px; }
.pay-card {
    border: 2px solid #f5f5f5; border-radius: 12px; padding: 15px 5px;
    text-align: center; cursor: pointer; background: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: #555; transition: 0.2s;
}
.pay-card img { width: 35px; height: 35px; object-fit: contain; }
.pay-card.active { border-color: var(--primary); background: #FFF5F5; color: var(--primary); box-shadow: 0 4px 10px rgba(255, 61, 61, 0.15); transform: translateY(-3px); }

.dep-details-box { background: #E1F5FE; border: 1px dashed #039BE5; padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 25px; }
.dep-details-box h2 { color: #01579B; margin: 8px 0; font-size: 20px; }
.btn-copy-sm { background: #039BE5; color: #fff; border: none; padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: 600; }

.inp-box { margin-bottom: 20px; }
.inp-box label { display: block; font-size: 13px; margin-bottom: 8px; font-weight: 600; color: #444; }
.inp-box input, .inp-box select { 
    width: 100%; padding: 16px; border: 1px solid #E0E0E0; border-radius: 12px; 
    outline: none; background: #FAFAFA; font-size: 16px; font-weight: 500;
}
.inp-box input:focus { border-color: var(--primary); background: #fff; }

/* =========================================
   8. VIP PAGE
   ========================================= */
.vip-nav-bg { background: #111; color: #FFD700; border: none; }
.vip-hero { background: #111; padding: 20px; text-align: center; color: #fff; padding-bottom: 60px; }
.vip-user-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #FFD700; margin-bottom: 10px; }
.vip-tag { background: linear-gradient(90deg, #FFD700, #FFA000); color: #000; padding: 4px 12px; border-radius: 4px; font-weight: 800; font-size: 12px; }
.vip-levels-container { padding: 0 15px; margin-top: -40px; position: relative; }
.vip-progress-card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: var(--shadow-md); margin-bottom: 20px; }
.vp-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 15px; }
.vp-bar-bg { height: 12px; background: #eee; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.vp-bar-fill { height: 100%; background: var(--grad-gold); border-radius: 6px; transition: width 0.5s; }
.vip-salary-card {
    background: #FFF8E1; border: 1px solid #FFECB3; border-radius: 16px; 
    padding: 20px; display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
}
.vs-icon { width: 50px; height: 50px; background: #FFC107; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.money-text { color: #E65100; font-weight: 800; font-size: 20px; }
.btn-claim { margin-left: auto; background: #BDBDBD; color: #fff; border: none; padding: 10px 20px; border-radius: 25px; font-weight: 700; cursor: not-allowed; }
.btn-claim.active { background: #4CAF50; cursor: pointer; box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4); }

.vip-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 30px; }
.vip-level-item { background: #fff; padding: 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #eee; box-shadow: var(--shadow-xs); }
.vip-level-item.locked { opacity: 0.6; background: #FAFAFA; }
.vl-badge { background: #333; color: #FFD700; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 800; margin-right: 8px; }

/* =========================================
   9. PROFILE
   ========================================= */
.profile-header-card {
    background: linear-gradient(135deg, #111, #333); color: #fff; 
    padding: 40px 20px 70px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px;
    position: relative; margin-bottom: 40px;
}
.profile-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #FFD700; background: #fff; }
.profile-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.uid-badge { background: rgba(255,255,255,0.15); font-size: 13px; padding: 5px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }

.vip-mini-banner {
    background: linear-gradient(90deg, #FDD835, #F57F17); border-radius: 16px;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    color: #333; font-weight: 700; font-size: 14px; cursor: pointer;
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.3);
    position: absolute; bottom: -25px; left: 20px; right: 20px;
}

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 0 15px; margin-top: 40px; margin-bottom: 25px; }
.q-action { background: #fff; border-radius: 16px; padding: 15px 5px; text-align: center; box-shadow: var(--shadow-sm); cursor: pointer; }
.q-icon { width: 45px; height: 45px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.bg-green { background: linear-gradient(135deg, #4CAF50, #81C784); }
.bg-red { background: linear-gradient(135deg, #F44336, #EF5350); }
.bg-blue { background: linear-gradient(135deg, #2196F3, #64B5F6); }
.bg-gold { background: linear-gradient(135deg, #FFC107, #FFD54F); }
.q-action span { font-size: 12px; font-weight: 600; color: #444; }

.menu-list { background: #fff; margin: 0 15px 30px; border-radius: 16px; padding: 10px 0; box-shadow: var(--shadow-sm); }
.menu-item { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid #f9f9f9; cursor: pointer; font-size: 15px; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { width: 40px; font-size: 20px; color: #666; display: flex; align-items: center; }
.menu-item span { flex: 1; font-weight: 500; color: #333; }
.arrow { color: #ccc; font-size: 12px; }

/* =========================================
   10. POPUPS & OVERLAYS
   ========================================= */
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.popup-center {
    background: #fff; width: 85%; max-width: 320px; border-radius: 20px;
    padding: 30px 25px; text-align: center; animation: popIn 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
@keyframes popIn { from{transform:scale(0.8);opacity:0} to{transform:scale(1);opacity:1} }

.qr-box h3 { margin-bottom: 15px; font-size: 20px; font-weight: 800; }
.link-copy-box { display: flex; border: 1px solid #ddd; border-radius: 30px; overflow: hidden; margin-bottom: 20px; height: 45px; }
.link-copy-box input { flex: 1; border: none; padding: 0 15px; font-size: 13px; outline: none; background: #FAFAFA; color: #555; }
.link-copy-box button { background: var(--primary); color: #fff; border: none; padding: 0 20px; font-weight: 700; cursor: pointer; }

/* Betting Popup */
.popup-bottom {
    position: absolute; bottom: 0; width: 100%;
    background: #fff; border-top-left-radius: 24px; border-top-right-radius: 24px;
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.popup-header { background: var(--grad-primary); color: #fff; padding: 18px 25px; display: flex; justify-content: space-between; align-items: center; border-radius: 24px 24px 0 0; }
.popup-body { padding: 25px; }

.bet-input-row { 
    background: #F5F5F5; padding: 15px; border-radius: 12px; 
    display: flex; align-items: center; margin: 20px 0; border: 1px solid #eee;
}
.bet-input-row span { font-size: 24px; font-weight: 700; margin-right: 10px; color: #333; }
.bet-input-row input { border: none; background: transparent; font-size: 28px; font-weight: 700; width: 100%; outline: none; color: var(--primary); }

.chip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.chip-row button { 
    padding: 10px; border: 1px solid #eee; background: #fff; 
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px;
    transition: 0.2s;
}
.chip-row button:active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-mul { background: #FFF3E0 !important; color: #FF9800; border-color: #FFE0B2 !important; }

.win-popup { background: radial-gradient(circle, #fff 0%, #FFFDE7 100%); border: 4px solid #FFD700; }
.win-logo { width: 100px; margin-bottom: 15px; animation: spin 4s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.win-amount { font-size: 36px; font-weight: 900; color: #43A047; margin: 15px 0; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Gift Page */
.gift-container { text-align: center; padding: 50px 20px; }
.gift-hero-img { width: 140px; margin-bottom: 25px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); }
.gift-input-wrap input { width: 100%; padding: 18px; border: 2px solid #EEE; border-radius: 40px; text-align: center; font-size: 20px; margin-bottom: 25px; letter-spacing: 2px; font-weight: 700; }

/* =========================================
   11. BOTTOM NAVIGATION (STICKY)
   ========================================= */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-width: 480px; margin: 0 auto;
    background: #fff; height: 75px; 
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    padding-bottom: 10px;
}
.nav-item {
    background: none; border: none; 
    display: flex; flex-direction: column;
    align-items: center; gap: 5px; 
    color: #B0BEC5; cursor: pointer;
    transition: 0.3s; width: 20%;
}
.nav-item i { font-size: 22px; transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.nav-item span { font-size: 11px; font-weight: 600; transition: 0.3s; }

.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-5px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(255, 61, 61, 0.3)); }
.nav-item.active span { color: var(--primary); }

/* Fade In Animation */
body { animation: fadeInBody 0.5s ease-in; }
@keyframes fadeInBody { from { opacity: 0; } to { opacity: 1; } }

/* db.php তে থাকা অতিরিক্ত ইউটিলিটি */
.text-c-green { color: #43A047; }
.text-c-red { color: #E53935; }
.text-grad-0 { 
    background: linear-gradient(135deg, #E53935 50%, #8E24AA 50%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.text-grad-5 { 
    background: linear-gradient(135deg, #43A047 50%, #8E24AA 50%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

/* ডট স্টাইল */
.dot-wrap { display: flex; justify-content: center; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d-green { background: #43A047; } .d-red { background: #E53935; } .d-violet { background: #8E24AA; }