/* ========================================================
   XONADON+ MODERN DESIGN SYSTEM (v3.3.1 ENTERPRISE)
   Supports Dark (Screenshot Match) & Light Modes, 3D Cards,
   Yandex-Style Address Picker & Full FinTech / GovTech
   ======================================================== */

:root {
  color-scheme: dark;
  /* Dark Theme Palette (Matched to User's Screenshot) */
  --bg-main: #0B111E;
  --bg-card: #121A2B;
  --bg-card-glass: rgba(18, 26, 43, 0.85);
  --bg-card-hover: #172238;
  --bg-input: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.5);

  /* Brand Accents */
  --primary: #10B981;          /* Emerald Green */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.35);
  
  --secondary: #3B82F6;        /* Electric Blue */
  --accent-amber: #F59E0B;     /* Amber */
  --accent-rose: #EF4444;      /* Red / Danger */
  --accent-cyan: #06B6D4;

  /* Text Colors */
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  color-scheme: light;
  --bg-main: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #F9FAFB;
  --bg-input: rgba(0, 0, 0, 0.04);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-active: rgba(16, 185, 129, 0.6);

  --text-main: #111827;
  --text-muted: #4B5563;
  --text-dim: #9CA3AF;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Base Reset & Mobile Touch Optimizations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}

*:focus {
  outline: none !important;
}

