/* style.css - PREMIUM SKY THEME, 3D EFFECTS & TOGGLE LOGIC */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html, body {
    /* Beautiful Sky Blue Gradient */
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-attachment: fixed; /* 🔴 ADDED: Background ko apni jagah lock karne ke liye */
    color: #333;
    height: 100%; 
    margin: 0; /* 🔴 ADDED: Faltu white space hatane ke liye */
    overflow: hidden; /* 🔴 FIX: Main screen lock rahegi */
    touch-action: pan-x pan-y; 
}

.screen {
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    transition: opacity 0.4s ease;
    overflow: hidden; /* 🔴 FIX: 'auto' se 'hidden' kiya taaki double scroll na ho */
}

/* 🔴 ADDED NEW: Sirf Auth Screen scroll hogi taaki keyboard aaye toh space mile */
.auth-screen {
    overflow-y: auto;
    padding-bottom: 50px;
}

/* 🔴 ADDED NEW: Main App Screen ko lock kiya */
.main-app-screen {
    overflow: hidden;
    padding-bottom: 0px;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    display: none; 
}

/* --- HEADER FIXES --- */
.hero-header {
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 25px;
}

.glow-text {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.highlight { color: #ffeaa7; }

.subtitle {
    color: #f1f2f6;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- CARD FIXES (White clean card) --- */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

/* --- PREMIUM TOGGLE TABS --- */
.auth-tabs {
    display: flex;
    background: #f1f2f6; 
    border-radius: 25px;
    padding: 5px;
    margin-bottom: 10px;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.05); 
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: #ffffff;
    color: #4facfe;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

/* --- FORM TEXT & ANIMATION --- */
.form-heading {
    text-align: center;
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.form-subheading {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-transition {
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.form-transition.switching {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
}

.w-100 {
    width: 100%;
}

.smooth-hide {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease;
}

/* --- INPUTS --- */
.input-group input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    background: #f8f9fa;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    margin-bottom: 15px;
}

.input-group input:focus {
    border-color: #4facfe;
    background: #fff;
}

/* --- 3D BUTTONS --- */
.3d-button {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.3d-button:active {
    transform: translateY(4px);
}

.btn-primary {
    background: #f39c12;
    color: #fff;
    box-shadow: 0 5px 0 #d68910;
}
.btn-primary:active { box-shadow: 0 1px 0 #d68910; }

.btn-secondary {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 5px 0 #1a252f;
}
.btn-secondary:active { box-shadow: 0 1px 0 #1a252f; }

.btn-google {
    background: #ffffff;
    color: #333;
    border: 2px solid #eee;
    box-shadow: 0 5px 0 #ddd;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-google:active { box-shadow: 0 1px 0 #ddd; }

/* --- TEXT & SEPARATORS --- */
.separator {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 5px 0;
    position: relative;
}
.separator::before, .separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}
.separator::before { left: 0; }
.separator::after { right: 0; }

.btn-text {
    background: none;
    border: none;
    color: #4facfe;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    margin-top: 5px;
}

.error-message {
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    transition: 0.3s;
}

/* --- UI COMPONENTS & HEADER FIX --- */
.app-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 12px; /* Tighter padding to fit all screens */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* CRITICAL FIXES FOR EXTRA SCREEN ISSUE */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box; /* Stops padding from pushing width out of bounds */
    overflow: hidden; /* Hides horizontal scrolling completely */
    gap: 8px;
}

/* --- APP PAGES & NAVIGATION FIX --- */
#app-content {
    flex: 1; 
    overflow-y: auto; 
    padding: 15px;
    padding-bottom: 90px; /* 🔴 FIX: 120px se 90px kiya taaki bada khali gap na bane */
}

.app-page {
    display: none;
    animation: slideUpFade 0.4s ease;
    padding-bottom: 0px !important; /* 🔴 FIX: Faltu padding remove ki */
}

.active-page { display: block; }
.hidden-page { display: none; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DASHBOARD CARDS & 3D --- */
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.banner {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* --- PROFILE & BALANCE SUMMARY --- */
.profile-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-area { display: flex; align-items: center; gap: 10px; }
.avatar-circle {
    font-size: 25px;
    background: #e1e8ed;
    padding: 12px;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.user-titles h3 { color: #2c3e50; font-size: 1.1rem; }
.rank-badge {
    background: #4facfe;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

.balance-area { text-align: right; }
.balance-area p { font-size: 0.75rem; color: #7f8c8d; font-weight: 600;}

/* --- STATS GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stat-card {
    background: #fff;
    padding: 15px 10px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.stat-card .icon { font-size: 1.5rem; display: block; margin-bottom: 5px; }
.stat-card p { font-size: 0.7rem; color: #95a5a6; font-weight: 600;}
.stat-card h4 { color: #2c3e50; font-size: 0.95rem; margin-top: 5px; }

/* --- TICKER --- */
.crypto-ticker {
    background: #f1f2f6;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.ui-back-btn {
    background: #e3f2fd;
    color: #3498db;
    border: none;
    padding: 5px 8px; /* Smaller padding */
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px; /* Scaled for smaller phones */
    white-space: nowrap;
    flex-shrink: 0;
}

.ui-back-btn:active { transform: scale(0.9); }
.hidden-element { display: none !important; }

/* --- PROFESSIONAL FLOATING BOTTOM NAV --- */
.bottom-nav {
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    width: calc(100% - 40px); 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px); 
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 
    border-radius: 30px; 
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-item {
    background: transparent;
    border: none;
    color: #a4b0be; 
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State Design */
.nav-item.active {
    color: #4facfe;
    background: rgba(79, 172, 254, 0.15); 
    transform: translateY(-5px); 
    font-weight: 700;
}

.nav-item i {
    font-style: normal;
    font-size: 18px;
    transition: transform 0.3s;
}

.nav-item.active i {
    transform: scale(1.15); 
}

/* --- PHASE 3: MINING ENGINE STYLES --- */
.mining-section { margin-bottom: 15px; border: 1px solid rgba(243, 156, 18, 0.3); }
.mining-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; }
.status-badge.stopped { background: #ffeaa7; color: #d35400; }
.status-badge.running { background: #55efc4; color: #00b894; animation: pulse 1.5s infinite; }

.premium-select { 
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #e1e8ed; 
    outline: none; margin-bottom: 15px; background: #f8f9fa; font-weight: 600; color: #333;
}

/* Progress Bar */
.mining-progress-container { margin-bottom: 15px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: #7f8c8d; }
.progress-bar-bg { width: 100%; height: 14px; background: #ecf0f1; border-radius: 7px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.progress-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #4facfe, #00f2fe); transition: width 1s linear; }

/* Action Buttons */
.btn-success { background: #2ecc71; color: white; box-shadow: 0 5px 0 #27ae60; }
.btn-success:active { box-shadow: 0 1px 0 #27ae60; }

.slots-info { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-top: 15px; border-top: 1px solid #eee; padding-top: 10px; font-size: 12px; color: #7f8c8d; 
}

@keyframes pulse {
    0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; }
}

/* --- LIVE CRYPTO PRICE COLORS --- */
.price-up { color: #2ecc71 !important; font-weight: 700; text-shadow: 0 0 5px rgba(46, 204, 113, 0.3); transition: color 0.3s; }
.price-down { color: #e74c3c !important; font-weight: 700; text-shadow: 0 0 5px rgba(231, 76, 60, 0.3); transition: color 0.3s; }

/* --- PHASE 4: WALLET STYLES --- */
.wallet-balance-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin-top: 10px;
    border: 1px solid #e1e8ed;
}
.wallet-balance-box p { font-size: 0.8rem; color: #7f8c8d; font-weight: 600; }

/* --- PHASE 5: STORE STYLES (MERGED & FIXED) --- */
.store-category-title {
    margin: 20px 0 10px 5px;
    color: #2c3e50;
    font-size: 15px;
}

/* --- FIXED STORE GRID ALIGNMENT --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch; /* Fixed: Har box ko ek barabar height dega */
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-align: center;
    padding: 15px;
    position: relative;
    border: 1px solid #eee;
    display: flex; /* Fixed: Flexbox se andar ka content set hoga */
    flex-direction: column;
}

/* Naya class jo button ko hamesha neeche dhakelega */
.card-bottom {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-icon {
    font-size: 40px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.product-card h5 { color: #2c3e50; font-size: 12px; margin-bottom: 5px; }
.price-tag { font-weight: 700; font-size: 12px; margin-bottom: 12px; color: #f39c12; }

.sale-badge {
    position: absolute;
    top: -8px; 
    right: -8px;
    background: #e74c3c; 
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px; 
    font-weight: 800;
    box-shadow: 0 3px 6px rgba(231,76,60,0.4);
    z-index: 10;
}

/* --- DYNAMIC STORE BADGES & PRICES --- */
.old-price { 
    text-decoration: line-through; 
    color: #95a5a6; 
    font-size: 10px; 
    margin-right: 5px; 
}
.discount-badge { 
    background: #e74c3c; 
    color: white; 
    padding: 2px 6px; 
    border-radius: 6px; 
    font-size: 9px; 
    vertical-align: middle; 
    margin-left: 5px; 
    animation: pulse 2s infinite; 
}
.urgency-text { 
    color: #e74c3c; 
    font-size: 10px; 
    font-weight: 700; 
    margin-top: 5px; 
    display: block; 
}
.timer-text {
    color: #e67e22;
    font-size: 9px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* --- PHASE 6: MEMBERSHIP STYLES --- */
.vip-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.vip-premium { border-color: #3498db; box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2); }
.vip-pro { border-color: #f1c40f; box-shadow: 0 5px 20px rgba(241, 196, 15, 0.2); }

.vip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.vip-title { font-size: 18px; font-weight: 800; color: #2c3e50; }
.vip-price { font-size: 20px; font-weight: 800; color: #27ae60; }

.benefit-list { list-style: none; margin-bottom: 15px; font-size: 12px; color: #34495e; font-weight: 600; }
.benefit-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.benefit-list li i { color: #2ecc71; font-size: 14px; filter: drop-shadow(0 2px 2px rgba(46,204,113,0.3)); }

.vip-badge {
    position: absolute; top: 12px; right: -25px; background: #e74c3c; color: #fff;
    font-size: 9px; font-weight: 800; padding: 4px 30px; transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.premium-header-btn {
    background: linear-gradient(45deg, #f1c40f, #e67e22);
    color: #fff;
    border: none;
    padding: 5px 8px; /* Tighter layout */
    border-radius: 10px;
    font-size: 10px; /* Scaled down slightly to fit tasks, VIP, and Bell */
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.premium-header-btn:active { transform: scale(0.9); box-shadow: 0 1px 0 rgba(241, 196, 15, 0.4); }

@keyframes gold-glow {
    0% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.4); }
    50% { box-shadow: 0 0 15px rgba(241, 196, 15, 0.8); }
    100% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.4); }
}

/* --- VIP MINING ILLUSTRATION ANIMATION --- */
.vip-graphic {
    font-size: 45px;
    margin-top: 15px;
    margin-left: 15px;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.2));
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- PHASE 7: LEADERBOARD STYLES --- */
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: #f8f9fa; }

/* Rank Badges */
.rank-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #7f8c8d;
    font-size: 13px;
}

/* Top 3 Medals */
.rank-1 { background: #ffd700; color: #fff; box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4); border: 2px solid #fff; }
.rank-2 { background: #c0c0c0; color: #fff; box-shadow: 0 4px 10px rgba(192, 192, 192, 0.4); border: 2px solid #fff; }
.rank-3 { background: #cd7f32; color: #fff; box-shadow: 0 4px 10px rgba(205, 127, 50, 0.4); border: 2px solid #fff; }

.lb-user-info { flex: 1; margin-left: 12px; }
.lb-user-name { font-size: 13px; font-weight: 700; color: #2c3e50; display: flex; align-items: center; }
.lb-user-detail { font-size: 10px; color: #95a5a6; margin-top: 2px; }

.lb-score { font-size: 13px; font-weight: 800; color: #27ae60; text-align: right; }

/* --- PHASE 9: TASKS STYLES --- */
.task-card {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.task-info { flex: 1; margin-left: 12px; }
.task-title { font-size: 13px; font-weight: 800; color: #2c3e50; margin-bottom: 2px; }
.task-desc { font-size: 10px; color: #95a5a6; font-weight: 600; line-height: 1.3; }

.task-reward-badge {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    display: inline-block;
}

.btn-task {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 0 #1a252f;
    cursor: pointer;
    transition: transform 0.1s;
}
.btn-task:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a252f; }
.btn-task.claimed { background: #95a5a6; box-shadow: 0 4px 0 #7f8c8d; pointer-events: none; }

/* --- PHASE 10: REFERRAL STYLES --- */
.ref-link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f2f6;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #bdc3c7;
}
.ref-link-box span {
    font-size: 11px;
    color: #2c3e50;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.team-member:last-child { border-bottom: none; }

.team-info { display: flex; align-items: center; gap: 10px; }
.team-avatar { font-size: 24px; }
.team-name { font-size: 13px; font-weight: 700; color: #2c3e50; }
.team-date { font-size: 9px; color: #95a5a6; margin-top: 2px; }

.team-earn { font-size: 12px; font-weight: 800; color: #27ae60; }

/* --- PHASE 11: NOTIFICATIONS & FCM STYLES --- */
.notif-card {
    background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px;
    display: flex; gap: 12px; align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 4px solid transparent;
}
.notif-unread { border-left-color: #3498db; background: #f4f9fd; }
.notif-icon { font-size: 20px; background: #ecf0f1; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; }

.notif-content { flex: 1; text-align: left; }
.notif-title { font-size: 13px; font-weight: 800; color: #2c3e50; margin-bottom: 2px; }
.notif-body { font-size: 11px; color: #7f8c8d; line-height: 1.3; }
.notif-time { font-size: 9px; color: #bdc3c7; margin-top: 5px; display: block; font-weight: 600; }
.notif-img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-top: 8px; display: block; }

/* In-App Push Dropdown Animation */
#in-app-push {
    position: fixed; top: -100px; left: 15px; right: 15px; 
    background: rgba(44, 62, 80, 0.95); color: #fff; 
    padding: 12px; border-radius: 12px; z-index: 9999;
    display: flex; align-items: center; gap: 10px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    backdrop-filter: blur(5px); pointer-events: none;
}
#in-app-push.show { top: 20px; }

/* --- PHASE 12: ADS SYSTEM STYLES --- */
.ad-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Custom Native Ad Style */
.native-ad-card {
    position: relative;
    padding: 15px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}
.native-ad-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #f1c40f;
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- PHASE 14: CRYPTO MARKET --- */
.crypto-row:active { background: #f1f2f6 !important; transform: scale(0.98); }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* --- SETTINGS MENU UI --- */
.settings-row {
    padding: 15px 10px;
    border-bottom: 1px solid #f1f2f6;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.2s;
}
.settings-row:active { background: #f8f9fa; transform: scale(0.98); }
.settings-row:last-child { border-bottom: none; }

/* 💥 BOTTOM NAV BAR LOCK */
.bottom-nav, .navbar, #bottom-nav, .nav-container {
    position: fixed !important;
    bottom: 0px !important; /* 🔴 FIX: 15px ko 0px kiya taaki navbar ekdum niche chipak jaye */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important; /* 🔴 FIX: 92% se 100% kiya taaki side mein gap na dikhe */
    max-width: 500px !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    padding-bottom: 8px !important; /* Safe area padding */
    border-bottom-left-radius: 0px !important; /* 🔴 FIX: Niche se flat kiya */
    border-bottom-right-radius: 0px !important; /* 🔴 FIX: Niche se flat kiya */
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    margin-bottom: 0px !important;
}

/* 🚨 FIX: Prevent Dashboard Flash during Boot & Maintenance */
#app-wrapper {
    display: none; /* By default hidden rahega */
}