/* ============================================================
   GazBor v8.0 — Premium Design Tokens (REDESIGN)
   ============================================================ */
:root {
  /* === BRAND === */
  --brand: #10b981;
  --brand-hover: #059669;
  --brand-active: #047857;
  --brand-light: #d1fae5;
  --brand-lighter: #ecfdf5;

  /* === NEUTRAL === */
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-surface: #f3f4f6;

  --border: #e5e7eb;
  --border-subtle: #f3f4f6;
  --border-strong: #d1d5db;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  /* === SEMANTIC === */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* === RADIUS === */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* === SPACING (8px grid) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* === FONT SIZES === */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;

  /* === FONT WEIGHTS === */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* === TRANSITION === */
  --transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 100ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL TYPOGRAPHY === */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg) !important;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Material Symbols class */
.material-symbols-rounded,
.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
  vertical-align: middle;
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.icon-sm { font-size: 18px; }
.icon-md { font-size: 22px; }
.icon-lg { font-size: 28px; }
.icon-xl { font-size: 36px; }
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 500; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
#app, .page { height: 100vh; height: 100dvh; }
.hidden { display: none !important; }
.muted { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.muted-small { color: #64748b; font-size: 12px; margin-top: 2px; }
button { font-family: inherit; }
input { font-family: inherit; }

/* Loading */
.loading-screen { background: rgba(255, 255, 255, 0.025); height: 100vh; display: flex; align-items: center; justify-content: center; }
.loading-content { text-align: center; }
.loading-icon { font-size: 56px; margin-bottom: 14px; animation: pulse 1.5s ease-in-out infinite; }
.loading-text { color: #64748b; font-size: 14px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Login */
.login-wrap {
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.login-logo { margin-bottom: 32px; text-align: center; }
.logo-big {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 40px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}
.login-logo h1 { color: white; font-size: 30px; font-weight: 800; margin: 0; }
.login-logo p { color: #64748b; font-size: 14px; margin: 8px 0 0; }
.login-card {
  background: rgba(255, 255, 255, 0.025); border-radius: 22px;
  padding: 28px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.login-card h2 { color: white; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.login-card label { color: #94a3b8; font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; margin-top: 16px; }
.login-card label:first-of-type { margin-top: 4px; }
.login-card input {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid #334155;
  border-radius: 12px; color: white;
  font-size: 16px; outline: none; margin-bottom: 12px;
  transition: border-color 0.15s;
}
.login-card input:focus { border-color: #2563eb; }
.login-card input.otp-input {
  font-size: 32px; letter-spacing: 10px; text-align: center;
  border-width: 2px; font-weight: 700;
}
.login-card input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}
.btn-primary {
  width: 100%; padding: 14px;
  background: #2563eb; border: none; border-radius: 12px;
  color: white; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 4px;
  transition: all 0.15s;
}
.btn-primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }
.btn-primary:disabled { background: #1e3a5f; cursor: not-allowed; opacity: 0.6; }
.btn-ghost {
  width: 100%; padding: 12px;
  background: none; border: 1px solid #334155;
  border-radius: 12px; color: #64748b;
  font-size: 14px; cursor: pointer; margin-top: 10px;
}
.btn-ghost:hover { border-color: #475569; color: #94a3b8; }
.error-box { background: rgba(220,38,38,0.12); color: #f87171; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; border: 1px solid rgba(220,38,38,0.2); }
.otp-display { background: rgba(29,78,216,0.12); border: 2px solid #2563eb; border-radius: 14px; padding: 16px; margin-bottom: 20px; text-align: center; }
.otp-display-title { color: #94a3b8; font-size: 12px; margin-bottom: 6px; }
.otp-code { color: #60a5fa; font-size: 36px; font-weight: 800; letter-spacing: 8px; }
.otp-display-hint { color: #64748b; font-size: 11px; margin-top: 6px; }
.version { color: #1e293b; font-size: 12px; margin-top: 20px; }

/* Main app */
.main-app { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.025); }
.content-area { flex: 1; overflow: hidden; position: relative; }
.tab-content { height: 100%; }
#tab-map { display: flex; flex-direction: column; }
#tab-queue, #tab-profile { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Top header */
.top-header { background: rgba(255, 255, 255, 0.025); padding: 10px 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: max(10px, env(safe-area-inset-top)); }
.logo-small { width: 32px; height: 32px; background: #2563eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.top-info { flex: 1; min-width: 0; }
.top-title { color: white; font-weight: 700; font-size: 15px; }
.top-sub { color: #64748b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn-badge { display: flex; align-items: center; gap: 5px; padding: 3px 8px; background: rgba(217,119,6,0.12); border-radius: 20px; flex-shrink: 0; }
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.conn-text { font-size: 10px; color: #fbbf24; font-weight: 600; }
.gps-indicator { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255, 255, 255, 0.025); border-radius: 20px; flex-shrink: 0; cursor: pointer; }
.gps-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; flex-shrink: 0; }
.gps-text { font-size: 11px; color: #94a3b8; }

/* Nearest bar */
.nearest-bar { background: rgba(255, 255, 255, 0.025); padding: 10px 16px; display: flex; gap: 12px; align-items: center; flex-shrink: 0; border-bottom: 1px solid #334155; }
.nearest-left { flex: 1; min-width: 0; }
.nearest-label { color: #94a3b8; font-size: 10px; margin-bottom: 1px; }
.nearest-name { color: white; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearest-col { text-align: center; flex-shrink: 0; }
.col-label { color: #94a3b8; font-size: 10px; }
.col-big { font-weight: 800; font-size: 20px; color: #22c55e; }
.col-eta { color: #a78bfa; font-weight: 600; font-size: 12px; }
.nearest-trend { font-size: 16px; }

/* GPS enable bar */
.gps-enable-bar { background: rgba(29,78,216,0.07); border-bottom: 1px solid rgba(29,78,216,0.2); padding: 8px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.gps-enable-text { color: #60a5fa; font-size: 12px; flex: 1; }
.gps-enable-btn { color: #2563eb; font-size: 12px; font-weight: 600; }

/* Map */
#map { flex: 1; width: 100%; background: rgba(255, 255, 255, 0.025); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px; }
.popup-inner { font-family: inherit; min-width: 250px; }
.popup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.popup-name { font-weight: 700; font-size: 15px; color: #1e293b; }
.popup-status { padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.popup-addr { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.popup-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.popup-cell { background: #f8fafc; border-radius: 8px; padding: 8px; text-align: center; }
.popup-cell-label { font-size: 10px; color: #64748b; }
.popup-cell-big { font-size: 22px; font-weight: 800; }
.popup-cell-eta { font-size: 12px; font-weight: 600; color: #7c3aed; margin-top: 4px; }
.popup-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; color: #64748b; }
.popup-row b { color: #1e293b; }
.popup-route { display: block; width: 100%; padding: 10px; background: #2563eb; color: white; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 10px; box-sizing: border-box; }
.popup-reports-title { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.popup-reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.popup-report-btn { padding: 7px 4px; border: 1px solid; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.popup-report-btn:disabled { cursor: default; }

/* Strip */
.station-strip { background: rgba(255, 255, 255, 0.025); padding: 8px 16px; display: flex; gap: 8px; flex-shrink: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.station-strip::-webkit-scrollbar { display: none; }
.strip-card { flex-shrink: 0; background: rgba(255, 255, 255, 0.025); border-radius: 10px; padding: 8px 12px; min-width: 108px; border-left: 3px solid #22c55e; text-decoration: none; display: block; }
.strip-name { font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 88px; }
.strip-row { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; }
.strip-big { font-size: 17px; font-weight: 800; }
.strip-sm { font-size: 10px; color: #64748b; }
.strip-trend { font-size: 12px; margin-left: 2px; }
.strip-eta { font-size: 10px; color: #a78bfa; }
.strip-route { font-size: 10px; color: #2563eb; margin-top: 3px; }

/* Bottom nav */
.bottom-nav-wrap { padding: 8px 16px; flex-shrink: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.bottom-nav { background: rgba(255, 255, 255, 0.025); border-radius: 24px; padding: 8px; display: flex; box-shadow: 0 -4px 24px rgba(0,0,0,0.4); border: 1px solid #334155; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border: none; cursor: pointer; border-radius: 18px; background: transparent; }
.nav-btn.active { background: #2563eb; }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 11px; font-weight: 400; color: #64748b; }
.nav-btn.active .nav-label { color: white; font-weight: 700; }

/* Queue */
.queue-wrap { padding: 16px 16px 24px; }
.queue-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.queue-header h2 { color: white; font-size: 20px; font-weight: 700; margin: 0; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.summary-card { background: rgba(255, 255, 255, 0.025); border-radius: 14px; padding: 14px 16px; }
.summary-label { color: #64748b; font-size: 11px; margin-bottom: 4px; }
.summary-value { color: #f1f5f9; font-size: 28px; font-weight: 800; }
.summary-value.green { color: #4ade80; }
.summary-value span { font-size: 13px; font-weight: 400; color: #64748b; }
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-card { background: rgba(255, 255, 255, 0.025); border-radius: 16px; padding: 16px; border-left: 4px solid #22c55e; }
.qc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.qc-info { flex: 1; min-width: 0; }
.qc-name { color: white; font-weight: 700; font-size: 15px; }
.qc-addr { color: #64748b; font-size: 12px; margin-top: 2px; }
.qc-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.qc-cell { background: rgba(255, 255, 255, 0.025); border-radius: 10px; padding: 10px 8px; text-align: center; }
.qc-cell-label { font-size: 10px; color: #64748b; margin-bottom: 4px; }
.qc-cell-big { font-size: 24px; font-weight: 800; }
.qc-cell-sm { font-size: 10px; color: #64748b; }
.qc-cell-eta { font-size: 14px; font-weight: 700; color: #a78bfa; margin-top: 4px; }
.qc-cell-trend { font-size: 20px; margin-top: 4px; }
.qc-progress { margin-top: 12px; height: 4px; background: rgba(255, 255, 255, 0.025); border-radius: 2px; overflow: hidden; }
.qc-progress-bar { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.qc-low { margin-top: 8px; font-size: 11px; color: #64748b; text-align: center; }

/* Profile */
.profile-wrap { padding: 16px 16px 24px; }
.profile-wrap h2 { color: white; font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.profile-card { background: rgba(255, 255, 255, 0.025); border-radius: 16px; padding: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 56px; height: 56px; background: #2563eb; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { color: white; font-weight: 700; font-size: 17px; }
.profile-phone { color: #64748b; font-size: 13px; margin-top: 2px; }
.profile-badge { background: #334155; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #64748b; flex-shrink: 0; }
.profile-badge.premium { background: rgba(217,119,6,0.12); color: #fbbf24; }
.premium-banner { background: linear-gradient(135deg, #1e3a5f, #1e293b); border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid #1d4ed8; }
.premium-title { color: white; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.premium-sub { color: #94a3b8; font-size: 13px; margin-bottom: 14px; }
.premium-row { display: flex; align-items: center; justify-content: space-between; }
.premium-price { color: white; font-size: 20px; font-weight: 800; }
.premium-price span { font-size: 13px; font-weight: 400; color: #64748b; }
.btn-premium { background: #2563eb; border: none; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14px; color: white; cursor: pointer; }
.stats-card, .settings-card { background: rgba(255, 255, 255, 0.025); border-radius: 16px; padding: 16px; margin-bottom: 16px; overflow: hidden; }
.settings-card { padding: 0; }
.settings-title { padding: 14px 16px; border-bottom: 1px solid #0f172a; margin: 0; }
.card-title { color: #94a3b8; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-cell { background: rgba(255, 255, 255, 0.025); border-radius: 10px; padding: 12px; text-align: center; }
.stat-big { font-size: 24px; font-weight: 800; color: #f1f5f9; }
.stat-big.green { color: #4ade80; }
.stat-big.red { color: #f87171; }
.stat-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.setting-row { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #0f172a; }
.setting-row:last-child { border-bottom: none; }
.setting-icon { font-size: 18px; margin-right: 12px; }
.setting-label { color: #f1f5f9; font-size: 14px; flex: 1; }
.setting-value { font-size: 13px; color: #94a3b8; }
.setting-value.green { color: #4ade80; }
.setting-value.red { color: #f87171; }
.setting-value.muted-val { color: #64748b; }
.btn-logout { width: 100%; padding: 14px; background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); border-radius: 14px; color: #f87171; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 2000; display: flex; align-items: flex-end; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.gps-modal { background: rgba(255, 255, 255, 0.025); border-radius: 20px; padding: 24px; width: 100%; border: 1px solid #334155; max-width: 460px; margin: 0 auto; }
.gps-modal-head { text-align: center; margin-bottom: 20px; }
.gps-modal-icon { font-size: 48px; margin-bottom: 12px; }
.gps-modal-head h3 { color: white; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.gps-modal-head p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0; }
.benefits-row { display: flex; gap: 8px; margin-bottom: 20px; }
.benefit-cell { flex: 1; background: rgba(255, 255, 255, 0.025); border-radius: 12px; padding: 10px 8px; text-align: center; color: #94a3b8; font-size: 11px; }
.benefit-icon { font-size: 20px; margin-bottom: 4px; }

/* Install banner */
.install-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; padding: 10px 16px; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid #334155; display: flex; align-items: center; gap: 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.install-icon { width: 40px; height: 40px; background: #2563eb; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; }
.install-title { color: white; font-weight: 600; font-size: 13px; }
.install-sub { color: #64748b; font-size: 11px; }
.btn-install { background: #2563eb; border: none; border-radius: 8px; padding: 8px 14px; color: white; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.btn-close { background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; padding: 4px; }

/* Toast */
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: #16a34a; color: white; padding: 12px 22px; border-radius: 22px; font-size: 14px; font-weight: 600; z-index: 9999; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.3); animation: toastIn 0.3s ease; }
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* Desktop */
@media (min-width: 768px) {
  .main-app { max-width: 480px; margin: 0 auto; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
  body { background: #050b18; }
}


/* === Install banner — doim pastda turadi (bottom nav tepasida) === */
.install-banner {
  position: fixed !important;
  top: auto !important;
  bottom: 96px !important;
  left: 12px !important;
  right: 12px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  z-index: 9998 !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  animation: bannerSlideUp 0.5s ease;
}

@keyframes bannerSlideUp {
  from { transform: translateY(150%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.install-banner .install-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.install-banner .install-title {
  color: white !important;
  font-weight: 700 !important;
}

.install-banner .install-sub {
  color: rgba(255, 255, 255, 0.85) !important;
}

.install-banner .btn-install {
  background: white !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.install-banner .btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* X tugmasi yashiramiz */
.install-banner .btn-close {
  display: none !important;
}

@media (min-width: 768px) {
  .install-banner {
    max-width: 460px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 96px !important;
  }
  .install-banner.hidden {
    display: none !important;
  }
}

/* ============================================================
   v3 - Operator data ko'rsatish (driverda)
   ============================================================ */

/* Strip badges */
.strip-badge { display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; font-weight: 700; vertical-align: middle; }
.strip-badge.red { background: rgba(220,38,38,0.2); color: #f87171; }
.strip-badge.gray { background: rgba(100,116,139,0.2); color: #94a3b8; }

/* Queue card badges */
.qc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.qc-badge { font-size: 11px; padding: 3px 8px; border-radius: 12px; font-weight: 600; }
.qc-badge.green { background: rgba(22,163,74,0.15); color: #4ade80; }
.qc-badge.red { background: rgba(220,38,38,0.15); color: #f87171; }
.qc-badge.gray { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* Queue card pumps */
.qc-cell-pumps { font-size: 22px; font-weight: 800; color: #4ade80; margin-top: 4px; }
.qc-cell-pumps span { font-size: 14px; color: #64748b; font-weight: 500; }

/* Queue bottom */
.qc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #0f172a; }
.qc-speed { font-size: 12px; color: #cbd5e1; font-weight: 600; }
.qc-detail-link { font-size: 12px; color: #2563eb; font-weight: 600; }

/* Popup additions */
.popup-stale-warn {
  background: rgba(220,38,38,0.1);
  color: #b91c1c;
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
.popup-detail-btn {
  display: block; width: 100%; padding: 9px;
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.popup-detail-btn:hover { background: #eff6ff; border-color: #2563eb; }

/* ============================================================
   DETAIL MODAL (To'liq stansiya ma'lumotlari)
   ============================================================ */
.detail-modal-card {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border: 1px solid #334155;
  border-bottom: none;
  position: relative;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.detail-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15,23,42,0.7);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.detail-header {
  padding: 28px 24px 18px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border-radius: 20px 20px 0 0;
}
.detail-title { color: white; font-size: 20px; font-weight: 800; margin-bottom: 6px; padding-right: 40px; }
.detail-addr { color: #94a3b8; font-size: 13px; margin-bottom: 12px; }
.detail-status-big {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.detail-fresh-banner {
  margin: 16px 24px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.detail-fresh-banner.ok { background: rgba(22,163,74,0.1); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
.detail-fresh-banner.warn { background: rgba(217,119,6,0.1); color: #fbbf24; border: 1px solid rgba(217,119,6,0.3); }
.detail-fresh-banner.err { background: rgba(220,38,38,0.1); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }

.detail-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 24px 16px;
}
.detail-stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.detail-stat-value { font-size: 24px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.detail-stat-label { font-size: 11px; color: #94a3b8; }

.detail-section {
  padding: 0 24px 16px;
}
.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 8px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 10px;
  margin-bottom: 6px;
}
.detail-row-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.detail-row-content { flex: 1; min-width: 0; }
.detail-row-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.detail-row-value {
  font-size: 14px;
  color: white;
}
.pressure-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Pumps detail grid */
.pumps-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pump-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
}
.pump-item-num {
  font-size: 13px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.pump-item-status {
  font-size: 12px;
  font-weight: 600;
}
.pump-item-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  font-style: italic;
}

.detail-route-btn {
  display: block;
  margin: 8px 24px 28px;
  padding: 14px;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}
.detail-route-btn:hover { background: #1d4ed8; }

/* Detail modal ovellay - alohida override (boshqa modallardan) */
#detail-modal {
  align-items: flex-end !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  #detail-modal { align-items: center !important; padding: 20px !important; }
  .detail-modal-card { border-radius: 20px; border-bottom: 1px solid #334155; }
  .detail-header { border-radius: 20px 20px 0 0; }
}

/* ============================================================
   v3.1 — Background tracking UI
   ============================================================ */

/* BG indikator (top right) */
.bg-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}
.bg-indicator .bg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-bg 2s ease-in-out infinite;
}
@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Onboarding modal */
.bg-onboard-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.bg-onboard-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 12px;
}
.bg-onboard-card h2 {
  text-align: center;
  color: white;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.bg-onboard-desc {
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.bg-onboard-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.bg-onboard-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  border-radius: 12px;
}
.bg-onboard-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.bg-onboard-feature-title {
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.bg-onboard-feature-sub {
  color: #94a3b8;
  font-size: 12px;
}
.bg-onboard-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-bottom: 14px;
}
.bg-onboard-actions .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.bg-onboard-actions .btn-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.bg-onboard-note {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
}

/* Profile BG toggle */
.profile-bg-section {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 14px;
  border: 1px solid #334155;
}
.profile-bg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-bg-info { flex: 1; min-width: 0; }
.profile-bg-title {
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}
.profile-bg-sub {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}
.profile-bg-status {
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 10px;
}
.profile-bg-status .stat-big {
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}
.profile-bg-status .stat-big.green { color: #4ade80; }
.profile-bg-status .stat-big.red { color: #f87171; }

/* Toggle switch (driver app uchun) */
.toggle-switch-driver {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch-driver input { opacity: 0; width: 0; height: 0; }
.toggle-slider-driver {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #334155;
  border-radius: 28px;
  transition: 0.2s;
}
.toggle-slider-driver:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch-driver input:checked + .toggle-slider-driver { background: #2563eb; }
.toggle-switch-driver input:checked + .toggle-slider-driver:before { transform: translateX(22px); }

/* ============================================================
   v3.1 — Background tracking UI
   ============================================================ */

/* BG indikator (top right) */
.bg-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}
.bg-indicator .bg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-bg 2s ease-in-out infinite;
}
@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Onboarding modal */
.bg-onboard-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.bg-onboard-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 12px;
}
.bg-onboard-card h2 {
  text-align: center;
  color: white;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.bg-onboard-desc {
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.bg-onboard-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.bg-onboard-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  border-radius: 12px;
}
.bg-onboard-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.bg-onboard-feature-title {
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.bg-onboard-feature-sub {
  color: #94a3b8;
  font-size: 12px;
}
.bg-onboard-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-bottom: 14px;
}
.bg-onboard-actions .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.bg-onboard-actions .btn-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.bg-onboard-note {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
}

/* Profile BG toggle */
.profile-bg-section {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 14px;
  border: 1px solid #334155;
}
.profile-bg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-bg-info { flex: 1; min-width: 0; }
.profile-bg-title {
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}
.profile-bg-sub {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}
.profile-bg-status {
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 10px;
}
.profile-bg-status .stat-big {
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}
.profile-bg-status .stat-big.green { color: #4ade80; }
.profile-bg-status .stat-big.red { color: #f87171; }

/* Toggle switch (driver app uchun) */
.toggle-switch-driver {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch-driver input { opacity: 0; width: 0; height: 0; }
.toggle-slider-driver {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #334155;
  border-radius: 28px;
  transition: 0.2s;
}
.toggle-slider-driver:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch-driver input:checked + .toggle-slider-driver { background: #2563eb; }
.toggle-switch-driver input:checked + .toggle-slider-driver:before { transform: translateX(22px); }

/* ============================================================
   v3.2 — Native APK rejimida PWA elementlarni yashirish
   ============================================================ */
body.native-app .install-banner,
body.native-app #install-banner,
body.native-app .bg-onboard-note {
  display: none !important;
}

/* Native rejimida onboarding boshqacha bo'lsin (brauzer haqida emas) */
body.native-app #bg-onboarding-modal .bg-onboard-feature:nth-child(3) {
  display: none;
}

/* ============================================================
   v3.3 — Native APK'da Fon rejimi togglini yashirish
   (haydovchi o'chira olmasin - tizim mantig'i uchun)
   ============================================================ */
body.native-app .profile-bg-section {
  display: none !important;
}

/* ============================================================
   v4.0 — SERVISLAR (Driver app)
   ============================================================ */

/* Bottom nav 4 tab uchun */
.bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Services page */
.services-page {
  padding: 14px 14px 100px;
  max-width: 800px;
  margin: 0 auto;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.services-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: white;
}

/* Mode toggle */
.services-mode-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  padding: 4px;
  border-radius: 10px;
}
.srv-mode-btn {
  padding: 7px 13px;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.srv-mode-btn.active {
  background: #2563eb;
  color: white;
}

/* Filter bar */
.services-filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.services-filter-bar input,
.services-filter-bar select {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  color: white;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.services-filter-bar input:focus,
.services-filter-bar select:focus { border-color: #2563eb; }
.services-filter-bar input::placeholder { color: #64748b; }

/* Categories chips */
.categories-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-chip:hover {
  border-color: #475569;
  color: white;
}
.cat-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.cat-chip span:first-child { font-size: 16px; }

/* List view */
.srv-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.srv-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}
.srv-card:hover {
  border-color: #475569;
  transform: translateY(-1px);
}
.srv-card-img {
  width: 110px;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.025);
}
.srv-card-img-empty {
  width: 110px;
  min-height: 130px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}
.srv-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.srv-card-cat {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.srv-card-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.srv-card-addr {
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.srv-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.srv-btn {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.srv-btn-call {
  background: #16a34a;
  color: white;
}
.srv-btn-call:hover { background: #15803d; }
.srv-btn-route {
  background: #2563eb;
  color: white;
}
.srv-btn-route:hover { background: #1d4ed8; }

.srv-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}
.srv-empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Map view */
.srv-map-view {
  height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #334155;
}
#services-map { width: 100%; height: 100%; }

/* Detail modal */
.srv-detail-card {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border: 1px solid #334155;
  border-bottom: none;
  position: relative;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.srv-detail-hero {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.srv-detail-hero-empty {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.srv-detail-body {
  padding: 20px 24px 28px;
}

.srv-detail-cat {
  display: inline-block;
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.srv-detail-name {
  margin: 0 0 8px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.srv-detail-distance {
  font-size: 13px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 16px;
}

.srv-detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.srv-detail-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 10px;
}
.srv-detail-info-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.srv-detail-info-content { flex: 1; min-width: 0; }
.srv-detail-info-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.srv-detail-info-value {
  font-size: 14px;
  color: white;
  word-break: break-word;
}
.srv-detail-info-value.link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.srv-detail-description {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.srv-detail-section-title {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.srv-detail-description-text {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.srv-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.srv-detail-btn {
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.srv-detail-btn-call {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.srv-detail-btn-call:hover { background: #15803d; transform: translateY(-1px); }
.srv-detail-btn-route {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.srv-detail-btn-route:hover { background: #1d4ed8; transform: translateY(-1px); }

/* Detail modal mobile-friendly */
#service-detail-modal {
  align-items: flex-end !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  #service-detail-modal {
    align-items: center !important;
    padding: 20px !important;
  }
  .srv-detail-card {
    border-radius: 20px;
    border-bottom: 1px solid #334155;
  }
}

@media (max-width: 480px) {
  .services-filter-bar { grid-template-columns: 1fr; }
  .srv-card { grid-template-columns: 90px 1fr; }
  .srv-card-img, .srv-card-img-empty {
    width: 90px; min-height: 110px;
  }
  .srv-card-name { font-size: 14px; }
  .srv-card-cat { font-size: 10px; }
  .srv-detail-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v5.0 — DO'KONLAR (Driver app)
   ============================================================ */

/* Bottom nav 5 tab uchun */
.bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
}
.nav-btn .nav-label {
  font-size: 10px !important;
}

/* Mode toggle (shop) - servis bilan bir xil */
.shop-mode-btn {
  padding: 7px 13px;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.shop-mode-btn.active {
  background: #0891b2;
  color: white;
}

/* Shop extra filter (delivery toggle) */
.shop-extra-filter {
  margin-bottom: 12px;
}

.delivery-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  user-select: none;
  transition: all 0.15s;
}
.delivery-filter-toggle:hover {
  border-color: #475569;
  color: white;
}
.delivery-filter-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  cursor: pointer;
}
.delivery-filter-toggle:has(input:checked) {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.5);
  color: #4ade80;
}

/* Shop card - servis bilan bir xil + delivery badge */
.shop-cat {
  color: #22d3ee !important;  /* Shop'lar uchun cyan rang */
}
.shop-cat-badge {
  background: rgba(34, 211, 238, 0.15) !important;
  color: #22d3ee !important;
  border-color: rgba(34, 211, 238, 0.3) !important;
}

.shop-delivery-badge {
  background: rgba(22, 163, 74, 0.15) !important;
  color: #4ade80 !important;
  border-color: rgba(22, 163, 74, 0.3) !important;
  font-weight: 700 !important;
}

/* Shop mode toggle active rangi */
.services-mode-toggle:has(.shop-mode-btn) .shop-mode-btn.active {
  background: #0891b2;
}

/* 5-tab bottom nav uchun mobil moslashish */
@media (max-width: 380px) {
  .nav-btn .nav-icon {
    font-size: 18px !important;
  }
  .nav-btn .nav-label {
    font-size: 9px !important;
  }
}

/* ============================================================
   v5.1 — Shops xaritasi tuzatish
   ============================================================ */
#shops-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 60vh;
}

/* shop-map-view container ham minimal balandlikka ega bo'lsin */
.srv-map-view {
  min-height: 60vh;
}

/* Shop xarita ham xuddi servis kabi container'ga o'ralsin */
#shop-map-view {
  height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #334155;
}

/* ============================================================
   v5.2 — Servislar/Do'konlar skroll muammosini tuzatish
   ============================================================ */

/* Tab content scrollable bo'lishi kerak */
#tab-services,
#tab-shops {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  height: calc(100vh - 70px) !important;  /* nav balandligini hisobga olamiz */
  height: calc(100dvh - 70px) !important; /* dynamic viewport */
  padding-bottom: 0 !important;
}

/* Services page ichidagi padding */
.services-page {
  padding: 14px 14px 140px !important;  /* pastda kattaroq joy nav uchun */
}

/* Native APK rejimida ham */
body.native-app #tab-services,
body.native-app #tab-shops {
  height: calc(100vh - 70px) !important;
  height: calc(100dvh - 70px) !important;
}

/* Faqat asosiy o'lchamlarda emas, telefon brauzerda ham nav-bar uchun */
@media (max-width: 768px) {
  .services-page {
    padding-bottom: 160px !important;  /* katta padding telefon uchun */
  }
}

/* Bottom nav fixed bo'lishi va kontentni qoplamasligi */
.bottom-nav {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* ============================================================
   v6.1 — DRIVER NOTIFICATIONS
   ============================================================ */

/* 🔔 Bell tugma profil tepasida */
.profile-notif-header {
  padding: 14px 14px 0;
  margin-bottom: 8px;
}

.notif-bell-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.notif-bell-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.notif-bell-btn:active {
  transform: translateY(0);
}

.notif-bell-icon {
  font-size: 22px;
  position: relative;
}

.notif-bell-text {
  flex: 1;
  text-align: left;
}

.notif-bell-badge {
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: 800;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  animation: pulse-bell-badge 2s infinite;
}

@keyframes pulse-bell-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5); }
}

/* ============================================================
   Notifications modal
   ============================================================ */

.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notif-modal-card {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid #334155;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.notif-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.025);
}

.notif-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.notif-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notif-mark-all-btn {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.notif-mark-all-btn:hover {
  background: rgba(22, 163, 74, 0.25);
}

.notif-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #334155;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.notif-close-btn:hover {
  background: #475569;
}

.notif-modal-body {
  padding: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Notification card */
.notif-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.notif-card:hover {
  border-color: #475569;
  transform: translateY(-1px);
}

.notif-card.unread {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
}

.notif-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.notif-card-content {
  flex: 1;
  min-width: 0;
}

.notif-card-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  line-height: 1.3;
}

.notif-card.unread .notif-card-title {
  color: #fff;
}

.notif-card-body {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

.notif-card-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.notif-card-link {
  display: inline-block;
  margin-top: 8px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 8px;
}

.notif-card-link:hover {
  background: rgba(37, 99, 235, 0.25);
}

.notif-card-unread-dot {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.notif-empty p {
  margin: 0;
  font-size: 14px;
}

/* Desktop'da markazlash */
@media (min-width: 600px) {
  .notif-modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .notif-modal-card {
    border-radius: 22px;
    border: 1px solid #334155;
    max-height: 80vh;
  }
}

/* Bell tugmasi animatsiya yangi xabar kelganda */
.notif-bell-btn.has-new .notif-bell-icon {
  animation: bell-shake 0.5s ease-in-out;
}

@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

/* ============================================================
   v7.0 — PREMIUM SUBSCRIPTION (Driver app)
   ============================================================ */

/* ============================================================
   Premium status banner
   ============================================================ */
.premium-status-card {
  margin: 0 14px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border: 1.5px solid;
}

.premium-status-card.trial {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

.premium-status-card.premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
}

.premium-status-card.expired {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
  border-color: rgba(220, 38, 38, 0.4);
}

.ps-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.ps-content {
  flex: 1;
  min-width: 0;
}

.ps-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}

.ps-subtitle {
  font-size: 13px;
  color: #cbd5e1;
}

.ps-expires {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.ps-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.ps-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   Wallet card
   ============================================================ */
.wallet-card {
  margin: 0 14px 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.wallet-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  position: relative;
}

.wallet-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.wallet-info {
  flex: 1;
}

.wallet-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.wallet-balance {
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.wallet-history-btn {
  width: 40px;
  height: 40px;
  background: #334155;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.wallet-history-btn:hover {
  background: #475569;
}

.wallet-actions {
  padding: 0 16px 16px;
}

.btn-show-plans {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-show-plans:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

.btn-show-plans:active {
  transform: translateY(0);
}

.btn-topup-balance {
  width: 100%;
  padding: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 8px;
}

.btn-topup-balance:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.btn-topup-balance:active {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(0);
}

/* ============================================================
   Plans modal
   ============================================================ */
.plans-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.plans-modal-card {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid #334155;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 95vh;
  max-height: 95dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 600px) {
  .plans-modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .plans-modal-card {
    border-radius: 24px;
    border: 1px solid #334155;
    max-height: 90vh;
  }
}

.plans-modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 0;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  border-bottom: 1px solid #334155;
}

.plans-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

.plans-hero {
  text-align: center;
  padding: 30px 20px 24px;
  color: white;
}

.plans-hero-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.plans-hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.plans-hero-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

.plans-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.plans-wallet-info {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.plans-wallet-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.plans-wallet-amount {
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.plans-wallet-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #334155;
}

/* ============================================================
   Plan cards
   ============================================================ */
.plans-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.025);
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 16px 14px;
  position: relative;
  transition: all 0.2s;
  text-align: center;
}

.plan-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.plan-card-featured {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #1e293b 0%, rgba(245, 158, 11, 0.08) 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
}

.plan-card-disabled {
  opacity: 0.6;
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 8px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
  margin-top: 4px;
}

.plan-duration {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.plan-old-price {
  font-size: 12px;
  color: #64748b;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.plan-price {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.plan-savings {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-block;
}

.plan-buy-btn {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.plan-buy-btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.plan-buy-btn:disabled {
  background: #475569;
  cursor: not-allowed;
}

.plan-card-featured .plan-buy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.plan-card-featured .plan-buy-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.plans-loading {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.plans-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

/* ============================================================
   Plans features
   ============================================================ */
.plans-features {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px;
}

.plans-features-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.plans-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #cbd5e1;
}

.plans-feature-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================================
   Purchase confirm modal
   ============================================================ */
.purchase-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease-out;
}

.purchase-modal-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: slideUp 0.25s ease-out;
}

.purchase-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.purchase-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.purchase-details {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}

.pd-label {
  color: #94a3b8;
}

.pd-value {
  color: white;
  font-weight: 600;
}

.pd-highlight {
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
}

.pd-price {
  font-size: 16px;
  font-weight: 800;
  color: #c4b5fd;
}

.pd-savings {
  color: #4ade80;
}

.pd-savings .pd-label {
  color: #86efac;
}

.pd-savings .pd-value {
  color: #4ade80;
  font-weight: 700;
}

.pd-divider {
  border-top: 1px dashed #334155;
  margin-top: 8px;
  padding-top: 10px;
}

.purchase-warning {
  font-size: 11px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.btn-purchase-cancel {
  padding: 12px;
  background: #334155;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-purchase-confirm {
  padding: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-purchase-confirm:disabled {
  background: #475569;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================
   Wallet history modal
   ============================================================ */
.wallet-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.wallet-history-card {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid #334155;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 600px) {
  .wallet-history-overlay {
    align-items: center;
    padding: 20px;
  }
  .wallet-history-card {
    border-radius: 22px;
    border: 1px solid #334155;
  }
}

.wallet-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #334155;
  background: rgba(255, 255, 255, 0.025);
}

.wallet-history-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: white;
}

.wallet-history-list {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.wallet-history-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.wh-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 12px;
  margin-bottom: 8px;
}

.wh-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wh-icon.income {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.wh-icon.expense {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.wh-content {
  flex: 1;
  min-width: 0;
}

.wh-desc {
  font-size: 13px;
  color: white;
  font-weight: 600;
  margin-bottom: 3px;
  word-break: break-word;
}

.wh-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.wh-amount {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  text-align: right;
}

.wh-amount.income {
  color: #4ade80;
}

.wh-amount.expense {
  color: #f87171;
}

/* ============================================================
   v7.2 — Profil yangi layout
   ============================================================ */

#tab-profile {
  padding: 14px 14px 100px !important;
  overflow-y: auto !important;
  height: calc(100vh - 70px) !important;
  height: calc(100dvh - 70px) !important;
}

.profile-wrap {
  margin-top: 4px;
}

.profile-wrap h2 {
  margin: 14px 0 10px;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.section-title-small {
  margin: 18px 0 10px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
}

.profile-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}
.profile-phone {
  font-size: 13px;
  color: #94a3b8;
}

.profile-badge {
  background: #334155;
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-badge.premium {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card-mini {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 12px;
  color: #94a3b8;
}

.settings-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #334155;
  border-radius: 14px;
  overflow: hidden;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #0f172a;
}

.setting-row:last-child { border-bottom: none; }

.setting-icon { font-size: 18px; flex-shrink: 0; }
.setting-label { flex: 1; color: white; font-size: 14px; }
.setting-value { color: #94a3b8; font-size: 13px; }

.btn-logout-new {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout-new:hover, .btn-logout-new:active {
  background: rgba(220, 38, 38, 0.2);
}

/* ============================================================
   v7.3 — ACCESS BLOCK OVERLAY (premium gate)
   ============================================================ */

.access-block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 70px;  /* bottom nav balandligini hisobga olish */
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.3s ease-out;
}

.access-block-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.access-block-content::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.access-block-content::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.access-block-icon {
  font-size: 64px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.access-block-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.access-block-text {
  margin: 0 0 22px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.access-block-text b {
  color: #fbbf24;
  font-weight: 700;
}

.access-block-features {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.abf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-align: left;
  color: #e2e8f0;
  font-size: 13px;
}

.abf-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.block-buy-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.block-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.block-buy-btn:active {
  transform: translateY(0);
}

.access-block-hint {
  margin-top: 14px;
  font-size: 11px;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

/* Mobil moslashuv */
@media (max-width: 380px) {
  .access-block-content {
    padding: 22px 18px;
  }
  .access-block-title {
    font-size: 20px;
  }
  .access-block-icon {
    font-size: 52px;
  }
}

/* ============================================================
   v7.4 — BLOCK OVERLAY tuzatishlar
   ============================================================ */

/* Overlay'ni har doim eng tepada bo'lishini ta'minlash */
.access-block-overlay {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 70px !important;
  pointer-events: auto !important;
}

/* Bloklangan paytda body'ni scroll qilmaslik */
body.access-blocked-active {
  overflow: hidden !important;
}

/* Bloklangan paytda asosiy kontent click'larni qabul qilmasin */
body.access-blocked-active .tab-content:not(#tab-profile) {
  pointer-events: none !important;
}

/* Lekin profil ochiq qoladi */
body.access-blocked-active #tab-profile {
  pointer-events: auto !important;
}

/* Leaflet xarita z-index'ini past tushirish (default 999) */
body.access-blocked-active .leaflet-container,
body.access-blocked-active .leaflet-pane,
body.access-blocked-active .leaflet-control {
  z-index: 1 !important;
}

/* Mobil qurilmada overlay vertikal scroll'ni ham bloklasin */
.access-block-overlay {
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* ============================================================
   v7.5 — PWA install banner yashirish
   ============================================================ */
#install-prompt,
#pwa-install,
#pwa-install-banner,
#pwa-prompt,
.install-banner,
.pwa-prompt,
.install-prompt,
[data-install-banner] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   v8.0 — REDESIGN: Core Components (Light theme)
   ============================================================ */

/* === BODY & APP === */
body {
  background: var(--bg) !important;
  color: var(--text-primary);
}

#app {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  background: var(--bg);
}

/* === LOADING === */
.loading-screen {
  background: var(--bg);
}

.loading-content {
  text-align: center;
}

.loading-icon {
  font-size: 64px;
  color: var(--brand);
}

.loading-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  margin-top: 12px;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
button.btn-primary,
button.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.btn-primary,
button.btn-primary {
  background: var(--brand);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled),
button.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: var(--shadow);
}

.btn-primary:active:not(:disabled),
button.btn-primary:active:not(:disabled) {
  background: var(--brand-active);
}

.btn-primary:disabled,
button.btn-primary:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary,
button.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled),
button.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* === LOGIN PAGE === */
#page-login {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-big {
  font-size: 56px;
  margin-bottom: 12px;
  color: var(--brand);
}

.login-logo h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.login-logo p {
  color: var(--text-tertiary);
  font-size: var(--text-base);
  margin: 0;
}

.login-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

.login-card h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.login-card .muted {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: 20px;
}

.login-card label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin: 16px 0 6px;
}

.login-card input[type="tel"],
.login-card input[type="text"],
.login-card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.login-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: var(--text-md);
}

.login-card .btn-ghost {
  width: 100%;
  margin-top: 8px;
}

.otp-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: var(--text-2xl) !important;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.otp-display {
  background: var(--brand-lighter);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.otp-display-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--brand-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.otp-code {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
}

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

.error-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: 16px;
}

.version {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 24px;
}

/* === MAIN APP === */
.main-app {
  background: var(--bg-subtle);
}

.content-area {
  background: var(--bg-subtle);
}

/* === TAB CONTENT === */
.tab-content {
  background: var(--bg-subtle);
}

/* === TOP HEADER (xarita uchun) === */
.top-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-small {
  font-size: 28px;
  color: var(--brand);
}

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

.top-title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.top-sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.conn-badge,
.gps-indicator,
.bg-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.conn-dot,
.gps-dot,
.bg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.conn-badge.disconnected .conn-dot { background: var(--danger); }

/* === CARDS === */
.card,
.profile-card,
.user-card,
.station-card,
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover,
.station-card:hover,
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.04);
}

.bottom-nav button,
.bottom-nav a {
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  transition: var(--transition);
}

.bottom-nav button.active,
.bottom-nav a.active,
.bottom-nav button[aria-current="page"] {
  color: var(--brand);
}

/* === MODAL OVERLAY === */
.modal-overlay,
.detail-modal-overlay {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card,
.detail-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.modal-card h2,
.modal-card h3 {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

/* === INPUTS (umumiy) === */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* === TOAST === */
#toast {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
}

#toast.success {
  background: var(--success);
}

#toast.error {
  background: var(--danger);
}

/* === HEADERS === */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

/* === LINKS === */
a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--brand-hover);
}

/* ============================================================
   v8.0 — REDESIGN: Profil + Premium UI
   ============================================================ */

/* === PROFIL TAB === */
#tab-profile {
  background: var(--bg-subtle);
  padding: 16px 16px 100px !important;
}

.profile-wrap {
  margin-top: 8px;
}

.profile-wrap h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}

.section-title-small {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 24px 0 10px;
}

/* === USER PROFIL CARD === */
.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  background: var(--brand-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: var(--brand);
}

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

.profile-name {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.profile-phone {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.profile-badge {
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.profile-badge.premium {
  background: var(--brand-light);
  color: var(--brand-hover);
}

/* === BILDIRISHNOMALAR TUGMA === */
.profile-notif-header {
  margin: 0 0 12px;
}

.notif-bell-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.notif-bell-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.notif-bell-icon {
  font-size: 22px;
  color: var(--brand);
}

.notif-bell-text {
  flex: 1;
  text-align: left;
}

.notif-bell-badge {
  background: var(--danger);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === PREMIUM STATUS BANNER === */
.premium-status-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.premium-status-card.trial {
  background: var(--warning-bg);
  border-color: var(--warning);
}

.premium-status-card.premium {
  background: var(--brand-lighter);
  border-color: var(--brand);
}

.premium-status-card.expired {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.ps-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ps-content {
  flex: 1;
  min-width: 0;
}

.ps-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.ps-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.ps-expires {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ps-action-btn {
  background: var(--text-primary);
  color: var(--text-inverse);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.ps-action-btn:hover {
  background: var(--text-secondary);
}

/* === HAMYON CARD === */
.wallet-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.wallet-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.wallet-info {
  flex: 1;
}

.wallet-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

.wallet-balance {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wallet-history-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wallet-history-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.wallet-actions {
  padding: 0 16px 16px;
}

.btn-show-plans {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.btn-show-plans:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow);
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}

.stat-card-mini:hover {
  border-color: var(--border-strong);
}

.stat-card-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === SOZLAMALAR CARD === */
.settings-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.setting-label {
  flex: 1;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.setting-value {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* === LOGOUT === */
.btn-logout-new {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--bg);
  color: var(--danger);
  border: 1px solid var(--danger-bg);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-new:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* === PREMIUM TARIFLAR MODAL === */
.plans-modal-overlay {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

.plans-modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

@media (min-width: 600px) {
  .plans-modal-card {
    border-radius: var(--radius-2xl);
  }
}

.plans-modal-header {
  background: var(--brand-lighter);
  border-bottom: 1px solid var(--brand-light);
  padding: 28px 20px;
}

.plans-close-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.plans-hero-icon {
  font-size: 56px;
  margin-bottom: 8px;
  color: var(--brand);
}

.plans-hero-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.plans-hero-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  max-width: 320px;
  margin: 0 auto;
}

.plans-modal-body {
  padding: 20px;
  background: var(--bg);
}

.plans-wallet-info {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.plans-wallet-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.plans-wallet-amount {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.plans-wallet-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* === PLAN CARDS === */
.plans-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px 14px;
  position: relative;
  text-align: center;
  transition: var(--transition);
}

.plan-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.plan-card-featured {
  border-color: var(--brand);
  background: var(--brand-lighter);
}

.plan-card-disabled {
  opacity: 0.55;
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--brand) !important;
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.plan-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin-bottom: 2px;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.plan-duration {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--weight-semibold);
  margin-bottom: 12px;
}

.plan-old-price {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.plan-price {
  font-size: var(--text-md);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-savings {
  background: var(--brand-light);
  color: var(--brand-hover);
  border: none;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
  display: inline-block;
}

.plan-buy-btn {
  width: 100%;
  padding: 10px;
  background: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition);
}

.plan-buy-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

.plan-buy-btn:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* === PLANS FEATURES === */
.plans-features {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.plans-features-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.plans-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.plans-feature-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: var(--brand);
}

/* === PURCHASE CONFIRM === */
.purchase-modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.purchase-icon {
  font-size: 48px;
  margin-bottom: 8px;
  color: var(--brand);
}

.purchase-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.purchase-details {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: var(--text-sm);
}

.pd-label {
  color: var(--text-tertiary);
}

.pd-value {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.pd-highlight {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--brand-lighter);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius);
}

.pd-price {
  font-size: var(--text-md);
  font-weight: var(--weight-extrabold);
  color: var(--brand-hover);
}

.pd-savings .pd-label,
.pd-savings .pd-value {
  color: var(--brand-hover);
}

.pd-divider {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 10px;
}

.purchase-warning {
  font-size: var(--text-xs);
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-weight: var(--weight-medium);
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.btn-purchase-cancel {
  padding: 12px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-purchase-cancel:hover {
  background: var(--bg-surface);
}

.btn-purchase-confirm {
  padding: 12px;
  background: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-purchase-confirm:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: var(--shadow);
}

.btn-purchase-confirm:disabled {
  background: var(--border-strong);
  cursor: not-allowed;
}

/* ============================================================
   v8.0 — REDESIGN: Notifications + Block + Wallet History
   ============================================================ */

/* === BILDIRISHNOMALAR MODAL === */
.notif-modal-overlay {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}

.notif-modal-card {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 600px) {
  .notif-modal-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
  }
}

.notif-modal-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.notif-modal-header h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.notif-mark-all-btn {
  background: var(--brand-lighter);
  color: var(--brand-hover);
  border: 1px solid var(--brand-light);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.notif-mark-all-btn:hover {
  background: var(--brand-light);
}

.notif-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.notif-close-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.notif-modal-body {
  padding: 12px;
  background: var(--bg-subtle);
}

/* === NOTIFICATION CARD === */
.notif-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.notif-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.notif-card.unread {
  background: var(--brand-lighter);
  border-color: var(--brand-light);
}

.notif-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--bg-subtle) !important;
  color: var(--brand) !important;
}

.notif-card.unread .notif-card-icon {
  background: var(--bg) !important;
}

.notif-card-content {
  flex: 1;
  min-width: 0;
}

.notif-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.notif-card-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  font-weight: var(--weight-normal);
  white-space: pre-wrap;
  word-break: break-word;
}

.notif-card-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.notif-card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  background: var(--brand-lighter);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.notif-card-link:hover {
  background: var(--brand-light);
}

.notif-card-unread-dot {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.notif-empty p {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--text-tertiary);
}

.notif-empty h4 {
  color: var(--text-primary) !important;
  font-size: var(--text-md);
  margin: 0 0 6px !important;
}

/* === BLOCK OVERLAY === */
.access-block-overlay {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
}

.access-block-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-xl);
  max-width: 420px;
}

.access-block-content::before,
.access-block-content::after {
  display: none !important;
}

.access-block-icon {
  font-size: 56px;
  color: var(--warning);
  margin-bottom: 12px;
}

.access-block-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.access-block-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 22px;
  font-weight: var(--weight-normal);
}

.access-block-text b {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.access-block-features {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.abf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-align: left;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.abf-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  color: var(--brand);
}

.block-buy-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.block-buy-btn:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-md);
}

.block-buy-btn:active {
  background: var(--brand-active);
}

.access-block-hint {
  margin-top: 14px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* === WALLET HISTORY MODAL === */
.wallet-history-overlay {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}

.wallet-history-card {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 600px) {
  .wallet-history-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
  }
}

.wallet-history-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.wallet-history-header h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.wallet-history-list {
  padding: 12px;
  background: var(--bg-subtle);
}

.wallet-history-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.wh-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wh-item:hover {
  border-color: var(--border-strong);
}

.wh-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.wh-icon.income {
  background: var(--success-bg);
  color: var(--success);
}

.wh-icon.expense {
  background: var(--danger-bg);
  color: var(--danger);
}

.wh-content {
  flex: 1;
  min-width: 0;
}

.wh-desc {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  margin-bottom: 3px;
  word-break: break-word;
  letter-spacing: -0.01em;
}

.wh-meta {
  display: flex;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.wh-amount {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.wh-amount.income {
  color: var(--success);
}

.wh-amount.expense {
  color: var(--danger);
}

/* === STATIONS / SERVICES / SHOPS LIST === */
.station-card,
.service-card,
.shop-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.station-card:hover,
.service-card:hover,
.shop-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

/* === STATION STATUS === */
.station-status,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.station-status.open,
.status-pill.open,
.status-pill.OPEN {
  background: var(--success-bg);
  color: var(--success);
}

.station-status.closed,
.status-pill.closed,
.status-pill.CLOSED {
  background: var(--danger-bg);
  color: var(--danger);
}

/* === DETAIL MODAL === */
#detail-modal {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
}

.detail-modal-content,
.detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* === TAB NAVIGATION (top tabs) === */
.tabs-bar,
.queue-tabs,
.filter-tabs {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.tab-btn,
.queue-tab,
.filter-tab {
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active,
.queue-tab.active,
.filter-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* === TOAST === */
#toast {
  background: var(--text-primary) !important;
  color: var(--text-inverse) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 18px !important;
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-medium) !important;
  box-shadow: var(--shadow-xl) !important;
  border: none !important;
  font-size: var(--text-sm) !important;
}

#toast.success {
  background: var(--success) !important;
}

#toast.error {
  background: var(--danger) !important;
}

/* === LEAFLET MAP CONTAINER === */
.leaflet-container {
  background: var(--bg-subtle) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  color: var(--text-primary);
  font-family: 'Inter', sans-serif !important;
}

/* ============================================================
   v8.0 — REDESIGN: FINAL Override (eski dark stillarni majburlab)
   ============================================================ */

/* === MAJBURLAB OQ FON === */
body, html, #app, .page, .main-app, .content-area,
[id^="tab-"], #page-main, #page-login {
  background-color: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
}

#tab-map {
  background: var(--bg-subtle) !important;
}

/* Eski dark elementlarni override */
.profile-bg-section,
.profile-bg-row,
.queue-status-card,
.station-info-card,
.detail-card,
.detail-content,
.shop-detail,
.service-detail {
  background: var(--bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

/* Barcha matnlar */
.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4,
.tab-content p,
.tab-content span,
.tab-content div {
  color: inherit;
}

/* === TAB BUTTON HEADERS === */
.queue-header,
.services-header,
.shops-header,
.tab-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px;
}

.queue-header h1,
.services-header h1,
.shops-header h1,
.tab-header h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.queue-header p,
.services-header p,
.shops-header p,
.tab-header p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 4px 0 0;
}

/* === REAL-TIME BADGE === */
.realtime-badge,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.realtime-badge::before,
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === STATIONS LIST QUEUE === */
.queue-summary,
.stats-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.summary-card,
.queue-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.summary-label,
.queue-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

.summary-value,
.queue-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* === STATION CARD - YANGI === */
.station-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0 16px 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.station-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.station-card.recommended {
  border-left: 3px solid var(--brand);
}

.station-name {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.station-address {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.station-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.station-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.station-tag.warning {
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.station-tag.danger {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.station-tag.success {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* Station mini stats */
.station-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 10px;
}

.station-stat {
  text-align: center;
}

.station-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}

.station-stat-value {
  font-size: var(--text-md);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.station-stat-value.fast {
  color: var(--success);
}

.station-stat-value.warning {
  color: var(--warning);
}

.station-stat-value.danger {
  color: var(--danger);
}

/* === SERVICE / SHOP CARD === */
.service-card,
.shop-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 16px 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover,
.shop-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.service-image,
.shop-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.service-info,
.shop-info {
  padding: 12px 14px;
}

.service-name,
.shop-name {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.service-category,
.shop-category {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.service-meta,
.shop-meta {
  display: flex;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}

/* === FORM ELEMENTS === */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: var(--weight-normal);
}

label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

/* === MUTED / HINTS === */
.muted,
.muted-hint,
.hint {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* === EMPTY STATES === */
.empty-state,
.empty-state-big {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* === LOGIN MAYDA TUZATISH === */
.login-card .otp-input {
  text-align: center;
  letter-spacing: 8px !important;
  font-size: 24px !important;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 380px) {
  :root {
    --text-xs: 10px;
    --text-sm: 12px;
    --text-base: 13px;
    --text-md: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 22px;
  }

  .profile-wrap h2 {
    font-size: var(--text-xl);
  }

  .login-card {
    padding: 22px 18px;
  }

  .plans-list {
    grid-template-columns: 1fr;
  }
}

/* === SAFE AREA - notch'li telefonlar === */
@supports (padding: env(safe-area-inset-top)) {
  .top-header {
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  #tab-profile {
    padding-top: calc(16px + env(safe-area-inset-top)) !important;
  }

  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === FOCUS RING === */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* === SELECTION === */
::selection {
  background: var(--brand-light);
  color: var(--brand-active);
}

/* === DISABLED STATES === */
button:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* === SKELETON LOADER === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-surface) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === MAJBURLAB ESKI DARK ELEMENTLARNI YASHIRISH === */
.dark-card,
.dark-bg {
  background: var(--bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

/* Bottom nav active state */
.bottom-nav button.active,
.bottom-nav a.active {
  background: transparent !important;
}

.bottom-nav button.active .nav-icon,
.bottom-nav a.active .nav-icon {
  color: var(--brand) !important;
}

/* Background tracker section - yashirish (hozir kerak emas) */
.profile-bg-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.profile-bg-info {
  flex: 1;
}

.profile-bg-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-bg-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--bg);
  transition: var(--transition);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--brand);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ============================================================
   GazBor v9.0 — GLASSMORPHISM PREMIUM (Tesla/BMW style)
   ============================================================ */

:root {
  /* === BACKGROUND LAYERS === */
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-elevated-2: #1a1a24;

  /* === GLASS SURFACES === */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-bg-active: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.05);

  /* === BRAND === */
  --brand: #00d97e;
  --brand-hover: #00c270;
  --brand-active: #00a85f;
  --brand-light: rgba(0, 217, 126, 0.15);
  --brand-lighter: rgba(0, 217, 126, 0.08);
  --brand-glow: 0 0 32px rgba(0, 217, 126, 0.3);
  --brand-glow-strong: 0 0 48px rgba(0, 217, 126, 0.5);
  --brand-gradient: linear-gradient(135deg, #00d97e 0%, #00b366 100%);
  --brand-gradient-text: linear-gradient(135deg, #00f590 0%, #00d97e 100%);

  /* === NEUTRALS (text on dark) === */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.40);
  --text-dim: rgba(255, 255, 255, 0.25);
  --text-inverse: #0a0a0f;

  /* === BORDERS === */
  --border: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.12);

  --bg-subtle: var(--bg-elevated);
  --bg-surface: var(--glass-bg);

  /* === SEMANTIC === */
  --success: #00d97e;
  --success-bg: rgba(0, 217, 126, 0.12);
  --warning: #ffb547;
  --warning-bg: rgba(255, 181, 71, 0.12);
  --danger: #ff5470;
  --danger-bg: rgba(255, 84, 112, 0.12);
  --info: #5eb3ff;
  --info-bg: rgba(94, 179, 255, 0.12);

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px 0 rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 60px 0 rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* === RADIUS === */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --radius-full: 9999px;

  /* === BLUR === */
  --blur-sm: 8px;
  --blur: 16px;
  --blur-md: 24px;
  --blur-lg: 32px;

  /* === TRANSITION === */
  --transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL === */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg) !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.011em;
}

body {
  background:
    radial-gradient(ellipse 800px 600px at 50% -10%, rgba(0, 217, 126, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 100% 50%, rgba(0, 217, 126, 0.04) 0%, transparent 50%),
    var(--bg) !important;
  min-height: 100vh;
}

/* === MAJBURLAB DARK BARCHA ELEMENTLARGA === */
#app, .page, .main-app, .content-area,
[id^="tab-"], #page-main, #page-login,
#tab-map, #tab-queue, #tab-services, #tab-shops, #tab-profile {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

/* === LINKS === */
a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--brand-hover);
}

/* === SELECTION === */
::selection {
  background: var(--brand-light);
  color: var(--text-primary);
}

/* === LOADING === */
.loading-screen {
  background: var(--bg) !important;
}

.loading-icon {
  font-size: 56px;
  filter: drop-shadow(0 0 24px rgba(0, 217, 126, 0.4));
}

.loading-text {
  color: var(--text-secondary);
}

/* === GLASS CARD BASE === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--shadow-inner);
}

/* === BACKGROUND DECORATION === */
.main-app::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 0%, rgba(0, 217, 126, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 500px 300px at 80% 100%, rgba(0, 217, 126, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.main-app > * {
  position: relative;
  z-index: 1;
}

/* === FORCE OVERRIDE eski oq stillarni === */
.profile-card, .user-card, .station-card, .service-card, .shop-card,
.card, .stat-card, .stat-card-mini, .settings-card, .wallet-card,
.profile-bg-section, .login-card, .modal-card, .detail-card,
#toast, .premium-status-card,
.summary-card, .queue-stat-card, .top-header,
.notif-bell-btn, .plan-card, .access-block-content,
.purchase-modal-card, .wallet-history-card, .notif-modal-card,
.plans-modal-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow), var(--shadow-inner);
}

/* === LOGIN PAGE === */
#page-login {
  background:
    radial-gradient(ellipse 600px 400px at 50% 30%, rgba(0, 217, 126, 0.12) 0%, transparent 60%),
    var(--bg) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-big {
  font-size: 72px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 32px rgba(0, 217, 126, 0.5));
  display: inline-block;
}

.login-logo h1 {
  font-size: 36px;
  font-weight: 800;
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.login-logo p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0;
}

.login-card {
  padding: 32px 28px !important;
  border-radius: var(--radius-2xl) !important;
}

.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.login-card .muted {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === INPUTS === */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea, select {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-md) !important;
  transition: var(--transition);
  width: 100%;
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  background: rgba(0, 217, 126, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(0, 217, 126, 0.1), var(--brand-glow);
}

.otp-input {
  text-align: center !important;
  letter-spacing: 12px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

.otp-display {
  background: linear-gradient(135deg, rgba(0, 217, 126, 0.12) 0%, rgba(0, 217, 126, 0.04) 100%);
  border: 1px solid rgba(0, 217, 126, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 0 24px rgba(0, 217, 126, 0.1);
}

.otp-display-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.otp-code {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(0, 217, 126, 0.5);
}

.otp-display-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === ERROR BOX === */
.error-box {
  background: var(--danger-bg) !important;
  border: 1px solid rgba(255, 84, 112, 0.3) !important;
  color: var(--danger) !important;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* === VERSION === */
.version {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ============================================================
   v9.0 — GLASSMORPHISM: Buttons + Modals + Premium UI
   ============================================================ */

/* === BUTTONS === */
.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  box-shadow:
    0 8px 24px rgba(0, 217, 126, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #00f590 0%, #00c270 100%) !important;
  box-shadow:
    0 12px 32px rgba(0, 217, 126, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary,
button.btn-secondary {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur-md));
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
}

.btn-ghost {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: none !important;
  padding: 12px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
}

/* === TOP HEADER === */
.top-header {
  background: rgba(10, 10, 15, 0.7) !important;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 14px 16px !important;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-small {
  font-size: 26px;
  filter: drop-shadow(0 0 12px rgba(0, 217, 126, 0.4));
}

.top-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.top-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.conn-badge,
.gps-indicator,
.bg-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(var(--blur));
}

.conn-dot,
.gps-dot,
.bg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.conn-badge.disconnected .conn-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* === BOTTOM NAVIGATION (premium) === */
.bottom-nav {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-top: 1px solid var(--glass-border) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav button,
.bottom-nav a,
.bottom-nav-item {
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom-nav button.active,
.bottom-nav a.active {
  color: var(--brand) !important;
  background: var(--brand-lighter) !important;
}

.bottom-nav .nav-icon {
  font-size: 22px;
  transition: var(--transition);
}

.bottom-nav button.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(0, 217, 126, 0.5));
}

/* === PROFIL TAB === */
#tab-profile {
  padding: 16px 16px 100px !important;
  background: transparent !important;
}

.profile-wrap h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 20px 0 14px;
}

.section-title-small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 28px 0 12px;
}

/* === BILDIRISHNOMA TUGMA === */
.profile-notif-header {
  margin: 0 0 14px;
}

.notif-bell-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.notif-bell-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 217, 126, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.notif-bell-btn:hover {
  border-color: var(--glass-border-hover) !important;
  background: var(--glass-bg-hover) !important;
  transform: translateY(-1px);
}

.notif-bell-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(0, 217, 126, 0.4));
}

.notif-bell-text {
  flex: 1;
  text-align: left;
}

.notif-bell-badge {
  background: var(--danger) !important;
  color: white !important;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 84, 112, 0.4);
  font-variant-numeric: tabular-nums;
}

/* === PREMIUM STATUS BANNER === */
.premium-status-card {
  padding: 16px !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.premium-status-card.trial {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.12) 0%, rgba(255, 181, 71, 0.04) 100%) !important;
  border: 1px solid rgba(255, 181, 71, 0.2) !important;
}

.premium-status-card.premium {
  background: linear-gradient(135deg, rgba(0, 217, 126, 0.12) 0%, rgba(0, 217, 126, 0.04) 100%) !important;
  border: 1px solid rgba(0, 217, 126, 0.25) !important;
  box-shadow: 0 0 24px rgba(0, 217, 126, 0.1);
}

.premium-status-card.expired {
  background: linear-gradient(135deg, rgba(255, 84, 112, 0.12) 0%, rgba(255, 84, 112, 0.04) 100%) !important;
  border: 1px solid rgba(255, 84, 112, 0.25) !important;
}

.ps-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ps-content { flex: 1; min-width: 0; }

.ps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.ps-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.ps-expires {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ps-action-btn {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(var(--blur));
  transition: var(--transition);
}

.ps-action-btn:hover {
  background: var(--brand) !important;
  color: var(--text-inverse) !important;
  border-color: var(--brand) !important;
}

/* === HAMYON CARD (premium) === */
.wallet-card {
  border-radius: var(--radius-xl) !important;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 217, 126, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.wallet-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.wallet-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 217, 126, 0.3);
  color: var(--text-inverse);
}

.wallet-info { flex: 1; }

.wallet-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 5px;
}

.wallet-balance {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.wallet-history-btn {
  width: 38px;
  height: 38px;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius);
  color: var(--text-secondary) !important;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(var(--blur));
}

.wallet-history-btn:hover {
  background: var(--glass-bg-hover) !important;
  color: var(--text-primary) !important;
}

.wallet-actions {
  padding: 0 18px 18px;
  position: relative;
  z-index: 1;
}

.btn-show-plans {
  width: 100%;
  padding: 15px !important;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow:
    0 8px 24px rgba(0, 217, 126, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-show-plans::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn-show-plans:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(0, 217, 126, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* === PROFIL CARD === */
.profile-card {
  padding: 18px !important;
  border-radius: var(--radius-lg) !important;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(0, 217, 126, 0.25);
}

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

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.profile-phone {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.profile-badge {
  background: var(--glass-bg) !important;
  color: var(--text-tertiary) !important;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.profile-badge.premium {
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3);
  border-color: transparent !important;
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card-mini {
  padding: 18px 14px !important;
  text-align: center;
  border-radius: var(--radius-md) !important;
  transition: var(--transition);
}

.stat-card-mini:hover {
  border-color: var(--glass-border-hover) !important;
  transform: translateY(-1px);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === SOZLAMALAR === */
.settings-card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row:hover {
  background: var(--glass-bg-hover);
}

.setting-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(0, 217, 126, 0.3));
}

.setting-label {
  flex: 1;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.setting-value {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

/* === LOGOUT === */
.btn-logout-new {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px !important;
  background: var(--glass-bg) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(255, 84, 112, 0.2) !important;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(var(--blur));
}

.btn-logout-new:hover {
  background: rgba(255, 84, 112, 0.08) !important;
  border-color: rgba(255, 84, 112, 0.35) !important;
}

/* === MODALS GENERAL === */
.modal-overlay,
.notif-modal-overlay,
.plans-modal-overlay,
.purchase-modal-overlay,
.wallet-history-overlay {
  background: rgba(10, 10, 15, 0.7) !important;
  backdrop-filter: blur(var(--blur-md));
}

.modal-card,
.notif-modal-card,
.plans-modal-card,
.purchase-modal-card,
.wallet-history-card {
  background: rgba(20, 20, 30, 0.85) !important;
  backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-2xl) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
  .notif-modal-card,
  .plans-modal-card,
  .wallet-history-card {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important;
  }
}

/* === TOAST === */
#toast {
  background: rgba(20, 20, 30, 0.95) !important;
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  box-shadow: var(--shadow-xl) !important;
}

#toast.success {
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 32px rgba(0, 217, 126, 0.4) !important;
}

#toast.error {
  background: linear-gradient(135deg, #ff5470 0%, #e63b5a 100%) !important;
  color: white !important;
  border-color: transparent !important;
}

/* ============================================================
   v9.0 — GLASSMORPHISM: Tariflar + Notif + Block + Stations
   ============================================================ */

/* === PLANS MODAL === */
.plans-modal-card {
  background: rgba(15, 15, 22, 0.92) !important;
}

.plans-modal-header {
  background:
    radial-gradient(ellipse 400px 200px at 50% 100%, rgba(0, 217, 126, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0, 217, 126, 0.08) 0%, transparent 100%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 36px 24px 28px !important;
  position: relative;
}

.plans-close-btn {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  font-size: 16px;
  backdrop-filter: blur(var(--blur));
  cursor: pointer;
  transition: var(--transition);
}

.plans-close-btn:hover {
  background: var(--glass-bg-hover) !important;
}

.plans-hero-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 32px rgba(0, 217, 126, 0.5));
  margin-bottom: 12px;
}

.plans-hero-title {
  font-size: 28px;
  font-weight: 800;
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.plans-hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

.plans-modal-body {
  padding: 20px;
  background: transparent;
}

.plans-wallet-info {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.plans-wallet-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.plans-wallet-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.plans-wallet-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* === PLAN CARDS - PREMIUM === */
.plans-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-lg) !important;
  padding: 20px 14px 14px !important;
  position: relative;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.plan-card:hover {
  border-color: rgba(0, 217, 126, 0.3) !important;
  background: rgba(0, 217, 126, 0.03) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 217, 126, 0.1);
}

.plan-card-featured {
  border-color: rgba(0, 217, 126, 0.4) !important;
  background: linear-gradient(180deg, rgba(0, 217, 126, 0.08) 0%, var(--glass-bg) 100%) !important;
  box-shadow: 0 0 24px rgba(0, 217, 126, 0.15);
}

.plan-card-disabled {
  opacity: 0.5;
}

.plan-badge {
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 5px 12px !important;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border-radius: var(--radius-full) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(0, 217, 126, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.plan-duration {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 14px;
}

.plan-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.plan-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-savings {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(0, 217, 126, 0.2) !important;
  padding: 4px 10px !important;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}

.plan-buy-btn {
  width: 100%;
  padding: 11px !important;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.25);
  letter-spacing: -0.01em;
}

.plan-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 217, 126, 0.4);
}

.plan-buy-btn:disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
  cursor: not-allowed;
}

/* === PLANS FEATURES === */
.plans-features {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md);
  padding: 18px;
}

.plans-features-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.plans-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.plans-feature-icon {
  font-size: 18px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 217, 126, 0.3));
}

/* === PURCHASE CONFIRM === */
.purchase-modal-card {
  background: rgba(20, 20, 30, 0.95) !important;
  padding: 28px !important;
  border-radius: var(--radius-2xl) !important;
}

.purchase-icon {
  font-size: 56px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 24px rgba(0, 217, 126, 0.4));
}

.purchase-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.purchase-details {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}

.pd-label {
  color: var(--text-tertiary);
}

.pd-value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pd-highlight {
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(0, 217, 126, 0.08);
  border: 1px solid rgba(0, 217, 126, 0.2);
  border-radius: var(--radius);
}

.pd-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.pd-savings {
  color: var(--brand);
}

.pd-savings .pd-label,
.pd-savings .pd-value {
  color: var(--brand);
  font-weight: 700;
}

.pd-divider {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 10px;
}

.purchase-warning {
  font-size: 11px;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid rgba(255, 181, 71, 0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.btn-purchase-cancel {
  padding: 14px !important;
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-purchase-cancel:hover {
  background: var(--glass-bg-hover) !important;
}

.btn-purchase-confirm {
  padding: 14px !important;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(0, 217, 126, 0.3);
}

.btn-purchase-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 217, 126, 0.4);
}

.btn-purchase-confirm:disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  cursor: not-allowed;
  box-shadow: none;
}

/* === BILDIRISHNOMALAR MODAL === */
.notif-modal-header {
  background: rgba(15, 15, 22, 0.95) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 20px 22px !important;
}

.notif-modal-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.notif-mark-all-btn {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(0, 217, 126, 0.2) !important;
  padding: 8px 12px !important;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.notif-mark-all-btn:hover {
  background: rgba(0, 217, 126, 0.2) !important;
}

.notif-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.notif-close-btn:hover {
  background: var(--glass-bg-hover) !important;
}

.notif-modal-body {
  padding: 12px;
  background: transparent;
}

.notif-card {
  display: flex;
  gap: 14px;
  padding: 16px !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg) !important;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.notif-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
}

.notif-card.unread {
  background: rgba(0, 217, 126, 0.06) !important;
  border-color: rgba(0, 217, 126, 0.15) !important;
}

.notif-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--glass-bg) !important;
  color: var(--brand) !important;
  border: 1px solid var(--glass-border) !important;
}

.notif-card.unread .notif-card-icon {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
}

.notif-card-content { flex: 1; min-width: 0; }

.notif-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.notif-card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

.notif-card-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.notif-card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--brand-light);
  border: 1px solid rgba(0, 217, 126, 0.2);
  border-radius: var(--radius);
}

.notif-card-link:hover {
  background: rgba(0, 217, 126, 0.2);
}

.notif-card-unread-dot {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 217, 126, 0.6);
}

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.notif-empty p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.notif-empty h4 {
  color: var(--text-primary) !important;
  font-size: 16px;
  margin: 0 0 8px !important;
  font-weight: 700;
}

/* === BLOCK OVERLAY === */
.access-block-overlay {
  background: rgba(10, 10, 15, 0.92) !important;
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.access-block-content {
  background: rgba(20, 20, 30, 0.85) !important;
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-2xl) !important;
  padding: 36px 28px !important;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.access-block-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255, 181, 71, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.access-block-content::after {
  display: none !important;
}

.access-block-icon {
  font-size: 64px !important;
  filter: drop-shadow(0 0 32px rgba(255, 181, 71, 0.4));
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.access-block-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.access-block-text {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin: 0 0 24px !important;
  position: relative;
  z-index: 1;
}

.access-block-text b {
  color: var(--brand) !important;
  font-weight: 700;
}

.access-block-features {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.abf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  text-align: left;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.abf-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(0, 217, 126, 0.4));
}

.block-buy-btn {
  width: 100%;
  padding: 16px !important;
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  box-shadow:
    0 12px 32px rgba(0, 217, 126, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.block-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0, 217, 126, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.access-block-hint {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* === WALLET HISTORY === */
.wallet-history-header {
  background: rgba(15, 15, 22, 0.95) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 20px 22px !important;
}

.wallet-history-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.wallet-history-list {
  padding: 12px;
  background: transparent;
}

.wh-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md) !important;
  margin-bottom: 8px;
  transition: var(--transition);
}

.wh-item:hover {
  background: var(--glass-bg-hover) !important;
}

.wh-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.wh-icon.income {
  background: rgba(0, 217, 126, 0.12) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(0, 217, 126, 0.2);
}

.wh-icon.expense {
  background: rgba(255, 84, 112, 0.12) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(255, 84, 112, 0.2);
}

.wh-content { flex: 1; min-width: 0; }

.wh-desc {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 3px;
  word-break: break-word;
  letter-spacing: -0.01em;
}

.wh-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.wh-amount {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wh-amount.income {
  color: var(--brand);
}

.wh-amount.expense {
  color: var(--danger);
}

.wallet-history-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* === STATIONS / SERVICES / SHOPS === */
.station-card,
.service-card,
.shop-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg) !important;
  padding: 16px !important;
  margin: 0 16px 12px !important;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.station-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: var(--transition);
}

.station-card.recommended::before {
  background: var(--brand);
  box-shadow: 0 0 12px rgba(0, 217, 126, 0.5);
}

.station-card:hover,
.service-card:hover,
.shop-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.station-name,
.service-name,
.shop-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.station-address,
.service-category,
.shop-category {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.station-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.station-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.open,
.status-pill.OPEN {
  background: rgba(0, 217, 126, 0.12);
  border-color: rgba(0, 217, 126, 0.25);
  color: var(--brand);
}

.status-pill.closed,
.status-pill.CLOSED {
  background: rgba(255, 84, 112, 0.12);
  border-color: rgba(255, 84, 112, 0.25);
  color: var(--danger);
}

.station-tag.warning {
  background: rgba(255, 181, 71, 0.12);
  border-color: rgba(255, 181, 71, 0.25);
  color: var(--warning);
}

.station-tag.danger {
  background: rgba(255, 84, 112, 0.12);
  border-color: rgba(255, 84, 112, 0.25);
  color: var(--danger);
}

/* Station mini stats */
.station-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.station-stat {
  text-align: center;
}

.station-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.station-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.station-stat-value.fast {
  color: var(--brand);
}

.station-stat-value.warning {
  color: var(--warning);
}

.station-stat-value.danger {
  color: var(--danger);
}

/* === SERVICE/SHOP IMAGE === */
.service-image,
.shop-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.service-info,
.shop-info {
  padding: 0;
}

.service-meta,
.shop-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 8px;
}

/* === QUEUE TAB === */
.queue-summary,
.stats-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.summary-card,
.queue-stat-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md) !important;
  padding: 16px !important;
}

.summary-label,
.queue-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.summary-value,
.queue-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* === HEADERS (queue, services, shops) === */
.queue-header,
.services-header,
.shops-header,
.tab-header {
  background: rgba(10, 10, 15, 0.7) !important;
  backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 18px 16px !important;
}

.queue-header h1,
.services-header h1,
.shops-header h1,
.tab-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.queue-header p,
.services-header p,
.shops-header p,
.tab-header p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

/* === REAL-TIME BADGE === */
.realtime-badge,
.live-badge {
  background: rgba(0, 217, 126, 0.1) !important;
  border: 1px solid rgba(0, 217, 126, 0.2);
  color: var(--brand) !important;
}

/* === FILTER TABS === */
.tab-btn,
.queue-tab,
.filter-tab {
  background: transparent !important;
  color: var(--text-tertiary) !important;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid transparent !important;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
}

.tab-btn.active,
.queue-tab.active,
.filter-tab.active {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
}

/* === DETAIL MODAL === */
#detail-modal {
  background: rgba(10, 10, 15, 0.7) !important;
}

.detail-modal-content,
.detail-card,
.detail-content {
  background: rgba(20, 20, 30, 0.92) !important;
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-2xl) !important;
}

/* === LEAFLET MAP === */
.leaflet-container {
  background: var(--bg) !important;
  filter: brightness(0.85) contrast(1.1);
}

.leaflet-popup-content-wrapper {
  background: rgba(20, 20, 30, 0.95) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-xl) !important;
  border: 1px solid var(--glass-border);
}

.leaflet-popup-content {
  font-family: 'Inter', sans-serif !important;
  color: var(--text-primary);
}

.leaflet-popup-tip {
  background: rgba(20, 20, 30, 0.95) !important;
}

/* === EMPTY STATES === */
.empty-state,
.empty-state-big {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* === NEAREST BAR === */
.nearest-bar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  margin: 12px 16px !important;
}

/* === SAFE AREAS === */
@supports (padding: env(safe-area-inset-top)) {
  .top-header {
    padding-top: calc(14px + env(safe-area-inset-top)) !important;
  }
  #tab-profile {
    padding-top: calc(16px + env(safe-area-inset-top)) !important;
  }
}

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

.profile-wrap > * {
  animation: fadeInUp 0.4s ease-out backwards;
}

.profile-notif-header { animation-delay: 0ms !important; }
#premium-status-card { animation-delay: 50ms !important; }
#wallet-card { animation-delay: 100ms !important; }
.profile-card { animation-delay: 150ms !important; }

/* === FOCUS RING === */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============================================================
   v9.1 — Card'larni profil bo'limidagi uslubga moslash
   ============================================================ */

/* === STATIONS / SERVICES / SHOPS — profil card uslubi === */
.station-card,
.service-card,
.shop-card,
.queue-stat-card,
.summary-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--blur-md)) !important;
  -webkit-backdrop-filter: blur(var(--blur-md)) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-xl) !important;
  padding: 18px !important;
  margin: 0 16px 12px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: var(--shadow), var(--shadow-inner) !important;
  transition: var(--transition);
}

/* Chap tomondagi yashil border'ni olib tashlash */
.station-card::before,
.service-card::before,
.shop-card::before {
  display: none !important;
}

.station-card:hover,
.service-card:hover,
.shop-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  transform: translateY(-1px);
}

.station-card.recommended,
.service-card.recommended {
  background: linear-gradient(180deg, rgba(0, 217, 126, 0.06) 0%, var(--glass-bg) 100%) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
}

/* === STATION STATS — ichkaridagi kichik card === */
.station-stats {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 12px !important;
  margin: 12px 0 !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.station-stat {
  text-align: center;
  padding: 4px 0;
}

.station-stat:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.station-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.station-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.station-stat-value.fast { color: var(--brand); }
.station-stat-value.warning { color: var(--warning); }
.station-stat-value.danger { color: var(--danger); }

/* === STATION CARD ICHKI ELEMENTLARI === */
.station-name,
.service-name,
.shop-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.01em;
}

.station-address,
.service-category,
.shop-category {
  font-size: 13px !important;
  color: var(--text-tertiary) !important;
  margin-bottom: 12px !important;
}

/* === STATUS BADGE (yashil/qizil yarim doiraviy) === */
.status-pill,
.station-status,
.queue-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-full) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.status-pill::before,
.station-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-pill.open,
.status-pill.OPEN,
.station-status.open {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.25) !important;
  color: var(--brand) !important;
}

.status-pill.closed,
.status-pill.CLOSED,
.station-status.closed {
  background: rgba(255, 84, 112, 0.1) !important;
  border-color: rgba(255, 84, 112, 0.25) !important;
  color: var(--danger) !important;
}

.status-pill.warning,
.station-tag.warning {
  background: rgba(255, 181, 71, 0.1) !important;
  border-color: rgba(255, 181, 71, 0.25) !important;
  color: var(--warning) !important;
}

/* === BATAFSIL TUGMA === */
.btn-batafsil,
.btn-detail,
a[href*="batafsil"],
.batafsil-link {
  color: var(--brand) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-batafsil:hover {
  color: var(--brand-hover) !important;
}

/* === TEZ ISHLAYAPTI BADGE === */
.fast-badge,
.tez-ishlayapti {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--brand) !important;
}

.fast-badge .icon,
.tez-ishlayapti::before {
  content: '⚡';
  filter: drop-shadow(0 0 4px var(--brand));
}

/* === SERVICE/SHOP CARD - rasm bilan === */
.service-card,
.shop-card {
  padding: 14px !important;
}

.service-image,
.shop-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.service-info,
.shop-info {
  padding: 0;
}

/* Category labels (yashil yorliq yuqorida) */
.service-category-label,
.shop-category-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* === SERVICE CARD VARIANTI 2 (rasmga qaragan, kichik) === */
.service-card.compact,
.shop-card.compact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px !important;
}

.service-card.compact .service-image,
.shop-card.compact .shop-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-card.compact .service-info,
.shop-card.compact .shop-info {
  flex: 1;
  min-width: 0;
}

/* === ACTION BUTTONS (Qo'ng'iroq, Yo'l) === */
.btn-call,
.btn-direction,
.btn-route {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none !important;
  letter-spacing: -0.01em;
}

.btn-call {
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.25);
}

.btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 217, 126, 0.4);
}

.btn-direction,
.btn-route {
  background: rgba(94, 179, 255, 0.15) !important;
  color: #5eb3ff !important;
  border: 1px solid rgba(94, 179, 255, 0.25) !important;
  backdrop-filter: blur(var(--blur));
}

.btn-direction:hover,
.btn-route:hover {
  background: rgba(94, 179, 255, 0.25) !important;
}

/* Action buttons row */
.card-actions,
.service-actions,
.shop-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* === FILTER TABS (Hammasi, Servislar...) === */
.filter-tabs-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs-row::-webkit-scrollbar {
  display: none;
}

.filter-tab,
.tab-btn,
.queue-tab {
  background: var(--glass-bg) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  padding: 9px 16px !important;
  border-radius: var(--radius-full) !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(var(--blur));
}

.filter-tab:hover {
  background: var(--glass-bg-hover) !important;
  color: var(--text-primary) !important;
}

.filter-tab.active,
.tab-btn.active,
.queue-tab.active {
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3);
}

/* === SEARCH + REGION === */
.search-bar,
.search-input,
input[type="search"],
input.search {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  backdrop-filter: blur(var(--blur));
  width: 100%;
}

.search-bar::placeholder,
input[type="search"]::placeholder {
  color: var(--text-muted);
}

.region-select,
select.region {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  backdrop-filter: blur(var(--blur));
  cursor: pointer;
}

/* Search row - 2 ustun */
.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 16px;
}

@media (max-width: 380px) {
  .search-row {
    grid-template-columns: 1fr;
  }
}

/* === RO'YXAT/XARITA TUGMALARI YUQORIDA === */
.view-toggle,
.view-switcher {
  display: inline-flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.view-toggle button,
.view-switcher button {
  padding: 8px 14px !important;
  background: transparent !important;
  color: var(--text-tertiary) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.view-toggle button.active,
.view-switcher button.active {
  background: var(--brand-gradient) !important;
  color: var(--text-inverse) !important;
  box-shadow: 0 2px 8px rgba(0, 217, 126, 0.3);
}

/* === CHECKBOX === */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.checkbox-label:hover {
  background: var(--glass-bg-hover);
}

/* === SUMMARY STATS === */
.queue-summary,
.stats-summary {
  padding: 14px 16px !important;
  gap: 10px !important;
}

.summary-card,
.queue-stat-card {
  padding: 16px 14px !important;
  border-radius: var(--radius-lg) !important;
}

.summary-label,
.queue-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.summary-value,
.queue-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   v9.2 — UNIFORM CARD COLORS (profil uslubi hammaga)
   ============================================================ */

/* === BARCHA CARD'LAR — bir xil rang === */
.station-card,
.service-card,
.shop-card,
.queue-stat-card,
.summary-card,
.profile-card,
.user-card,
.wallet-card,
.premium-status-card,
.notif-bell-btn,
.stat-card-mini,
.settings-card,
.plan-card,
.plans-wallet-info,
.plans-features,
.notif-card,
.wh-item,
.access-block-features {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* === STATIONS / SERVICES / SHOPS — ichki bo'limlar === */
.station-stats {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
}

/* === HOVER STATE === */
.station-card:hover,
.service-card:hover,
.shop-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

/* === PREMIUM/TRIAL/EXPIRED — accent variants === */
.premium-status-card.trial {
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border-color: rgba(255, 181, 71, 0.18) !important;
}

.premium-status-card.premium {
  background: linear-gradient(180deg, rgba(0, 217, 126, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
  box-shadow: 0 4px 16px rgba(0, 217, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.premium-status-card.expired {
  background: linear-gradient(180deg, rgba(255, 84, 112, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border-color: rgba(255, 84, 112, 0.18) !important;
}

/* Featured plan card */
.plan-card-featured {
  background: linear-gradient(180deg, rgba(0, 217, 126, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border-color: rgba(0, 217, 126, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 217, 126, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Notif unread - subtle accent */
.notif-card.unread {
  background: rgba(0, 217, 126, 0.04) !important;
  border-color: rgba(0, 217, 126, 0.12) !important;
}

/* === TOP/HEADERS === */
.top-header,
.queue-header,
.services-header,
.shops-header,
.tab-header {
  background: rgba(10, 10, 15, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* === BOTTOM NAV === */
.bottom-nav {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ============================================================
   v9.3 — FORCE OVERRIDE — eng oxirgi qatlam (eng kuchli)
   ============================================================ */

/* Hech qanday eski rangni o'tkazmaslik */
body .station-card,
body .service-card,
body .shop-card,
body .queue-stat-card,
body .summary-card,
html body div.station-card,
html body div.service-card,
html body div.shop-card {
  background: rgba(255, 255, 255, 0.025) !important;
  background-color: rgba(255, 255, 255, 0.025) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* Stations stats - ichkaridagi (Navbat/Kutish/Nasos qutilari) */
body .station-stats,
body div.station-stats {
  background: rgba(0, 0, 0, 0.15) !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Service/shop card image stand */
body .service-image,
body .shop-image {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Action tugmalar: Qo'ng'iroq (yashil) - SAQLANSIN */
body .btn-call,
body button.btn-call {
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.25) !important;
}

/* Action tugmalar: Yo'l - oldingi to'q ko'k emas, kulrang glass */
body .btn-direction,
body .btn-route,
body button.btn-direction,
body button.btn-route {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

body .btn-direction:hover,
body .btn-route:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Hudud select va search inputlar */
body input[type="search"],
body input.search,
body .search-input,
body .search-bar,
body select,
body select.region,
body .region-select {
  background: rgba(255, 255, 255, 0.025) !important;
  background-color: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

/* Filter tab tugmalari (Hammasi, Dvigatel...) */
body .filter-tab,
body .tab-btn,
body .queue-tab,
body button.filter-tab {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

body .filter-tab.active,
body .tab-btn.active,
body .queue-tab.active {
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3) !important;
}

/* Ro'yxat / Xarita toggle */
body .view-toggle,
body .view-switcher,
body .ro-yxat-xarita {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body .view-toggle button,
body .view-switcher button {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

body .view-toggle button.active,
body .view-switcher button.active {
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
}

/* Status pill: Ochiq, Cheklangan */
body .status-pill,
body span.status-pill,
body .station-status,
body .queue-status-badge {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .status-pill.open,
body .station-status.open {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.25) !important;
  color: #00d97e !important;
}

body .status-pill.warning,
body .status-pill.cheklangan {
  background: rgba(255, 181, 71, 0.1) !important;
  border-color: rgba(255, 181, 71, 0.25) !important;
  color: #ffb547 !important;
}

/* Tegs: Normal, Eskirgan, Gaz yo'q */
body .station-tag,
body span.station-tag,
body .tag {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

body .station-tag.success,
body .station-tag.normal {
  background: rgba(0, 217, 126, 0.08) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
  color: #00d97e !important;
}

body .station-tag.danger,
body .station-tag.gaz-yoq {
  background: rgba(255, 84, 112, 0.08) !important;
  border-color: rgba(255, 84, 112, 0.2) !important;
  color: #ff5470 !important;
}

body .station-tag.warning {
  background: rgba(255, 181, 71, 0.08) !important;
  border-color: rgba(255, 181, 71, 0.2) !important;
  color: #ffb547 !important;
}

/* "Real-time" badge yuqorida */
body .realtime-badge,
body .live-badge {
  background: rgba(0, 217, 126, 0.1) !important;
  border: 1px solid rgba(0, 217, 126, 0.2) !important;
  color: #00d97e !important;
}

/* Top stat (JAMI NAVBAT, OCHIQ ZAPRAVKA) - profil stats kabi */
body .summary-card,
body .queue-stat-card {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Headers (Navbat holati, Servislar, Do'konlar) */
body .queue-header,
body .services-header,
body .shops-header,
body .tab-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Checkbox label (Faqat yetkazib beradiganlar) */
body .checkbox-label,
body label.checkbox-label {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* === STATION CARD chap tomondagi yashil chiziq olib tashlash === */
body .station-card::before,
body .service-card::before,
body .shop-card::before,
body div.station-card::before {
  display: none !important;
  content: none !important;
}

body .station-card.recommended,
body .service-card.recommended {
  background: linear-gradient(180deg, rgba(0, 217, 126, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%) !important;
  border-color: rgba(0, 217, 126, 0.15) !important;
}

/* === Real-time pulse dot === */
body .realtime-badge::before,
body .live-badge::before {
  background: #00d97e !important;
}

/* ============================================================
   v9.4 — NUCLEAR OVERRIDE — eng oxirgi va eng kuchli
   ============================================================ */

/* HAR QANDAY card va wrap glass bo'lsin */
body .station-card,
body .service-card,
body .shop-card,
body .summary-card,
body .queue-stat-card,

/* Yon nav border'larini olib tashlash */
body .station-card,
body .service-card,
body .shop-card {
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Inline style override */
body [style*="background"],
body [style*="background-color"] {
  /* Inline'larni override qilish qiyin - JS orqali tozalaymiz */
}


/* ============================================================
   v9.5 — Card ichidagi och chiziqlarni olib tashlash
   ============================================================ */

/* Service va Shop card ichidagi har bir info satr (manzil, ish vaqti) */
body .service-card *,
body .shop-card *,
body .station-card * {
  border-bottom: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

/* Lekin asosiy card border'lari saqlanishi kerak */
body .service-card,
body .shop-card,
body .station-card {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* === SERVICE/SHOP info qatorlari (manzil, vaqt) - chiziqsiz === */
body .service-card .info-row,
body .shop-card .info-row,
body .service-card .meta-row,
body .shop-card .meta-row,
body .service-card .info-line,
body .shop-card .info-line,
body .service-card div[class*="address"],
body .shop-card div[class*="address"],
body .service-card div[class*="hours"],
body .shop-card div[class*="hours"],
body .service-card div[class*="location"],
body .shop-card div[class*="location"] {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* === Card ichidagi BARCHA <hr>, separator, divider === */
body .service-card hr,
body .shop-card hr,
body .station-card hr,
body .service-card .divider,
body .shop-card .divider,
body .service-card .separator,
body .shop-card .separator {
  display: none !important;
}

/* === Manzil va vaqt ikonkalari atrofidagi och fonni olib tashlash === */
body .service-card .address-pill,
body .shop-card .address-pill,
body .service-card .time-pill,
body .shop-card .time-pill,
body .service-card .meta-pill,
body .shop-card .meta-pill,
body .service-card span[class*="address"],
body .shop-card span[class*="address"],
body .service-card span[class*="time"],
body .shop-card span[class*="time"],
body .service-card span[class*="hours"],
body .shop-card span[class*="hours"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  margin: 4px 0 !important;
}

/* === Endi 09:00-19:00 ko'rinadigan vaqt qutisi - subtle pill === */
body .service-card [class*="schedule"],
body .shop-card [class*="schedule"],
body .service-card .opening-hours,
body .shop-card .opening-hours,
body .service-card time,
body .shop-card time {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 4px 0 !important;
}

/* === Fallback - card ichida har qanday och fon olib tashlash === */
body .service-card > div > div,
body .shop-card > div > div {
  background-image: none !important;
}

/* Faqat asosiy card va action button'larida fon bo'lsin */
body .service-card .service-info > *:not(.btn-call):not(.btn-direction):not(.card-actions):not([class*="schedule"]):not([class*="time"]),
body .shop-card .shop-info > *:not(.btn-call):not(.btn-direction):not(.card-actions):not([class*="schedule"]):not([class*="time"]) {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   v9.6 — Service/Shop card BARCHA ichki bordersiz
   ============================================================ */

/* Card ichidagi har qanday element border bormasligi kerak */
body .service-card *:not(button):not(a):not(.btn-call):not(.btn-direction):not(.btn-route):not(img),
body .shop-card *:not(button):not(a):not(.btn-call):not(.btn-direction):not(.btn-route):not(img),
body .station-card *:not(button):not(a):not(.btn-call):not(.btn-direction):not(.btn-route):not(img):not(.station-stats):not(.station-stat) {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
}

/* Vaqt pill faqat */
body .service-card span[class*="time"],
body .service-card span[class*="hour"],
body .service-card span[class*="schedule"],
body .shop-card span[class*="time"],
body .shop-card span[class*="hour"],
body .shop-card span[class*="schedule"] {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 3px 9px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

/* Sarlavha ostidagi line yo'qolsin */
body .service-card h1,
body .service-card h2,
body .service-card h3,
body .service-card h4,
body .service-card h5,
body .shop-card h1,
body .shop-card h2,
body .shop-card h3,
body .shop-card h4,
body .shop-card h5,
body .station-card h1,
body .station-card h2,
body .station-card h3 {
  border: 0 !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  padding-bottom: 4px !important;
}

/* Asosiy card border'i saqlanadi */
body .service-card,
body .shop-card,
body .station-card {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ============================================================
   v9.7 — TO'G'RI CLASS — srv-card (service va shop bir xil)
   ============================================================ */

/* === ASOSIY CARD === */
body .srv-card {
  background: rgba(255, 255, 255, 0.03) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  margin: 0 16px 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: all 200ms ease !important;
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
  cursor: pointer;
}

body .srv-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

/* === CARD IMAGE === */
body .srv-card-img,
body .srv-card-img-empty {
  width: 90px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
}

/* === CARD BODY === */
body .srv-card-body {
  flex: 1 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* === KATEGORIYA YORLIG'I (ELEKTRIK, MOY VA SUYUQLIKLAR) === */
body .srv-card-cat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #00d97e !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 6px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

body .srv-card-cat.shop-cat {
  color: #5eb3ff !important;
}

/* === SARLAVHA (server, Motor avtoservis2, Ilhom magazin) === */
body .srv-card-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.01em !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* === MANZIL (📍 2gshakaiaj, 📍 Guliston.sh 2-mavzze) === */
body .srv-card-addr {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 0 8px 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-bottom: none !important;
}

/* === META MA'LUMOTLAR (vaqt, masofa) === */
body .srv-card-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 0 10px 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}


body .srv-meta-item.shop-delivery-badge {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
  color: #00d97e !important;
}

/* === CARD ACTIONS (Qo'ng'iroq, Yo'l) === */
body .srv-card-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  background: transparent !important;
  border: none !important;
}

/* Qo'ng'iroq (yashil) */
body .srv-card-actions button:first-child,
body .srv-card-actions a:first-child,
body .srv-card-actions [class*="call"] {
  flex: 1 !important;
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
  border: none !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.25) !important;
  transition: all 200ms ease !important;
}

body .srv-card-actions button:first-child:hover,
body .srv-card-actions a:first-child:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 217, 126, 0.4) !important;
}

/* Yo'l (kulrang glass) */
body .srv-card-actions button:last-child,
body .srv-card-actions a:last-child,
body .srv-card-actions [class*="route"],
body .srv-card-actions [class*="direct"] {
  flex: 1 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 200ms ease !important;
}

body .srv-card-actions button:last-child:hover,
body .srv-card-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* === ICHKARIDAGI HAR QANDAY DIV chiziqsiz === */
body .srv-card *:not(button):not(a):not(img) {
  border-bottom: 0 !important;
  border-top: 0 !important;
  text-decoration: none !important;
}

/* === EMPTY STATE === */
body .srv-empty-state {
  text-align: center !important;
  padding: 60px 20px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
}

body .srv-empty-state p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  margin: 0 0 6px 0 !important;
}

/* === KATEGORIYA CHIPS (Hammasi, Dvigatel, Elektrik) === */
body .cat-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 9px 14px !important;
  border-radius: 9999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 200ms ease !important;
}

body .cat-chip:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body .cat-chip.active {
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3) !important;
}

/* === DETAIL MODAL CARDS === */
body .srv-detail-cat,
body .srv-detail-cat.shop-cat-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 217, 126, 0.1) !important;
  border: 1px solid rgba(0, 217, 126, 0.2) !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00d97e !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body .srv-detail-cat.shop-cat-badge {
  background: rgba(94, 179, 255, 0.1) !important;
  border-color: rgba(94, 179, 255, 0.2) !important;
  color: #5eb3ff !important;
}

/* ============================================================
   v9.8 — NUDE — har qanday border, background, shadow olib tashlash
   ============================================================ */

/* SRV-CARD ICHIDA HAR QANDAY ELEMENT (asosiydan boshqa) — SOF MATN */
body .srv-card .srv-card-body,
body .srv-card .srv-card-body > *,
body .srv-card .srv-card-body div,
body .srv-card .srv-card-body span,
body .srv-card .srv-card-body p,
body .srv-card .srv-card-body h1,
body .srv-card .srv-card-body h2,
body .srv-card .srv-card-body h3,
body .srv-card .srv-card-body h4,
body .srv-card .srv-card-body h5 {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Faqat asosiy srv-card va meta-item da background va border */
body .srv-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}


body .srv-meta-item.shop-delivery-badge {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
}

/* === MARGIN BOSHQARUV (har bir matn satr orasida bo'shliq) === */
body .srv-card-cat {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

body .srv-card-name {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

body .srv-card-addr {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

body .srv-card-meta {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

body .srv-card-actions {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Tugmalar ichida shadow va background bo'lishi mumkin (saqlab qolamiz) */
body .srv-card-actions button,
body .srv-card-actions a {
  border: 1px solid transparent !important;
}

/* ============================================================
   v9.9 — TO'G'RI FLEX LAYOUT - oraliqlarni tozalash
   ============================================================ */

/* SRV-CARD asosiy konteynеr — flex display tartiblash */
body .srv-card {
  display: flex !important;
  gap: 14px !important;
  align-items: stretch !important;
  padding: 14px !important;
  margin: 0 16px 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Image */
body .srv-card-img,
body .srv-card-img-empty {
  width: 90px !important;
  height: auto !important;
  min-height: 90px !important;
  align-self: stretch !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
}

/* === SRV-CARD-BODY: VERTICAL FLEX, GAP === */
body .srv-card-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Body ichidagi BARCHA child elementlar — margin/padding 0 */
body .srv-card-body > * {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* === KATEGORIYA YORLIG'I === */
body .srv-card-cat {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #00d97e !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  line-height: 1.2 !important;
}

body .srv-card-cat.shop-cat {
  color: #5eb3ff !important;
}

/* === SARLAVHA === */
body .srv-card-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

/* === MANZIL === */
body .srv-card-addr {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* === META (vaqt, masofa) — meta-item flex container === */
body .srv-card-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 4px !important;
}


body .srv-meta-item.shop-delivery-badge {
  background: rgba(0, 217, 126, 0.1) !important;
  border-color: rgba(0, 217, 126, 0.2) !important;
  color: #00d97e !important;
}

/* === ACTIONS — tugmalar qatori === */
body .srv-card-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body .srv-card-actions .srv-btn,
body .srv-card-actions a.srv-btn,
body a.srv-btn-call,
body a.srv-btn-route {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 200ms ease !important;
  border: none !important;
}

/* Qo'ng'iroq tugmasi — yashil */
body a.srv-btn-call,
body .srv-card-actions a[href^="tel:"] {
  background: linear-gradient(135deg, #00d97e 0%, #00b366 100%) !important;
  color: #0a0a0f !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0, 217, 126, 0.25) !important;
}

body a.srv-btn-call:hover,
body .srv-card-actions a[href^="tel:"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 217, 126, 0.4) !important;
}

/* Yo'l tugmasi — kulrang glass */
body a.srv-btn-route,
body .srv-card-actions a[href*="maps.google"],
body .srv-card-actions a[target="_blank"] {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body a.srv-btn-route:hover,
body .srv-card-actions a[target="_blank"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* === MOBILE === */
@media (max-width: 380px) {
  body .srv-card-img,
  body .srv-card-img-empty {
    width: 80px !important;
    min-height: 80px !important;
  }
}

/* srv-meta-item ichidagi fonni olib tashlash */


/* === FINAL: srv-meta-item TOZA (fonsiz) === */
body .srv-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Shop delivery badge yashil */
body .srv-meta-item.shop-delivery-badge {
  background: rgba(0, 217, 126, 0.1);
  border: 1px solid rgba(0, 217, 126, 0.2);
  color: #00d97e;
  padding: 3px 9px;
  border-radius: 8px;
  font-weight: 600;
}

/* srv-card-meta — har bir element orasida bo'shliq */
body .srv-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 10px;
}

/* === FINAL FIX: srv-card ICHIDAGI elementlarda fon yo'q === */
/* Faqat asosiy srv-card va srv-meta-item.shop-delivery-badge'da fon */

body .srv-card-body,
body .srv-card-name,
body .srv-card-cat,
body .srv-card-addr,
body .srv-card-meta,
body .srv-card-actions,
body .srv-card .srv-card-body,
body .srv-card .srv-card-name,
body .srv-card .srv-card-cat,
body .srv-card .srv-card-addr,
body .srv-card .srv-card-meta,
body .srv-card .srv-card-actions {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* srv-meta-item ham transparent (faqat shop-delivery-badge yashil) */
body .srv-meta-item:not(.shop-delivery-badge) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* === FINAL FIX: srv-card ICHIDAGI elementlarda fon yo'q === */
/* Faqat asosiy srv-card va srv-meta-item.shop-delivery-badge'da fon */

body .srv-card-body,
body .srv-card-name,
body .srv-card-cat,
body .srv-card-addr,
body .srv-card-meta,
body .srv-card-actions,
body .srv-card .srv-card-body,
body .srv-card .srv-card-name,
body .srv-card .srv-card-cat,
body .srv-card .srv-card-addr,
body .srv-card .srv-card-meta,
body .srv-card .srv-card-actions {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* srv-meta-item ham transparent (faqat shop-delivery-badge yashil) */
body .srv-meta-item:not(.shop-delivery-badge) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* === srv-card-img: 1:1 KVADRAT === */
body .srv-card-img,
body .srv-card-img-empty {
  width: 100px !important;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
}

/* srv-card flex align — image stretch'ni olib tashlash */
body .srv-card {
  align-items: flex-start !important;
}

/* === Xarita pastdagi station-strip — bottom-nav ustida === */
body .station-strip {
  position: fixed !important;
  bottom: 80px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 10px 16px !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Strip card glass uslubida */
body .strip-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #00d97e !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  min-width: 120px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Safe area pastki */
@supports (padding: env(safe-area-inset-bottom)) {
  body .station-strip {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
}

/* Native APK uchun */
body.native-app .station-strip {
  bottom: 90px !important;
}

/* === Strip — bottom-nav bilan tegib tursin === */
body .station-strip {
  bottom: 70px !important;
  padding-bottom: 8px !important;
  margin: 0 !important;
}

/* Safe area olib tashlash */
@supports (padding: env(safe-area-inset-bottom)) {
  body .station-strip {
    bottom: 70px !important;
  }
}

body.native-app .station-strip {
  bottom: 70px !important;
}

/* ============================================================
   PREMIUM PILL BOTTOM NAV — Image 6 uslubi
   nav-btn class ishlatadi (emas nav-item)
   ============================================================ */

/* Wrapper transparent, faqat positioning */
body .bottom-nav-wrap {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  padding: 12px 16px !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.5) 60%, transparent 100%) !important;
  pointer-events: none !important;
  border: none !important;
}

/* Asosiy pill */
body .bottom-nav-wrap .bottom-nav {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  gap: 4px !important;

  background: rgba(15, 15, 22, 0.92) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;

  padding: 6px !important;
  margin: 0 !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* === NAV BUTTON === */
body .bottom-nav .nav-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  background: transparent !important;
  border: none !important;
  outline: none !important;

  padding: 12px 8px !important;
  min-height: 48px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;

  color: rgba(255, 255, 255, 0.5) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;

  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1) !important;

  position: relative !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  letter-spacing: -0.01em !important;
}

/* Material Symbols ikona */
body .bottom-nav .nav-btn .nav-icon {
  font-family: 'Material Symbols Rounded' !important;
  font-size: 24px !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased !important;
  user-select: none !important;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24 !important;
  transition: all 280ms ease !important;
  color: inherit !important;
}

/* Inactive — faqat ikona ko'rinadi (matn yashirilgan) */
body .bottom-nav .nav-btn:not(.active) .nav-label {
  display: none !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* Active — oq pill + ikona + matn */
body .bottom-nav .nav-btn.active {
  background: #ffffff !important;
  color: #0a0a0f !important;
  flex: 1.6 1 auto !important;
  padding: 12px 18px !important;
  box-shadow:
    0 6px 16px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

body .bottom-nav .nav-btn.active .nav-icon {
  color: #0a0a0f !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24 !important;
  font-size: 22px !important;
}

body .bottom-nav .nav-btn.active .nav-label {
  display: inline !important;
  width: auto !important;
  opacity: 1 !important;
  color: #0a0a0f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Hover (faqat brauzerda) */
@media (hover: hover) {
  body .bottom-nav .nav-btn:not(.active):hover {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  body .bottom-nav .nav-btn:not(.active):hover .nav-icon {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24 !important;
  }
}

/* Tab content — pastdan bo'shliq nav uchun */
body #tab-map,
body #tab-queue,
body #tab-services,
body #tab-shops,
body #tab-profile {
  padding-bottom: 100px !important;
}

/* Station-strip xaritada — yangi nav ustida */
body .station-strip {
  bottom: 90px !important;
}

@supports (padding: env(safe-area-inset-bottom)) {
  body .station-strip {
    bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
}

body.native-app .station-strip {
  bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

/* GazBor: Status indicators yashirildi (faqat Real-time va Fon faol).
   GPS indikator KO'RINADI — foydalanuvchi GPS holatini bilishi kerak. */
#tab-map #connection-badge,
#tab-map #bg-indicator {
  display: none !important;
}


/* ===== Bosqich C: User pozitsiyasi va zonalar ===== */
.nearest-position {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s;
}
.nearest-position .np-icon {
  font-size: 14px;
  margin-right: 4px;
}
.nearest-position b {
  font-weight: 700;
  font-size: 14px;
}
.nearest-position.hidden {
  display: none;
}

/* Popup zona row */
.popup-zones-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(241, 245, 249, 0.6);
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.popup-zones-row .pz-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}
.popup-zones-row .pz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.popup-zones-row .pz-empty {
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  width: 100%;
  font-style: italic;
}

/* ===== Bosqich D: Detail modal zonali summary ===== */
.detail-zones-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.dz-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: transform 0.15s;
}
.dz-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.dz-num {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.dz-eta-text {
  font-size: 14px;
}
.dz-lbl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Zone list */
.detail-zone-list {
  margin-top: 16px;
}
.dzl-loading,
.dzl-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-style: italic;
}
.dzl-my-banner {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.dzl-my-banner.queue {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.dzl-my-banner.pump {
  background: rgba(250, 204, 21, 0.12);
  color: #854d0e;
  border: 1px solid rgba(250, 204, 21, 0.25);
}
.dzl-my-banner.approach {
  background: rgba(156, 163, 175, 0.12);
  color: #374151;
  border: 1px solid rgba(156, 163, 175, 0.25);
}
.dzl-section {
  margin-bottom: 12px;
}
.dzl-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  padding: 6px 0;
}
.dzl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dzl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.dzl-row.is-me {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 600;
}
.dzl-position {
  color: #1e293b;
}
.dzl-wait {
  color: #64748b;
  font-size: 12px;
}
.dzl-jami {
  margin-top: 16px;
  padding: 10px;
  text-align: center;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
}
.dzl-jami b {
  color: #0f172a;
}

/* ============================================================
   POPUP COMPACT REDESIGN (Script 43)
   ============================================================ */

/* Popup'ning umumiy o'lchami */
.leaflet-popup-content-wrapper {
  background: rgba(20, 20, 30, 0.97) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 14px !important;
  width: 250px !important;
  max-width: 250px !important;
}

.leaflet-popup-tip {
  background: rgba(20, 20, 30, 0.97) !important;
}

/* Popup ichi */
.popup-inner {
  font-family: 'Inter', sans-serif;
  width: 100%;
}

/* HEADER */
.popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.popup-name {
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.popup-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.popup-stale-warn {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* ASOSIY STATISTIKA — KATTA RAQAM + INFO */
.popup-main-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.pms-big {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  min-width: 50px;
  text-align: center;
}

.pms-info {
  flex: 1;
}

.pms-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.pms-eta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ZONALAR — kichik strip */
.popup-zones {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
}

.popup-zones .pz-c {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.popup-zones .pz-c b {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.popup-zones .pz-d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* ACTION BUTTONS — yon-yonda */
.popup-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.popup-act-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}

.popup-act-btn:hover,
.popup-act-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.popup-act-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}

.popup-act-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* REPORT BUTTONS — kichik mini ikonkalar */
.popup-reports-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prm-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.prm-btns {
  display: flex;
  gap: 4px;
  flex: 1;
}

/* ESKI popup-rb qoidasi olib tashlandi (Script 46) */

.popup-rb:hover:not(:disabled),
.popup-rb:active:not(:disabled) {
  transform: scale(1.05);
}

.popup-rb:disabled {
  cursor: default;
  opacity: 0.5;
}

/* Eski qoidalarni override qilish */
.popup-grid,
.popup-zones-row,
.popup-route,
.popup-detail-btn,
.popup-reports-title,
.popup-reports-grid,
.popup-cell,
.popup-cell-label,
.popup-cell-big,
.popup-cell-eta {
  display: none !important;
}

/* ============================================================
   POPUP REPORTS V2 (Script 44) — yorliq + badge counter
   ============================================================ */

.popup-reports-v2 {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prv-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.popup-rb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.15s;
  min-height: 60px;
}

.popup-rb:hover:not(:disabled),
.popup-rb:active:not(:disabled) {
  transform: scale(1.05);
}

.popup-rb:disabled {
  cursor: default;
  opacity: 0.5;
}

.popup-rb .rb-icon {
  font-size: 18px;
  line-height: 1;
}

.popup-rb .rb-label {
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.popup-rb .rb-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(20, 20, 30, 0.97);
  animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Eski reports stillarini yashirish */
.popup-reports-mini,
.prm-label,
.prm-btns {
  display: none !important;
}

/* Parkovka sahifa */
.parking-header {
  padding: 16px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
}

.parking-header h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
}

.parking-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 13px;
}

.parking-map-container {
  width: 100%;
  height: 350px;
  position: relative;
}

.parking-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parking-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.parking-card:hover, .parking-card:active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.parking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.parking-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.badge-24h {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.parking-addr {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.parking-info {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.free-badge {
  color: #10b981;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ============================================================
   PARKOVKA DETAIL MODAL
   ============================================================ */

.parking-detail-content {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  width: 100%;
  max-width: 480px;
  margin: auto auto 0;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.parking-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.parking-detail-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.parking-detail-header {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 8px;
}

.parking-detail-icon {
  font-size: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

.parking-detail-header h2 {
  margin: 0 0 8px 0;
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.parking-detail-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-closed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-inactive {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.parking-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

.parking-detail-row.hidden {
  display: none;
}

.pd-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.parking-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.parking-stat-card {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}

.parking-stat-card.hidden {
  display: none;
}

.pd-stat-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.pd-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.pd-stat-value small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.pd-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  font-weight: 500;
}

.free-text {
  color: #10b981;
  font-weight: 800;
}

.hours-24 {
  color: #10b981;
  font-weight: 800;
}

.parking-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.parking-action-btn {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.2s;
}

.parking-action-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}

.parking-action-btn:hover, 
.parking-action-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.parking-action-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Parkovka filter chip'lar */
.parking-filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.parking-filters::-webkit-scrollbar {
  display: none;
}

.parking-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.parking-filter-btn:hover, 
.parking-filter-btn:active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
}

.parking-filter-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Eng yaqini badge */
.nearest-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.parking-card-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Masofa */
.parking-distance {
  color: #60a5fa;
  font-weight: 700;
}

/* Parking loading state */
.parking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

/* Parking empty state */
.parking-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 12px;
}

.parking-empty-state .empty-icon {
  font-size: 64px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.parking-empty-state h3 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.parking-empty-state p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.reset-filter-btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* === PARKING LIST FIX - scroll va bottom padding === */
#tab-parking {
  overflow-y: auto !important;
  height: calc(100vh - 60px) !important;
  padding-bottom: 100px !important;
}

#parking-list {
  padding-bottom: 100px !important;
}

.parking-list {
  padding-bottom: 100px !important;
}

/* === PARKING TAB - Xarita fixed, list scroll === */
#tab-parking:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 60px) !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

#parking-map {
  flex-shrink: 0 !important;
  height: 280px !important;
}

#parking-list {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px !important;
  padding-bottom: 90px !important;
}

/* Karta - batafsil tugma joyi */
.parking-card {
  position: relative !important;
  padding-right: 110px !important;
}

.parking-card .btn-detail {
  position: absolute !important;
  bottom: 12px !important;
  right: 12px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: white !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  z-index: 5 !important;
  white-space: nowrap !important;
}

.parking-card .btn-detail:active,
.parking-card .btn-detail:hover {
  transform: scale(0.95) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

/* FIX: hidden klassi har doim display: none qilsin */
.tab-content.hidden {
  display: none !important;
}

/* === PARKING DISTANCE BADGE === */
.parking-distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 6px 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.parking-distance-badge b {
  font-weight: 800;
  font-size: 14px;
}
.parking-gps-warning {
  margin: 8px 12px 12px;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 13px;
  text-align: center;
}

/* === STRIP CARD DISTANCE === */
.strip-dist {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}


/* Hamyon to'ldirish tugmasi (Telegram bot) */
.btn-topup-tg {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-topup-tg:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
}

/* === Plans modal header — kichraytirish === */
.plans-modal-header {
  padding: 16px 20px 14px !important;
}
.plans-hero-icon {
  font-size: 36px !important;
  margin-bottom: 6px !important;
}
.plans-hero-title {
  font-size: 20px !important;
  margin: 0 0 4px !important;
}
.plans-hero-subtitle {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* === Plans list — qatorlar orasiga badge sig'ishi uchun joy === */
.plans-list {
  row-gap: 32px !important;
}
.plan-card {
  overflow: visible !important;
}

/* === Plans modal body — pastdagi navbat panelni hisobga olib bo'sh joy === */
.plans-modal-body {
  padding-bottom: 100px !important;
}

/* === Wallet history — pastdagi navbat panelni hisobga olib bo'sh joy === */
.wallet-history-list {
  padding-bottom: 100px !important;
}

/* === Notifications modal — pastdagi navbat panelni hisobga olib bo'sh joy === */
.notif-modal-body {
  padding-bottom: 100px !important;
}

/* === I18N — Til tanlovchi === */
.lang-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.lang-switcher .lang-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.lang-switcher .lang-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.lang-switcher .lang-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  color: #fff;
}

/* Profil > Sozlamalar > Til (clickable) */
.setting-row.clickable {
  cursor: pointer;
  transition: background 0.2s;
}
.setting-row.clickable:hover {
  background: rgba(255,255,255,0.04);
}
.setting-row.clickable .setting-value {
  color: #10b981;
  font-weight: 600;
}
.setting-row.clickable::after {
  content: '›';
  margin-left: 4px;
  color: #64748b;
  font-size: 18px;
}

/* Til tanlash modal */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lang-modal-overlay.hidden { display: none; }
.lang-modal-card {
  background: rgba(15,15,22,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.lang-modal-header {
  padding: 20px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lang-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #f8fafc;
}
.lang-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.lang-modal-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(16,185,129,0.3);
}
.lang-option.active {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.05));
  border-color: rgba(16,185,129,0.5);
}
.lang-option .lang-flag { font-size: 22px; }
.lang-option .lang-name { flex: 1; text-align: left; }
.lang-option .lang-check { color: #10b981; opacity: 0; font-weight: 700; }
.lang-option.active .lang-check { opacity: 1; }

/* ====================================================================
   Crowd Reports — haydovchilar xabar berish tugmalari (24/h)
   ==================================================================== */
.crowd-reports-block {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.crowd-reports-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crowd-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.crowd-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  font-family: inherit;
}
.crowd-btn:hover:not(:disabled) {
  border-color: var(--c, #94a3b8);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.crowd-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.crowd-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.crowd-btn--loading {
  opacity: 0.7;
}
.crowd-btn--active {
  border-color: var(--c, #94a3b8);
  background: color-mix(in srgb, var(--c, #94a3b8) 18%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #94a3b8) 30%, transparent),
              0 0 14px color-mix(in srgb, var(--c, #94a3b8) 25%, transparent);
}
.crowd-btn--cooldown {
  opacity: 0.65;
}
.crowd-icon {
  font-size: 17px;
  line-height: 1;
}
.crowd-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.crowd-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--c, #94a3b8);
  color: #ffffff;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  border: 2px solid #0f172a;
}
.crowd-badge--bump {
  animation: crowd-bump 0.4s ease;
}
@keyframes crowd-bump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
.crowd-reports-hint {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  opacity: 0.8;
}
/* Toast */
.crowd-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.96);
  color: #f1f5f9;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}
.crowd-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.crowd-toast--success { border-color: rgba(34,197,94,0.4); }
.crowd-toast--warn    { border-color: rgba(245,158,11,0.4); }
.crowd-toast--error   { border-color: rgba(239,68,68,0.4); }

/* Crowd reports kichik chiplar — kartalar ichida */
.crowd-mini-counts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.crowd-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: color-mix(in srgb, var(--c, #94a3b8) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #94a3b8) 35%, transparent);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c, #94a3b8);
  line-height: 1.3;
  white-space: nowrap;
}
.crowd-mini--strip {
  font-size: 10px;
  padding: 1px 5px;
}

/* Comments — popup ichida ham yaxshi ko'rinishi uchun */
.cmt-block--popup {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.cmt-block--popup .cmt-list {
  max-height: 220px;
}
.cmt-block--popup .cmt-input {
  font-size: 12.5px;
  min-height: 36px;
}
/* Popup width ni kengaytirish (Comments uchun) */
.leaflet-popup-content-wrapper { max-width: 360px; }
.leaflet-popup-content { width: 340px !important; max-width: 90vw; }

/* ====================================================================
   Comments — popup ichidagi "💬 Izohlar" tugmasi
   ==================================================================== */
.cmt-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.08));
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 10px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cmt-open-btn:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.12));
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-1px);
}
.cmt-open-btn:active { transform: scale(0.98); }

/* ====================================================================
   Comments — bottom-sheet (Telegram-style)
   ==================================================================== */
.cmt-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.cmt-sheet.hidden { display: none; }
.cmt-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: auto;
}
.cmt-sheet--show .cmt-sheet-overlay { background: rgba(0,0,0,0.5); }

.cmt-sheet-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #0f172a;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cmt-sheet--show .cmt-sheet-card { transform: translateY(0); }

.cmt-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.cmt-sheet-header {
  position: relative;
  padding: 8px 50px 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.cmt-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmt-sheet-count {
  background: rgba(59,130,246,0.25);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}
.cmt-sheet-station-name {
  margin-top: 2px;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
}
.cmt-sheet-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
}
.cmt-sheet-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Sheet ichidagi list */
.cmt-sheet-card .cmt-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  max-height: none;
}
.cmt-sheet-card .cmt-input-wrap {
  padding: 12px 16px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(15,23,42,0.6);
}
.cmt-sheet-card .cmt-hint {
  padding: 0 16px 14px;
  margin-top: 4px;
  font-size: 11px;
}
.cmt-sheet-card .cmt-item:hover .cmt-delete { display: flex; }
.cmt-sheet-card .cmt-delete { display: flex; } /* mobile uchun har doim ko'rinadi */

/* Mobile uchun */
@media (max-width: 640px) {
  .cmt-sheet-card { max-height: 90vh; }
}

/* iOS safe-area */
@supports (padding: max(0px)) {
  .cmt-sheet-card {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================================
   Comments — Pro Design Override (Telegram-inspired)
   ============================================================ */

/* Sheet card — yumshoq dark glass */
.cmt-sheet-card {
  background: linear-gradient(180deg, #0c1424 0%, #0a1120 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6), 0 -2px 0 rgba(255,255,255,0.04);
  max-height: 88vh;
}
.cmt-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 10px auto 6px;
}

/* Header — minimal, balanced */
.cmt-sheet-header {
  padding: 4px 56px 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cmt-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmt-sheet-count {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  letter-spacing: 0.2px;
}
.cmt-sheet-station-name {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cmt-sheet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 13px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.cmt-sheet-close:hover { background: rgba(255,255,255,0.12); color: #f1f5f9; }
.cmt-sheet-close:active { transform: scale(0.92); }

/* Comments list */
.cmt-sheet-card .cmt-list {
  padding: 14px 16px;
  gap: 8px;
  scroll-behavior: smooth;
}
.cmt-sheet-card .cmt-list::-webkit-scrollbar { width: 4px; }
.cmt-sheet-card .cmt-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* Comment bubble */
.cmt-sheet-card .cmt-item {
  position: relative;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: background 0.15s;
}
.cmt-sheet-card .cmt-item:hover { background: rgba(30, 41, 59, 0.7); }

.cmt-sheet-card .cmt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 10px;
}
.cmt-sheet-card .cmt-phone {
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}
.cmt-sheet-card .cmt-time {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.cmt-sheet-card .cmt-text {
  font-size: 14px;
  line-height: 1.42;
  color: #e2e8f0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  letter-spacing: 0.1px;
}
.cmt-sheet-card .cmt-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 50%;
  color: #f87171;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
  padding: 0;
}
.cmt-sheet-card .cmt-item:hover .cmt-delete { opacity: 1; }
@media (hover: none) { .cmt-sheet-card .cmt-delete { opacity: 0.6; } }
.cmt-sheet-card .cmt-delete:hover {
  background: rgba(239,68,68,0.25);
  opacity: 1 !important;
}

.cmt-sheet-card .cmt-empty {
  text-align: center;
  padding: 28px 16px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}
.cmt-sheet-card .cmt-empty::before {
  content: "💬";
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}
.cmt-sheet-card .cmt-list.cmt-loading {
  padding: 28px 16px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

/* Input — telegram style: textarea + dumaloq paper-plane */
.cmt-sheet-card .cmt-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px 6px;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cmt-sheet-card .cmt-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 9px 14px;
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cmt-sheet-card .cmt-input::placeholder { color: #64748b; }
.cmt-sheet-card .cmt-input:focus {
  border-color: rgba(56,189,248,0.4);
  background: rgba(30, 41, 59, 0.85);
}

.cmt-sheet-card .cmt-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(56,189,248,0.35);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  font-family: inherit;
}
.cmt-sheet-card .cmt-send svg {
  transform: translateX(-1px);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
.cmt-sheet-card .cmt-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(56,189,248,0.5);
}
.cmt-sheet-card .cmt-send:active:not(:disabled) { transform: scale(0.92); }
.cmt-sheet-card .cmt-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.cmt-sheet-card .cmt-hint {
  padding: 2px 16px 12px;
  margin-top: 0;
  font-size: 10.5px;
  color: #475569;
  text-align: center;
  letter-spacing: 0.2px;
}

/* ============================================================
   POPUP — Kompakt va Pro Dizayn (override eski rule larni)
   ============================================================ */

/* Wrapper — yumshoq dark glass, kompakt */
.leaflet-popup-content-wrapper {
  max-width: 290px !important;
  background: rgba(13, 17, 28, 0.97) !important;
  color: #f1f5f9 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) !important;
  padding: 0 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.leaflet-popup-content {
  width: 268px !important;
  max-width: 84vw !important;
  margin: 12px 14px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: #f1f5f9 !important;
}
.leaflet-popup-tip {
  background: rgba(13, 17, 28, 0.97) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}
.leaflet-popup-close-button {
  color: #94a3b8 !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
  width: 26px !important;
  height: 26px !important;
}
.leaflet-popup-close-button:hover { color: #f1f5f9 !important; }

/* Popup ichidagi container */
.popup-inner {
  font-family: inherit !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Header — kompakt va aniq */
.popup-header,
.popup-inner > div:first-child {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: 4px;
}

/* Statistika ozonalari — kompakt grid */
.pz-r {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  margin: 8px 0 !important;
  padding: 8px !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 8px !important;
}
.pz-c {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
  white-space: nowrap;
}
.pz-c b {
  font-size: 13px !important;
  color: #f1f5f9 !important;
  font-weight: 700 !important;
}
.pz-d {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Action tugmalar — Batafsil + Yo'l */
.popup-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin: 8px 0 !important;
}
.popup-act-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all 0.2s !important;
  text-align: center !important;
  white-space: nowrap;
}
.popup-act-btn:hover {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.popup-act-btn.primary {
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(2,132,199,0.1)) !important;
  border-color: rgba(56,189,248,0.35) !important;
  color: #93c5fd !important;
}
.popup-act-btn.primary:hover {
  background: linear-gradient(135deg, rgba(56,189,248,0.28), rgba(2,132,199,0.18)) !important;
}

/* Xabar berish bo'limi — kompakt */
.popup-reports-v2 {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.prv-title {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
}
.prv-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 5px !important;
}
.popup-rb {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  transition: transform 0.1s, opacity 0.2s !important;
  border-width: 1px !important;
  border-style: solid !important;
}
.popup-rb:hover:not(:disabled) { transform: translateY(-1px); }
.popup-rb:active:not(:disabled) { transform: scale(0.96); }
.rb-badge {
  position: absolute !important;
  top: -5px !important;
  left: -5px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #fff !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #0d111c !important;
}
.rb-icon { font-size: 13px !important; line-height: 1 !important; }
.rb-label { font-size: 11px !important; }

/* Izohlar tugmasi — kichkina, oqimga mos */
.cmt-open-btn {
  margin-top: 8px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(22,163,74,0.08)) !important;
  border: 1px solid rgba(34,197,94,0.3) !important;
  color: #86efac !important;
}
.cmt-open-btn:hover {
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(22,163,74,0.15)) !important;
  border-color: rgba(34,197,94,0.45) !important;
}

/* ============================================================
   POPUP — Yanada Kompakt Override
   ============================================================ */
.leaflet-popup-content-wrapper {
  max-width: 250px !important;
}
.leaflet-popup-content {
  width: 230px !important;
  max-width: 80vw !important;
  margin: 10px 12px !important;
  font-size: 11.5px !important;
}

/* Header — kichikroq */
.popup-header,
.popup-inner > div:first-child {
  font-size: 12.5px !important;
  margin-bottom: 3px !important;
}

/* Statistika kompakt */
.pz-r {
  gap: 4px !important;
  margin: 6px 0 !important;
  padding: 6px !important;
}
.pz-c { font-size: 10px !important; gap: 3px !important; }
.pz-c b { font-size: 11.5px !important; }

/* Action tugmalar — Batafsil/Yo'l kichikroq */
.popup-actions {
  gap: 4px !important;
  margin: 6px 0 !important;
}
.popup-act-btn {
  padding: 6px 8px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  gap: 3px !important;
}

/* Xabar berish bo'limi — kompakt */
.popup-reports-v2 {
  margin-top: 8px !important;
  padding-top: 6px !important;
}
.prv-title {
  font-size: 9.5px !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.4px !important;
}
.prv-grid { gap: 4px !important; }

/* 4 ta status tugma — eng kompakt */
.popup-rb {
  padding: 5px 6px !important;
  font-size: 10px !important;
  border-radius: 7px !important;
  gap: 4px !important;
}
.rb-badge {
  top: -4px !important;
  left: -4px !important;
  min-width: 14px !important;
  height: 14px !important;
  padding: 0 3px !important;
  font-size: 8.5px !important;
  border-width: 1.5px !important;
}
.rb-icon { font-size: 11.5px !important; }
.rb-label { font-size: 10px !important; }

/* Izohlar tugmasi */
.cmt-open-btn {
  margin-top: 6px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  gap: 4px !important;
}

/* ============================================================
   POPUP — ENG KOMPAKT (final override)
   4 ta xabar berish tugmasi 1 qator (label yashirin)
   ============================================================ */
.leaflet-popup-content-wrapper {
  max-width: 220px !important;
  background: rgba(13, 17, 28, 0.97) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  width: 200px !important;
  max-width: 70vw !important;
  margin: 10px 12px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #f1f5f9 !important;
}
.leaflet-popup-tip { background: rgba(13, 17, 28, 0.97) !important; }

/* Header — kichik */
.popup-header,
.popup-inner > div:first-child {
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.2px !important;
}

/* Statistika — kichik chiplar */
.pz-r {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  margin: 5px 0 !important;
  padding: 5px !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 6px !important;
}
.pz-c {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  font-size: 9px !important;
  color: #cbd5e1 !important;
}
.pz-c b { font-size: 11px !important; color: #f1f5f9 !important; }
.pz-d { width: 5px !important; height: 5px !important; border-radius: 50% !important; }

/* Action tugmalari — kompakt */
.popup-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  margin: 6px 0 !important;
}
.popup-act-btn {
  padding: 6px 4px !important;
  font-size: 10.5px !important;
  border-radius: 6px !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

/* Xabar berish — 4 USTUN (label YASHIRIN, faqat ikon+raqam) */
.popup-reports-v2 {
  margin-top: 6px !important;
  padding-top: 5px !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.prv-title {
  font-size: 9px !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}
.prv-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
}
.popup-rb {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 2px !important;
  font-size: 10px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-family: inherit !important;
  min-height: 36px !important;
  gap: 0 !important;
}
.rb-icon { font-size: 14px !important; line-height: 1 !important; }
.rb-label { display: none !important; }  /* label YASHIRIN */
.rb-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  min-width: 15px !important;
  height: 15px !important;
  padding: 0 3px !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
  color: #fff !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #0d111c !important;
}

/* Izohlar tugma */
.cmt-open-btn {
  margin-top: 5px !important;
  padding: 6px 8px !important;
  font-size: 10.5px !important;
  border-radius: 6px !important;
  gap: 4px !important;
}

.leaflet-popup-close-button {
  width: 22px !important;
  height: 22px !important;
  font-size: 14px !important;
  padding: 4px !important;
}

/* ============================================================
   POPUP — TO'LIQ OVERRIDE (haqiqiy struktura: popup-head,
   popup-main-stats, popup-zones, popup-rb column)
   ============================================================ */

/* Header — nom + status tag */
.popup-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin-bottom: 3px !important;
}
.popup-name {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  flex: 1 !important;
  color: #f8fafc !important;
}
.popup-status {
  font-size: 8.5px !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.popup-addr {
  font-size: 9.5px !important;
  color: #94a3b8 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}
.popup-stale-warn {
  font-size: 9px !important;
  padding: 2px 5px !important;
  margin: 3px 0 !important;
  border-radius: 4px !important;
}

/* Asosiy statistika ("0" + "Bo'sh" + "~0 daq") — KICHIK */
.popup-main-stats {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  margin: 5px 0 !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
}
.pms-big {
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  min-width: 22px !important;
  text-align: center !important;
}
.pms-info { flex: 1 !important; min-width: 0 !important; }
.pms-label {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  line-height: 1.2 !important;
}
.pms-eta {
  font-size: 9px !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
  line-height: 1.2 !important;
}

/* Zone chiplar (nav/nas/yaq) — kompakt */
.popup-zones {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  margin: 5px 0 !important;
  padding: 5px 4px !important;
  background: rgba(255,255,255,0.025) !important;
  border-radius: 6px !important;
}
.popup-zones .pz-c {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  font-size: 9px !important;
  color: #cbd5e1 !important;
}
.popup-zones .pz-c b { font-size: 10.5px !important; color: #f1f5f9 !important; }
.popup-zones .pz-d { width: 5px !important; height: 5px !important; border-radius: 50% !important; }

/* Xabar berish 4 tugma — IKONKALAR + LABEL ikkalasi (column) */
.prv-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
}
.popup-rb {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 2px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-family: inherit !important;
  min-height: 44px !important;
  gap: 2px !important;
}
.rb-icon { font-size: 14px !important; line-height: 1 !important; }
.rb-label {
  display: block !important;     /* ENDI KO'RINADI */
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.1px !important;
}
.rb-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  min-width: 14px !important;
  height: 14px !important;
  padding: 0 3px !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  color: #fff !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #0d111c !important;
}

/* Login logo centering fix — legacy 80x80 flex box held a 140x140 image, causing visual offset.
   Match container to image size and use block-level auto-margin centering. */
.login-logo .logo-big {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto 16px;
  background: transparent;
  box-shadow: none;
  filter: none;
  border-radius: 24px;
  overflow: hidden;
}
.login-logo .logo-big img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 24px;
}

/* ============ BLOCKED SCREEN STYLES ============ */
.blocked-screen {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.blocked-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
}
.blocked-icon-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.blocked-icon {
  font-size: 64px;
  color: #ef4444;
}
.blocked-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.blocked-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 12px;
  line-height: 1.5;
}
.blocked-reason {
  font-size: 13px;
  color: #ef4444;
  margin: 0 0 20px;
}
.blocked-reason:empty {
  display: none;
}
.blocked-help {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.5;
}

/* ============ OFFLINE SCREEN STYLES ============ */
.offline-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.offline-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
.offline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
}
.offline-icon-wrap {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(0,217,126,0.08);
  border: 1px solid rgba(0,217,126,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  animation: offline-pulse 2.5s ease-in-out infinite;
}
@keyframes offline-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.offline-icon {
  font-size: 64px;
  color: #00d97e;
}
.offline-title {
  font-size: 22px; font-weight: 700;
  color: #fff; margin: 0 0 12px;
}
.offline-desc {
  font-size: 14px; color: rgba(255,255,255,0.5);
  margin: 0 0 28px; line-height: 1.5;
}
.offline-retry-btn {
  width: 100%; padding: 16px;
  background: #00d97e; border: none;
  border-radius: 16px;
  color: #0a0a0f; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.offline-retry-btn:active { transform: scale(0.97); }
.offline-retry-btn:disabled { opacity: 0.6; }
.retry-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(10,10,15,0.3);
  border-top-color: #0a0a0f;
  border-radius: 50%;
  animation: retry-spin 0.7s linear infinite;
}
@keyframes retry-spin { to { transform: rotate(360deg); } }
.offline-warning {
  margin-top: 16px;
  font-size: 13px; color: #ef4444;
  line-height: 1.4;
}
.hidden { display: none !important; }

/* Ad Banner */
.ad-banner {
  position: fixed;
  left: 12px; 
  right: 12px;
  bottom: calc(90px + 130px + 4px); /* bottom nav + card height + 4px gap */
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 126, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  /* DEFAULT: yashirin holat */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Ko'rinadigan holat — JS shu class'ni qo'shadi */
.ad-banner.ad-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ad-banner-img {
  width: 56px; 
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.ad-banner-text {
  flex: 1;
  min-width: 0;  /* for text overflow */
  cursor: pointer;
}

.ad-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-banner-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ad-banner-close {
  width: 28px; 
  height: 28px;
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.ad-banner-close:active {
  background: rgba(255,255,255,0.12);
}

/* Profile Menu System */
.profile-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  padding: 24px 16px 8px;
  text-transform: uppercase;
}

.profile-menu-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 12px;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active {
  background: rgba(0,217,126,0.06);
}
.profile-menu-item.profile-menu-static {
  cursor: default;
}
.profile-menu-static:active { background: transparent; }

.profile-menu-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,217,126,0.1);
  border-radius: 12px;
  font-size: 22px;
  color: #00d97e;
}

.profile-menu-text { flex: 1; min-width: 0; }
.profile-menu-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.profile-menu-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.profile-menu-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Sub-page (detail sahifa) */
.profile-subpage {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  animation: subpage-in 0.25s ease;
}
@keyframes subpage-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 1;
}
.subpage-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
}
.subpage-back:active { background: rgba(255,255,255,0.12); }
.subpage-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.subpage-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 100px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-size: 14px;
}
.subpage-content h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.subpage-content h3:first-child { margin-top: 0; }
.subpage-content p { margin-bottom: 12px; }
.subpage-content a {
  color: #00d97e;
  text-decoration: none;
  font-weight: 600;
}
.subpage-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}
.subpage-placeholder-icon {
  font-size: 56px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 12px;
}

/* FAQ accordion styles */
.faq-group {
  margin-bottom: 24px;
}
.faq-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  padding: 0 4px 8px;
  text-transform: uppercase;
}

/* FAQ item kartochkasi */
.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item.faq-open {
  background: rgba(0,217,126,0.04);
  border-color: rgba(0,217,126,0.2);
}

/* FAQ savol tugmasi */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
}
.faq-q:active { background: rgba(255,255,255,0.03); }

/* Chevron strelka */
.faq-chevron {
  flex-shrink: 0;
  font-size: 22px;
  color: rgba(255,255,255,0.5);
  transition: transform 0.25s ease, color 0.2s;
}
.faq-item.faq-open .faq-chevron {
  transform: rotate(180deg);
  color: #00d97e;
}

/* FAQ javob (default yashirin, ochilganda chiqadi) */
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.faq-open .faq-a {
  max-height: 400px;  /* katta qiymat — kontent sig'sin */
  padding: 0 16px 14px;
}

/* ============================================================
   SUPPORT/MUROJAAT BO'LIMI STILLARI
   ============================================================ */

.support-intro {
  padding: 0 4px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.support-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
}

.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #00d97e;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,217,126,0.1);
}

.form-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-align: right;
}

.support-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #00d97e;
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.support-submit-btn:hover {
  background: #00c572;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,217,126,0.4);
}

.support-submit-btn:active {
  transform: translateY(0);
}

.support-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.support-submit-btn .material-symbols-rounded {
  font-size: 20px;
}

.support-status {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
}

.support-status:empty {
  display: none;
}

.support-status-success {
  background: rgba(0,217,126,0.1);
  color: #00d97e;
  border: 1px solid rgba(0,217,126,0.2);
}

.support-status-error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}

.support-history-section {
  margin-top: 32px;
}

.support-history-title {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.support-ticket {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.support-ticket.support-replied {
  border-color: rgba(0,217,126,0.25);
  background: rgba(0,217,126,0.02);
}

.support-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.support-ticket-subject {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.support-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.support-badge-new {
  background: rgba(0,217,126,0.15);
  color: #00d97e;
}

.support-badge-in_progress {
  background: rgba(234,179,8,0.15);
  color: #eab308;
}

.support-badge-replied {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
}

.support-badge-closed {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.support-ticket-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-ticket-date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.support-reply {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0,217,126,0.06);
  border-left: 3px solid #00d97e;
  border-radius: 0 10px 10px 0;
}

.support-reply-label {
  font-size: 11px;
  font-weight: 700;
  color: #00d97e;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-reply-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.support-loading,
.support-empty,
.support-error {
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.support-error {
  color: #ef4444;
}

/* Select dropdown styling */
.form-field select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.4)"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* Foydalanish shartlari sahifasi */
.terms-intro {
  padding: 0 4px 20px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.6;
}
.terms-intro p { margin: 0; }

.terms-section {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 18px 16px 56px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.terms-section:hover {
  border-color: rgba(0,217,126,0.15);
}

.terms-num {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,217,126,0.12);
  border: 1px solid rgba(0,217,126,0.25);
  border-radius: 8px;
  color: #00d97e;
  font-size: 12px;
  font-weight: 700;
}

.terms-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.terms-section p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 8px;
}
.terms-section p:last-child { margin-bottom: 0; }

.terms-list {
  margin: 8px 0;
  padding-left: 18px;
}
.terms-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 4px;
}
.terms-list li::marker {
  color: #00d97e;
}

.terms-warning {
  margin-top: 10px !important;
  padding: 10px 12px;
  background: rgba(239,68,68,0.08);
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  color: rgba(239,68,68,0.9) !important;
  font-size: 12px !important;
}

.terms-footer {
  margin-top: 24px;
  padding: 14px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.terms-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* Maxfiylik siyosati uchun qo'shimcha stillar */
.terms-subhead {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 14px 0 6px;
}

.privacy-callout {
  margin: 12px 0;
  padding: 14px;
  background: rgba(0,217,126,0.06);
  border: 1px solid rgba(0,217,126,0.2);
  border-radius: 12px;
}
.privacy-callout-warning {
  background: rgba(234,179,8,0.06);
  border-color: rgba(234,179,8,0.25);
}
.privacy-callout-title {
  font-size: 12px;
  font-weight: 700;
  color: #00d97e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.privacy-callout-warning .privacy-callout-title {
  color: #eab308;
}
.privacy-callout p {
  font-size: 13px !important;
  color: rgba(255,255,255,0.75) !important;
  margin-bottom: 6px !important;
}
.privacy-callout .terms-list {
  margin: 6px 0;
}

/* Inkor (qilmaydi) ro'yxati — qizil kross marker */
.privacy-list-deny {
  list-style: none;
  padding-left: 0;
}
.privacy-list-deny li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.privacy-list-deny li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
}

/* Yakuniy eslatma kartochkasi */
.privacy-final {
  margin: 24px 0 12px;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(0,217,126,0.08), rgba(0,217,126,0.02));
  border: 1px solid rgba(0,217,126,0.25);
  border-radius: 18px;
  text-align: center;
}
.privacy-final-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,217,126,0.15);
  border: 1px solid rgba(0,217,126,0.3);
  border-radius: 50%;
}
.privacy-final-icon .material-symbols-rounded {
  font-size: 32px;
  color: #00d97e;
}
.privacy-final-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.privacy-final p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 8px;
}
.privacy-final p:last-child { margin-bottom: 0; }

/* === Performance hints === */
.bottom-nav, .nav-btn { will-change: transform; }
.modal, .modal-content, .overlay { will-change: opacity, transform; }
.srv-card { will-change: transform; }
.ad-banner { will-change: transform; }


/* FCM Permission Modal */
.fcm-perm-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fcmFadeIn .2s ease;
}
.fcm-perm-overlay[hidden] { display: none \!important; }
.fcm-perm-card {
  background: rgba(20, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 24px 24px;
  max-width: 380px; width: 100%;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: fcmSlideUp .3s cubic-bezier(.2,.9,.3,1.2);
}
.fcm-perm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: rgba(0, 217, 126, 0.1);
  border-radius: 50%;
  margin-bottom: 16px;
}
.fcm-perm-title {
  margin: 0 0 12px;
  font-size: 22px; font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.fcm-perm-text {
  margin: 0 0 24px;
  font-size: 15px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}
.fcm-perm-buttons {
  display: flex; flex-direction: column; gap: 10px;
}
.fcm-perm-btn {
  border: none; border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
}
.fcm-perm-btn:active { transform: scale(.97); }
.fcm-perm-btn-primary {
  background: linear-gradient(135deg, #00d97e, #00b56b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 217, 126, 0.3);
}
.fcm-perm-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.fcm-perm-btn:hover { opacity: .9; }
@keyframes fcmFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fcmSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97) }
  to { opacity: 1; transform: translateY(0) scale(1) }
}


/* FCM Modal pointer-events fix */
.fcm-perm-overlay {
  pointer-events: auto !important;
  touch-action: manipulation;
}
.fcm-perm-card {
  pointer-events: auto !important;
}
.fcm-perm-btn {
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 217, 126, 0.3);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1;
  min-height: 48px; /* Android tap target */
}