button, a, input, select, textarea, label, [role="button"], .clickable {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

/* Touch active rounded feedback (no square highlight boxes) */
.btn, button, .radio-label, .auth-role-card, .cat-pill, .map-type-btn, .action-btn {
  -webkit-tap-highlight-color: transparent !important;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active, button:active, .radio-label:active, .auth-role-card:active {
  transform: scale(0.975) !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: brightness(1.08) !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.05) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Version Pill */
.version-badge {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100050 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  width: 90%;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 14px;
  position: relative;
  touch-action: pan-y pan-x;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  user-select: none;
  cursor: grab;
}
.toast-card:active {
  cursor: grabbing;
}

.toast-card.sms-type { border-left: 5px solid var(--accent-amber); }
.toast-card.telegram-type { border-left: 5px solid #229ED9; }
.toast-card.success-type { border-left: 5px solid var(--primary); }
.toast-card.danger-type { border-left: 5px solid var(--accent-rose); }

.toast-icon { font-size: 26px; flex-shrink: 0; display: flex; align-items: center; }
.toast-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.toast-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.toast-badge { font-size: 0.65rem; text-transform: uppercase; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.toast-close { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(14, 20, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.header-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; position: relative;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}
.logo-plus { position: absolute; bottom: 2px; right: 3px; font-size: 12px; font-weight: 900; color: var(--primary); font-family: var(--font-mono); }
.brand-text h1 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); display: flex; align-items: center; line-height: 1.1; }
.brand-text h1 .highlight { color: var(--primary); }
.brand-text .tagline { font-size: 0.65rem; color: var(--text-muted); display: none; }

/* Language Flag Segmented Toggle (Real National Flags) */
.lang-flag-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 3px;
}
.lang-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid transparent;
  padding: 3px 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 0;
  opacity: 0.6;
}
.lang-flag-btn .flag-svg {
  width: 25px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  display: block;
}
.lang-flag-btn:hover {
  opacity: 0.9;
}
.lang-flag-btn.active {
  opacity: 1;
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Nav Tabs: Hidden in mobile-first app layout */
/* Nav Tabs: Enabled */

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-tab-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.nav-tab-btn.active {
  background: var(--primary);
  color: #064E3B;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.role-pill-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.role-pill-btn:hover { background: rgba(245, 158, 11, 0.25); }
.role-pill-btn.driver-active { background: var(--primary); color: #064E3B; border-color: var(--primary); }

.household-switcher {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.household-switcher select {
  background: transparent; border: none; color: var(--text-main);
  font-size: 0.82rem; font-weight: 600; font-family: inherit; outline: none; cursor: pointer;
}
.household-switcher select option { background: var(--bg-main); color: var(--text-main); }

.icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 12px;
  padding: 7px 11px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-size: 0.95rem;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent-rose); color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 10px;
  border: 2px solid var(--bg-main);
}

.auth-profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  padding: 6px 12px; border-radius: 20px;
  cursor: pointer; color: var(--text-main); font-size: 0.82rem; font-weight: 600;
}
.auth-profile-btn:hover { border-color: var(--primary); }

/* Main Content: Centered Mobile App Screen */
.main-content {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 14px 85px;
  min-height: calc(100vh - 60px);
}

.tab-content-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-in-out;
}
.tab-content-panel.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================== */
/* SCREENSHOT MATCH: KOMMUNAL UTILITIES CARDS     */
/* ============================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.section-header h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.section-header p { font-size: 0.78rem; color: var(--text-muted); }

.utilities-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  margin-top: 14px;
}

.utility-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.utility-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.utility-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.utility-icon-box.electricity { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #F59E0B; }
.utility-icon-box.water { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #3B82F6; }
.utility-icon-box.hot_water { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #EF4444; }
.utility-icon-box.heating { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #8B5CF6; }
.utility-icon-box.waste { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #10B981; }

.utility-balance-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.utility-balance-badge.positive { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.utility-balance-badge.debt { background: rgba(239, 68, 68, 0.15); color: #F87171; }

.utility-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.utility-account-num {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.utility-metrics-row {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.metric-label { font-size: 0.75rem; color: var(--text-muted); }
.metric-val { font-size: 1.15rem; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); }

/* ============================================== */
/* SCREENSHOT MATCH: ANALYTICS & GRAPH CARD       */
/* ============================================== */
.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.analytics-header h4 { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.analytics-header p { font-size: 0.8rem; color: var(--text-muted); }

.chart-tab-pills {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}
.chart-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.chart-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.chart-legend-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}
.legend-stat-box {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.legend-stat-box .title { font-size: 0.75rem; color: var(--text-muted); }
.legend-stat-box .value { font-size: 1.15rem; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); }

/* ============================================== */
/* SCREENSHOT MATCH: DAVLAT XIZMATLARI CARDS      */
/* ============================================== */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.gov-card:hover { border-color: rgba(255, 255, 255, 0.18); }
.gov-card-icon { font-size: 32px; flex-shrink: 0; }
.gov-card-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.gov-card-content p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.gov-status { font-size: 0.75rem; font-weight: 600; }
.gov-status.positive { color: #34D399; }
.gov-status.warning { color: #F87171; }

/* ============================================== */
/* GAS DELIVERY HERO CARD                         */
/* ============================================== */
.gas-delivery-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.gas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gas-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.gas-title-group h3 { font-size: 1.45rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.gas-stage-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 650px; }

.gas-status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 30px; font-size: 0.82rem; font-weight: 700;
}
.gas-status-pill.warning { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--accent-amber); color: #FCD34D; }
.gas-status-pill.success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--primary); color: #6EE7B7; }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 10px currentColor; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.village-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.flow-step {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.flow-step.completed { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.flow-step.completed .step-num { background: var(--primary); color: #064E3B; }
.flow-step.current { border-color: var(--accent-amber); background: rgba(245, 158, 11, 0.1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
.flow-step.current .step-num { background: var(--accent-amber); color: #78350F; }

.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.step-info strong { font-size: 0.82rem; color: var(--text-main); display: block; }
.step-info span { font-size: 0.72rem; color: var(--text-muted); }

.map-container-wrapper {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-glass); margin-bottom: 20px;
}
.map-header-overlay {
  position: absolute; top: 12px; left: 12px; right: 12px;
  z-index: 400; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.map-header-overlay > * { pointer-events: auto; }
.truck-status-chip {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass); border-radius: 30px;
  padding: 7px 14px; font-size: 0.8rem; color: var(--text-main);
  display: flex; align-items: center; gap: 8px;
}
.pulsing-live {
  width: 10px; height: 10px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 10px #10B981; animation: pulse 1.2s infinite;
}
.map-view { width: 100%; height: 360px; background: #151D2C; z-index: 1; }

.gas-actions-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-glass);
}
.gas-price-info .price-label { font-size: 0.78rem; color: var(--text-muted); }
.gas-price-info .price-amount { font-size: 1.45rem; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); }
.gas-price-info .currency { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Address Bar */
.address-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; box-shadow: var(--shadow-card); flex-wrap: wrap;
}
.address-badge {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  font-weight: 800; color: var(--primary); margin-bottom: 4px;
}
.home-title { font-size: 1.12rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.home-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta-tag { font-size: 0.8rem; color: var(--text-muted); }
.online-tag { color: #38BDF8; }

/* ============================================== */
/* 3D REALISTIC BANK CARDS IN WALLET              */
/* ============================================== */
.wallet-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.real-bank-card {
  width: 100%;
  max-width: 380px;
  height: 220px;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.real-bank-card:hover { transform: translateY(-4px) scale(1.02); }

.card-theme-platinum {
  background: linear-gradient(135deg, #059669 0%, #0F766E 50%, #1E3A8A 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.card-theme-uzcard {
  background: linear-gradient(135deg, #1E3A8A 0%, #172554 60%, #0F172A 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.card-theme-humo {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 60%, #075985 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-system-name { font-size: 1.1rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: 1px; }
.card-chip { width: 36px; height: 26px; background: #FCD34D; border-radius: 5px; box-shadow: inset 0 0 4px rgba(0,0,0,0.4); }
.card-chip-gold { width: 36px; height: 26px; background: linear-gradient(135deg, #F59E0B, #FDE68A); border-radius: 5px; }

.card-num-text {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 2px;
  font-family: var(--font-mono); margin: 12px 0; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-holder { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.card-expiry { font-size: 0.8rem; font-family: var(--font-mono); }

.cards-visual-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

/* ============================================== */
/* YANDEX 2-MODE ADDRESS PICKER TABS              */
/* ============================================== */
.mode-switch-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 16px;
}
.mode-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.mode-tab-btn.active {
  background: var(--primary);
  color: #064E3B;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.mode-content-view { display: none; }
.mode-content-view.active { display: flex; flex-direction: column; gap: 14px; }

/* Interactive map selector container */
.map-picker-full {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}
.map-selected-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.map-quick-regions-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  align-items: center;
  scrollbar-width: thin;
}
.map-quick-regions-strip .chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.map-quick-regions-strip .chip-btn:hover {
  background: var(--primary);
  color: #064E3B;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============================================== */
/* BUTTONS & CONTROLS                             */
/* ============================================== */
.btn {
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  padding: 10px 20px; border-radius: var(--radius-md); cursor: pointer;
  border: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #064E3B; font-weight: 700; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45); }
.btn-glow { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }

.btn-outline { background: var(--bg-input); border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

.btn-secondary-glass { background: var(--bg-input); border: 1px solid var(--border-glass); color: var(--text-main); font-size: 0.82rem; padding: 8px 16px; }
.btn-secondary-sm { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: var(--primary); font-size: 0.82rem; padding: 7px 14px; }
.btn-secondary-sm:hover { background: rgba(16, 185, 129, 0.2); }

.btn-success { background: linear-gradient(135deg, #10B981, #059669); color: #fff; font-weight: 700; }
.btn-warning { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; font-weight: 700; border: none; }
.btn-warning:hover { background: linear-gradient(135deg, #D97706, #B45309); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; font-weight: 700; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.pulse-btn { animation: bigPulse 2s infinite; }
@keyframes bigPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 10px 14px; color: var(--text-main);
  font-family: inherit; font-size: 0.9rem; outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.highlight-select { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.05); font-weight: 700; }

/* Custom Dark Styled Selects & Dropdowns (No White Lists!) */
select, select.form-input {
  background-color: #121A2B !important;
  color: #F3F4F6 !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  padding: 11px 40px 11px 14px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  color-scheme: dark;
}
select:focus, select.form-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 14px var(--primary-glow) !important;
  outline: none !important;
}

/* ALL OPTIONS IN DROPDOWNS: PURE DARK THEMED OPTIONS */
select option, .form-input option, optgroup {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
}
select option:checked, select option:hover {
  background-color: #1E293B !important;
  color: #34D399 !important;
}

/* Date Pickers in dark theme */
input[type="date"].form-input {
  color-scheme: dark;
  cursor: pointer;
}

body.light-theme select, body.light-theme select.form-input {
  background-color: #FFFFFF !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color-scheme: light;
}
body.light-theme select option, body.light-theme .form-input option {
  background-color: #FFFFFF !important;
  color: #111827 !important;
}
body.light-theme input[type="date"].form-input {
  color-scheme: light;
}

/* Switch */
.switch-container { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch-container input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #4B5563; transition: .3s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Modals */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  z-index: 2000000 !important; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active { display: flex; }

.modal-card {
  background: var(--bg-main); border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); width: 100%; max-width: 520px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column;
  overflow: hidden; animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-card.modal-wide { max-width: 760px; }
.modal-card.modal-sm { max-width: 420px; }

@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.modal-header {
  padding: 18px 24px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-glass);
}
.modal-header h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.modal-close-btn { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; max-height: 75vh; overflow-y: auto; }
.modal-footer {
  padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--border-glass); background: var(--bg-input);
}

/* History & Tables */
.history-controls-bar {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.history-filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.custom-date-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.history-table-wrapper {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card);
}
.history-table { width: 100%; border-collapse: collapse; text-align: left; }
.history-table th {
  background: var(--bg-input); padding: 14px 18px; font-size: 0.78rem;
  text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border-glass);
}
.history-table td { padding: 14px 18px; font-size: 0.85rem; border-bottom: 1px solid var(--border-glass); color: var(--text-main); }
.status-tag { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap !important; flex-shrink: 0 !important; }
.status-tag.success { background: rgba(16, 185, 129, 0.15); color: #34D399; white-space: nowrap !important; flex-shrink: 0 !important; }
.status-tag.warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); white-space: nowrap !important; flex-shrink: 0 !important; }
.status-tag.warn { background: rgba(239, 68, 68, 0.15); color: #F87171; white-space: nowrap !important; flex-shrink: 0 !important; }

/* Filter Pills (History & Payments Categories) */
.cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  transform: translateY(-1px);
}
.cat-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  font-weight: 700;
}
body.light-theme .cat-pill {
  background: #F3F4F6;
  border-color: rgba(0, 0, 0, 0.1);
  color: #4B5563;
}
body.light-theme .cat-pill:hover {
  background: #E5E7EB;
  color: #111827;
}
body.light-theme .cat-pill.active {
  background: #10B981;
  border-color: #059669;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Payment Categories Navigation Strip */
.payment-categories-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 22px;
  scrollbar-width: thin;
}
.payment-categories-nav::-webkit-scrollbar {
  height: 5px;
}
.payment-categories-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Services Catalog Grid & Dynamic Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.service-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-item-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.15);
}
.service-item-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: var(--transition);
}
.service-item-card:hover::before {
  background: var(--primary);
}
.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.service-item-card:hover .service-icon-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  transform: scale(1.06);
}
.service-item-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.service-item-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}
.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.service-tag.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.service-tag.gov {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.service-tag.warn {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.service-item-card .service-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-item-card:hover .service-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Settings View Layout & Cards */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.setting-row + .setting-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.setting-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.setting-label strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.setting-label span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
#active-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.session-device-item {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.session-device-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}
.session-device-item strong {
  font-size: 0.88rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
}

/* Driver Layout */
.driver-dashboard { display: flex; flex-direction: column; gap: 18px; padding-bottom: 84px; }
.driver-header-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-xl);
  padding: 24px 28px; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.driver-control-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.driver-panel-box {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.action-mode-radio { display: flex; flex-direction: column; gap: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass); padding: 10px 14px; border-radius: var(--radius-md);
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.radio-label.active-radio { background: rgba(16, 185, 129, 0.1); border-color: var(--primary); color: #fff; }
.driver-stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border-glass);
}
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number { font-size: 1.25rem; font-weight: 800; color: var(--primary); font-family: var(--font-mono); }
.stat-name { font-size: 0.72rem; color: var(--text-muted); }

.driver-collapsible-group {
  transition: all 0.25s ease;
  border-radius: var(--radius-md);
}
.driver-controls-locked {
  opacity: 0.45;
  filter: grayscale(0.4);
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}
.driver-controls-locked select,
.driver-controls-locked input {
  background: rgba(255, 255, 255, 0.02) !important;
  cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 900px) {
  .driver-control-grid, .wallet-hero-grid { grid-template-columns: 1fr; }
  .village-flow-steps { grid-template-columns: repeat(2, 1fr); }
  .header-container { flex-direction: column; align-items: stretch; }
  .app-nav-tabs { width: 100%; }
}
@media (max-width: 600px) {
  .village-flow-steps { grid-template-columns: 1fr; }
  .gas-actions-bar { flex-direction: column; align-items: stretch; }
  .utilities-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
}


/* ========================================================
   DOMO-STYLE APP SPLASH SCREEN
   ======================================================== */
.app-splash-screen {
  position: fixed;
  inset: 0;
  background: #17181f;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  user-select: none;
}
.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -40px;
  animation: splashPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.splash-logo-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.25));
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}
.splash-logo-flame {
  font-size: 3rem;
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}
.splash-logo-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #3B82F6;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #17181f;
}
.splash-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}
.splash-plus {
  color: #3B82F6;
}
.splash-subtitle {
  font-size: 1.05rem;
  color: #4D7CFE;
  margin: 6px 0 0 0;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.splash-footer-pill {
  position: absolute;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
  animation: splashFade 1.2s ease forwards;
}

@keyframes splashPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes splashFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   MOBILE PIN LOCK SCREEN
   ======================================================== */
.app-pin-lock-screen {
  position: fixed;
  inset: 0;
  background: #12131A;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  user-select: none;
}
.pin-lock-container {
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pin-avatar {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.pin-lock-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.pin-lock-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pin-dots-container {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  transform: scale(1.15);
}
.pin-dots-container.shake {
  animation: pinShake 0.4s ease;
}
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.pin-error-msg {
  color: #EF4444;
  font-size: 0.82rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 280px;
}
.pin-key {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-key:hover, .pin-key:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}
.pin-key-action {
  font-size: 0.95rem;
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

/* ========================================================
   ROLE SELECTION & AUTH SCREEN
   ======================================================== */
.app-auth-screen {
  position: fixed;
  inset: 0;
  background: #12131A;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: authPop 0.3s ease;
}
@keyframes authPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.auth-header {
  text-align: center;
  margin-bottom: 22px;
}
.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.role-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.auth-role-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.auth-role-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.role-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.auth-role-card .role-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.auth-role-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-role-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}
.role-select-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  align-self: flex-end;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
  width: 100%;
}
.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.auth-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.error-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ========================================================
   MAP LAYER SELECTOR (STANDART / SPUTNIK)
   ======================================================== */
.map-layer-selector {
  position: absolute;
  bottom: 12px;
  right: 12px;
  top: auto !important;
  height: auto !important;
  z-index: 500;
  background: rgba(18, 20, 29, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 3px;
  display: flex;
  gap: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.map-type-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.map-type-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.map-type-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION & APP SHELL
   ======================================================== */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 66px;
  background: rgba(14, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}
.mobile-bottom-nav.nav-hidden {
  display: none !important;
}
.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s;
  border-radius: 10px;
}
.mobile-nav-btn .mob-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.2s;
}
.mobile-nav-btn.active {
  color: var(--primary);
}
.mobile-nav-btn.active .mob-icon {
  transform: translateY(-2px) scale(1.1);
}

@media (max-width: 900px) {
  body {
    padding-bottom: 74px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  /* Nav Tabs in media */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(12px);
  }
  .header-container {
    padding: 10px 14px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-text h1 {
    font-size: 1.15rem;
  }
  /* Household switcher preserved */
}


/* ============================================== */
/* TO'LOVLAR BO'LIMI: 7 TA ASOSIY TOIFA KARTALARI  */
/* ============================================== */
.payments-main-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.payment-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.payment-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #3B82F6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.payment-category-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.payment-category-card:hover::before {
  opacity: 1;
}

.cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}

.cat-card-count-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cat-card-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.cat-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.cat-services-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-mini-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.cat-card-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.cat-card-action-row span {
  transition: transform 0.2s ease;
}

.payment-category-card:hover .cat-card-action-row span {
  transform: translateX(4px);
}

/* Category Detail Header Bar */
.category-detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.category-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cat-hdr-icon {
  font-size: 2.2rem;
}

.cat-hdr-title {
  margin: 0 0 2px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.cat-hdr-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ========================================================
   UNIFIED APP SHELL & MOBILE-FIRST LAYOUT SYSTEM
   ======================================================== */
:root {
  --app-max-width: 480px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Centered Smartphone App Shell */
.app-header {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(14, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  max-width: var(--app-max-width);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-container {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-household-row {
  width: 100%;
  box-sizing: border-box;
}

.household-switcher-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 7px 12px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease;
}

.household-switcher-pill:hover,
.household-switcher-pill:focus-within {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.switcher-pin {
  font-size: 14px;
  flex-shrink: 0;
}

.household-switcher-pill select {
  width: 100%;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 18px;
  appearance: none;
  -webkit-appearance: none;
}

.household-switcher-pill select option {
  background: #111827;
  color: #fff;
  padding: 8px;
}

.switcher-arrow {
  position: absolute;
  right: 12px;
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Nav Tabs: Sleek Horizontal Scrollable Tabs */
.app-nav-tabs {
  display: flex !important;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
  width: 100%;
}
.app-nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #064E3B;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Main Content: Exact width match with header */
.main-content {
  max-width: var(--app-max-width);
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 85px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.tab-content-panel {
  width: 100%;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.tab-content-panel.active {
  display: flex;
}

/* Address Card: Clean spacing */
.address-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
}
.home-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}
.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  margin-bottom: 2px;
}
.meta-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 4px 8px;
  border-radius: 6px;
}
.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ============================================== */
/* HOME WALLET & CARDS WIDGET                     */
/* ============================================== */
.home-wallet-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.home-wallet-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.home-wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-hdr-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-icon-flair {
  font-size: 24px;
}

.wallet-hdr-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.wallet-hdr-title p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-link-glow {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  transition: all 0.2s;
}
.btn-link-glow:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

.home-wallet-body {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px;
}

.home-mini-card {
  width: 130px;
  height: 82px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #0F766E 50%, #1E3A8A 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.home-mini-card:hover {
  transform: scale(1.03);
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-card-system {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  opacity: 0.9;
}
.mini-card-chip {
  width: 12px;
  height: 9px;
  background: linear-gradient(135deg, #FCD34D, #D97706);
  border-radius: 2px;
}
.mini-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.mini-card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  opacity: 0.8;
  font-weight: 600;
}

.home-wallet-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-group {
  display: flex;
  flex-direction: column;
}
.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1.1;
}
.stat-val .currency {
  font-size: 0.85rem;
  color: var(--primary);
}

.cashback-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
}
.stat-val-sm {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  margin-left: 4px;
}

.home-wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-primary-soft {
  background: var(--primary);
  color: #064E3B;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-primary-soft:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-soft {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-outline-soft:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ============================================== */
/* HOME QUICK PAYMENTS TILES                      */
/* ============================================== */
.home-quick-payments-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.home-payments-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.pay-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.pay-tile:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.pay-tile:active {
  transform: scale(0.96);
}

.pay-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}
.pay-tile:hover .pay-tile-icon {
  transform: scale(1.1);
}

.utilities-glow { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.mobile-glow { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.internet-glow { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.tv-glow { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.gov-glow { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.mib-glow { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
.phone-glow { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20, 184, 166, 0.3); }
.qr-glow { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3); }

.pay-tile-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================== */
/* GOV SERVICES & CARDS REFINEMENT                */
/* ============================================== */
.gov-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  box-sizing: border-box;
  width: 100%;
}
.gov-card:hover { border-color: rgba(255, 255, 255, 0.18); }

.gov-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gov-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.gov-card-content {
  flex: 1;
  min-width: 0;
}
.gov-card-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}
.gov-card-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
}

/* Wallet and Payments Responsive fixes */
.wallet-hero-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.payments-main-categories-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.mobile-bottom-nav {
  max-width: var(--app-max-width);
}


/* ========================================================
   STANDARDIZED MOBILE CONTAINER & APP SHELL
   ======================================================== */
.app-shell-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-main);
  box-sizing: border-box;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 500px) {
  .app-shell-container {
    box-shadow: none;
    border: none;
  }
}

/* Modals fix: Always full screen inset and proper z-index */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  z-index: 2000000 !important; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active {
  display: flex !important;
}

.modal-mobile-responsive {
  max-width: 460px !important;
  width: 100% !important;
  max-height: 88vh !important;
  border-radius: 20px !important;
}

.address-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-quick-regions-strip {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.map-quick-regions-strip::-webkit-scrollbar {
  display: none;
}
.map-quick-regions-strip .chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.map-quick-regions-strip .chip-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border-color: var(--primary);
}

.map-selected-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

/* ========================================================
   SUBPAGE HEADER WITH TOP-LEFT BACK BUTTON
   ======================================================== */
.subpage-nav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-subpage-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.btn-subpage-back:hover {
  background: var(--primary);
  color: #064E3B;
  transform: translateX(-2px);
}

.subpage-title-box {
  flex: 1;
  min-width: 0;
}
.subpage-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subpage-cat-icon {
  font-size: 1.3rem;
}
.subpage-cat-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subpage-cat-desc {
  margin: 2px 0 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-qr-subpage {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ========================================================
   SETTINGS & HELP: SEQUENTIAL VERTICAL STACK (KETMA-KET)
   ======================================================== */
.settings-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.settings-card {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px !important;
  border-radius: var(--radius-lg) !important;
}

/* ========================================================
   TRANSACTION HISTORY: MOBILE CARDS FEED
   ======================================================== */
.history-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.history-tx-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.history-tx-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
}

.tx-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tx-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tx-details {
  flex: 1;
  min-width: 0;
}
.tx-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.tx-account {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tx-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.tx-amount {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34D399;
}
.tx-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}
.btn-receipt-sm {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-receipt-sm:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* ========================================================
   LIGHT THEME: FULL COMPREHENSIVE COVERAGE
   ======================================================== */
body.light-theme {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%) !important;
}

body.light-theme .app-shell-container {
  background: #F8FAFC !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .brand-text h1 {
  color: #0F172A !important;
}

body.light-theme .household-switcher-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}
body.light-theme .household-switcher-pill select {
  color: #0F172A !important;
}
body.light-theme .household-switcher-pill select option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

body.light-theme .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}
body.light-theme .mobile-nav-btn {
  color: #64748B !important;
}
body.light-theme .mobile-nav-btn.active {
  color: #059669 !important;
}

body.light-theme .home-wallet-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), #FFFFFF) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
body.light-theme .home-wallet-body {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .gas-delivery-card {
  background: linear-gradient(145deg, #FFFFFF, rgba(245, 158, 11, 0.06)) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

body.light-theme .address-status-card,
body.light-theme .payment-category-card,
body.light-theme .utility-card,
body.light-theme .gov-card,
body.light-theme .settings-card,
body.light-theme .analytics-card,
body.light-theme .pay-tile,
body.light-theme .history-controls-bar,
body.light-theme .history-tx-card,
body.light-theme .category-detail-header-bar,
body.light-theme .modal-card,
body.light-theme .driver-dashboard,
body.light-theme .driver-header-card,
body.light-theme .driver-panel-box {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .icon-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}
body.light-theme .btn-outline {
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0F172A !important;
}
body.light-theme .form-input {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}
body.light-theme .meta-tag {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
body.light-theme .btn-secondary-glass {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}
.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.section-header-left .btn-subpage-back {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

body.light-theme .btn-subpage-back {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}
body.light-theme .btn-outline-soft {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0F172A !important;
}
body.light-theme .logo-text {
  color: #0F172A !important;
}
body.light-theme .lang-selector-pill {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .lang-btn {
  color: #475569 !important;
}
body.light-theme .lang-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .section-header h2,
body.light-theme .section-header h3,
body.light-theme .section-header h4 {
  color: #0F172A !important;
}
body.light-theme .section-header p {
  color: #64748B !important;
}
body.light-theme .address-main-title {
  color: #0F172A !important;
}
body.light-theme .modal-header h3 {
  color: #0F172A !important;
}
body.light-theme .modal-close-btn {
  color: #64748B !important;
}
body.light-theme .subpage-cat-title {
  color: #0F172A !important;
}
body.light-theme .subpage-cat-desc {
  color: #64748B !important;
}
body.light-theme .tx-details h4 {
  color: #0F172A !important;
}
body.light-theme .tx-meta span {
  color: #64748B !important;
}
body.light-theme .tx-amount {
  color: #0F172A !important;
}
body.light-theme .history-filter-pills .cat-pill {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #64748B !important;
}
body.light-theme .history-filter-pills .cat-pill.active {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}
body.light-theme .faq-header {
  color: #0F172A !important;
}
body.light-theme .faq-body {
  color: #475569 !important;
}
body.light-theme .setting-label strong {
  color: #0F172A !important;
}
body.light-theme .setting-label span {
  color: #64748B !important;
}

/* Auth spacing fixes */
#auth-login-form .form-group {
  margin-bottom: 20px !important;
}
#auth-login-form .btn-primary {
  margin-top: 18px !important;
}
#auth-register-form .form-group {
  margin-bottom: 18px !important;
}
#driver-specific-reg {
  margin-bottom: 22px !important;
}
#auth-register-form .btn-success {
  margin-top: 20px !important;
}
#auth-form-box .form-group {
  margin-bottom: 16px !important;
}

/* Driver mode layout fixes: Single column stacked map */
.driver-control-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}
.driver-panel-box {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ========================================================
   USER REQUEST FIXES: OCT 15
   1. KARTANI O'RTAGA QO'YISH
   2. TARIX DAVR TUGMALARINI KETMA-KET QILISH
   3. SOZLAMALAR ACCORDION STILLARI
   ======================================================== */

/* 1. KARTANI O'RTAGA QO'YISH (HAMYON BO'LIMI) */
#tab-wallet-view .wallet-hero-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  width: 100% !important;
}

#tab-wallet-view .real-bank-card {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 360px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

#tab-wallet-view .wallet-balance-box {
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto !important;
}

#tab-wallet-view .cards-visual-carousel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
}

#tab-wallet-view .cards-visual-carousel .real-bank-card {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 360px !important;
}

