
/* ========= BINANCE-INSPIRED THEME (Light/Dark via CSS Variables) ========= */
:root{
  --primary:#F0B90B;        /* Binance yellow */
  --secondary:#1E2329;
  --success:#2EBd85;
  --warning:#F0B90B;
  --danger:#F6465D;

  --bg:#FFFFFF;
  --surface:#F7F7F7;
  --surface-2:#FFFFFF;
  --text:#111827;
  --muted:#6B7280;
  --border:#E5E7EB;

  /* legacy names used in your CSS */
  --dark:#111827;
  --dark-card:#FFFFFF;
  --dark-light:#F3F4F6;
}

html[data-theme="dark"]{
  --bg:#0B0E11;
  --surface:#111418;
  --surface-2:#1E2329;
  --text:#EAECEF;
  --muted:#9CA3AF;
  --border:#2B3139;

  --dark:#0B0E11;
  --dark-card:#111418;
  --dark-light:#1E2329;
}

body{
  background:var(--bg) !important;
  color:var(--text) !important;
}

* Earnvix - Modern Theme Update */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #00D9FF;
    --primary-dark: #0099CC;
    --secondary: #7B2FF7;
    --secondary-dark: #5B1FC7;
    --success: #00FF88;
    --success-dark: #00CC66;
    --warning: #FFB800;
    --warning-dark: #CC9200;
    --danger: #FF3864;
    --danger-dark: #CC2850;
    --dark: #0A0E27;
    --dark-light: #1A1F3A;
    --dark-card: #151932;
    --text: #FFFFFF;
    --text-muted: #8B92B0;
    --border: rgba(255, 255, 255, 0.1);
}

/* ========== RESET & BASE ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 50%, #0A0E27 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    padding-bottom: 80px; /* Space for bottom nav */
}

.section {
    margin: 24px 0;
}

