/*
 * Droidfirm
 * Copyright 2026 Droidfirm LLC.
 * Licensed under MIT ()
 */

/* ==========================================
   1. BINANCE THEME VARIABLES & RESET
   ========================================== */
:root {
  --bg-dark: #0b0e11;
  --bg-card: #181a20;
  --bg-card-hover: #2b313a;
  --border-color: #2b313a;
  --border-accent: rgba(240, 185, 11, 0.3);
  
  --primary: #f0b90b;
  --primary-hover: #fcd535;
  --primary-gradient: linear-gradient(135deg, #f0b90b 0%, #fcd535 100%);
  --accent-green: #0ecb81;
  --accent-red: #f6465d;
  --accent-orange: #ff9500;
  --accent-blue: #00a8ff;
  --accent-glow: rgba(240, 185, 11, 0.15);
  
  --text-main: #eaecef;
  --text-muted: #848e9c;
  --text-dim: #474d57;
  
  --sidebar-width: 13.5417vw;
  --navbar-height: 3.9063vw;
  --radius-sm: 0.4167vw;
  --radius-md: 0.7292vw;
  --radius-lg: 1.0417vw;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Admin-specific variables */
  --admin-sidebar-width: 250px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(240, 185, 11, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(240, 185, 11, 0.02) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2b313a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================
   2. DESKTOP LAYOUT (SIDEBAR & NAVBAR)
   ========================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: #121418;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.brand-header {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 1.25vw;
  gap: 0.625vw;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  width: 2.0833vw;
  height: 2.0833vw;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.nav-menu {
  padding: 1.25vw 0.8333vw;
  display: flex;
  flex-direction: column;
  gap: 0.3125vw;
  flex: 1;
  overflow-y: scroll;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 0.8333vw 0.625vw 0.4167vw;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7292vw;
  padding: 0.625vw 0.8333vw;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #0b0e11;
  background: var(--primary-gradient);
  box-shadow: 0 0.2083vw 1.0417vw rgba(240, 185, 11, 0.25);
  font-weight: 700;
}

.nav-item i {
  font-size: 1.1rem;
  width: 1.0417vw;
  text-align: center;
}

.sidebar-promo {
  margin: 0.8333vw;
  padding: 0.9375vw;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(24, 26, 32, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.sidebar-promo h4 { font-size: 0.9rem; margin-bottom: 0.3125vw; color: var(--primary); }
.sidebar-promo p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.625vw; }

/* MAIN CONTENT WRAPPER */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOP NAVBAR */
.navbar {
  height: var(--navbar-height);
  background: rgba(24, 26, 32, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6667vw;
  position: sticky;
  top: 0;
  z-index: 90;
}

#mobile-toggle {
  display: none;
}

.nav-search {
  position: relative;
  width: 16.6667vw;
}

.nav-search input {
  width: 100%;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5208vw 0.8333vw 0.5208vw 2.1875vw;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
}

.nav-search i {
  position: absolute;
  left: 0.7292vw;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8333vw;
}

.icon-btn {
  width: 2.1875vw;
  height: 2.1875vw;
  border-radius: 50%;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: #2b313a;
  color: var(--primary);
  border-color: var(--primary);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 0.5208vw;
  right: 0.5208vw;
  width: 0.4167vw;
  height: 0.4167vw;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 0.4167vw var(--accent-red);
}

/* PROFILE BADGE */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.625vw;
  padding: 0.3125vw 0.625vw 0.3125vw 0.3125vw;
  border-radius: 1.5625vw;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.user-profile:hover {
  border-color: var(--primary);
}

.avatar-wrapper {
  position: relative;
  width: 1.9792vw;
  height: 1.9792vw;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.5208vw;
  height: 0.5208vw;
  background: var(--accent-green);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-right: 0.2083vw;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.user-tier {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================
   3. DASHBOARD COMPONENTS & CARDS
   ========================================== */
.dashboard-container {
  padding: 1.6667vw;
  display: flex;
  flex-direction: column;
  gap: 1.4583vw;
}

.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8333vw;
}

.welcome-text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.welcome-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2083vw;
}

.action-group {
  display: flex;
  gap: 0.625vw;
}

.btn {
  padding: 0.5208vw 1.0417vw;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4167vw;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #0b0e11;
  box-shadow: 0 0.2083vw 0.7813vw rgba(240, 185, 11, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0.3125vw 1.0417vw rgba(240, 185, 11, 0.45);
}

.btn-secondary {
  background: #2b313a;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #363c4e;
  border-color: rgba(255, 255, 255, 0.2);
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10vw, 1fr));
  gap: 1.0417vw;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1458vw;
  display: flex;
  flex-direction: column;
  gap: 0.7292vw;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0.5208vw 1.5625vw rgba(0,0,0,0.4);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-title {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 1.9792vw;
  height: 1.9792vw;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #0b0e11;
  color: var(--primary);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.4167vw;
  font-size: 0.8rem;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2083vw;
  padding: 0.1563vw 0.4167vw;
  border-radius: 1.0417vw;
  font-weight: 700;
  font-size: 0.75rem;
}

.trend-up {
  background: rgba(14, 203, 129, 0.15);
  color: var(--accent-green);
}

.trend-down {
  background: rgba(246, 70, 93, 0.15);
  color: var(--accent-red);
}

.stat-footer span {
  color: var(--text-dim);
}

/* ANALYTICS & WATCHLIST GRID */
.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25vw;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25vw;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.0417vw;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5208vw;
}

.time-tabs {
  display: flex;
  background: #0b0e11;
  padding: 0.2083vw;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 0.2083vw;
}

.time-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3125vw 0.625vw;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.time-btn.active, .time-btn:hover {
  background: #2b313a;
  color: var(--primary);
}

.chart-container {
  position: relative;
  height: 16.6667vw;
  width: 100%;
}

/* FOREX WATCHLIST */
.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.625vw;
}

.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625vw 0.7292vw;
  border-radius: var(--radius-md);
  background: #0b0e11;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.watchlist-item:hover {
  border-color: var(--primary);
}

.pair-info {
  display: flex;
  align-items: center;
  gap: 0.625vw;
}

.pair-icon {
  width: 1.875vw;
  height: 1.875vw;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.pair-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.pair-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.pair-price-box {
  text-align: right;
}

.pair-price {
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.price-flash-up { color: var(--accent-green) !important; }
.price-flash-down { color: var(--accent-red) !important; }

/* TRANSACTIONS TABLE */
.table-responsive {
  overflow-x: auto;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tx-table th {
  padding: 0.625vw 0.8333vw;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}

.tx-table td {
  padding: 0.8333vw;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  padding: 0.2083vw 0.5208vw;
  border-radius: 1.0417vw;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.status-success { background: rgba(14, 203, 129, 0.15); color: var(--accent-green); }
.status-pending { background: rgba(240, 185, 11, 0.15); color: var(--primary); }

.empty-table-state {
  text-align: center;
  padding: 3vw 1vw !important;
  color: var(--text-muted);
}

.empty-table-state i {
  font-size: 2.2rem;
  color: var(--text-dim);
  margin-bottom: 0.8vw;
  display: block;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #181a20;
  border: 1px solid var(--border-accent);
  width: 100%;
  max-width: 22.9167vw;
  border-radius: var(--radius-lg);
  padding: 1.4583vw;
  box-shadow: 0 1.0417vw 2.6042vw rgba(0,0,0,0.6);
  transform: translateY(1.0417vw);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.0417vw;
}

.close-modal {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 0.8333vw;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3125vw;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

/* ==========================================
   4. AUTHENTICATION & PROFILE STYLES
   ========================================== */
.auth-wrapper {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vw;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(240, 185, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(240, 185, 11, 0.05) 0%, transparent 40%);
}

.auth-card {
  width: 100%;
  max-width: 32vw;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.2vw;
  box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.8vw;
}

.auth-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6vw;
  margin-bottom: 1vw;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3vw;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8vw;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i.prefix-icon {
  position: absolute;
  left: 0.8vw;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.input-icon-wrapper i.password-toggle {
  position: absolute;
  right: 0.8vw;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.input-icon-wrapper i.password-toggle:hover {
  color: var(--text-main);
}

.input-icon-wrapper .form-control {
  padding-left: 2.3vw;
}

.input-icon-wrapper .form-control.has-toggle {
  padding-right: 2.3vw;
}

.phone-input-group {
  display: flex;
  gap: 0.4vw;
}

.country-select {
  width: 6.5vw;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.52vw 0.4vw;
  outline: none;
  cursor: pointer;
}

.country-select option {
  background: #181a20;
  color: #fff;
}

.auth-aux {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8vw 0 1.2vw;
  font-size: 0.82rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 0.9vw;
  height: 0.9vw;
  cursor: pointer;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.5vw;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* PROFILE STYLES */
.profile-cover-card {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(24, 26, 32, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.5vw;
}

.profile-avatar-lg {
  position: relative;
  width: 5vw;
  height: 5vw;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1.5vw;
  height: 1.5vw;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #0b0e11;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  border: 2px solid var(--bg-dark);
}

.profile-details h2 {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5vw;
}

.profile-badge {
  background: rgba(14, 203, 129, 0.15);
  color: var(--accent-green);
  font-size: 0.72rem;
  padding: 0.2vw 0.6vw;
  border-radius: 20px;
  font-weight: 700;
}

.profile-details p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.2vw;
}

/* TOGGLE SWITCH COMPONENT */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.8vw;
  height: 1.5vw;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #0b0e11;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1.1vw;
  width: 1.1vw;
  left: 0.15vw;
  bottom: 0.12vw;
  background-color: var(--text-muted);
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--primary-gradient);
  border-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(1.3vw);
  background-color: #0b0e11;
}

.referral-box {
  display: flex;
  gap: 0.5vw;
  background: #0b0e11;
  padding: 0.4vw;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.referral-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  padding: 0 0.5vw;
  width: 100%;
  outline: none;
}

/* ==========================================
   5. ADMIN STYLES (Using Main Theme)
   ========================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: #121418;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.admin-main {
  margin-left: var(--admin-sidebar-width);
  flex: 1;
  padding: 2rem;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-header p {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-nav {
  flex: 1;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.admin-nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 1rem 0.5rem 0.25rem;
  font-weight: 700;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
}

.admin-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.active {
  color: #0b0e11;
  background: var(--primary-gradient);
  box-shadow: 0 0.2083vw 1.0417vw rgba(240, 185, 11, 0.25);
  font-weight: 700;
}

.admin-nav-item i {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
}

/* Admin Tables */
.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 1rem;
  background: #0b0e11;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}

.admin-status-success {
  background: rgba(14, 203, 129, 0.15);
  color: var(--accent-green);
}

.admin-status-pending {
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary);
}

.admin-status-danger {
  background: rgba(246, 70, 93, 0.15);
  color: var(--accent-red);
}

.admin-status-warning {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent-orange);
}

/* Admin Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(1.5rem);
  transition: transform 0.3s;
}

.admin-modal-overlay.active .admin-modal-card {
  transform: translateY(0);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.admin-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.admin-close-modal:hover {
  color: var(--text-main);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form-group {
  margin-bottom: 1rem;
}

.admin-form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.admin-form-control {
  width: 100%;
  padding: 0.75rem;
  background: #0b0e11;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.admin-form-control:focus {
  border-color: var(--primary);
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Admin Pagination */
.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-pagination button {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.admin-pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

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

.admin-pagination button.active {
  background: var(--primary);
  color: #0b0e11;
  border-color: var(--primary);
}

/* Admin Mobile Responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 200px;
  }
  .admin-main {
    margin-left: 200px;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-table {
    font-size: 0.8rem;
  }
  .admin-table th, .admin-table td {
    padding: 0.75rem 0.5rem;
  }
  .admin-modal-card {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Admin Pending Alerts */
.pending-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.alert-item {
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.alert-item:hover {
  background: rgba(240, 185, 11, 0.15);
  border-color: var(--primary);
}

.alert-item.alert-red {
  background: rgba(246, 70, 93, 0.1);
  border-color: rgba(246, 70, 93, 0.3);
}

.alert-item.alert-red:hover {
  background: rgba(246, 70, 93, 0.15);
  border-color: var(--accent-red);
}

.alert-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #0b0e11;
  font-size: 1rem;
  flex-shrink: 0;
}

.alert-item.alert-red .alert-icon {
  background: var(--accent-red);
  color: white;
}

.alert-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.alert-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   6. INVESTMENT PLANS STYLES
   ========================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18vw, 1fr));
  gap: 1.25vw;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-0.3vw);
  border-color: var(--primary);
  box-shadow: 0 0.8vw 2vw rgba(240, 185, 11, 0.2);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(240, 185, 11, 0.12) 0%, rgba(24, 26, 32, 0.9) 100%);
}

.plan-badge {
  position: absolute;
  top: 1vw;
  right: 1vw;
  background: var(--primary-gradient);
  color: #0b0e11;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2vw 0.6vw;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: 1.2vw;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4vw;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.7vw;
  margin-bottom: 1.4vw;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1vw 0;
}

.plan-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.plan-stat-item .label {
  color: var(--text-muted);
}

.plan-stat-item .value {
  font-weight: 700;
  color: var(--text-main);
}

.plan-stat-item .value.accent {
  color: var(--accent-green);
}

/* ==========================================
   6. REFERRALS, DEPOSIT & WITHDRAWAL STYLES
   ========================================== */
.ref-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25vw;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-box {
  background: #ffffff;
  padding: 0.8vw;
  border-radius: var(--radius-md);
  margin: 1vw 0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.qr-box img, .qr-box svg {
  width: 7.5vw;
  height: 7.5vw;
  display: block;
}

.user-mask-badge {
  font-family: monospace;
  background: #0b0e11;
  padding: 0.2vw 0.5vw;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8vw;
  max-width: 32vw;
  margin: 0 auto;
}

.method-badge {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  padding: 0.8vw 1vw;
  border-radius: var(--radius-md);
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.2);
  margin-bottom: 1.5vw;
}

.method-icon-mpesa {
  width: 2.2vw;
  height: 2.2vw;
  background: var(--accent-green);
  color: #fff;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6vw;
  margin-top: 0.5vw;
}

.quick-amount-btn {
  background: #0b0e11;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6vw;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.quick-amount-btn:hover, .quick-amount-btn.active {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: #0b0e11;
}

.notice-box {
  background: rgba(240, 185, 11, 0.08);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 0.8vw 1vw;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.8vw;
  align-items: center;
  margin-top: 1.2vw;
}

/* ==========================================
   7. CONSOLIDATED MOBILE MEDIA QUERY (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 75vw;
    --navbar-height: 16vw;
    --radius-sm: 2vw;
    --radius-md: 3.5vw;
    --radius-lg: 5vw;
  }

  .main-wrapper {
    margin-left: 0 !important;
  }

  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
    box-shadow: 4vw 0 10vw rgba(0,0,0,0.8);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .brand-header {
    height: var(--navbar-height);
    padding: 0 4vw;
    gap: 3vw;
  }

  .brand-icon {
    width: 9vw;
    height: 9vw;
  }

  .nav-menu {
    padding: 4vw 3vw;
    gap: 1.5vw;
  }

  .nav-section-title {
    margin: 3vw 2vw 1.5vw;
  }

  .nav-item {
    gap: 3vw;
    padding: 3vw 4vw;
  }

  .nav-item i {
    width: 5vw;
  }

  .sidebar-promo {
    margin: 3vw;
    padding: 4vw;
  }

  .sidebar-promo h4 { margin-bottom: 1.5vw; }
  .sidebar-promo p { margin-bottom: 3vw; }

  .navbar {
    height: var(--navbar-height);
    padding: 0 4vw;
  }

  #mobile-toggle {
    display: flex !important;
  }

  .nav-search, .user-info, .user-profile i.fa-chevron-down {
    display: none;
  }

  .nav-actions {
    gap: 3vw;
  }

  .icon-btn {
    width: 10vw;
    height: 10vw;
  }

  .icon-btn .badge-dot {
    top: 2vw;
    right: 2vw;
    width: 2.2vw;
    height: 2.2vw;
  }

  .user-profile {
    padding: 1vw;
    border-radius: 50%;
  }

  .avatar-wrapper {
    width: 9vw;
    height: 9vw;
  }

  .status-indicator {
    width: 2.8vw;
    height: 2.8vw;
    border-width: 2px;
  }

  .dashboard-container {
    padding: 4vw;
    gap: 5vw;
  }

  .welcome-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5vw;
  }

  .welcome-text h1 { font-size: 1.35rem; }
  .welcome-text p { margin-top: 1vw; }

  .action-group {
    width: 100%;
    gap: 2.5vw;
  }

  .btn {
    padding: 3vw 4vw;
    gap: 2vw;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
  }
  .btn.tpb {
    font-size: 3vw;
  }

  .action-group .btn {
    flex: 1;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3.5vw;
  }

  .stat-card {
    padding: 4.5vw;
    gap: 3vw;
  }

  .stat-icon {
    width: 10vw;
    height: 10vw;
  }

  .stat-value { font-size: 1.5rem; }
  .stat-footer { gap: 2vw; }
  .trend-pill { padding: 1vw 2.5vw; gap: 1vw; }

  .grid-2col, .bottom-grid, .ref-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 4.5vw;
  }

  .card {
    padding: 4.5vw;
    width: min(93.7377vw, 100%);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3vw;
    margin-bottom: 4vw;
  }

  .card-title { gap: 2.5vw; }

  .time-tabs {
    width: 100%;
    justify-content: space-between;
    padding: 1vw;
    gap: 1vw;
  }

  .time-btn {
    flex: 1;
    text-align: center;
    padding: 2vw 0;
  }

  .chart-container { height: 60vw; }

  .watchlist-list { gap: 2.5vw; }
  .watchlist-item { padding: 3vw 3.5vw; }
  .pair-info { gap: 3vw; }
  .pair-icon { width: 9vw; height: 9vw; }

  .tx-table th, .tx-table td { padding: 3vw 2.5vw; }
  .status-badge { padding: 1vw 2.5vw; }

  .empty-table-state { padding: 8vw 2vw !important; }
  .empty-table-state i { font-size: 2rem; margin-bottom: 2vw; }

  .modal-card {
    width: 90vw;
    max-width: 90vw;
    padding: 6vw;
  }

  /* Auth & Profile Mobile */
  .auth-wrapper { padding: 4vw; }
  .auth-card { max-width: 100%; padding: 6vw; border-radius: 5vw; }
  .auth-header { margin-bottom: 5vw; }
  .auth-header h2 { font-size: 1.3rem; }
  .form-grid-2col { grid-template-columns: 1fr !important; gap: 3.5vw; }
  .input-icon-wrapper i.prefix-icon { left: 3vw; }
  .input-icon-wrapper i.password-toggle { right: 3vw; }
  .input-icon-wrapper .form-control { padding-left: 9vw; }
  .input-icon-wrapper .form-control.has-toggle { padding-right: 9vw; }
  .phone-input-group { gap: 2vw; }
  .country-select { width: 25vw; padding: 3vw 2vw; font-size: 0.85rem; }
  .checkbox-label input[type="checkbox"] { width: 4vw; height: 4vw; }
  .auth-aux { margin: 3vw 0 4vw; flex-direction: column; align-items: flex-start; gap: 2.5vw; }
  .auth-footer-text { margin-top: 5vw; }

  .profile-cover-card { flex-direction: column; align-items: flex-start; gap: 4vw; padding: 5vw; }
  .profile-identity { gap: 4vw; }
  .profile-avatar-lg { width: 16vw; height: 16vw; flex-shrink: 0; }
  .avatar-edit-btn { width: 5vw; height: 5vw; font-size: 0.6rem; }
  .toggle-switch { width: 12vw; height: 6.5vw; }
  .toggle-slider:before { height: 4.8vw; width: 4.8vw; left: 0.8vw; bottom: 0.6vw; }
  input:checked + .toggle-slider:before { transform: translateX(5.2vw); }

  /* Plans Mobile */
  .plans-grid { grid-template-columns: 1fr; gap: 4vw; }
  .plan-card { padding: 5vw; border-radius: 5vw; }
  .plan-badge { top: 3vw; right: 3vw; font-size: 0.65rem; padding: 1vw 2.5vw; }
  .plan-header { margin-bottom: 4vw; }
  .plan-name { font-size: 1.2rem; }
  .plan-price { font-size: 1.6rem; }
  .plan-stats-list { gap: 2.5vw; padding: 3.5vw 0; margin-bottom: 4vw; }

  /* Referrals & Payments Mobile */
  .qr-card { padding: 5vw; border-radius: 5vw; }
  .qr-box { padding: 3vw; margin: 3vw 0; }
  .qr-box img, .qr-box svg { width: 32vw; height: 32vw; }
  .payment-card { max-width: 100%; padding: 5vw; border-radius: 5vw; }
  .method-badge { padding: 3vw; gap: 3vw; margin-bottom: 4vw; }
  .method-icon-mpesa { width: 10vw; height: 10vw; font-size: 0.9rem; }
  .quick-amount-grid { grid-template-columns: repeat(3, 1fr); gap: 2vw; }
  .quick-amount-btn { padding: 2.5vw; font-size: 0.8rem; }
  .notice-box { padding: 3vw; gap: 2.5vw; margin-top: 4vw; }
}
/* ==========================================
   LANDING HOMEPAGE & LEGAL PAGES (WEBFLOW)
   ========================================== */