/* 2. TARIX DAVR FILTRLARI: KETMA-KET (VERTIKAL) JOYLASHTIRISH */
.history-filter-pills,
.history-filter-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  overflow-x: visible !important;
}

.history-filter-pills .cat-pill,
.history-filter-vertical .cat-pill {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  white-space: normal !important;
  text-align: left !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* 3. SOZLAMALAR ACCORDION CARD STILLARI */
.settings-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.settings-accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-accordion-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.settings-accordion-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}
.settings-accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-acc-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-acc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sec-icon { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.notif-icon { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.sess-icon { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.help-icon { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }

.settings-acc-title-group h4 {
  margin: 0 0 2px 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}
.settings-acc-title-group p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.settings-acc-chevron {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}

.settings-accordion-content {
  display: none;
  padding: 16px 18px 20px 18px;
  border-top: 1px solid var(--border-glass);
  animation: fadeIn 0.25s ease;
}

.settings-accordion-card.open .settings-accordion-content {
  display: block;
}
.settings-accordion-card.open .settings-acc-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Light Theme support for Accordion */
body.light-theme .settings-accordion-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .settings-accordion-header:hover {
  background: rgba(0, 0, 0, 0.02) !important;
}
body.light-theme .settings-acc-title-group h4 {
  color: #0F172A !important;
}
body.light-theme .settings-acc-title-group p {
  color: #64748B !important;
}
body.light-theme .settings-accordion-content {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}


.settings-accordion-content .setting-row {
  opacity: 1 !important;
  color: var(--text-main) !important;
  padding: 10px 0 !important;
}
.settings-accordion-content .setting-label strong {
  color: #FFFFFF !important;
  font-size: 0.92rem !important;
  display: block;
  margin-bottom: 2px;
}
.settings-accordion-content .setting-label span {
  color: #94A3B8 !important;
  font-size: 0.78rem !important;
}
body.light-theme .settings-accordion-content .setting-label strong {
  color: #0F172A !important;
}
body.light-theme .settings-accordion-content .setting-label span {
  color: #64748B !important;
}


/* ========================================================
   USER REQUEST FIXES: PART 2
   ======================================================== */

/* 1. FAQ ACCORDION OPEN / CLOSE STYLES */
.faq-accordion-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
  transition: all 0.25s ease !important;
}
.faq-accordion-item:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.faq-header {
  padding: 13px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  user-select: none !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  transition: background 0.2s ease !important;
}
.faq-header:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.faq-header span:last-child {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  transition: transform 0.25s ease !important;
}

.faq-body {
  display: none !important;
  padding: 14px 16px !important;
  font-size: 0.83rem !important;
  line-height: 1.55 !important;
  color: #CBD5E1 !important;
  border-top: 1px solid var(--border-glass) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  animation: fadeIn 0.2s ease !important;
}

.faq-accordion-item.open .faq-body {
  display: block !important;
}
.faq-accordion-item.open .faq-header span:last-child {
  transform: rotate(180deg) !important;
  color: var(--primary) !important;
}

body.light-theme .faq-accordion-item {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .faq-header {
  color: #0F172A !important;
  background: #FFFFFF !important;
}
body.light-theme .faq-body {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

/* 2. HISTORY FILTER PILLS: 2 ROWS WITH 3 ITEMS EACH */
.history-filter-pills,
.history-filter-vertical {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.history-filter-pills .cat-pill,
.history-filter-vertical .cat-pill {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 4px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* 3. SECTION HEADERS: FIT IN ONE LINE (NO WRAP) */
.section-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 14px !important;
}

.section-header-left {
  width: 100% !important;
}

.section-header h2 {
  font-size: 1.08rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.3px !important;
  margin: 0 0 2px 0 !important;
  width: 100% !important;
}

.section-header p {
  font-size: 0.76rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.section-header .btn {
  align-self: flex-start !important;
  margin-top: 4px !important;
}

/* 4. FULL-WIDTH REAL BANK CARD (NO AWKWARD SIDE GAPS) */
#tab-wallet-view .wallet-hero-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#tab-wallet-view .real-bank-card,
.cards-visual-carousel .real-bank-card {
  width: 100% !important;
  max-width: 100% !important;
  height: 205px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

#tab-wallet-view .wallet-balance-box {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.cards-visual-carousel {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ========================================================
   USER REQUEST FIXES: PART 3
   1. REAL BANK CARD PROPORTIONS (GOLDEN RATIO 1.586)
   2. DYNAMICS CHART RESPONSIVENESS
   3. DRIVER 3-TAB PROFESSIONAL PANEL
   ======================================================== */

/* 1. BANK KARTALARI MUTANOSIB STANDART RAZMERI */
.real-bank-card,
#tab-wallet-view .real-bank-card,
.cards-visual-carousel .real-bank-card {
  width: 100% !important;
  max-width: 360px !important;
  aspect-ratio: 1.586 !important;
  height: auto !important;
  min-height: 215px !important;
  max-height: 235px !important;
  border-radius: 18px !important;
  padding: 20px 22px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

#tab-wallet-view .wallet-hero-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

.cards-visual-carousel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

/* 2. ANALYTICS CHART RESPONSIVE FIX */
.chart-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding: 4px 0 !important;
}

#consumptionChart {
  width: 100% !important;
  max-width: 100% !important;
  height: 230px !important;
  display: block !important;
}

/* 3. HAYDOVCHI 3 TA TAB PANEL STILLARI */
.driver-subtabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 14px;
}

.driver-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 4px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.driver-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.driver-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #064E3B;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.driver-subtab-content {
  display: none;
  animation: fadeIn 0.25s ease;
}

.driver-subtab-content.active {
  display: block;
}

.driver-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.inventory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.inv-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.inv-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.driver-resident-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-resident-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-res-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-res-info strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.order-res-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.driver-shift-summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shift-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shift-row strong {
  color: var(--text-main);
}


/* ========================================================
   USER REQUEST FIXES: PART 4
   1. HISTORY TRANSACTION CARD RE-DESIGN (CLEAN 2-ROW)
   2. ENLARGED FULL-WIDTH BANK CARDS
   3. CLEAN DRIVER UNIFIED PANEL (NO OVERFLOW)
   ======================================================== */

/* 1. PROFESSIONAL TRANSACTION CARD DESIGN */
.history-tx-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.history-tx-card:hover {
  border-color: rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-1px) !important;
}

.tx-card-main-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.tx-card-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.tx-icon-box {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-glass) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
}

.tx-title-box {
  flex: 1 !important;
  min-width: 0 !important;
}

.tx-service-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin: 0 0 3px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.tx-account-line {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
  font-family: var(--font-mono) !important;
  display: block !important;
}

.tx-card-amount-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  flex-shrink: 0 !important;
  gap: 3px !important;
}

.tx-sum-val {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #34D399 !important;
  font-family: var(--font-mono) !important;
  white-space: nowrap !important;
}
.tx-sum-val small {
  font-size: 0.75rem !important;
  color: #6EE7B7 !important;
}

.tx-status-pill {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
  white-space: nowrap !important;
}

.tx-card-sub-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  gap: 8px !important;
  width: 100% !important;
}