/* ========== CARDS ========== */
.card {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(0, 217, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(123, 47, 247, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ========== EARNING CARD (Featured) ========== */
.earning-card {
    background: linear-gradient(135deg, #7B2FF7, #00D9FF);
    border: none;
    color: #000;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(123, 47, 247, 0.5);
}

.earning-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

.earning-card .balance-display {
    font-size: 48px;
    font-weight: 900;
    color: #000;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

/* ========== BALANCE CARDS ========== */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.balance-card {
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dark-light), var(--dark-card));
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-2px);
}

.balance-display {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(245, 216, 32, 0.3);
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 16px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000;
    background-clip: text;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 12px 0;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 10px 0;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 8px 0;
}

.small {
    font-size: 14px;
    opacity: 0.8;
    color: #000;
}

/* ========== FORM ELEMENTS ========== */
label {
    display: block;
    margin: 8px 0 4px 0;
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #000;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    border-color: #000;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

input::placeholder {
    color: #000;
}

/* ========== BUTTONS ========== */
button {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.5);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sm-copy {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.linkbtn {
    background: none;
    color: #000;
    padding: 0;
    border: none;
    font-weight: 500;
    text-decoration: underline;
    box-shadow: none;
}

/* ========== BADGES ========== */
.badge-green {
    background: var(--success);
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-yellow {
    background: var(--warning);
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-red {
    background: var(--danger);
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-gray {
    background: #95a5a6;
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-active {
    background: var(--success);
    color: #000;
}

.status-inactive {
    background: var(--danger);
    color: #000;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 12px;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== ADMIN ANALYTICS (Additive) ========== */
.analytics-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
}
.analytics-chart{padding:10px; border:1px solid var(--border); border-radius:14px; background:rgba(0,0,0,0.06);} 
html[data-theme="dark"] .analytics-chart{background:rgba(255,255,255,0.04);} 
.chart-bars{display:flex; align-items:flex-end; gap:6px; width:100%;}
.chart-bar{flex:1; min-width:4px; border-radius:10px 10px 4px 4px; background:linear-gradient(180deg, var(--primary), var(--secondary)); opacity:0.95;}

.bottomnav a {
    color: #000;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 11px;
}

.bottomnav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottomnav a.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #000;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

/* SVG icon sizing (replaces emoji icons) */
.nav-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    margin-bottom: 4px;
}

.nav-ico svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* ========== GRID LAYOUTS ========== */
.grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.crypto-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.crypto-stat-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #000;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.crypto-stat-card:hover {
    transform: translateY(-4px);
}

.crypto-stat-value {
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0;
}

/* ========== ACTIONS GRID ========== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.qa-ico {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.qa-ico svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* ===== Deposit Wallet List (User Deposit) ===== */
.deposit-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deposit-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--dark-card);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.deposit-wallet-row:hover {
  transform: translateY(-1px);
  background: rgba(123, 47, 247, 0.12);
}

.deposit-wallet-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.wallet-ico svg{
  width: 22px;
  height: 22px;
}

.wallet-label {
  font-weight: 700;
}

.wallet-arrow {
  font-size: 22px;
  opacity: 0.8;
}

.deposit-detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.deposit-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}

.deposit-qr {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.deposit-qr.placeholder {
  width: 190px;
  height: 190px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.deposit-address-row {
  display: flex;
  gap: 8px;
}

/* ===== Recent Activity Feed (Home) ===== */
.activity-list {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.activity-ticker-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--dark-card);
}

.activity-email {
  font-weight: 700;
}

.activity-amount {
  font-weight: 800;
}

.actions-grid > div {
    background: var(--dark-card);
    padding: 20px 12px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.actions-grid > div:hover {
    background: rgba(123, 47, 247, 0.2);
    transform: translateY(-2px);
    border-color: #000;
}

.qa-ico {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.qa-ico svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* ========== TABLES ========== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ========== NOTICE ========== */
.notice {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    padding: 16px;
    border-radius: 12px;
    color: #000;
    margin: 16px 0;
}

/* ========== TREE VISUALIZATION ========== */
.tree-container {
    overflow-x: auto;
    padding: 20px;
}

.tree-node {
    border: 1px solid var(--border);
    padding: 16px;
    margin: 8px;
    border-radius: 12px;
    background: var(--dark-card);
    min-width: 180px;
    display: inline-block;
    transition: all 0.3s ease;
}

.tree-node:hover {
    background: rgba(123, 47, 247, 0.2);
    border-color: #000;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 12px;
    }
    
    .card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .earning-card {
        padding: 20px;
    }
    
    .earning-card .balance-display {
        font-size: 36px;
    }
    
    .balance-grid {
        grid-template-columns: 1fr;
    }
    
    .grid3, .crypto-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bottomnav {
        grid-template-columns: repeat(5, 1fr);
        padding: 8px;
    }
    
    .bottomnav a {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .earning-card .balance-display {
        font-size: 28px;
    }
    
    .crypto-stat-value {
        font-size: 28px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ADMIN SPECIFIC STYLES ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    padding: 24px;
    background: var(--dark-light);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-content {
    flex-grow: 1;
    padding: 24px;
}

.sidebtn {
    width: 100%;
    padding: 14px;
    margin-bottom: 8px;
    text-align: left;
    border: none;
    border-radius: 12px;
    background: var(--dark-card);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebtn:hover {
    background: rgba(123, 47, 247, 0.2);
    transform: translateX(4px);
}

.sidebtn.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .earning-card {
    animation: fadeIn 0.5s ease;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* === Readability Improvements === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #F5F7FB;
    color: #000;
}

.card, .panel, .table-container {
    background: #FFFFFF !important;
    color: #000;
    border-radius: 12px;
}

h1, h2, h3, h4 {
    color: #000;
}

.text-muted {
    color: #000;
}

button, .btn {
    font-size: 15px;
    padding: 10px 16px;
}

input, select {
    background: #FFFFFF;
    color: #000;
    border: 1px solid #D1D5DB;
    padding: 10px;
    border-radius: 8px;
}

table {
    background: #FFFFFF;
    color: #000;
}

th {
    background: #E5E7EB;
    color: #000;
}

td {
    border-bottom: 1px solid #E5E7EB;
}

/* Tabs readability */
.nav-tabs .nav-link {
    font-size: 15px;
    padding: 10px 16px;
    color: #000;
}
.nav-tabs .nav-link.active {
    background-color: #000;
    border-bottom: 3px solid #2563EB;
    color: #000;
    font-weight: 600;
}
.tab-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 0 0 12px 12px;
}
/* =========================
   ADMIN TABS VISIBILITY FIX
   ========================= */

/* Tab buttons text */
.nav-tabs .nav-link {
    color: #000;      /* DARK TEXT */
    background-color: #000;
    border: 1px solid #D1D5DB;
    font-weight: 500;
}

/* Active tab */
.nav-tabs .nav-link.active {
    color: #000;
    background-color: #000;
    border-bottom: 3px solid #2563EB !important;
    font-weight: 600;
}

/* Hover */
.nav-tabs .nav-link:hover {
    color: #000;
    background-color: #000;
}

/* Tab content text */
.tab-content,
.tab-content p,
.tab-content span,
.tab-content div,
.tab-pane {
    color: #000;
    background-color: #000;
}

/* Fix invisible text inside tables */
.tab-content table,
.tab-content th,
.tab-content td {
    color: var(--text);
}


/* ========= Binance-like cards ========= */
.card{
  background:var(--surface-2) !important;
  border:1px solid var(--border) !important;
  color:var(--text) !important;
}
.small, .stat-label, .balance-label{
  color:var(--muted) !important;
}

/* ========= TOASTS ========= */
.toast{
  position:fixed;
  top:20px;
  right:20px;
  padding:14px 18px;
  border-radius:12px;
  font-weight:600;
  box-shadow:0 10px 24px rgba(0,0,0,0.25);
  z-index:9999;
  border:1px solid var(--border);
  color:var(--text);
  background:var(--surface-2);
}
.toast-success{
  border-color:rgba(46,189,133,0.35);
  background:rgba(46,189,133,0.15);
}
.toast-error{
  border-color:rgba(246,70,93,0.35);
  background:rgba(246,70,93,0.15);
}

/* =========================
   BINANCE UI POLISH (Home card + dark-mode readability)
   Appends safe overrides without changing your logic.
   ========================= */

/* Readable typography everywhere */
body,
.main-content,
.card,
.card *{
  color: var(--text) !important;
}

/* Muted text */
.small,
.stat-label,
.balance-label,
.muted{
  color: var(--muted) !important;
}

/* Links */
a{
  color: var(--primary) !important;
}

/* Fix any leftover hardcoded black backgrounds/text */
.nav-tabs .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.tab-content,
.tab-content p,
.tab-content span,
.tab-content div,
.tab-pane{
  background: transparent !important;
  color: var(--text) !important;
}

/* Tables */
table,
th,
td{
  color: var(--text) !important;
}

/* ===== Home: Top earnings card (more attractive) ===== */
.highlight-card{
  position: relative;
  border-radius: 22px !important;
  padding: 26px !important;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(240,185,11,0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(46,189,133,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00)),
    var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

html[data-theme="dark"] .highlight-card{
  box-shadow: 0 18px 56px rgba(0,0,0,0.55);
}

.highlight-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(240,185,11,0.22), rgba(240,185,11,0.00) 35%, rgba(46,189,133,0.10) 70%, rgba(46,189,133,0.00));
  opacity: 0.9;
  pointer-events: none;
}

.highlight-card > *{
  position: relative;
  z-index: 1;
}

.big-balance{
  font-size: 44px !important;
  line-height: 1.1;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  margin: 6px 0 12px;
  color: var(--text) !important;
}

.balance-label{
  font-size: 13px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stats-row{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-item{
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
}

html[data-theme="dark"] .stat-item{
  background: rgba(255,255,255,0.04);
}

.stat-value{
  font-weight: 800;
  font-size: 16px;
  color: var(--text) !important;
}

/* Balance cards: remove hardcoded black text fill */
.balance-display{
  background: linear-gradient(90deg, var(--primary), rgba(240,185,11,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* Ensure badges readable */
.vip-badge{
  color: #111 !important;
}

/* Prominent Current Level badge */
.member-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

html[data-theme="dark"] .member-badge{
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .vip-badge{
  color: #0B0E11 !important;
}

/* Mobile improvements */
@media (max-width: 520px){
  .big-balance{ font-size: 36px !important; }
  .stats-row{ grid-template-columns: 1fr; }
}

/* ===================== User Requested Tweaks =====================
   1) Dark mode: dollar signs & amounts in gold
   2) Dark mode: if any section remains white, force black text
   3) Dark mode: selects/inputs/options visible when selecting
   ================================================================ */

/* 1) Amounts in gold (dark mode) */
html[data-theme="dark"] .big-balance,
html[data-theme="dark"] .balance-display,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .earning-card .balance-display,
html[data-theme="dark"] .balance-card .balance-display,
html[data-theme="dark"] .transaction-amount,
html[data-theme="dark"] .amount,
html[data-theme="dark"] .usd,
html[data-theme="dark"] .price{
  color: #F0B90B !important; /* Binance gold */
  -webkit-text-fill-color: #F0B90B !important;
  background: none !important;
}

/* If you show amounts like "$12.34" inside <strong> etc. */
html[data-theme="dark"] strong,
html[data-theme="dark"] b{
  color: inherit;
}

/* 2) If any surface stays light/white in dark mode, force black text for contrast */
html[data-theme="dark"] .card[style*="background: #fff"],
html[data-theme="dark"] .card[style*="background:#fff"],
html[data-theme="dark"] .card[style*="background: white"],
html[data-theme="dark"] .card[style*="background:white"],
html[data-theme="dark"] .white-bg,
html[data-theme="dark"] .light-surface{
  color: #111827 !important;
}

html[data-theme="dark"] .card[style*="background: #fff"] *,
html[data-theme="dark"] .card[style*="background:#fff"] *,
html[data-theme="dark"] .card[style*="background: white"] *,
html[data-theme="dark"] .card[style*="background:white"] *,
html[data-theme="dark"] .white-bg *,
html[data-theme="dark"] .light-surface *{
  color: #111827 !important;
}

/* 3) Dark mode form controls: visible selected option + clear text */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background: #111418 !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color: rgba(234,236,239,0.65) !important;
}

/* Focus highlight (Binance-like) */
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{
  outline: none !important;
  border-color: #F0B90B !important;
  box-shadow: 0 0 0 3px rgba(240,185,11,0.20) !important;
}

/* Selected dropdown options: browser-dependent, but helps in most cases */
html[data-theme="dark"] select option{
  background: #111418;
  color: #EAECEF;
}

/* If your deposit/withdraw cards are using white backgrounds from older CSS, normalize them */
html[data-theme="dark"] .balance-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .table-container{
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
/* ========= DARK MODE VISIBILITY OVERRIDES (high specificity) ========= */
html[data-theme="dark"] body{
  color: #EAECEF !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6{
  color: #EAECEF !important;
  background: none !important;
  -webkit-text-fill-color: #EAECEF !important;
}

/* Section headings inside cards */
html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4{
  color: #EAECEF !important;
  -webkit-text-fill-color: #EAECEF !important;
}

/* Tables in cards: Recent Transactions / Direct Team Members */
html[data-theme="dark"] .table-container{
  background: #111418 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
}

html[data-theme="dark"] .table-container table{
  background: transparent !important;
  color: #EAECEF !important;
}

html[data-theme="dark"] .table-container thead th{
  background: #1E2329 !important;
  color: #EAECEF !important;
}

html[data-theme="dark"] .table-container tbody td{
  background: transparent !important;
  color: #EAECEF !important;
}

html[data-theme="dark"] .table-container tbody tr{
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

html[data-theme="dark"] .table-container .small,
html[data-theme="dark"] .small,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .balance-label{
  color: #B7BDC6 !important;
}

/* If any card/table still ends up white, force dark surface */
html[data-theme="dark"] .card[style*="background:#fff"],
html[data-theme="dark"] .card[style*="background: #fff"],
html[data-theme="dark"] .card[style*="background:white"],
html[data-theme="dark"] .card[style*="background: white"]{
  background: #111418 !important;
  color: #EAECEF !important;
}


/* ===== Tasks page mobile-friendly + visible survey options (scoped) ===== */
.tasks-page .task-card { padding: 14px; }
.tasks-page .task-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tasks-page .task-title { margin:0 0 6px 0; }
.tasks-page .task-sub { font-size: 13px; color: var(--text-muted); }
.tasks-page .task-reward strong { color: var(--gold); }
.tasks-page .task-btn { width: 100%; max-width: 160px; }

.tasks-page .task-desc { margin-top: 12px; color: var(--text); }
.tasks-page .task-desc p { color: var(--text); }
.tasks-page .task-desc label { color: var(--text); display:block; margin: 10px 0; cursor:pointer; }
.tasks-page .task-desc input,
.tasks-page .task-desc select,
.tasks-page .task-desc textarea { color: var(--text); }

.tasks-page .task-desc .option,
.tasks-page .task-desc .survey-option { 
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  margin: 10px 0;
}
.tasks-page .task-desc input[type="radio"],
.tasks-page .task-desc input[type="checkbox"] { 
  width: 18px; height: 18px; 
  accent-color: var(--gold);
  flex: 0 0 auto;
}
.tasks-page .task-desc .question,
.tasks-page .task-desc .task-question { 
  font-weight: 600;
  margin: 6px 0 10px;
  color: var(--text);
}

@media (max-width: 520px){
  .tasks-page .card { padding: 12px; }
  .tasks-page h1 { font-size: 22px; }
  .tasks-page .task-btn { max-width: 100%; }
}


/* ===== Tasks: countdown + options tiles (no timezone dependency) ===== */
.tasks-page .task-summary .ts-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tasks-page .ts-strong{font-size:16px;font-weight:700;color:var(--text)}
.tasks-page .progress-wrap{margin-top:10px}
/* Reuse global .progress-bar/.progress-fill styles, but remove default margin so it fits nicely in the tasks card */
.tasks-page .progress-bar{margin:0;height:10px}
.tasks-page .countdown{font-variant-numeric:tabular-nums;font-weight:700;color:var(--text)}
.tasks-page .task-question{margin-top:12px;font-weight:700;color:var(--text)}
.tasks-page .task-options{margin-top:10px;display:flex;flex-direction:column;gap:10px}
.tasks-page .opt-tile{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:12px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.10);cursor:pointer;transition:transform .08s ease, background .2s ease}
.tasks-page .opt-tile:active{transform:scale(0.99)}
.tasks-page .opt-tile input{accent-color:var(--gold);width:18px;height:18px;flex:0 0 18px;margin-top:2px;transform:none}
.tasks-page .opt-tile span{color:var(--text);line-height:1.35;display:block;flex:1}
[data-theme="light"] .tasks-page .opt-tile{background:rgba(0,0,0,0.04);border-color:rgba(0,0,0,0.08)}


/* ===== Earning Chart + Support (User) ===== */
.earnings-page h3{
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

.fade-in{
  animation: fadeInUp .25s ease both;
}
@keyframes fadeInUp{
  from{opacity:0; transform: translateY(6px);}
  to{opacity:1; transform: translateY(0);}
}

.earnings-page .table-wrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.earn-table{
  width:100%;
  border-collapse: collapse;
  min-width: 680px;
}
.earn-table th, .earn-table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 14px;
  white-space: nowrap;
}
.earn-table thead th{
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
}

/* Dark mode: ensure the DAILY EARNING TABLE background is clearly visible */
html[data-theme="dark"] .earnings-page .table-wrap{
  background: rgba(255,255,255,0.03);
}
html[data-theme="dark"] .earnings-page .earn-table{
  background: #111418;
  color: var(--text);
}
html[data-theme="dark"] .earnings-page .earn-table th,
html[data-theme="dark"] .earnings-page .earn-table td{
  color: var(--text) !important;
  background: transparent !important;
}
html[data-theme="dark"] .earnings-page .earn-table tbody tr{
  background: transparent;
}
html[data-theme="dark"] .earnings-page .earn-table thead th{
  background: #1E2329;
}

.rules .rule-item{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}

.support-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.support-tile{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.support-tile:active{
  transform: scale(0.99);
}
.support-ico{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  flex: 0 0 44px;
}
.support-ico svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.support-tile.telegram .support-ico{
  color: #2AABEE;
  background: rgba(42,171,238,0.14);
}
.support-tile.whatsapp .support-ico{
  color: #25D366;
  background: rgba(37,211,102,0.14);
}
.support-title{
  font-weight: 700;
}
.small{font-size: 12px;}


/* Support logos */
.support-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);}
.support-icon img{width:22px;height:22px;filter:invert(1);opacity:.95;}
.support-tile.whatsapp .support-icon{background:rgba(37,211,102,.12);} 
.support-tile.telegram .support-icon{background:rgba(34,158,217,.12);} 


/* Admin Support Links: better input + placeholder visibility */
#supportTelegram, #supportWhatsapp{
  background: #111827 !important;
  border: 1px solid #374151 !important;
  color: #eaecef !important;
}
#supportTelegram::placeholder, #supportWhatsapp::placeholder{
  color: rgba(234,236,239,0.65) !important;
}


/* --- Minor updates: clickable stat + deposit QR --- */
.stat-item.clickable { cursor: pointer; }
.stat-item.clickable:active { transform: scale(0.99); }

/* ================================
   Referral Team Bonus (Quick Action)
   - Improve dark theme readability
   - Slightly more stylish tile + modal
   ================================ */

/* Make the Referral Team Bonus quick action tile clearer in dark theme */
html[data-theme="dark"] .quick-action[data-refbonus="1"],
html[data-theme="dark"] .quick-action[data-refbonus="1"]:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(217, 70, 239, 0.14)) !important;
  border: 1px solid rgba(234, 236, 239, 0.14) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25) !important;
}
html[data-theme="dark"] .quick-action[data-refbonus="1"] .qa-icon {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}
html[data-theme="dark"] .quick-action[data-refbonus="1"] .qa-title {
  color: var(--text) !important;
}

/* Referral Bonus overlay + card (IDs come from index.html injected block) */
html[data-theme="dark"] #referralBonusSection {
  background: rgba(0,0,0,0.78) !important;
}
html[data-theme="dark"] #referralBonusSection > div {
  background: linear-gradient(180deg, rgba(24, 27, 33, 0.96), rgba(17, 20, 24, 0.96)) !important;
  border: 1px solid rgba(234, 236, 239, 0.14) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55) !important;
  color: var(--text) !important;
}

/* Make the progress box clearer */
html[data-theme="dark"] #referralBonusSection #rbTeamLine,
html[data-theme="dark"] #referralBonusSection #rbNextLine {
  color: var(--text) !important;
}
html[data-theme="dark"] #referralBonusSection #rbNextLine {
  color: #34d399 !important;
}
html[data-theme="dark"] #referralBonusSection #rbBar {
  background: linear-gradient(90deg, var(--secondary), var(--primary)) !important;
  border-radius: 999px !important;
}

/* Referral bonus table readability */
html[data-theme="dark"] #referralBonusSection table {
  background: rgba(255,255,255,0.02) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] #referralBonusSection thead tr {
  background: rgba(255,255,255,0.07) !important;
}
html[data-theme="dark"] #referralBonusSection th,
html[data-theme="dark"] #referralBonusSection td {
  color: var(--text) !important;
}
html[data-theme="dark"] #referralBonusSection tbody tr {
  border-top: 1px solid rgba(234, 236, 239, 0.10) !important;
}