/* PUBLIC HOMEPAGE NAVBAR */
.home-nav {
  height: 4.5vw;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 200;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 2vw;
}

.home-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9vw;
  transition: var(--transition);
}

.home-nav-link:hover, .home-nav-link.active {
  color: var(--primary);
}

/* HERO SECTION */
.home-hero {
  padding: 6vw 6vw 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5vw;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid var(--border-accent);
  padding: 0.4vw 1vw;
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.82vw;
  font-weight: 700;
  margin-bottom: 1.5vw;
}

.home-hero h1 {
  font-size: 3.5vw;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 55vw;
  margin-bottom: 1.2vw;
  background: linear-gradient(180deg, #FFFFFF 0%, #848E9C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero p.hero-sub {
  font-size: 1.1vw;
  color: var(--text-muted);
  max-width: 42vw;
  line-height: 1.6;
  margin-bottom: 2vw;
}

.hero-cta-group {
  display: flex;
  gap: 1vw;
  margin-bottom: 4vw;
}

/* HERO UN SPLASH MOCKUP SHOWCASE */
.hero-splash-container {
  width: 100%;
  max-width: 65vw;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  box-shadow: 0 2vw 5vw rgba(0, 0, 0, 0.8), 0 0 40px rgba(240, 185, 11, 0.15);
  overflow: hidden;
}

.hero-splash-img {
  width: 100%;
  height: 32vw;
  object-fit: cover;
  display: block;
}

/* SECTION CONTAINERS */
.home-section {
  padding: 5vw 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title-box {
  text-align: center;
  margin-bottom: 3vw;
}

.section-title-box h2 {
  font-size: 2.2vw;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title-box p {
  color: var(--text-muted);
  font-size: 0.95vw;
  margin-top: 0.5vw;
}

/* FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5vw;
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-0.3vw);
}

.feature-icon-box {
  width: 3vw;
  height: 3vw;
  border-radius: var(--radius-md);
  background: #0b0e11;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3vw;
  border: 1px solid var(--border-color);
}

/* INTERACTIVE ROI CALCULATOR CARD */
.calculator-card {
  background: linear-gradient(135deg, #181a20 0%, #121418 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5vw;
  width: 100%;
  max-width: 48vw;
  box-shadow: 0 1vw 3vw rgba(0,0,0,0.5);
}

/* BACKGROUND SPLASH CTA PARALLAX */
.bg-splash-cta {
  width: 100%;
  padding: 6vw;
  position: relative;
  background-image: linear-gradient(rgba(11, 14, 17, 0.85), rgba(11, 14, 17, 0.92)), url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* WEBFLOW FOOTER */
.home-footer {
  background: #0b0e11;
  border-top: 1px solid var(--border-color);
  padding: 4vw 6vw 2vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3vw;
  margin-bottom: 3vw;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95vw;
  font-weight: 700;
  margin-bottom: 1.2vw;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85vw;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8vw;
  color: var(--text-dim);
}

/* ==========================================
   TERMS & PRIVACY PAGE LAYOUT
   ========================================== */
.terms-wrapper {
  padding: 4vw 6vw;
  max-width: 65vw;
  margin: 0 auto;
}

.terms-nav-tabs {
  display: flex;
  gap: 0.5vw;
  background: #181a20;
  padding: 0.4vw;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2vw;
}

.terms-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.8vw;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85vw;
  cursor: pointer;
  transition: var(--transition);
}

.terms-tab-btn.active, .terms-tab-btn:hover {
  background: var(--primary-gradient);
  color: #0b0e11;
}

.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3vw;
  line-height: 1.7;
}

.terms-card h3 {
  font-size: 1.3vw;
  color: #fff;
  margin: 1.5vw 0 0.8vw;
}

.terms-card h3:first-child {
  margin-top: 0;
}

.terms-card p, .terms-card ul {
  color: var(--text-muted);
  font-size: 0.9vw;
  margin-bottom: 1vw;
}

.terms-card ul {
  padding-left: 1.5vw;
}

/* MOBILE RE-CALCULATED OVERRIDES (≤ 768px) */
@media (max-width: 768px) {
  .home-nav {
    height: 16vw;
    padding: 0 4vw;
  }

  .home-nav-links {
    display: none; /* Mobile menu drawer takes over */
  }

  .home-hero {
    padding: 10vw 4vw 8vw;
  }

  .hero-pill {
    font-size: 0.75rem;
    padding: 1.5vw 3.5vw;
    margin-bottom: 4vw;
  }

  .home-hero h1 {
    font-size: 2rem;
    max-width: 100%;
    margin-bottom: 3vw;
  }

  .home-hero p.hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 6vw;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 3vw;
    margin-bottom: 8vw;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 3.5vw;
  }

  .hero-splash-container {
    max-width: 100%;
    border-radius: 4vw;
  }

  .hero-splash-img {
    height: 55vw;
  }

  .home-section {
    padding: 10vw 4vw;
  }

  .section-title-box h2 {
    font-size: 1.5rem;
  }

  .section-title-box p {
    font-size: 0.88rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 4vw;
  }

  .feature-card {
    padding: 5vw;
    border-radius: 4vw;
  }

  .feature-icon-box {
    width: 12vw;
    height: 10vw;
    font-size: 1.2rem;
  }

  .calculator-card {
    max-width: 100%;
    padding: 5vw;
    border-radius: 4vw;
  }

  .bg-splash-cta {
    padding: 12vw 4vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 3vw;
    text-align: center;
    font-size: 0.75rem;
  }

  .terms-wrapper {
    padding: 6vw 4vw;
    max-width: 100%;
  }

  .terms-nav-tabs {
    flex-direction: column;
    gap: 2vw;
  }

  .terms-tab-btn {
    font-size: 0.85rem;
    padding: 3vw;
  }

  .terms-card {
    padding: 5vw;
  }

  .terms-card h3 {
    font-size: 1.1rem;
  }

  .terms-card p, .terms-card ul {
    font-size: 0.85rem;
  }
}
/* ==========================================
   NOTIFICATION DROPDOWN STYLES
   ========================================== */
.notif-dropdown {
  position: absolute;
  top: 3.5vw;
  right: 1.5vw;
  width: 22vw;
  background: #181a20;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1vw;
  box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.8);
  z-index: 250;
  display: none;
  flex-direction: column;
  gap: 0.8vw;
}

.notif-dropdown.active {
  display: flex;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5vw;
  border-bottom: 1px solid var(--border-color);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8vw;
  padding: 0.6vw;
  border-radius: var(--radius-md);
  background: #0b0e11;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.notif-item:hover {
  border-color: var(--primary);
}

.notif-icon {
  width: 2vw;
  height: 2vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notif-title { font-weight: 700; font-size: 0.85rem; color: #fff; }
.notif-time { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.2vw; }

/* Mobile Overrides */
@media (max-width: 768px) {
  .notif-dropdown {
    width: 88vw;
    right: 4vw;
    top: 14vw;
    padding: 4vw;
    border-radius: 4vw;
  }
  .notif-item {
    gap: 1.4vw;
    padding: 2vw;
  }
  .notif-icon {
    width: 8vw;
    height: 8vw;
  }
}
/* ==========================================
   MARKET SELECTOR TABS & CANDLESTICK STYLES
   ========================================== */
.market-selector-tabs {
  display: flex;
  background: #0b0e11;
  padding: 0.2vw;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 0.3vw;
}

.market-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4vw 0.8vw;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4vw;
  transition: var(--transition);
}

.market-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.market-tab.active {
  background: var(--primary-gradient);
  color: #0b0e11;
  box-shadow: 0 0.2vw 0.8vw rgba(240, 185, 11, 0.25);
}

/* Mobile Overrides (≤ 768px) */
@media (max-width: 768px) {
  .market-selector-tabs {
    width: 100%;
    justify-content: space-between;
    padding: 1vw;
    gap: 1vw;
  }

  .market-tab {
    flex: 1;
    justify-content: center;
    padding: 2vw 0;
    font-size: 0.78rem;
  }
}
/* ==========================================================
   CASHIER DEPOSIT PANEL — append to /assets/css/styles.css
   ========================================================== */

.cashier-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.cashier-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.2vw;
}

.cashier-tab {
  background: #181a20;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: var(--radius-md, 12px);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-dim, #848e9c);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cashier-tab i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.cashier-tab span {
  font-weight: 700;
  font-size: 0.85rem;
  color: #eaecef;
}

.cashier-tab small {
  font-size: 0.7rem;
  color: var(--text-muted, #848e9c);
}

.cashier-tab.active {
  border-color: var(--primary, #f0b90b);
  background: rgba(240, 185, 11, 0.06);
}

.cashier-tab.active i,
.cashier-tab.active span {
  color: var(--primary, #f0b90b);
}

.cashier-panel {
  display: none;
}

.cashier-panel.active {
  display: block;
  animation: cashierFadeIn 0.18s ease;
}

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

/* ==========================================================
   P2P AGENTS — merchant list, payment details, chat verification
   ========================================================== */

.p2p-stage {
  display: none;
}
.p2p-stage.active {
  display: block;
  animation: cashierFadeIn 0.18s ease;
}

.p2p-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #181a20;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  margin-bottom: 14px;
}
.p2p-intro i { font-size: 1.3rem; margin-top: 2px; }

.p2p-merchant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p2p-merchant-card {
  background: #181a20;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.p2p-merchant-card:hover {
  border-color: var(--primary, #f0b90b);
}

.p2p-merchant-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--primary, #f0b90b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.p2p-merchant-info { flex: 1; min-width: 0; }

.p2p-merchant-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #eaecef;
  display: flex;
  align-items: center;
  gap: 6px;
}

.p2p-verified-badge {
  font-size: 0.65rem;
  color: var(--accent-green, #0ecb81);
  background: rgba(14, 203, 129, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.p2p-merchant-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #848e9c);
  margin-top: 2px;
}

.p2p-merchant-stats {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-dim, #848e9c);
}
.p2p-merchant-stats b { color: var(--accent-green, #0ecb81); display:block; font-size:0.8rem; }

.p2p-back-btn {
  background: none;
  border: none;
  color: var(--text-muted, #848e9c);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 6px;
}
.p2p-back-btn:hover { color: var(--primary, #f0b90b); }

.p2p-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  margin-top: 10px;
}

.p2p-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color, #2b313a);
  font-size: 0.82rem;
}
.p2p-detail-row:last-child { border-bottom: none; }
.p2p-detail-row .label { color: var(--text-muted, #848e9c); }
.p2p-detail-row .value { color: #eaecef; font-weight: 700; }
.p2p-detail-row.highlight { background: rgba(240, 185, 11, 0.06); }
.p2p-detail-row.highlight .value { color: var(--primary, #f0b90b); font-size: 0.95rem; }

.p2p-detail-row .value.copyable {
  cursor: pointer;
  border-bottom: 1px dashed var(--text-dim, #848e9c);
}
.p2p-detail-row .value.copyable:hover { color: var(--primary, #f0b90b); }

/* Chat-style verification */
.p2p-chat-card {
  background: #181a20;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.p2p-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #2b313a);
  flex-shrink: 0;
}

.p2p-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary, #f0b90b);
  display: flex; align-items: center; justify-content: center;
}

.p2p-status-pill {
  font-size: 0.7rem;
  color: var(--primary, #f0b90b);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.p2p-status-pill.confirmed { color: var(--accent-green, #0ecb81); }
.p2p-status-pill.pending i { animation: p2pPulse 1s infinite; }

@keyframes p2pPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.p2p-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p2p-msg {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.p2p-msg.system {
  background: #0b0e11;
  color: var(--text-muted, #848e9c);
  align-self: flex-start;
  border: 1px solid var(--border-color, #2b313a);
}
.p2p-msg.user {
  background: rgba(240, 185, 11, 0.15);
  color: #fff;
  align-self: flex-end;
}
.p2p-msg.agent {
  background: rgba(14, 203, 129, 0.12);
  color: #eaecef;
  align-self: flex-start;
  border: 1px solid rgba(14, 203, 129, 0.3);
}
.p2p-msg img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
}

.p2p-chat-input-area {
  border-top: 1px solid var(--border-color, #2b313a);
  padding: 10px 14px;
  flex-shrink: 0;
}

.p2p-text-input {
  width: 100%;
  background: #0b0e11;
  border: 1px solid var(--border-color, #2b313a);
  border-radius: 8px;
  color: #eaecef;
  padding: 8px 10px;
  font-size: 0.82rem;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}

.p2p-chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.p2p-upload-btn {
  font-size: 0.75rem;
  color: var(--text-muted, #848e9c);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.p2p-upload-btn:hover { color: var(--primary, #f0b90b); }
/* ==========================================================
   SAXO MODAL SYSTEM — themed replacement for alert()/confirm()
   Append this block to /assets/css/styles.css
   Reuses .modal-overlay / .modal-card already defined in
   section 3 (DASHBOARD COMPONENTS & CARDS), so it inherits the
   same backdrop blur, fade transition, and card chrome.
   ========================================================== */

.saxo-modal-card {
  max-width: 24vw;
  text-align: center;
  padding: 2vw 1.75vw 1.75vw;
}

.saxo-modal-icon {
  width: 3.5vw;
  height: 3.5vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1vw;
}

.saxo-modal-icon.type-success {
  background: rgba(14, 203, 129, 0.12);
  color: var(--accent-green);
}

.saxo-modal-icon.type-error {
  background: rgba(246, 70, 93, 0.12);
  color: var(--accent-red);
}

.saxo-modal-icon.type-warning,
.saxo-modal-icon.type-confirm {
  background: rgba(240, 185, 11, 0.12);
  color: var(--primary);
}

.saxo-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6vw;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.saxo-modal-message {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6vw;
}

.saxo-modal-actions {
  display: flex;
  gap: 0.7vw;
}

.saxo-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

.saxo-modal-actions.single .btn {
  flex: none;
  width: 100%;
}

/* Danger button variant, used for destructive confirms
   (kept separate from btn-primary/btn-secondary already defined) */
.btn-danger {
  background: linear-gradient(135deg, #f6465d 0%, #ff6b81 100%);
  color: #fff;
  box-shadow: 0 0.2083vw 0.7813vw rgba(246, 70, 93, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 0.3125vw 1.0417vw rgba(246, 70, 93, 0.45);
}

/* Mobile Overrides (≤ 768px) */
@media (max-width: 768px) {
  .saxo-modal-card {
    max-width: 90vw;
    padding: 8vw 6vw 6vw;
  }

  .saxo-modal-icon {
    width: 14vw;
    height: 14vw;
    font-size: 1.5rem;
    margin-bottom: 4vw;
  }

  .saxo-modal-title {
    font-size: 1.1rem;
    margin-bottom: 2vw;
  }

  .saxo-modal-message {
    font-size: 0.85rem;
    margin-bottom: 6vw;
  }

  .saxo-modal-actions {
    gap: 3vw;
    flex-direction: column;
  }
}