.tx-date-source {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.tx-sep {
  color: var(--text-dim) !important;
}

.btn-receipt-action {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-main) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}
.btn-receipt-action:hover {
  background: var(--primary) !important;
  color: #064E3B !important;
}

/* Light Theme Support for Transaction Card */
body.light-theme .history-tx-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .tx-service-name {
  color: #0F172A !important;
}
body.light-theme .tx-account-line {
  color: #64748B !important;
}
body.light-theme .tx-card-sub-row {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-theme .btn-receipt-action {
  background: #F1F5F9 !important;
  color: #1E293B !important;
  border-color: #CBD5E1 !important;
}

/* 2. ENLARGED FULL-WIDTH BANK CARDS */
.real-bank-card,
#tab-wallet-view .real-bank-card,
.cards-visual-carousel .real-bank-card {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1.586 !important;
  height: auto !important;
  min-height: 220px !important;
  border-radius: 20px !important;
  padding: 24px 26px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

#tab-wallet-view .wallet-hero-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.cards-visual-carousel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

/* 3. CLEAN DRIVER UNIFIED PANEL (NO OVERFLOW, STRICT CONTAINER) */
.driver-unified-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.driver-clean-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg) !important;
  padding: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.driver-sec-title {
  margin: 0 0 12px 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.driver-form-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.driver-form-grid .form-group {
  width: 100% !important;
  box-sizing: border-box !important;
}

.driver-form-grid .form-input {
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* ======================================================== */
/* RESIDENT TRUCK STATUS BAR (OUTSIDE & ABOVE MAP)          */
/* ======================================================== */
.resident-truck-status-bar {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(15, 18, 28, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  border-radius: var(--radius-lg, 16px) !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  position: relative !important;
  z-index: 10 !important;
}

.resident-truck-status-bar .truck-status-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.resident-truck-status-bar .truck-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resident-truck-status-bar .truck-title-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.resident-truck-status-bar .truck-eta-line {
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 500;
  line-height: 1.35;
}

.resident-truck-status-bar .btn-center-truck {
  padding: 8px 12px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.resident-truck-status-bar .btn-center-truck:active {
  transform: scale(0.95) !important;
  background: rgba(56, 189, 248, 0.25) !important;
}

/* ======================================================== */
/* ADVANCED QR SCANNER MODAL (CAMERA, FLASHLIGHT, GALLERY)  */
/* ======================================================== */
.modal-qr-scanner {
  max-width: 440px !important;
  background: #0d1117 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.qr-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-cam-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.2s infinite;
}

.qr-modal-body {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-camera-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scan-frame {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  pointer-events: none;
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
}

.qr-scan-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #38bdf8;
  border-style: solid;
}

.qr-scan-frame .corner.top-left {
  top: 0; left: 0;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 8px;
}
.qr-scan-frame .corner.top-right {
  top: 0; right: 0;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 8px;
}
.qr-scan-frame .corner.bottom-left {
  bottom: 0; left: 0;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 8px;
}
.qr-scan-frame .corner.bottom-right {
  bottom: 0; right: 0;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 8px;
}

.qr-laser-line {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
  box-shadow: 0 0 12px #38bdf8, 0 0 6px #38bdf8;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 6%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 92%; opacity: 0.3; }
}

.qr-cam-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #e2e8f0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.qr-floating-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.qr-ctrl-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.qr-ctrl-btn:active {
  transform: scale(0.92);
  background: rgba(56, 189, 248, 0.3);
}

.qr-ctrl-btn.active {
  background: #f59e0b !important;
  color: #000000 !important;
  border-color: #f59e0b !important;
  font-weight: 700;
}

.qr-scanner-bottom-bar {
  display: flex;
  gap: 10px;
  width: 100%;
}

.qr-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px !important;
  font-size: 0.82rem !important;
  border-radius: 12px !important;
}

.qr-footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* In-App Update Modal */
.app-update-card {
  max-width: 440px !important;
  text-align: center;
  padding: 24px;
}
.update-rocket-icon {
  font-size: 54px;
  margin-bottom: 12px;
  display: inline-block;
  animation: floatRocket 2s ease-in-out infinite alternate;
}
@keyframes floatRocket {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(5deg); }
}


/* Hide browser default video player controls & big play button in QR Scanner */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}

#qr-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  background: #000 !important;
}