.deposit-qr-wrap { margin-top: 12px; text-align: center; }
.deposit-qr-title { font-weight: 600; margin-bottom: 8px; }
.deposit-qr { width: 180px; max-width: 80vw; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 10px; }
.deposit-qr-lg { width: min(320px, 85vw); border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: 12px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 18px; }
.modal-card { width: min(520px, 92vw); background: var(--card-bg, #111); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.icon-btn { background: transparent; border: none; color: inherit; font-size: 18px; cursor: pointer; }


/* VIP subscription list (inside VIP Level / Referral Code card) */
.vip-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px}
.vip-row-left{display:flex;flex-direction:column;gap:2px;min-width:0}
.vip-name{font-weight:700}
.vip-price{opacity:.9}
.vip-row-right{flex:0 0 auto}
.vip-row-right button{padding:8px 12px;font-size:.9rem;border-radius:10px;min-width:92px}
.vip-row-right .btn-disabled{opacity:.7}
.vip-list{display:flex;flex-direction:column;gap:10px}

/* =====================
   User request: Light theme bottom nav fully dark
   (scoped to bottom navigation only)
   ===================== */
html:not([data-theme="dark"]) .bottomnav,
html[data-theme="light"] .bottomnav{
  background: #000 !important;
  border-top: 1px solid rgba(255,255,255,0.14) !important;
}

html:not([data-theme="dark"]) .bottomnav a,
html[data-theme="light"] .bottomnav a{
  color: rgba(255,255,255,0.92) !important;
}

html:not([data-theme="dark"]) .bottomnav a:hover,
html[data-theme="light"] .bottomnav a:hover{
  background: rgba(255,255,255,0.08) !important;
}

html:not([data-theme="dark"]) .bottomnav a.active,
html[data-theme="light"] .bottomnav a.active{
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ========== UX Enhancements: Skeleton loaders ========== */
.skeleton{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
html[data-theme="light"] .skeleton{ background: rgba(0,0,0,0.08); }
.skeleton::after{
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  animation: skeletonShimmer 1.2s infinite;
}
html[data-theme="light"] .skeleton::after{ background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent); }
@keyframes skeletonShimmer{
  0%{ left: -150px; }
  100%{ left: 100%; }
}

/* ========== Notification Bell + Center ========== */
.notify-bell{ position: fixed; right: 16px; bottom: 84px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); background: rgba(15,20,27,0.92); color: #fff; font-size: 20px; display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 28px rgba(0,0,0,0.35); cursor:pointer; z-index: 9999; }
html[data-theme="light"] .notify-bell{ background: rgba(0,0,0,0.92); border-color: rgba(255,255,255,0.18); }
.notify-badge{ position:absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; padding: 0 6px; background: var(--danger); color: #fff; font-size: 11px; display:inline-flex; align-items:center; justify-content:center; border: 2px solid rgba(15,20,27,0.92); }
.notify-modal{ position: fixed; inset: 0; z-index: 10000; display:none; }
.notify-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.65); }
.notify-card{ position: relative; width: min(520px, 92vw); max-height: 78vh; overflow:auto; margin: 10vh auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.notify-head{ display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notify-head h3{ margin:0; }
.notify-x{ background: transparent; border: none; color: inherit; font-size: 18px; cursor:pointer; }
.notify-body{ padding: 12px 16px; }
.notify-item{ padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.notify-item.unread{ border-color: rgba(0,255,136,0.35); box-shadow: 0 0 0 2px rgba(0,255,136,0.08) inset; }
.notify-title{ font-weight: 800; margin-bottom: 4px; }
.notify-msg{ opacity: 0.92; }
.notify-time{ opacity: 0.7; font-size: 12px; margin-top: 6px; }
.notify-foot{ padding: 10px 16px 14px; border-top: 1px solid var(--border); display:flex; justify-content:flex-end; }

/* ========== Announcements ========== */
#annBanner{ position: fixed; top: 0; left: 0; right: 0; z-index: 9998; }
.ann-banner{ display:flex; gap: 12px; align-items:center; padding: 12px 14px; background: rgba(0,0,0,0.92); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ann-banner-title{ font-weight: 900; }
.ann-banner-msg{ opacity: 0.92; flex: 1; }
.ann-close{ background: transparent; border: none; color: #fff; font-size: 16px; cursor:pointer; }
.ann-popup-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,0.65); }
.ann-popup-card{ position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(520px, 92vw); background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 18px 46px rgba(0,0,0,0.5); }
.ann-popup-card h3{ margin: 0 0 8px; }
.ann-popup-card button{ width: 100%; margin-top: 10px; }

/* ========== Referral Tools + Withdrawal Timeline ========== */
.ref-tools{ display:flex; flex-direction:column; gap: 12px; }
.ref-row{ display:flex; flex-direction:column; gap: 6px; }
.ref-link{ word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,0.06); border: 1px solid var(--border); padding: 10px 12px; border-radius: 12px; }
html[data-theme="light"] .ref-link{ background: rgba(0,0,0,0.06); }
.ref-actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.sm-copy{ padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); cursor:pointer; }
html[data-theme="light"] .sm-copy{ background: rgba(0,0,0,0.06); }
.ref-qr{ display:flex; flex-direction:column; align-items:flex-start; }
.ref-qr-img{ width: 160px; height: 160px; border-radius: 14px; border: 1px solid var(--border); background: #fff; }

.withdraw-list{ display:flex; flex-direction:column; gap: 12px; }
.withdraw-item{ border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.wi-top{ display:flex; justify-content:space-between; gap: 10px; flex-wrap:wrap; }
.timeline{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 10px; }
.tstep{ display:flex; align-items:center; gap: 8px; opacity: 0.65; }
.tstep .dot{ width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 1px solid var(--border); }
html[data-theme="light"] .tstep .dot{ background: rgba(0,0,0,0.2); }
.tstep.done{ opacity: 1; }
.tstep.done .dot{ background: var(--primary); border-color: rgba(0,255,136,0.4); }
.tstep .lbl{ font-size: 12px; }
.tx{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }



/* =========================================================
   Referral Bonus / Referral Team Bonus - Dark Theme Fix
   (Scoped styles only; no global UI changes)
   ========================================================= */
.actions-grid > .qa-referral-bonus{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240,185,11,0.25);
  background: linear-gradient(135deg, rgba(240,185,11,0.14), rgba(123,47,247,0.10));
}
.actions-grid > .qa-referral-bonus::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 30% 20%, rgba(240,185,11,0.22), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(0,217,255,0.14), transparent 55%);
  pointer-events:none;
}
.actions-grid > .qa-referral-bonus > *{ position: relative; z-index: 1; }

html[data-theme="dark"] .actions-grid > .qa-referral-bonus{
  background: linear-gradient(135deg, rgba(240,185,11,0.16), rgba(30,35,41,0.92)) !important;
  border-color: rgba(240,185,11,0.30) !important;
}

/* Page container */
html[data-theme="dark"] .referral-bonus-page{
  color: #EAECEF !important;
}

/* Main card */
html[data-theme="dark"] .referral-bonus-card{
  background: rgba(17,20,24,0.96) !important;
  border: 1px solid rgba(240,185,11,0.28) !important;
  box-shadow: 0 14px 46px rgba(0,0,0,0.65) !important;
}

/* Header block */
html[data-theme="dark"] .ref-bonus-head{
  padding: 14px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,35,41,0.98), rgba(17,20,24,0.92)) !important;
  border: 1px solid rgba(240,185,11,0.18) !important;
}

