/* ================================================================
   SmartDZ Exchange — Custom Design System
   Glassmorphism + Dark Mode + RTL Support
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --bg-primary:      #050e1a;
  --bg-secondary:    #0a1628;
  --bg-card:         rgba(13, 31, 60, 0.7);

  --teal:            #00d4aa;
  --teal-dark:       #009e80;
  --teal-glow:       rgba(0, 212, 170, 0.15);
  --teal-border:     rgba(0, 212, 170, 0.3);

  --ocean:           #1a6b8a;
  --ocean-dark:      #0d4f6b;
  --gold:            #f0c040;
  --gold-glow:       rgba(240, 192, 64, 0.15);

  --text-primary:    #e2e8f0;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  --glass-bg:        rgba(255, 255, 255, 0.05);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-blur:      blur(20px);

  --border-radius:   16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;

  --shadow-teal:     0 8px 32px rgba(0, 212, 170, 0.12);
  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:     0 0 40px rgba(0, 212, 170, 0.2);

  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-en:         'Inter', sans-serif;
  --font-ar:         'Cairo', 'Inter', sans-serif;
  --sidebar-w:       260px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body[dir="rtl"] { font-family: var(--font-ar); }

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* ── Animated Background ─────────────────────────────────────── */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-primary);
  overflow: hidden;
}

.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.bg-animated::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.bg-animated::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 107, 138, 0.12) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.glass-card-teal {
  background: linear-gradient(135deg, rgba(0,212,170,0.1) 0%, rgba(26,107,138,0.1) 100%);
  border-color: var(--teal-border);
  box-shadow: var(--shadow-teal);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary) !important;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar-brand span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  letter-spacing: 0.5px;
}

.lang-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.lang-btn.active { background: linear-gradient(135deg, var(--teal), var(--ocean)); color: #fff; }

.btn-login-nav {
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.btn-login-nav:hover {
  box-shadow: 0 4px 16px rgba(0,212,170,0.4);
  transform: translateY(-1px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,212,170,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  border-color: var(--teal-border);
  background: var(--teal-glow);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.25);
  transform: translateY(-1px);
  color: #f87171;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e0a020);
  color: #050e1a;
  font-weight: 700;
}
.btn-gold:hover { box-shadow: 0 4px 16px rgba(240,192,64,0.4); transform: translateY(-2px); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Form Controls ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--teal);
  background: rgba(0,212,170,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.12);
}

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

select.form-control option { background: var(--bg-secondary); color: var(--text-primary); }

textarea.form-control { min-height: 100px; resize: vertical; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
}

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

.table thead th {
  background: rgba(0,212,170,0.08);
  color: var(--teal);
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--teal-border);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

.table tbody tr:hover {
  background: rgba(0,212,170,0.04);
}

.table tbody td {
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody td:first-child { color: var(--text-primary); font-weight: 500; }

/* ── Status Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-pending   { background: rgba(250,204,21,0.15); color: #facc15; border: 1px solid rgba(250,204,21,0.3); }
.badge-processing{ background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-completed { background: rgba(0,212,170,0.15);  color: var(--teal);  border: 1px solid var(--teal-border); }
.badge-cancelled { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-active    { background: rgba(0,212,170,0.15);  color: var(--teal);  border: 1px solid var(--teal-border); }
.badge-inactive  { background: rgba(100,116,139,0.15);color: var(--text-muted); border: 1px solid rgba(100,116,139,0.3); }
.badge-buy       { background: rgba(0,212,170,0.12);  color: var(--teal); border: 1px solid var(--teal-border); }
.badge-sell      { background: rgba(240,192,64,0.12); color: var(--gold); border: 1px solid rgba(240,192,64,0.3); }

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(20px, -20px);
}

.stat-card.teal::after  { background: var(--teal); }
.stat-card.gold::after  { background: var(--gold); }
.stat-card.ocean::after { background: var(--ocean); }

.stat-card:hover { transform: translateY(-4px); border-color: var(--teal-border); box-shadow: var(--shadow-teal); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.stat-icon.teal  { background: var(--teal-glow); color: var(--teal); }
.stat-icon.gold  { background: var(--gold-glow); color: var(--gold); }
.stat-icon.ocean { background: rgba(26,107,138,0.2); color: #60a5fa; }

.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: rgba(5, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: var(--transition);
}

[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--glass-border);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-brand { font-weight: 800; font-size: 1rem; color: var(--text-primary); }
.sidebar-brand span { color: var(--teal); }

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; }

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.sidebar-link:hover { background: var(--glass-bg); color: var(--text-primary); }

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(26,107,138,0.1));
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.sidebar-link .icon { font-size: 1.05rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.sidebar-user-role { font-size: 0.72rem; color: var(--teal); }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: var(--sidebar-w);
}

.topbar {
  background: rgba(5,14,26,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title { font-size: 1.15rem; font-weight: 700; }

.page-content { padding: 1.75rem; flex: 1; }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--teal) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease;
}

/* ── Rates Table ─────────────────────────────────────────────── */
.rates-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.section-subtitle { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }

.currency-flag { font-size: 1.4rem; }

.rate-cell {
  font-weight: 700;
  font-size: 1rem;
}

.rate-buy  { color: var(--teal); }
.rate-sell { color: var(--gold); }

/* ── Calculator ──────────────────────────────────────────────── */
.calculator-card {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(26,107,138,0.1));
  border: 1px solid var(--teal-border);
  box-shadow: var(--shadow-teal);
}

.calc-result {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  margin-top: 1rem;
  transition: var(--transition);
}

/* ── Branch Cards ────────────────────────────────────────────── */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

.branch-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}