/* Hide native dropdown arrow on select elements (removes the small white arrow) */
select, select.form-input, .custom-select, #house-selector {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}

/* Beautiful Notification Bell Badge */
.notif-badge, .header-notif-btn .badge, #notif-badge-count {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 10px !important;
  background: #EF4444 !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6) !important;
  border: 1.5px solid var(--bg-main) !important;
  line-height: 1 !important;
}

/* RESPONSIVE FLUID LAYOUT & TABLET SUPPORT */
html, body {
  width: 100% !important;
  overflow-x: hidden !important;
}

.app-shell-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  transition: max-width 0.3s ease;
}

/* Tablets & Large screens (768px+) -> Expand into modern spacious dashboard */
@media (min-width: 768px) {
  .app-shell-container {
    max-width: 860px !important;
    padding: 0 24px !important;
  }
  .app-header {
    border-radius: 0 0 24px 24px !important;
  }
  .cards-grid, .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }
}

/* Very Small Mobile screens (< 360px) -> Fluid compact typography */
@media (max-width: 360px) {
  body {
    font-size: 13px !important;
  }
  .bottom-nav-item span {
    font-size: 0.62rem !important;
  }
  .header-actions {
    gap: 4px !important;
  }
}


/* Segmented 4-Digit OTP Boxes */
.otp-boxes-wrapper {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
}
.otp-box {
  width: 58px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono, monospace);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.otp-box.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}