/* Progress */
html[data-theme="dark"] .ref-progress-track{
  background: rgba(43,49,57,0.85) !important;
  border: 1px solid rgba(240,185,11,0.16) !important;
}
html[data-theme="dark"] .ref-progress-fill{
  background: linear-gradient(90deg, rgba(240,185,11,0.95), rgba(0,217,255,0.80)) !important;
}

/* Table */
html[data-theme="dark"] .ref-bonus-table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(30,35,41,0.92) !important;
  border: 1px solid rgba(240,185,11,0.16) !important;
  border-radius: 14px;
  overflow: hidden;
}
html[data-theme="dark"] .ref-bonus-table thead th{
  background: rgba(11,14,17,0.95) !important;
  color: #EAECEF !important;
  border-bottom: 1px solid rgba(240,185,11,0.16) !important;
}
html[data-theme="dark"] .ref-bonus-table td{
  color: #EAECEF !important;
  border-bottom: 1px solid rgba(43,49,57,0.75) !important;
}
html[data-theme="dark"] .ref-bonus-table tbody tr:hover{
  background: rgba(240,185,11,0.08) !important;
}

/* Ghost button */
html[data-theme="dark"] .btn-ghost{
  color: #EAECEF !important;
  border: 1px solid rgba(240,185,11,0.20) !important;
  background: rgba(30,35,41,0.65) !important;
}
html[data-theme="dark"] .btn-ghost:hover{
  background: rgba(240,185,11,0.12) !important;
}




