/* ========================================================
   UZDİL HAFRİYAT & SAHA YÖNETİM KOKPİTİ — STİL SİSTEMİ
   Tasarım: Linear Ultra-Dark & Glassmorphism & Construction Amber
   ======================================================== */

:root {
  --bg-primary: #030712;
  --bg-surface: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-card-solid: #0f172a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  --border-emerald: rgba(16, 185, 129, 0.35);
  
  --amber-primary: #f59e0b;
  --amber-light: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-dark: #b45309;
  
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-dark: #047857;
  
  --blue-primary: #38bdf8;
  --rose-primary: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light Orbs */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.18;
}

.glow-amber {
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--amber-primary) 0%, transparent 70%);
}

.glow-emerald {
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, var(--emerald-primary) 0%, transparent 70%);
}

.glow-cobalt {
  top: 40%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  opacity: 0.1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==================== 1. TOP NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.1));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  font-size: 22px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--amber-light);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  letter-spacing: 0.3px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.nav-tab-btn i {
  font-size: 1.05rem;
}

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

.nav-tab-btn.active {
  color: #000;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-primary));
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.nav-tab-btn.tab-saha-quick {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-tab-btn.tab-saha-quick:hover {
  background: rgba(245, 158, 11, 0.22);
}

.nav-tab-btn.tab-saha-quick.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #10b981;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.user-role-tag {
  font-size: 0.68rem;
  color: var(--amber-light);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-logout {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
}

/* ==================== 2. MAIN LAYOUT & SECTIONS ==================== */
.main-content {
  padding: 28px 0 60px 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ==================== BUTTONS & BADGES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--amber-primary));
  color: #020617;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: #f43f5e;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.badge-sefer {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-saat {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ==================== 3. STATS CARDS (DASHBOARD) ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.stat-card.stat-amber::after { background: var(--amber-primary); }
.stat-card.stat-emerald::after { background: var(--emerald-primary); }
.stat-card.stat-blue::after { background: var(--blue-primary); }
.stat-card.stat-rose::after { background: var(--rose-primary); }

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

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

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-amber .stat-icon { background: rgba(245, 158, 11, 0.15); color: var(--amber-light); }
.stat-emerald .stat-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-blue .stat-icon { background: rgba(56, 189, 248, 0.15); color: var(--blue-primary); }
.stat-rose .stat-icon { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat-footer {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== 4. FİŞ EKLEME MODÜLÜ (SAHA EKRANI) ==================== */
.fis-builder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.fis-builder-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.fis-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

@media (max-width: 960px) {
  .fis-form-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label span.req {
  color: var(--amber-light);
}

.form-label .helper {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 6px;
}

.form-control {
  width: 100%;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: rgba(3, 7, 18, 0.95);
}

.form-control::placeholder {
  color: var(--text-dim);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background-color: var(--bg-surface);
  color: #fff;
  padding: 10px;
}

/* Stepper & Unit Price Box */
.qty-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.stepper-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--amber-light);
}

/* Fiyat Kartı & Özet */
.calc-summary-box {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.calc-row span.val {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  margin-top: 8px;
}

.calc-total-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber-light);
}

.calc-total-amount {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

/* Fotoğraf Çekim Alanı */
.photo-uploader-box {
  border: 2px dashed rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}

.photo-uploader-box:hover {
  border-color: var(--amber-light);
  background: rgba(245, 158, 11, 0.06);
}

.photo-uploader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-uploader-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-light);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.photo-preview-wrap {
  position: relative;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}

.photo-preview-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.photo-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.photo-remove-btn:hover {
  background: #f43f5e;
  color: #fff;
}

/* ==================== 5. MODAL SYSTEM (KAMERA & DOSYA & CARİ) ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(3, 7, 18, 0.5);
}

/* Kamera Modalına Özel */
.camera-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.choice-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.choice-card:hover {
  border-color: var(--amber-light);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
}

.choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-light);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.choice-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Canlı Kamera Akış Penceresi */
.camera-stream-wrap {
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: none;
  aspect-ratio: 4/3;
  margin-bottom: 16px;
}

.camera-stream-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-stream-wrap canvas {
  display: none;
}

.camera-shutter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.btn-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #000;
  transition: var(--transition);
}

.btn-shutter:hover {
  transform: scale(1.08);
  background: var(--amber-light);
}

/* ==================== 6. TABLES & DATA CARDS ==================== */
.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.data-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

table.data-table th {
  padding: 14px 20px;
  background: rgba(3, 7, 18, 0.6);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

table.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

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

.vehicle-plate-cell {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.price-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber-light);
}

.balance-positive {
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
}

.balance-negative {
  color: #fb7185;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==================== 7. LOGIN SCREEN (LINEAR ULTRA-DARK) ==================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: #020617;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-glass-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
}

.login-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-primary), #ea580c, var(--emerald-primary));
}

.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.15));
  border: 1px solid var(--border-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-light);
  font-size: 32px;
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.login-brand-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.login-brand-header p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 4px;
}

.quick-profiles-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.quick-profiles-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: center;
  margin-bottom: 12px;
}

.quick-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-profile-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.btn-profile-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--amber-primary);
  transform: translateY(-2px);
}

.profile-role {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--amber-light);
}

.profile-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ==================== 8. TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #fff;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  animation: slideInRight 0.25s ease;
  min-width: 280px;
}

.toast.toast-success {
  border-left: 4px solid var(--emerald-primary);
}

.toast.toast-error {
  border-left: 4px solid var(--rose-primary);
}

.toast.toast-info {
  border-left: 4px solid var(--amber-primary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==================== 9. RESPONSIVE UTILITIES ==================== */
@media (max-width: 820px) {
  .nav-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 0;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 12px;
    justify-content: space-around;
    z-index: 1000;
  }
  
  .nav-tab-btn {
    flex-direction: column;
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 3px;
  }
  
  .nav-tab-btn i {
    font-size: 1.25rem;
  }
  
  .user-badge .user-info {
    display: none;
  }
  
  .main-content {
    padding-bottom: 90px;
  }
}