.otp-box.filled {
  border-color: rgba(16, 185, 129, 0.7);
  color: #34D399;
  background: rgba(16, 185, 129, 0.14);
}


/* Touch ID & Biometric Modern Styles */
@keyframes rotateSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bioPulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(16, 185, 129, 0.65);
  }
}

.bio-sensor-pulse {
  animation: bioPulseGlow 2.5s infinite ease-in-out;
  cursor: pointer;
  user-select: none;
}
.bio-sensor-pulse:active {
  transform: scale(0.94) !important;
}

.bio-close-btn {
  transition: all 0.2s ease;
}
.bio-close-btn:hover, .bio-close-btn:active {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.08);
}

.pin-dot.wrong {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.85) !important;
  transform: scale(1.18);
}

.pin-dot.correct {
  background: #10B981 !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.85) !important;
  transform: scale(1.18);
}


/* Universal Shake & Modal Alert Enhancements */
.shake, .form-input.shake, .modal-card.shake {
  animation: pinShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.pin-link-btn {
  font-size: 0.83rem;
  color: #60A5FA;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.pin-link-btn:hover {
  color: #93C5FD;
  background: rgba(96, 165, 250, 0.1);
}


/* Segmented 6-Character OTP Boxes for Alphanumeric Codes */
.otp-box-6 {
  width: 44px;
  height: 54px;
  border-radius: 14px;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
}

@media (max-width: 380px) {
  .otp-box-6 {
    width: 38px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 11px;
  }
}

/* Authentic Uzbek Car License Plate Frame (matching state standards) */
.uz-car-plate {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  padding: 1px 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.45), inset 0 1px 1px rgba(255,255,255,0.9);
  vertical-align: middle;
  line-height: 1;
  user-select: none;
  font-family: 'Space Grotesk', 'Roboto Mono', monospace, sans-serif;
}
.uz-car-plate .plate-bolt {
  width: 3.5px;
  height: 3.5px;
  background: #475569;
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
}
.uz-car-plate .plate-bolt.right {
  margin-right: 0;
  margin-left: 5px;
}
.uz-car-plate .plate-region {
  font-weight: 900;
  font-size: 0.95rem;
  color: #000000;
  letter-spacing: 0.5px;
  padding: 2px 6px 2px 2px;
  border-right: 2px solid #000000;
  line-height: 1.1;
  display: inline-block;
}
.uz-car-plate .plate-number {
  font-weight: 900;
  font-size: 0.96rem;
  color: #000000;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  text-transform: uppercase;
  line-height: 1.1;
  display: inline-block;
}
.uz-car-plate .plate-flag-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  line-height: 1;
  flex-shrink: 0;
}
.uz-car-plate .plate-flag-svg {
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
}
.uz-car-plate .plate-country-code {
  font-family: 'Space Grotesk', 'Arial', sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  color: #0099B5;
  text-transform: lowercase;
  letter-spacing: -0.3px;
  margin-top: 1px;
  line-height: 1;
}

