/* ═══════════════════════════════════════════════════════
   Festival Booth Booking System — Global Styles
   Theme: Dark Glassmorphism + Premium Gradients + Multi-Device Responsive
   ═══════════════════════════════════════════════════════ */

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

/* ─────────────────────────────────────────────
   CSS Custom Properties (Design Tokens)
   ───────────────────────────────────────────── */
:root {
  --bg-deep:       #07050f;
  --bg-base:       #0d0a1a;
  --bg-surface:    #141128;
  --bg-elevated:   #1c1836;
  --bg-glass:      rgba(28, 24, 54, 0.85);
  --bg-glass-light:rgba(255, 255, 255, 0.04);

  --accent-gold:   #F59E0B;
  --accent-orange: #F97316;
  --accent-purple: #8B5CF6;
  --accent-blue:   #3B82F6;
  --accent-green:  #10B981;
  --accent-red:    #EF4444;

  --grad-hero:     linear-gradient(135deg, #1a0038 0%, #0d0a1a 40%, #001a38 100%);
  --grad-header:   linear-gradient(90deg, #110828 0%, #1c0d40 50%, #110828 100%);
  --grad-gold:     linear-gradient(135deg, #F59E0B, #D97706);
  --grad-orange:   linear-gradient(135deg, #F97316, #EA580C);
  --grad-success:  linear-gradient(135deg, #059669, #10B981);

  --text-primary:  #f1eeff;
  --text-secondary:#a898d0;
  --text-muted:    #6b5e8c;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow:   rgba(139, 92, 246, 0.3);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --shadow-card:   0 20px 60px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-modal:  0 30px 80px rgba(0,0,0,0.7), 0 10px 30px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 24px rgba(139, 92, 246, 0.25);

  --transition:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:      150ms;
  --dur-med:       280ms;
  --dur-slow:      450ms;

  --font-body:     'Inter', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-mono:     'SF Mono', 'Fira Code', monospace;
}

/* Base Reset & Zero Scroll Setup */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }
html[lang="ku"], html[lang="ku"] body, html[lang="ku"] button, html[lang="ku"] input, html[lang="ku"] textarea, html[lang="ku"] select, html[lang="ku"] text {
  font-family: 'Calibri', 'Noto Sans Arabic', 'Inter', system-ui, sans-serif !important;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 8, 5, 0.45) 0%, rgba(5, 3, 2, 0.82) 100%),
    url('../assets/wood_bg.png') repeat center / 480px auto;
  overflow: hidden;
}

/* ── App Shell & Layout (Zero Scroll Viewport) ── */
#app { position: relative; z-index: 1; height: 100vh; width: 100vw; display: flex; flex-direction: column; overflow: hidden; }

/* ── Header (Ultra Compact) ── */
#app-header { background: var(--grad-header); border-bottom: 1px solid var(--border-subtle); padding: 4px 12px; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); flex-shrink: 0; }
.header-inner { max-width: 1800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.header-brand { display: flex; align-items: center; gap: 6px; }
.brand-logo { font-size: 1.15rem; }
.brand-title { font-size: 0.95rem; font-weight: 800; background: linear-gradient(135deg, #fff, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.brand-sub { font-size: 0.65rem; color: var(--text-secondary); }

.header-stats { display: flex; gap: 6px; }
.stat-chip { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 6px; min-width: 54px; box-shadow: 0 0 10px rgba(251, 191, 36, 0.15); }
.stat-num { font-size: 1rem; font-weight: 800; color: #fbbf24; line-height: 1.1; text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.stat-lbl { font-size: 0.6rem; color: #fef08a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.lang-switcher { display: flex; gap: 2px; background: rgba(0,0,0,0.3); padding: 2px; border-radius: 4px; border: 1px solid var(--border-subtle); align-items: center; }
.lang-btn { background: none; border: none; color: var(--text-secondary); padding: 3px 6px; font-size: 0.7rem; border-radius: 3px; cursor: pointer; transition: all var(--dur-fast); touch-action: manipulation; display: inline-flex; align-items: center; gap: 4px; }
.lang-btn.active, .lang-btn:hover { background: rgba(139,92,246,0.3); color: #fff; }
.flag-icon { width: 17px; height: 11px; object-fit: cover; border-radius: 2px; display: inline-block; vertical-align: middle; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

/* ── Admin Trigger Button ── */
.admin-trigger-btn {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--transition);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  touch-action: manipulation;
  white-space: nowrap;
}
.admin-trigger-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5); }

/* ── Main Layout (Maximized Map Viewport) ── */
.main-layout { max-width: 100%; margin: 0 auto; width: 100%; padding: 4px 8px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: hidden; }
.hint-bar { display: none !important; }

.floor-wrapper { flex: 1; min-height: 0; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }

#floor-container {
  flex: 1;
  min-height: calc(100vh - 100px);
  height: calc(100vh - 100px);
  width: 100%;
  height: 100%;
  background: #120e0b;
  border: 1px solid rgba(245, 180, 100, 0.25);
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}
#floor-container.is-dragging {
  cursor: grabbing !important;
}

/* Fullscreen Interactive Map Mode */
#floor-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #0d0907 !important;
}

#floor-container.is-fullscreen .zoom-controls-toolbar {
  bottom: 24px;
  right: 24px;
}
#floor-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  touch-action: none;
  will-change: transform;
}