.branch-card:hover {
  border-color: var(--teal-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
}

/* ── Map Container ───────────────────────────────────────────── */
#map, .map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

/* ── Order Form Steps ────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.step.active .step-num {
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,212,170,0.2);
}

.step.done .step-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.step-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.step.active .step-label { color: var(--teal); font-weight: 600; }

.step-divider {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
  margin: 0 0.5rem;
}

/* Payment method selector */
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.payment-option input[type="radio"] { display: none; }

.payment-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.payment-option label .icon { font-size: 1.6rem; }
.payment-option label:hover { border-color: var(--teal-border); color: var(--text-primary); }
.payment-option input:checked + label {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
}

/* ── File Upload ─────────────────────────────────────────────── */
.file-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--glass-bg);
}

.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--teal);
  background: var(--teal-glow);
}

.file-upload-area input { display: none; }
.file-upload-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* ── QR Code Display ─────────────────────────────────────────── */
.qr-container {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--teal-border);
  border-radius: var(--border-radius);
}

.qr-container img, .qr-container svg {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 3px solid var(--teal);
  padding: 8px;
  background: var(--bg-secondary);
}

/* ── Flash Messages ──────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: rgba(0,212,170,0.1);
  border: 1px solid var(--teal-border);
  color: var(--teal);
}

.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: rgba(5,14,26,0.9);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.7; }
.footer-title { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--teal); }

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

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 2rem 0;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
}

.animate-pulse-glow { animation: pulse-glow 2s infinite; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--teal-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── Loading Spinner ─────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile Hamburger ────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; margin-right: 0 !important; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(5,14,26,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    gap: 4px;
    z-index: 999;
  }

  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .page-content { padding: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .stat-value  { font-size: 1.5rem; }
  .btn-lg { padding: 0.75rem 1.5rem; }
}

/* ── Utility Classes ─────────────────────────────────────────── */
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-start  { text-align: start; }
.text-end    { text-align: end; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.fs-lg { font-size: 1.15rem; }

/* ── Branch Map Split Component ────────────────────────────── */
.branch-map-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-teal);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.branch-map-sidebar {
  background: rgba(5, 14, 26, 0.6);
  border-inline-end: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  height: 550px;
}

.branch-map-list {
  overflow-y: auto;
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.branch-map-item {
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.branch-map-item:hover {
  border-color: var(--teal-border);
  background: rgba(0, 212, 170, 0.03);
  transform: translateY(-1px);
}

.branch-map-item.active {
  border-color: var(--teal) !important;
  background: var(--teal-glow) !important;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.15);
}

.branch-map-item .btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.branch-map-container {
  height: 550px;
  position: relative;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--teal-border);
}

@media (max-width: 768px) {
  .branch-map-split {
    grid-template-columns: 1fr;
  }
  .branch-map-sidebar {
    height: 280px;
    border-inline-end: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .branch-map-container {
    height: 350px;
  }
}