/* Hide tiny arrow / mark on household switcher in Photo 4 */
.switcher-arrow {
  display: none !important;
}
.household-switcher-pill select {
  padding-right: 8px !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.household-switcher-pill select::-ms-expand {
  display: none !important;
}

/* Password Input Eye Icon Styling */
.password-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94A3B8;
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
}
.password-eye-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ======================================================== */
/* DYNAMIC MULTI-TRUCK CARDS & YANDEX-STYLE LOCATE BUTTON    */
/* ======================================================== */
.resident-trucks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resident-trucks-container:empty,
.resident-trucks-container[style*="display: none"] {
  display: none !important;
  margin-bottom: 0 !important;
}

.truck-card-item {
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.95), rgba(13, 18, 30, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.08) !important;
  border-radius: var(--radius-lg, 16px) !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  position: relative !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.truck-card-item:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.12) !important;
}

.truck-card-item .truck-status-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.truck-card-item .truck-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.truck-card-item .truck-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 14px rgba(16, 185, 129, 0.6);
  animation: pulseLiveGreen 1.8s infinite;
  flex-shrink: 0;
}

.truck-card-item .truck-status-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.3px;
}

.truck-card-item .truck-model-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F8FAFC;
}

.truck-card-item .truck-plate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.truck-card-item .truck-eta-line {
  font-size: 0.78rem;
  font-weight: 600;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.truck-card-item .truck-eta-line.other-street {
  color: #93C5FD;
}

.truck-card-item .btn-center-truck {
  background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: 8px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.truck-card-item .btn-center-truck:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55) !important;
}

.truck-card-item .btn-center-truck:active {
  transform: scale(0.96);
}

/* ======================================================== */
/* PERFECT VERTICAL FULL-WIDTH CAR CARDS & YANDEX NAVIGATOR */
/* ======================================================== */
.resident-trucks-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.resident-trucks-container:empty,
.resident-trucks-container[style*="display: none"] {
  display: none !important;
  margin-bottom: 0 !important;
}

.truck-card-item {
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.98), rgba(13, 18, 30, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.truck-card-item:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
}

/* 50% / 50% STRICT SPLIT: MASHINA VA ISMNI BITTA QATORDA SAQLASH (NO-DOTS CLIP) */
.truck-card-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.truck-live-status {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.truck-live-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 10px #10B981, 0 0 16px rgba(16, 185, 129, 0.6) !important;
  animation: pulseLiveGreen 1.8s infinite !important;
  flex-shrink: 0 !important;
}