/* ── Clean Horizontal Legend Bar Above Map ── */
.map-legend-overlay {
  display: none !important;
}

.onmap-legend-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  background: rgba(14, 10, 24, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.onmap-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

.onmap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.onmap-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.onmap-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.onmap-swatch.status-available { background: #10b981; border-color: #059669; }
.onmap-swatch.status-booked    { background: #ef4444; border-color: #dc2626; }
.onmap-swatch.status-selected  { background: #00ff88; border-color: #00cc66; }

.onmap-label { font-weight: 600; color: var(--text-primary); }
.onmap-price { font-weight: 700; color: var(--accent-gold); font-size: 0.68rem; margin-left: 2px; }
[dir="rtl"] .onmap-price { margin-left: 0; margin-right: 2px; }
.onmap-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.12); margin: 2px 0; }

/* ── Tooltip ── */
#tooltip { position: fixed; z-index: 100; pointer-events: none; background: rgba(15, 12, 30, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; opacity: 0; transform: scale(0.95); transition: opacity 120ms ease, transform 120ms ease; box-shadow: 0 10px 30px rgba(0,0,0,0.6); max-width: 280px; }
#tooltip.visible { opacity: 1; transform: scale(1); }
.tip-id { font-weight: 800; font-size: 0.92rem; color: #fff; }
.tip-cat { color: var(--text-secondary); }
.tip-price { font-weight: 700; color: var(--accent-gold); }
.tip-status { font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.tip-free { color: var(--accent-green); }
.tip-booked { color: var(--accent-red); }

/* ── Modals General (Touch-Friendly Responsive) ── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--transition); padding: 16px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 2, 10, 0.84); backdrop-filter: blur(8px); }
.modal-card {
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-modal);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) rgba(255, 255, 255, 0.03);
  -webkit-overflow-scrolling: touch;
}
.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.45);
  border-radius: 4px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.75);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all var(--dur-fast);
}
[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}
.modal-close:hover { background: rgba(255,255,255,0.18); color: #fff; transform: scale(1.05); }

.modal-header-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-right: 40px;
}
[dir="rtl"] .modal-header-banner {
  padding-right: 0;
  padding-left: 40px;
}

.modal-booth-badge { font-size: 1.3rem; font-weight: 800; padding: 10px 16px; background: rgba(255,255,255,0.06); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.15); flex-shrink: 0; }
.modal-title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.modal-meta-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.meta-chip { font-size: 0.72rem; padding: 3px 8px; background: rgba(255,255,255,0.06); border-radius: 4px; color: var(--text-secondary); }
.price-chip { color: var(--accent-gold); font-weight: 700; background: rgba(245,158,11,0.12); }

/* Form Controls */
.booking-form { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group-full { grid-column: 1 / -1; }
.section-label { font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.req { color: var(--accent-red); }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 12px 14px; color: #fff; font-family: var(--font-body); font-size: 0.9rem; transition: border-color var(--dur-fast); width: 100%; min-height: 44px;
}
textarea { min-height: 75px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent-purple); box-shadow: 0 0 12px rgba(139,92,246,0.25); }
input.invalid, textarea.invalid { border-color: var(--accent-red); }
.field-error { font-size: 0.72rem; color: var(--accent-red); min-height: 14px; }

/* Payment Choice Amount Grid */
.pay-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.pay-amount-card {
  position: relative;
}
.pay-amount-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-amount-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.pay-amount-card input:checked + .pay-amount-label {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}
.pay-amount-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.pay-amount-card input:checked + .pay-amount-label .pay-amount-title {
  color: #fff;
}
.pay-amount-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
[dir="rtl"] .modal-actions { justify-content: flex-start; }
.btn-cancel { background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); color: var(--text-secondary); padding: 12px 20px; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; min-height: 44px; }
.btn-confirm { background: var(--grad-gold); border: none; color: #1a0f00; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-md); cursor: pointer; box-shadow: 0 6px 20px rgba(245,158,11,0.35); min-height: 44px; }

/* Success Modal */
.success-card { text-align: center; max-width: 460px; }
.success-icon { font-size: 2.8rem; margin-bottom: 6px; }
.success-title { font-size: 1.4rem; font-weight: 800; color: #fff; }
.success-sub { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 18px; }
.success-details { background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
[dir="rtl"] .success-details { text-align: right; }
.success-row { display: flex; justify-content: space-between; font-size: 0.8rem; gap: 8px; }
.success-label { color: var(--text-secondary); white-space: nowrap; }
.success-val { font-weight: 600; color: #fff; text-align: right; word-break: break-word; }
[dir="rtl"] .success-val { text-align: left; }
.ref-code { font-family: var(--font-mono); color: var(--accent-gold); }
.btn-close-success { width: 100%; padding: 12px; background: var(--grad-success); border: none; color: #fff; font-weight: 700; border-radius: var(--radius-md); cursor: pointer; min-height: 44px; }

/* ── Admin Portal Special Styles ── */
.admin-login-card { max-width: 380px; }
.admin-portal-card { max-width: 840px; width: 100%; }

.admin-portal-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.admin-tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.3); padding: 4px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); flex-wrap: wrap; }
.admin-tab-btn { flex: 1; background: none; border: none; color: var(--text-secondary); padding: 8px 14px; font-size: 0.82rem; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--dur-fast); min-height: 38px; white-space: nowrap; }
.admin-tab-btn.active, .admin-tab-btn:hover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.admin-tab-body { display: none; }
.admin-tab-body.active { display: block; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
[dir="rtl"] .admin-table th, [dir="rtl"] .admin-table td { text-align: right; }
.admin-table th { background: rgba(255,255,255,0.04); color: var(--text-secondary); font-weight: 700; white-space: nowrap; }
.btn-cancel-admin { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5; padding: 6px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all var(--dur-fast); min-height: 32px; }
.btn-cancel-admin:hover { background: rgba(239, 68, 68, 0.5); color: #fff; }

/* ─────────────────────────────────────────────
   Native Mobile App Interface & Responsive Layout
   ───────────────────────────────────────────── */

/* Hide mobile nav on desktop */
.mobile-bottom-nav { display: none; }

@media (max-width: 991px) {
  html, body { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; touch-action: manipulation; }
  #app { min-height: 100vh; height: auto; display: flex; flex-direction: column; overflow: visible; }
  .main-layout { flex: 1; padding: 6px; gap: 6px; overflow: visible; }
  .floor-wrapper { flex: 1; width: 100%; height: auto; display: flex; flex-direction: column; overflow: visible; }

  #floor-container {
    height: calc(100vh - 100px);
    min-height: 560px;
    width: 100%;
    display: flex !important;
    position: relative;
    border-radius: 8px;
    touch-action: none;
    flex-shrink: 0;
  }

  #floor-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: none;
  }
}

/* Landscape Horizon Mode for Mobile Screens */
@media (max-width: 991px) and (orientation: landscape) {
  #app-header { padding: 4px 12px; }
  .header-brand h1 { font-size: 1rem; }
  .stat-badge { padding: 2px 6px; font-size: 0.7rem; }
  .filter-bar-container { padding: 4px; }
  
  #floor-container {
    height: calc(100vh - 100px) !important;
    min-height: 280px !important;
  }
}

/* 3. Responsive Phones (<= 767px) */
@media (max-width: 767px) {
  #app-header { padding: 8px; }
  .header-inner { flex-wrap: wrap; gap: 8px; justify-content: center; text-align: center; }
  .header-brand { gap: 6px; width: 100%; justify-content: center; }
  .brand-logo { font-size: 1.2rem; }
  .brand-title { font-size: 0.95rem; white-space: normal; }
  .brand-sub { font-size: 0.65rem; }
  
  .header-stats { width: 100%; justify-content: center; margin-top: 4px; }
  .header-actions { width: 100%; justify-content: center; margin-top: 4px; flex-wrap: wrap; }
  .stat-chip { padding: 4px 8px; }
  .stat-num { font-size: 1rem; }
  .stat-lbl { font-size: 0.6rem; }

  .filter-bar-container {
    flex-wrap: wrap;
    padding: 6px;
    gap: 6px;
    justify-content: center;
  }
  .search-input-wrap { min-width: 150px; flex: 1; }
  .search-input { padding: 6px 12px 6px 30px; font-size: 0.8rem; height: 32px; }
  [dir="rtl"] .search-input { padding: 6px 30px 6px 12px; }
  .search-icon { left: 8px; font-size: 0.8rem; }
  [dir="rtl"] .search-icon { left: auto; right: 8px; }
  .filter-chips { flex-wrap: wrap; gap: 4px; justify-content: center; }
  .filter-chip { padding: 4px 8px; font-size: 0.75rem; }

  /* Map controls scaling */
  .onmap-title { font-size: 0.65rem; }
  .onmap-legend-item { font-size: 0.62rem; }
  .onmap-swatch { width: 8px; height: 8px; }

  .zoom-controls-toolbar {
    bottom: 16px;
    right: 16px;
  }
  [dir="rtl"] .zoom-controls-toolbar { right: auto; left: 16px; }

  /* Main Layout */
  .main-layout { padding: 6px; gap: 6px; flex: 1; min-height: 0; }
  #floor-container { height: 100%; min-height: 0; border-radius: 8px; }

  /* Form and modals */
  .form-grid { grid-template-columns: 1fr; }
  .admin-portal-card { padding: 16px; }
  .admin-tabs { flex-direction: column; }
}

/* 4. Small Mobile Devices (< 479px) */
@media (max-width: 479px) {
  .modal-card { padding: 16px 12px 30px; max-height: 90vh; }
}

/* ─────────────────────────────────────────────
   Filter & Search Bar Controls
   ───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   Filter & Search Bar Controls (Compact)
   ───────────────────────────────────────────── */
.filter-bar-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 10, 24, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 140px;
}
.search-input {
  width: 100%;
  padding: 3px 8px 3px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: #fff;
  font-size: 0.72rem;
  outline: none;
  transition: all var(--dur-fast);
}
[dir="rtl"] .search-input { padding: 3px 22px 3px 8px; }
.search-input:focus { border-color: #8b5cf6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
.search-icon { position: absolute; left: 6px; font-size: 0.7rem; pointer-events: none; opacity: 0.6; }
[dir="rtl"] .search-icon { left: auto; right: 6px; }

.filter-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.filter-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.filter-chip.active, .filter-chip:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  border-color: #8b5cf6;
}

/* ── Hold Timer Badge ── */
.modal-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Printable Digital Ticket Pass Voucher ── */
.ticket-voucher {
  background: linear-gradient(135deg, #181227, #0c0817);
  border: 1px solid rgba(245, 180, 100, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}
.ticket-header {
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-title { font-size: 1.1rem; font-weight: 800; color: #fde68a; }
.ticket-booth-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f00;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 6px 14px;
  border-radius: 8px;
}
.ticket-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.ticket-info { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; }
.ticket-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; }
.ticket-lbl { color: var(--text-secondary); }
.ticket-val { font-weight: 700; color: #fff; }
.ticket-qr {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ── Print Styles ── */
@media print {
  .app-bg, #app-header, .filter-bar-container, .modal-actions, .modal-close { display: none !important; }
  .modal-overlay { position: static !important; background: none !important; }
  .ticket-voucher { border: 2px solid #000; color: #000 !important; background: #fff !important; }
  .ticket-title, .ticket-val { color: #000 !important; }
}

/* ─────────────────────────────────────────────
   ACTION BAR STYLES
   ───────────────────────────────────────────── */

/* View Switcher / Action Bar */
.view-switcher-bar {
  display: none !important;
}
.view-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.view-tab-btn.active, .view-tab-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  border-color: #8b5cf6;
}
.pass-lookup-trigger-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all var(--dur-fast);
}
[dir="rtl"] .pass-lookup-trigger-btn { margin-left: 0; margin-right: auto; }
.pass-lookup-trigger-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }

/* Floating Map Zoom Controls */
.zoom-controls-toolbar {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(14, 10, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
[dir="rtl"] .zoom-controls-toolbar { right: auto; left: 16px; }
.zoom-controls-toolbar button {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}
.zoom-controls-toolbar button:hover { background: rgba(139, 92, 246, 0.4); }

/* Amenities Chips List */
.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.amenity-chip {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Payment Selector Cards */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.pay-option-card {
  position: relative;
}
.pay-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.pay-option-card input:checked + .pay-option-label {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  color: #fff;
}

/* App View Containers */
.app-view.hidden { display: none !important; }
.app-view.active { display: flex !important; }

/* Exhibitor Directory Cards Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 10px 0;
}
.exhibitor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur-fast);
}
.exhibitor-card:hover { border-color: var(--border-glow); }
.exhibitor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.exhibitor-company { font-size: 1.05rem; font-weight: 800; color: #fff; }
.exhibitor-booth-badge { font-size: 0.85rem; font-weight: 800; padding: 4px 10px; background: var(--grad-gold); color: #1a0f00; border-radius: 6px; }

/* Event Stage Schedule Timeline */
.schedule-timeline { display: flex; flex-direction: column; gap: 12px; padding: 10px 0; }
.schedule-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.schedule-time { font-size: 1.1rem; font-weight: 800; color: var(--accent-gold); min-width: 100px; }
.schedule-info { display: flex; flex-direction: column; gap: 2px; }
.schedule-title { font-size: 1.05rem; font-weight: 800; color: #fff; }
.schedule-speaker { font-size: 0.82rem; color: var(--text-secondary); }

/* Analytics KPI Grid in Admin Portal */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-val { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); }
.kpi-lbl { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
/* Mode Toggle Switcher (List View vs Map View) */
.mode-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-left: auto;
}
[dir="rtl"] .mode-toggle-group {
  margin-left: 0;
  margin-right: auto;
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.mode-toggle-btn.active,
.mode-toggle-btn:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-wa-admin {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Interactive Booth Cards Grid Section */
.booth-grid-section {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booth-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}
.booth-grid-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0;
}

.booth-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  width: 100%;
}

@media (max-width: 479px) {
  .booth-grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}

.booth-card {
  background: rgba(20, 15, 32, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 180ms ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.booth-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.booth-card.available {
  border-left: 4px solid #10b981;
}

.booth-card.booked {
  border-left: 4px solid #ef4444;
  opacity: 0.88;
  background: rgba(30, 12, 18, 0.85);
}

.bcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bcard-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bcard-id {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.bcard-cat-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bcard-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.bcard-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.bcard-status-badge {
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.bcard-status-badge.available { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.bcard-status-badge.booked    { background: rgba(239, 68, 68, 0.15);  color: #ef4444; }

.bcard-reserve-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.bcard-reserve-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.bcard-booked-info {
  font-size: 0.68rem;
  color: #fca5a5;
  font-weight: 600;
  padding: 4px 6px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
}