/* ===== Payment method cards (Deposit/Withdraw) ===== */
.pay-methods{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:16px;
}
.pay-method-card{
  flex:1 1 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  text-align:center;
}
.pay-method-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}
.pay-logo{
  height: 38px;
  max-width: 140px;
  object-fit: contain;
  display:block;
  margin: 0 auto 10px auto;
}
.pay-crypto-ico{
  width:48px;
  height:48px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 10px auto;
  border: 1px solid rgba(255,255,255,0.10);
  font-weight:800;
  font-size: 22px;
}
.pay-name{
  font-weight: 800;
  margin-top: 6px;
}
/* =================================================== */













\n



/* ===== LIGHT THEME VISIBILITY PATCH v6 (html[data-theme]) ===== */
/* Your theme is applied on <html data-theme="light"> via script.js.
   This patch ONLY affects light mode and ONLY improves visibility. */

html[data-theme="light"] {
  color: #111 !important;
}

/* Bottom navigation: text + icons visible */
html[data-theme="light"] .bottomnav,
html[data-theme="light"] .bottomnav * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-theme="light"] .bottomnav a,
html[data-theme="light"] .bottomnav a * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* If nav icons are SVGs, make them inherit text color (visibility-only for light mode) */
html[data-theme="light"] .bottomnav svg,
html[data-theme="light"] .bottomnav svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* If nav icons are icon-fonts (<i>), ensure they show */
html[data-theme="light"] .bottomnav i,
html[data-theme="light"] .bottomnav .icon {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Menu / drawer / panels (common containers) */
html[data-theme="light"] .menu,
html[data-theme="light"] .menu *,
html[data-theme="light"] .drawer,
html[data-theme="light"] .drawer *,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar *,
html[data-theme="light"] .modal,
html[data-theme="light"] .modal * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Banner / highlight card content (script.js shows: <div class="card highlight-card"> ) */
html[data-theme="light"] .highlight-card,
html[data-theme="light"] .highlight-card * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Also cover generic banners if used */
html[data-theme="light"] .banner,
html[data-theme="light"] .banner *,
html[data-theme="light"] .top-banner,
html[data-theme="light"] .top-banner *,
html[data-theme="light"] .announcement,
html[data-theme="light"] .announcement *,
html[data-theme="light"] .alert,
html[data-theme="light"] .alert * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===== END LIGHT THEME VISIBILITY PATCH v6 (html[data-theme]) ===== */


/* ===== LIGHT THEME DASHBOARD VISIBILITY FIX v7 (auto) ===== */
/* Light mode only — fix faded dashboard content (opacity/filter issue) */
html[data-theme="light"] body,
html[data-theme="light"] #app,
html[data-theme="light"] .app,
html[data-theme="light"] main,
html[data-theme="light"] .main,
html[data-theme="light"] .container,
html[data-theme="light"] .content,
html[data-theme="light"] .page,
html[data-theme="light"] .dashboard,
html[data-theme="light"] .card,
html[data-theme="light"] .panel {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  color: #111 !important;
}

/* Make sure ALL text inside dashboard is visible */
html[data-theme="light"] body * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Icons inside quick actions / nav */
html[data-theme="light"] svg,
html[data-theme="light"] svg *,
html[data-theme="light"] i,
html[data-theme="light"] .icon {
  opacity: 1 !important;
  visibility: visible !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  color: #111 !important;
}
/* ===== END LIGHT THEME DASHBOARD VISIBILITY FIX v7 (auto) ===== */


/* ===== LIGHT THEME VISIBILITY PATCH v8 (auto) ===== */
/* Light mode only — fix washed-out text + bottom nav visibility */

html[data-theme="light"] body,
html[data-theme="light"] body * {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Force readable text where it commonly goes washed out */
html[data-theme="light"] :is(
  h1,h2,h3,h4,h5,h6,
  p,span,small,strong,b,em,
  label,li,td,th,
  a,.title,.subtitle,.heading,.Large,.Small
) {
  color: #111 !important;
  opacity: 1 !important;
}

/* Cards/panels/sections (VIP list + dashboard areas) */
html[data-theme="light"] :is(
  .card,.panel,.content,.page,.dashboard,.container,
  .highlight-card,.vip-card,.subscription,.section,.section-title
),
html[data-theme="light"] :is(
  .card,.panel,.content,.page,.dashboard,.container,
  .highlight-card,.vip-card,.subscription,.section,.section-title
) * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Bottom navigation: make it visible in light mode (matches local light UI expectation) */
html[data-theme="light"] .bottomnav {
  background: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}
html[data-theme="light"] .bottomnav,
html[data-theme="light"] .bottomnav * {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Bottom nav icons: ensure SVG/icon fonts show */
html[data-theme="light"] .bottomnav svg,
html[data-theme="light"] .bottomnav svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}
html[data-theme="light"] .bottomnav i,
html[data-theme="light"] .bottomnav .icon {
  color: #111 !important;
  opacity: 1 !important;
}

/* ===== END LIGHT THEME VISIBILITY PATCH v8 (auto) ===== */


/* ===== LIGHT THEME NAV ICON REVERT v9 (auto) ===== */
/* Light mode ONLY: revert bottom nav icon styling (do not change icon design/colors),
   keep text readable and visible. */

/* Revert any forced icon coloring from previous patches */
html[data-theme="light"] .bottomnav svg,
html[data-theme="light"] .bottomnav svg * {
  fill: revert !important;
  stroke: revert !important;
  color: revert !important;
}

html[data-theme="light"] .bottomnav i,
html[data-theme="light"] .bottomnav .icon,
html[data-theme="light"] .bottomnav .nav-icon,
html[data-theme="light"] .bottomnav .menu-icon {
  color: revert !important;
}

/* Keep ONLY text readable (without touching icons) */
html[data-theme="light"] .bottomnav a span,
html[data-theme="light"] .bottomnav a small,
html[data-theme="light"] .bottomnav a p,
html[data-theme="light"] .bottomnav a .label,
html[data-theme="light"] .bottomnav a .text {
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===== END LIGHT THEME NAV ICON REVERT v9 (auto) ===== */
\n
/* ===== LIGHT MODE BOTTOMNAV ICON FIX v10 (auto) ===== */
/* Light mode ONLY: restore original stroke-based nav icons (do not fill them) */
html[data-theme="light"] .bottomnav .nav-ico svg,
html[data-theme="light"] .bottomnav .nav-ico svg * {
  fill: none !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===== END LIGHT MODE BOTTOMNAV ICON FIX v10 (auto) ===== */
