:root {
  /* ==================== Bet420 Design Tokens ====================
     Premium + Classic + Modern + Comfortable + Minimal Luxury.
     Deep Obsidian + Dark Forest Green + Champagne Gold (dark theme);
     Warm White + Cream + Champagne Gold (light theme). Gold is an
     ACCENT, never a primary background/fill. Red is reserved for
     notification/alert states only — it is not a brand action color. */

  /* Brand / accent (Champagne Gold) */
  --primary: #008F5A;
  --primary-glow: rgba(0, 143, 90, 0.35);
  --secondary: #006A4E;
  --accent: #008F5A;
  --gold: #10b981;
  --gold-hover: #16d69a;
  --gold-soft: rgba(214, 40, 40, 0.14);
  --green: #10b981;
  --red: #D62828;
  /* --red যখন background-fill (badge/live-indicator) সেটার সাথে brand-accurate থাকা
     দরকার; সরাসরি সারফেসের ওপর টেক্সট রঙ হিসেবে --red ব্যবহার করলে dark থিমে (~3.5:1)
     AA মিস করে — তাই টেক্সটের জন্য আলাদা, উজ্জ্বল ভ্যারিয়েন্ট। */
  --red-text: #F26B6B;
  --warning: #E0A537;

  /* Surfaces & Backgrounds (Deep Obsidian / Dark Forest Green) */
  --bg-dark: #0A1C14;
  --bg-surface: #10291D;
  --bg-surface-elevated: #143324;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-glass: rgba(255, 255, 255, 0.055);
  --border-glass: #1E4633;
  --bg-nav: rgba(8, 24, 16, 0.96);

  /* Text (Warm White) */
  --text-main: #F2F5F3;
  --text-inverse: #14110A;
  --text-muted: #8FA396;
  --text-white: #ffffff; /* theme-invariant — for text over images/brand artwork only */
  /* গোল্ড/প্রাইমারি টেক্সটের জন্য — --gold/--primary/--accent শুধু ব্যাকগ্রাউন্ড-ফিল হিসেবেই
     ব্র্যান্ড-নির্ভুল থাকা দরকার (বাটন/ব্যাজে তার ওপর --text-inverse বসে); সারফেসের ওপর
     সরাসরি টেক্সট রঙ হিসেবে ব্যবহারের জন্য এই আলাদা টোকেন — dark থিমে গোল্ডের কনট্রাস্ট
     এমনিতেই যথেষ্ট (~7-8:1) তাই একই মান রাখা হয়েছে। */
  --text-accent: #10b981;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #006A4E, #008F5A);
  --grad-secondary: linear-gradient(135deg, #0F3A28, #0A1C14);
  --grad-gold: linear-gradient(135deg, #D62828, #10b981);
  --grad-dark: linear-gradient(180deg, #10291D, #0A1C14);
  --grad-surface: linear-gradient(135deg, rgba(245,241,230,0.05), rgba(245,241,230,0.01));

  /* Effects */
  --shadow-neon: 0 0 15px var(--primary-glow);
  --glass-blur: blur(0px);

  /* ==================== Global Design Tokens ==================== */
  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Shadows (dark theme — kept subtle per spec) */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Typography scale */
  --font-xs: 11px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-display: 32px;
}

/* ==================== Legacy Aliases ====================
   পুরোনো টেমপ্লেটে এই নামগুলো ব্যবহার করা হয়েছিল কিন্তু কোথাও ডিফাইন করা ছিল না —
   ফলে var() রেজলভ হতো না, টেক্সট ইনহেরিট করা রঙ নিত আর Light Mode-এ ফ্যাকাশে/অদৃশ্য
   দেখাত। body-তে ডিফাইন করা হয়েছে যাতে body.light-mode-এর ওভাররাইড করা টোকেন থেকেই
   মান নেয় — দুই থিমেই ঠিক থাকে। */
body {
  --text: var(--text-main);
  --muted: var(--text-muted);
  --border: var(--border-glass);
  --card2: var(--bg-surface-elevated);
  --accent-color: var(--text-accent);
  --primary-gradient: var(--grad-primary);
  --gg: var(--grad-gold);
}

body.light-mode {
  --primary: #006A4E;
  --primary-glow: rgba(0, 106, 78, 0.22);
  --secondary: #008F5A;
  --accent: #006A4E;
  --gold: #006A4E;
  --gold-hover: #008F5A;
  --gold-soft: #FBE3E3;
  --red-text: #D62828;
  --warning: #C97D0E;

  --bg-dark: #F7F8F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: rgba(24, 27, 25, 0.035);
  --bg-glass: rgba(24, 27, 25, 0.04);
  --border-glass: #E3E8E4;
  --bg-nav: rgba(255, 255, 255, 0.95);

  --text-main: #171717;
  --text-inverse: #14110A;
  --text-muted: #6B7280;
  --text-accent: #006A4E;

  --grad-primary: linear-gradient(135deg, #006A4E, #008F5A);
  --grad-secondary: linear-gradient(135deg, #008F5A, #006A4E);
  --grad-gold: linear-gradient(135deg, #D62828, #006A4E);
  --grad-dark: linear-gradient(180deg, #FFFFFF, #F1F4F1);
  --grad-surface: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  --shadow-card: 0 2px 14px rgba(24, 27, 25, 0.08);
  --shadow-elevated: 0 8px 28px rgba(24, 27, 25, 0.12);
  --grad-header: linear-gradient(135deg, #E7F2EC, #fff);
}

body.light-mode {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(0, 106, 78, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(212, 167, 44, 0.05) 0%, transparent 35%);
}

body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(0,0,0,0.1);
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(27, 58, 38, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(201, 162, 39, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Hind Siliguri', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    padding-bottom: 90px !important;
    overflow-x: hidden;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid var(--border-glass);
}

/* ===== COMPLETE POPUP BLUR REMOVAL ===== */
.popup,
.modal,
.promo-popup,
.promo-modal,
.glass.popup,
.popup .glass,
.popup-hero,
.feature-image,
.popup-background,
.hero-section,
.banner-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.popup img,
.popup-hero img,
.feature-image img,
.hero-section img {
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
}
.banner-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.popup img,
.popup-hero img,
.feature-image img,
.hero-section img {
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px;
}

.navbar {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-refresh-btn {
    background: none;
    border: none;
    color: var(--text-accent);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-refresh-btn:active {
    transform: rotate(180deg);
}

.nav-refresh-btn.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-balance-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-accent);
}

body.light-mode .nav-balance-box {
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn-auth {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn-login {
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.nav-btn-register {
    background: var(--grad-gold);
    color: var(--text-inverse);
}

.nav-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-theme-btn:hover {
    background: var(--border-glass);
    transform: scale(1.05);
}

.lang-switch-nav {
    display: flex;
    background: var(--bg-glass);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.lang-switch-nav a {
    padding: 4px 12px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-switch-nav a.active {
    background: var(--gold);
    color: var(--text-inverse);
}

.nav-icon-link {
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
}

.nav-icon-link:hover {
    background: var(--bg-glass);
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    background: var(--bg-nav);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 20px 0;
    border-top: 1px solid var(--border-glass);
    z-index: 1100;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
    transition: 0.3s;
    padding: 6px 10px;
    cursor: pointer;
}

.nav-link.active {
    color: var(--text-accent);
}

.nav-link.active i {
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.promotion-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 15px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.promotion-link span:last-child {
    color: var(--text-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--grad-secondary);
    color: var(--text-white);
}

.btn-glow {
    box-shadow: var(--shadow-neon);
}

.grid {
    display: grid;
    gap: 15px;
}

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

.layout-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .layout-main { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
}

.card-body {
    padding: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 15px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 22px 10px;
    border-radius: 0;
    text-align: center;
}

.stat-value, .stat-number {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    color: var(--text-accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px 12px;
}

.game-card {
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-glass);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.banner-container {
    padding: 15px 12px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 12px 10px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--text-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.6;
}

.top-balance-bar {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.balance-amount {
    color: var(--text-accent);
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
}

.btn-gold {
    background: var(--grad-gold);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.tx-positive { color: var(--green); }
.tx-negative { color: var(--red-text); }

.teko {
    font-family: 'Teko', sans-serif;
}

.text-white { color: var(--text-white) !important; }
.text-main { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-card { background-color: var(--bg-surface) !important; }
.border-glass { border-color: var(--border-glass) !important; }
.text-inverse { color: var(--text-inverse) !important; }
.text-gold { color: var(--text-accent) !important; }

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    font-weight: 600;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--text-inverse);
    border-color: var(--gold);
}

.cat-item.active {
    background: var(--grad-gold) !important;
    border-color: transparent !important;
}

.cat-item.active div {
    color: var(--text-inverse) !important;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 82%;
    height: 100%;
    height: 100dvh;
    background-color: var(--bg-surface);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-glass);
    z-index: 100001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    isolation: isolate;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.side-menu.open {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* ===== FINAL ZERO BLUR FIX FOR POPUP IMAGES ===== */
.popup-hero,
.popup-background,
.feature-background,
.hero-section {
    filter: none !important;
    backdrop-filter: none !important;
    background-size: cover !important;
    background-position: center !important;
}

.popup img {
    filter: none !important;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.2s ease;
}

.menu-item i {
    width: 22px;
    text-align: center;
    color: var(--text-accent);
    font-size: 16px;
}

.menu-item:hover,
.menu-item:active {
    background: var(--bg-glass);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==================== AUTH PAGES (Login / Registration) ====================
   লগইন ও রেজিস্ট্রেশন পেজের শেয়ার্ড ডিজাইন সিস্টেম। উপরের গ্লোবাল থিম ভ্যারিয়েবলই
   ব্যবহার করা হয়েছে (body.light-mode override স্বয়ংক্রিয়ভাবে কাজ করে), আলাদা কোনো
   থিম সিস্টেম তৈরি করা হয়নি। */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-4);
    background: var(--bg-dark);
}

.auth-shell {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: var(--space-5);
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    box-shadow: var(--shadow-neon);
    font-size: 26px;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-6) var(--space-5) var(--space-5);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 var(--space-2);
}

.auth-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 var(--space-6);
    line-height: 1.5;
}

.auth-field {
    margin-bottom: var(--space-4);
}

.auth-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-2);
}

.auth-label__optional {
    font-weight: 400;
    color: var(--text-muted);
}

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

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px var(--space-4);
    font-size: 16px; /* iOS-এ ফোকাসে অটো-জুম ঠেকাতে ১৬px-এর নিচে নয় */
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input::placeholder { color: var(--text-muted); opacity: .75; }

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

.auth-input:disabled { opacity: .6; cursor: not-allowed; }

/* পাসওয়ার্ড ফিল্ডে টেক্সট যেন eye বাটনের নিচে ঢুকে না যায় */
.auth-input--password { padding-right: 52px; }

.auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

.auth-eye:hover { color: var(--text-main); }
.auth-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.auth-hint {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 6px;
}

/* ফিল্ড-লেভেল ভ্যালিডেশন বার্তা — শুধু রঙের উপর নির্ভর না করে আইকনসহ দেখানো হয় */
.auth-error {
    display: none;
    font-size: var(--font-xs);
    color: var(--red-text);
    margin-top: 6px;
    line-height: 1.4;
}

.auth-error.is-visible { display: block; }
.auth-input.has-error { border-color: var(--red); }
.auth-input.has-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }

.auth-ok {
    display: none;
    font-size: var(--font-xs);
    color: var(--green);
    margin-top: 6px;
}
.auth-ok.is-visible { display: block; }

.auth-note {
    font-size: var(--font-xs);
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px var(--space-3);
    margin: calc(var(--space-2) * -1) 0 var(--space-4);
    line-height: 1.5;
}

.auth-forgot {
    display: block;
    text-align: right;
    font-size: var(--font-sm);
    color: var(--text-muted);
    text-decoration: none;
    margin: calc(var(--space-2) * -1) 0 var(--space-5);
}
.auth-forgot:hover { color: var(--text-main); }

.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: var(--font-md);
    font-weight: 700;
    font-family: inherit;
    color: var(--text-white);
    background: var(--grad-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    transition: opacity .15s ease, transform .1s ease;
}

.auth-submit:hover:not(:disabled) { opacity: .93; }
.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-submit:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }

.auth-alt {
    text-align: center;
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin: var(--space-5) 0 0;
}

.auth-alt a { color: var(--text-accent); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* ==================== Google Sign-In ==================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0;
    color: var(--text-muted);
    font-size: var(--font-xs);
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}
.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 13px;
    font-size: var(--font-md);
    font-weight: 600;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.auth-google-btn:hover { background: var(--bg-glass); }
.auth-google-btn:active { transform: translateY(1px); }
.auth-google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-terms {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin: var(--space-4) 0 0;
}
.auth-terms a { color: var(--text-muted); text-decoration: underline; }

.auth-back {
    text-align: center;
    margin: var(--space-5) 0 0;
}
.auth-back a {
    color: var(--text-muted);
    font-size: var(--font-sm);
    text-decoration: none;
}
.auth-back a:hover { color: var(--text-main); }

/* হানিপট — ইউজারের কাছে অদৃশ্য, বট স্ক্রিপ্ট প্রায়ই পূরণ করে ফেলে */
.auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ছোট ফোনে (৩২০-৩৭৫px) একটু কম প্যাডিং, যাতে ভার্টিক্যাল স্ক্রল কম লাগে */
@media (max-width: 380px) {
    .auth-page { padding: var(--space-4) var(--space-3); }
    .auth-card { padding: var(--space-5) var(--space-4) var(--space-4); }
    .auth-title { font-size: 20px; }
}

/* ==================================================================
   FORCED TEXT CONTRAST — ডার্ক মোড
   ডার্ক মোডে সাইটের সব লেখা সাদা। টেমপ্লেটে ইনলাইন style-এ হার্ডকোড করা রঙও
   এতে ওভাররাইড হয় (!important)।

   হোয়াইট মোডে কোনো ফোর্সড রুল নেই — সেখানে লেখার রঙ আগের মতোই থিম টোকেন
   (--text-main / --text-muted / --text-accent) থেকেই আসে, তাই গোল্ড হেডিং,
   সবুজ লাভ, লাল ক্ষতির অঙ্ক নিজের রঙ ধরে রাখে।
   ================================================================== */

body:not(.light-mode),
body:not(.light-mode) * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

body:not(.light-mode) ::placeholder {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  opacity: .6;
}

/* ম্যানুয়াল অপ-আউট: ডার্ক মোডেও ব্র্যান্ড রঙ ধরে রাখতে class="keep-color" */
body .keep-color,
body .keep-color * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ডেটা লোড ব্যর্থতার সাধারণ ব্যানার — profile/payment পেজগুলোতে "খালি"
   আর "জানা যায়নি" আলাদা দেখাতে ব্যবহৃত হয় (loadError: true হলে)। */
.data-load-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  color: #ef4444;
  font-size: 13px;
  text-align: center;
}
.data-load-error-cell {
  text-align: center;
  padding: 40px 0;
  color: #f87171;
  font-size: 13px;
}
.data-load-error-box {
  text-align: center;
  padding: 40px 20px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px dashed #ef4444;
}
.data-load-error-box i {
  font-size: 40px;
  color: #ef4444;
  margin-bottom: 15px;
}
.data-load-error-box p {
  color: #ef4444;
  font-size: 13px;
}
body {
 background-color: #006a4e !important; 
}

button, 
input[type="button"], 
input[type="submit"], 
.btn, 
[class*="btn-"] {
 background-color: #f42a41 !important; 
 color: #ffffff !important; 
 border-color: #f42a41 !important;
 font-weight: bold;
}

button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover, 
.btn:hover, 
[class*="btn-"]:hover {
 background-color: #d32035 !important;
 color: #ffffff !important;
}
.container,
.card,
.glass,
.banner-container,
.announcement,
.hero-section {
 max-width: 100% !important;
 margin: 0 !important;
 padding: 0 !important;
 border: none !important;
 border-radius: 0 !important;
 box-shadow: none !important;
}

body {
 overflow-x: hidden;
}