.truck-status-label {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #10B981 !important;
  letter-spacing: 0.3px !important;
  flex-shrink: 0 !important;
}

.truck-model-title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  display: inline-block !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.truck-driver-header-wrap {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  cursor: pointer !important;
}

.truck-driver-header-name {
  font-size: 0.82rem !important;
  color: #94A3B8 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  display: inline-block !important;
  min-width: 0 !important;
}


/* 1. MASHINANING RAQAMI TO'LIQ OXIRGACHA CHO'ZILSIN */
.truck-plate-container-full {
  width: 100% !important;
  box-sizing: border-box !important;
}

.uz-car-plate-full {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 2.5px solid #000000 !important;
  border-radius: 8px !important;
  padding: 3px 12px !important;
  height: 44px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  font-family: 'Space Grotesk', 'Roboto Mono', monospace, sans-serif !important;
  user-select: none !important;
}

.uz-car-plate-full .plate-left-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.uz-car-plate-full .plate-bolt {
  width: 4px !important;
  height: 4px !important;
  background: #475569 !important;
  border-radius: 50% !important;
}

.uz-car-plate-full .plate-region {
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  color: #000000 !important;
  padding-right: 10px !important;
  border-right: 2.5px solid #000000 !important;
  line-height: 1 !important;
}

.uz-car-plate-full .plate-number {
  font-weight: 900 !important;
  font-size: 1.35rem !important;
  color: #000000 !important;
  letter-spacing: 2.5px !important;
  flex: 1 !important;
  text-align: center !important;
  line-height: 1 !important;
}

.uz-car-plate-full .plate-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.uz-car-plate-full .plate-flag-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

.uz-car-plate-full .plate-flag-svg {
  width: 20px !important;
  height: 13px !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.uz-car-plate-full .plate-uz-text {
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  color: #004488 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
}

/* 2. MASHINA QAYSI KO'CHADALIGI BIR QATOR BO'LIB RAQAMNING TAGIDA TURSIN */
.truck-street-status-line {
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #38BDF8 !important;
  text-align: left !important;
  margin: 1px 0 !important;
}

.truck-street-status-line.other-street {
  color: #FACC15 !important;
}

/* 3. XARITADA TOPISH TUGMASI TO'LIQ OXIRGACHA CHO'ZILGAN BO'LSIN */
.btn-find-truck-full {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 42px !important;
  background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
  outline: none !important;
}

.btn-find-truck-full:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55) !important;
}

.btn-find-truck-full:active {
  transform: scale(0.98) !important;
}

/* 4. YANDEX NAVIGATOR O'ZINI TOPISH TUGMASI */
.driver-locate-me-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 1000 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease !important;
}

.driver-locate-me-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38) !important;
}

.driver-locate-me-btn:active,
.driver-locate-me-btn.locating-pulse {
  transform: scale(0.92) !important;
  background: #F1F5F9 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.driver-locate-me-btn svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: #1D4ED8 !important;
  transform: rotate(45deg) !important;
  filter: drop-shadow(0 1px 2px rgba(29, 78, 216, 0.25)) !important;
}

/* 5. LEAFLET KOMPAKT POPUP (EKRANGA TO'LIQ SIG'ADI) */
.leaflet-popup-content-wrapper {
  max-width: 240px !important;
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.leaflet-popup-content {
  margin: 10px 12px !important;
  line-height: 1.35 !important;
  max-width: 220px !important;
  font-family: inherit !important;
}

.leaflet-popup-tip {
  width: 12px !important;
  height: 12px !important;
}


/* ======================================================== */
/* PULL-TO-REFRESH & TELEGRAM FULLSCREEN VIEWER & AVATAR    */
/* ======================================================== */
.pull-refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
  color: #38BDF8;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 12px;
  margin-bottom: 0;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.pull-refresh-indicator.refreshing {
  height: 44px;
  opacity: 1;
  padding: 8px 14px;
  margin-bottom: 12px;
}

.pull-refresh-spinner-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull-spinner-svg {
  animation: pullRotate 1s linear infinite;
  color: #38BDF8;
}

@keyframes pullRotate {
  100% { transform: rotate(360deg); }
}

/* CIRCULAR PROGRESS RING FOR AVATAR */
.avatar-ring-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring-svg {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 104px;
  height: 104px;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 5;
}

.avatar-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 4;
}

.avatar-ring-progress {
  fill: none;
  stroke: #10B981;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 0.15s ease-out;
}

.avatar-ring-container.uploading .avatar-ring-progress {
  filter: drop-shadow(0 0 6px #10B981);
}

/* TELEGRAM-STYLE FULLSCREEN PHOTO VIEWER (Screenshot 2 Match) */
.modal-fullscreen-photo {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(8, 12, 20, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  display: none !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 24px) 16px !important;
  box-sizing: border-box !important;
}

.modal-fullscreen-photo.active {
  display: flex !important;
  animation: photoViewerFadeIn 0.25s ease-out !important;
}

@keyframes photoViewerFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.photo-viewer-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  padding: 8px 4px !important;
}

.btn-viewer-back {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  outline: none !important;
  transition: background 0.2s ease !important;
}

.btn-viewer-back:active {
  background: rgba(255, 255, 255, 0.22) !important;
}

.viewer-title-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.viewer-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.2px !important;
}

.viewer-subtitle {
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
}

.photo-viewer-content {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.photo-viewer-circle-wrap {
  width: min(80vw, 320px) !important;
  height: min(80vw, 320px) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.25) !important;
  animation: circleZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  background: #0F172A !important;
}

@keyframes circleZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.photo-viewer-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* POPUP DRIVER AVATAR HEADER (Where User Drew Red Circle in Screenshot 1) */
.popup-driver-avatar-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-bottom: 8px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  cursor: pointer !important;
}

.popup-driver-avatar-header:active {
  opacity: 0.85 !important;
}

.popup-driver-img-wrap {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #10B981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
  flex-shrink: 0 !important;
}

.popup-driver-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.popup-driver-zoom-icon {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  font-size: 9px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.popup-driver-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.popup-driver-name {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.popup-driver-tag {
  font-size: 0.72rem !important;
  color: #10B981 !important;
  font-weight: 700 !important;
}

/* Professional Driver Avatar Upload Loader & Success Animation */
@keyframes avatarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-upload-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(147, 197, 253, 0.25);
  border-top-color: #3B82F6;
  border-right-color: #60A5FA;
  border-radius: 50%;
  animation: avatarSpin 0.75s linear infinite;
  box-sizing: border-box;
}

.avatar-success-badge {
  width: 28px;
  height: 28px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.6);
  box-sizing: border-box;
}

@keyframes popSuccessBadge {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

#driver-avatar-success.show-success .avatar-success-badge {
  animation: popSuccessBadge 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Telegram-style Auto-lock options styling */
.autolock-opt-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.autolock-opt-item input[type="radio"]:checked + span,
.autolock-opt-item:has(input[type="radio"]:checked) {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8 !important;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171 !important;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5 !important;
}

