/* ==========================================================================
   AJNA - High-End Luxury Nightlife & Private Guestlist Stylesheet
   ========================================================================== */

:root {
  --bg-deep: #030712;
  --bg-surface: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(24, 33, 53, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;

  --text-pure: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-gold: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-danger: #ef4444;

  --font-brand: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Rubik", "Inter", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow-cyan: 0 0 30px rgba(56, 189, 248, 0.25);
  --shadow-glow-gold: 0 0 30px rgba(251, 191, 36, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

body.luxury-nightlife-theme {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(217, 70, 239, 0.06) 0%, transparent 40%);
  color: var(--text-pure);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }

/* Hide mobile bottom tab bar on desktop screens */
.mobile-app-tab-bar {
  display: none !important;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.navbar {
  position: relative;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.noctis-svg-logo,
.ajna-svg-logo {
  height: 40px;
  width: auto;
  max-width: 175px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.nav-brand:hover .noctis-svg-logo,
.nav-brand:hover .ajna-svg-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 30px rgba(192, 132, 252, 0.55));
}

.noctis-emblem-group,
.ajna-emblem-group {
  transform-origin: 18px 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover .noctis-emblem-group,
.nav-brand:hover .ajna-emblem-group {
  transform: translate(3px, 3px) rotate(8deg);
}

/* Co-branding Divider */
.brand-co-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}

/* Co-branding Badge: המלונה של קשת */
.keshet-kennel-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  cursor: default;
}

.keshet-kennel-badge:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.kennel-img-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.kennel-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.kennel-verified-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
  box-shadow: 0 0 6px #10b981;
}

.kennel-text-box {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.kennel-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.kennel-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Staff Console Keshet Mini Badge */
.staff-keshet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 3px 10px 3px 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold);
  vertical-align: middle;
}

.staff-keshet-mini-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  object-fit: cover;
}

.brand-monogram {
  display: none;
}

.brand-name {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Backstage Button in Navbar */
.btn-backstage {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.btn-backstage:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.backstage-icon {
  font-size: 1.1rem;
}

/* Backstage Modal Polish */
.modal-backstage {
  max-width: 440px;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
}

.backstage-badge-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.lbl-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-forgot-link {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.btn-forgot-link:hover {
  color: #fde047;
}

.btn-backstage-submit {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  margin-top: 18px;
}

.btn-backstage-submit:hover {
  background: linear-gradient(135deg, #6d28d9, #1d4ed8);
}

.quick-credentials-hint {
  margin-top: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.hint-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.hint-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-hint {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 5px 8px;
  cursor: pointer;
  text-align: start;
  transition: var(--transition-smooth);
}

.chip-hint:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.chip-hint.gold:hover {
  border-color: var(--accent-gold);
}

.forgot-instructions {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.forgot-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-ghost-cancel {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px;
}

.btn-ghost-cancel:hover {
  color: #fff;
}

.text-center {
  text-align: center;
  letter-spacing: 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ==========================================================================
   ADVANCED NIGHTLIFE ENGINE: GYRO SHIMMER, MESH P2P, STRIPE CONNECT & WHATSAPP
   ========================================================================== */

/* 1. Holographic Gyro Motion Shimmer (Anti-Screen Recording) */
.qr-luxury-frame {
  position: relative;
  overflow: hidden;
  perspective: 600px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.gyro-shimmer-layer {
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(56, 189, 248, 0.5) 50%,
    rgba(217, 70, 239, 0.5) 55%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.75;
  transform: translate(0%, 0%);
  transition: transform 0.1s linear;
}

.live-ms-tag {
  font-family: monospace;
  font-size: 0.72rem;
  background: #030712;
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-inline-start: 8px;
  font-weight: 700;
}

.gyro-hint {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 6px;
  text-align: center;
}

/* 2. Local Mesh Network Sync Chip */
.mesh-network-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.mesh-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 1.8s infinite;
}

/* 3. Optimistic Queue Locking */
.queue-card-item.locked {
  opacity: 0.6;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
  cursor: not-allowed;
}

.lock-badge-chip {
  font-size: 0.68rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-inline-start: 6px;
}

/* 4. Stripe Connect Direct Payouts Dashboard */
.payouts-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payout-account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.account-header-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-connect {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 4px;
}

.account-iban {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stripe-badge-verified {
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.payout-metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .payout-metric-cards { grid-template-columns: 1fr; }
}

.p-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.p-card.gold { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.04); }
.p-card.green { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.04); }

.p-lbl { font-size: 0.75rem; color: var(--text-dim); }
.p-val { font-size: 1.8rem; font-weight: 900; margin: 4px 0; color: #fff; }
.p-val.gold { color: var(--accent-gold); }
.p-val.green { color: var(--accent-emerald); }
.p-sub { font-size: 0.7rem; color: var(--text-dim); }

.payout-transactions-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.payouts-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: start;
}

.payout-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
}

.payout-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 5. WhatsApp Modal Styles */
.modal-wa {
  max-width: 440px;
  background: #0b141a;
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 211, 102, 0.2);
}

.wa-header {
  background: #1f2c34;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-icon {
  font-size: 1.6rem;
  color: #25d366;
}

.wa-verified {
  font-size: 0.72rem;
  color: #25d366;
  display: block;
}

.wa-chat-body {
  padding: 24px 16px;
  background: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 12px;
  border-top-right-radius: 2px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.wa-bubble-sender {
  font-size: 0.75rem;
  color: #25d366;
  font-weight: 700;
  margin-bottom: 6px;
}

.wa-link-btn {
  margin-top: 12px;
  background: #00a884;
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.wa-link-btn:hover {
  transform: scale(1.02);
  background: #029071;
}

.wa-time-meta {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: end;
  margin-top: 6px;
}

.wa-footer-actions {
  padding: 14px 18px;
  background: #1f2c34;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-wa-direct {
  display: block;
  width: 100%;
  padding: 12px;
  background: #25d366;
  color: #0b141a;
  text-align: center;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.btn-wa-direct:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  min-width: 130px;
  z-index: 101;
}

.lang-menu.show {
  display: flex;
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: inherit;
  width: 100%;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px;
}

.btn-logout:hover {
  color: var(--text-pure);
}

/* Panic Banner */
.panic-banner {
  background: linear-gradient(90deg, #991b1b, #ef4444);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.panic-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-panic-dismiss {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.8rem;
}

/* ==========================================================================
   Main Viewport & Page Views
   ========================================================================== */
.app-viewport {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 80px;
  flex: 1;
}

.page-view {
  display: none;
  animation: fadeInView 0.35s ease;
}

.page-view.active {
  display: block;
}

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

/* Hero Section */
.hero-banner {
  text-align: center;
  max-width: 760px;
  margin: 20px auto 40px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.glow-word {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Events Showcase (Sexy, Dark Nightlife Cards with Clear Pricing)
   ========================================================================== */
.events-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.pulse-emerald {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

.event-cover-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.event-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-cover-img {
  transform: scale(1.05);
}

.event-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 15, 25, 0.95) 0%, transparent 60%);
}

.event-date-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

[dir="ltr"] .event-date-pill {
  right: auto;
  left: 14px;
}

.event-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.event-location {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pricing Grid */
.event-pricing-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-tier-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.price-val.vip {
  color: var(--accent-gold);
}

.btn-apply-guestlist {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-apply-guestlist:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Patron Hub & Verification Gate
   ========================================================================== */
.hub-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.view-heading {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 800;
}

.patron-state-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.status-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.spinner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.event-target-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.state-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Concierge Chat */
.concierge-chat-wrap {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 380px;
  text-align: start;
  overflow: hidden;
}

.chat-bar-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  font-size: 1.4rem;
}

.chat-online-pill {
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.chat-secure-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-messages.mini {
  max-height: 180px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-bubble.patron {
  align-self: flex-start;
  background: #2563eb;
  color: #fff;
  border-bottom-left-radius: 2px;
}

.chat-bubble.selector {
  align-self: flex-end;
  background: #1f293d;
  color: var(--text-pure);
  border-bottom-right-radius: 2px;
  border: 1px solid var(--border-subtle);
}

.chat-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: end;
}

.chat-footer-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.chat-footer-input input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
}

.chat-footer-input input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-chat-attach, .btn-chat-send {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-chat-send {
  background: #2563eb;
  border: none;
}

/* Checkout Summary Card */
.ticket-checkout-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  text-align: start;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.total-price-tag {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-checkout-glow {
  box-shadow: var(--shadow-glow-gold);
}

/* Active Dynamic Digital Pass (Clean, Luxury, NO strategy preaching!) */
.digital-pass-card {
  background: linear-gradient(145deg, #111827, #070a12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  margin-bottom: 20px;
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.pass-brand {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
}

.pass-tier-badge {
  padding: 4px 12px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
}

.pass-event-details h3 {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.pass-location, .pass-time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-luxury-frame {
  margin: 24px auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.qr-pulse-indicator {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 700;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.pass-attendee-info {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
}

.attendee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.pass-instructions {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   STAFF FIELD CONSOLE (סלקטור בשטח ומנהל)
   ========================================================================== */
.staff-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.staff-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-title-group h2.view-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.badge-event-scoped {
  padding: 3px 9px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.staff-keshet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
}

.staff-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-staff-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: var(--transition-smooth);
}

.btn-panic-trigger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border: none;
  font-weight: 800;
}

.mesh-network-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: #34d399;
}

.mesh-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.staff-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.staff-tabs::-webkit-scrollbar {
  display: none;
}

.staff-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.staff-tab.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.tab-badge {
  padding: 2px 7px;
  background: #ef4444;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-tab-view {
  display: none;
}

.staff-tab-view.active {
  display: block;
}

.staff-two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .staff-two-col { grid-template-columns: 1fr; }
}

.queue-panel, .review-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

.queue-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.queue-card-item:hover, .queue-card-item.selected {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.queue-card-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}

.queue-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.id-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.id-card-view img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.decision-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.decision-buttons-grid button:first-child {
  grid-column: span 2;
}

.btn-action {
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-approve { background: #10b981; color: #fff; }
.btn-request-doc { background: #f59e0b; color: #000; }
.btn-reject { background: #ef4444; color: #fff; }

/* 2FA Scanner */
.scanner-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.scanner-camera-viewport {
  width: 100%;
  height: 280px;
  background: #030712;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.scan-laser-glow,
.scan-target-box {
  display: none !important;
}

.scan-caption {
  position: absolute;
  bottom: 12px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(3, 7, 18, 0.75);
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 5;
}

.scanner-token-input-bar {
  display: flex;
  gap: 8px;
}

.scan-alert {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Cash & Ledger */
.cash-ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .cash-ledger-grid { grid-template-columns: 1fr; }
}

.cash-issue-card, .debt-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.debt-counter-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.debt-val {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.cash-issued-tickets-card {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.cash-issued-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.cash-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cash-ticket-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.cash-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cash-row-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cash-tier-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.cash-tier-tag.vip {
  background: rgba(212, 175, 55, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.cash-tier-tag.standard {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.cash-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-ticket-issued {
  max-width: 440px;
}

.issued-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.issued-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.issued-meta-box .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.issued-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Manager Map & Gate Gauge */
.manager-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .manager-layout-grid { grid-template-columns: 1fr; }
}

.map-box-wrap, .manager-gate-counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.map-canvas {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Patrons Database & Live Roster Section (מסד נתוני בליינים וזיהוי שטח)
   ========================================================================== */
.patrons-roster-section {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.roster-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.roster-badge-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.roster-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.roster-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.roster-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roster-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  text-align: center;
  min-width: 85px;
}

.roster-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.roster-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.roster-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.roster-search-box {
  position: relative;
  width: 100%;
}

.roster-search-box .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.6;
  pointer-events: none;
}

.roster-search-box input {
  padding-right: 40px;
}

.roster-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.roster-pill-btn.active {
  background: var(--gold-primary, #d4af37);
  color: #030712;
  border-color: var(--gold-primary, #d4af37);
  font-weight: 700;
}

.patrons-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.patron-roster-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.patron-roster-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.patron-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(255, 255, 255, 0.1));
  cursor: pointer;
}

.roster-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.status-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.status-indicator-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-indicator-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.status-indicator-dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.status-indicator-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

.card-details-wrap {
  flex: 1;
  min-width: 0;
}

.card-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.patron-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-roster-tier {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.badge-roster-tier.vip {
  background: rgba(212, 175, 55, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

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

.card-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.meta-chip {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-chip code {
  color: var(--accent-gold);
  font-family: monospace;
}

.card-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.roster-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.roster-status-badge.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.roster-status-badge.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.roster-status-badge.blue { background: rgba(59, 130, 246, 0.15); color: #38bdf8; }
.roster-status-badge.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.card-actions-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-roster-action {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-roster-action:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-roster-action.primary {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-roster-action.primary:hover {
  background: var(--gold-primary, #d4af37);
  color: #030712;
}

.gate-gauge-number {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 20px 0 10px;
}

.gauge-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
}

/* ==========================================================================
   100% REAL STRIPE CREDIT CARD TERMINAL & CHECKOUT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFade 0.25s ease;
}

.modal-backdrop.active,
.modal-backdrop[style*="display: flex"],
.modal-backdrop[style*="display:flex"] {
  display: flex !important;
}

.modal-backdrop[style*="display: none"],
.modal-backdrop[style*="display:none"] {
  display: none !important;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.modal-checkout {
  max-width: 480px;
}

.modal-sm {
  max-width: 380px;
}

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

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}

.btn-modal-close:hover {
  color: #fff;
}

.modal-body-scroll {
  padding: 22px;
}

/* Credit Card Visual */
.credit-card-preview {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 4px;
}

.card-brand-logo {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

[dir="ltr"] .card-brand-logo {
  right: auto;
  left: 20px;
}

.card-number-display {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #fff;
  margin: 10px 0;
}

.card-meta-bottom {
  display: flex;
  justify-content: space-between;
}

.card-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-apple-pay {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.btn-apple-pay:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.pay-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.pay-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}

.pay-divider span {
  position: relative;
  background: var(--bg-surface);
  padding: 0 10px;
  z-index: 1;
}

/* Form Styles */
.form-group-modern {
  margin-bottom: 14px;
  text-align: start;
}

.form-group-modern label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-modern {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.input-modern:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.tier-pick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tier-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.tier-card.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.id-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.04);
}

.drop-icon {
  font-size: 1.8rem;
}

.security-badge-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 14px 0;
}

.btn-primary {
  padding: 14px 20px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Discreet Back-of-House Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px;
  margin-top: auto;
  background: rgba(3, 7, 18, 0.9);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.btn-discreet-lock {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
  opacity: 0.5;
}

.btn-discreet-lock:hover {
  opacity: 1;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* Toasts */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

[dir="ltr"] .toast-stack {
  right: auto;
  left: 20px;
}

.toast-msg {
  pointer-events: auto;
  background: #111827;
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  animation: slideToast 0.3s ease;
  max-width: 360px;
}

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

.toast-success { border-color: var(--accent-emerald); }
.toast-danger { border-color: var(--accent-danger); }
.toast-warning { border-color: var(--accent-gold); }

/* ==========================================================================
   V5.0 ENHANCEMENTS: Real ID Previews, Lightbox, Real Camera Scanner & Map
   ========================================================================== */

/* ID Upload Previews */
.upload-thumb-preview {
  max-width: 100%;
  max-height: 85px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  object-fit: cover;
  margin-bottom: 6px;
}

.clickable-id-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-sm);
}

.clickable-id-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

/* Chat Image & Document Attachments */
.chat-file-bubble {
  margin-top: 6px;
}

.chat-img-thumb {
  max-width: 220px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.chat-img-thumb:hover {
  transform: scale(1.03);
}

.chat-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.chat-doc-link:hover {
  background: rgba(56, 189, 248, 0.15);
}

/* Lightbox Modal */
.lightbox-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightboxImage {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--text-pure);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.btn-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.btn-lightbox-close:hover {
  background: #ef4444;
}

/* Map Markers */
.leaflet-staff-marker {
  background: transparent;
  border: none;
}

.staff-pin-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 1.5px solid;
}

.pin-selector {
  background: #0f172a;
  border-color: #f59e0b;
  color: #f59e0b;
}

.pin-manager {
  background: #0f172a;
  border-color: #38bdf8;
  color: #38bdf8;
}

.patron-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.full-width-map {
  width: 100%;
}

.full-width-map .map-canvas {
  height: 480px;
}

/* Quick Test Scanner Chips */
.scanner-quick-test-box {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.quick-test-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-pure);
}

.quick-test-tokens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-test-scan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid var(--border-gold);
  color: var(--text-pure);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.btn-test-scan-chip:hover {
  background: #334155;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-test-scan-chip.scanned {
  border-color: #ef4444;
  opacity: 0.75;
}

.btn-scanner-camera-toggle {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-scanner-camera-toggle:hover {
  background: var(--accent-gold);
  color: #030712;
}

/* Scanner Rich Alert Cards */
.scan-alert-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

.scan-alert-card.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
}

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

.scan-alert-card.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.scan-alert-card.fraud {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  color: #fff;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.alert-icon-large {
  font-size: 2.2rem;
  line-height: 1;
}

.alert-text-group h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.approved-patron-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
}

.approved-thumb-pic {
  width: 55px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #10b981;
  cursor: pointer;
}

.scanned-meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.badge-tier-scanned {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #3b82f6;
  color: #fff;
}

.badge-tier-scanned.vip {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #030712;
}

.fraud-warning-red {
  display: block;
  margin-top: 8px;
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ==========================================================================
   ENHANCED MANAGER OPERATIONS HQ & INTER-STAFF COMMS
   ========================================================================== */

/* Next in Queue button */
.btn-next-patron {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--gold-primary);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-next-patron:hover {
  background: var(--gold-primary);
  color: #030712;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Luxury Handover Module in Cash Tab */
.card-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge-secure-register {
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.handover-action-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.handover-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.handover-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.handover-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.btn-handover-gold {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #030712;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
}
.btn-handover-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   KESHET MASTER FLEET CONTROL HUB (הבית של קשת - פיקוד עליון)
   ========================================================================== */
.keshet-master-hub-card {
  background: radial-gradient(ellipse at top right, rgba(30, 41, 65, 0.95), rgba(12, 16, 28, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.keshet-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.keshet-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.keshet-hub-title-box h3 {
  margin: 0 0 6px 0;
  color: #fff;
  font-size: 1.35rem;
}

.keshet-event-switcher-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}

.keshet-event-switcher-wrap label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.keshet-fleet-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.fleet-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fleet-kpi .f-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.fleet-kpi .f-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.fleet-kpi .f-val.gold { color: var(--accent-gold); }
.fleet-kpi .f-val.green { color: #10b981; }

.keshet-global-actions {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.global-actions-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.global-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-keshet-action {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-keshet-action.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.btn-keshet-action.danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-keshet-action.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.btn-keshet-action.success:hover {
  background: #10b981;
  color: #030712;
}

.btn-keshet-action.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.btn-keshet-action.warning:hover {
  background: #f59e0b;
  color: #030712;
}

.btn-keshet-action.gold {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--accent-gold);
}
.btn-keshet-action.gold:hover {
  background: var(--accent-gold);
  color: #030712;
}

.keshet-fleet-table-wrap {
  overflow-x: auto;
}

.fleet-table-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.keshet-fleet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.keshet-fleet-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.keshet-fleet-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

/* Manager Mission Control KPI Ribbon */
.manager-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.kpi-card.gold-border {
  border-color: rgba(212, 175, 55, 0.4);
}
.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.kpi-big-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.kpi-big-num.gold {
  color: var(--accent-gold);
}
.kpi-sub-breakdown {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}
.kpi-status-tag {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10b981;
}
.kpi-footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.badge-kpi-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-muted);
}
.kpi-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.kpi-live-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.kpi-live-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.kpi-live-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

/* Manager Command Bar */
.manager-command-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.command-title-wrap {
  margin-bottom: 16px;
}
.command-title-wrap h4 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 4px 0;
}
.command-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.btn-command-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
}
.btn-command-action .cmd-icon {
  font-size: 1.6rem;
}
.btn-command-action strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.btn-command-action small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.btn-command-action.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}
.btn-command-action.warning:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}
.btn-command-action.outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}
.command-policy-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.command-policy-box label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Staff Deployment Table */
.manager-staff-deployment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.manager-staff-table-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-deploy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 12px;
}
.deploy-staff-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.deploy-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.deploy-name-box strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.deploy-name-box span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.deploy-stats-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.deploy-metric {
  text-align: center;
}
.deploy-metric .m-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.deploy-metric .m-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Staff Intercom & Operational Radio */
.staff-comms-layout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 680px;
}
.comms-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.comms-channel-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.comms-header-bar h3 {
  margin: 0 0 4px 0;
  color: #fff;
}
.comms-active-operators {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.comms-quick-broadcasts {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.quick-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.quick-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-radio-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-radio-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-radio-chip.warning { border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.btn-radio-chip.gold { border-color: rgba(212, 175, 55, 0.4); color: var(--accent-gold); }
.btn-radio-chip.danger { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
.btn-radio-chip.info { border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; }

.comms-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.comms-msg-item {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
}
.comms-msg-item.from-me {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.comms-msg-item.from-other {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
.comms-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.comms-sender-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.comms-sender-badge.manager { background: rgba(212, 175, 55, 0.25); color: #fbbf24; }
.comms-sender-badge.selector { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.comms-input-bar {
  display: flex;
  gap: 10px;
}
.btn-comms-send {
  white-space: nowrap;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TACTICAL WALKIE-TALKIE (PTT) SYSTEM STYLES
   ========================================================================== */
.comms-mode-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.comms-mode-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.comms-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.comms-mode-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  border-color: rgba(212, 175, 55, 0.5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.comms-sub-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ptt-station-wrap {
  background: radial-gradient(ellipse at 50% 20%, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.ptt-volume-key-hint {
  display: inline-block;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.ptt-volume-key-hint strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.ptt-freq-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.freq-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.ptt-button-outer {
  margin: 15px auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-ptt-tactical {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #2d3748, #182030 65%, #0b0f19 100%);
  border: 5px solid #334155;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65),
              inset 0 3px 6px rgba(255, 255, 255, 0.25),
              inset 0 -5px 10px rgba(0, 0, 0, 0.9),
              0 0 0 6px rgba(212, 175, 55, 0.18);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  outline: none;
}

.btn-ptt-tactical:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75),
              inset 0 3px 8px rgba(255, 255, 255, 0.3),
              0 0 28px rgba(212, 175, 55, 0.4);
}

.btn-ptt-tactical:active,
.btn-ptt-tactical.transmitting {
  transform: scale(0.94);
  background: radial-gradient(circle at 45% 45%, #991b1b, #450a0a 70%, #200303 100%);
  border-color: #ef4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.8),
              0 0 80px rgba(239, 68, 68, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.35);
  animation: pttPulse 1.2s infinite ease-in-out;
}

@keyframes pttPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6), 0 0 60px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.9), 0 0 90px rgba(239, 68, 68, 0.6);
  }
}

.ptt-led-indicator {
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, inset 0 1px 2px #fff;
  transition: all 0.2s ease;
}

.btn-ptt-tactical.transmitting .ptt-led-indicator {
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444, inset 0 1px 2px #fff;
  animation: pttLedBlink 0.4s infinite alternate;
}

@keyframes pttLedBlink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.ptt-mic-icon {
  font-size: 2.3rem;
  margin-top: 14px;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.ptt-btn-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 2px;
}

.ptt-btn-sub {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.14em;
}

.ptt-audio-wave {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px auto;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: #ef4444;
  border-radius: 3px;
  animation: waveBarBounce 0.8s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }

@keyframes waveBarBounce {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 26px; opacity: 1; }
}

.ptt-status-bar {
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 14px;
  min-height: 22px;
}

.ptt-settings-bar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ptt-setting-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.ptt-setting-toggle input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ptt-voice-logs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.ptt-voice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 12px;
}

.voice-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.voice-log-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.voice-log-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.voice-log-channel {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.voice-log-duration {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-voice-play {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent-gold);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-voice-play:hover {
  background: var(--accent-gold);
  color: #000;
}

/* ==========================================================================
   LIVE DEVICE BATTERY GAUGES & STAFF TELEMETRY
   ========================================================================== */
.battery-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: default;
  transition: all 0.2s ease;
  user-select: none;
}

.battery-live-pill:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.bat-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bat-shell {
  width: 22px;
  height: 11px;
  border: 1.5px solid #94a3b8;
  border-radius: 3px;
  position: relative;
  padding: 1px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.bat-shell::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: #94a3b8;
  border-radius: 0 1px 1px 0;
}

.bat-liquid {
  height: 100%;
  border-radius: 1px;
  background: #10b981;
  transition: width 0.4s ease, background 0.4s ease;
}

.bat-lightning {
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  margin-right: 2px;
  filter: drop-shadow(0 0 4px #fbbf24);
}

.deploy-battery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.deploy-battery-pill.good .bat-liquid { background: #10b981; }
.deploy-battery-pill.med .bat-liquid { background: #f59e0b; }
.deploy-battery-pill.low {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
  animation: pulseLowBat 1.2s infinite alternate;
}
.deploy-battery-pill.low .bat-liquid { background: #ef4444; }

@keyframes pulseLowBat {
  from { box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  to { box-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }
}

.bat-alert-badge {
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   EXECUTIVE UX DE-CLUTTERING & CLEAR GUIDANCE BANNERS
   ========================================================================== */
.section-guide-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.guide-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: -2px;
}

.guide-content strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 3px;
  font-weight: 700;
}

.guide-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ==========================================================================
   EVENT-SCOPED RADIO ARCHIVE (ארכיון הקלטות קשר סובייקטיבי לאירוע)
   ========================================================================== */
.archive-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.archive-title-box h4 {
  margin: 4px 0;
  color: #fff;
  font-size: 1.15rem;
}

.archive-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.archive-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.archive-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.archive-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  flex: 1;
}

.archive-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.archive-list-header h5 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.archive-recordings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.archive-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.archive-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.35);
}

.archive-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.badge-event-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.archive-time-stamp {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.archive-note-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.archive-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-empty-box {
  text-align: center;
  padding: 35px 20px;
  color: var(--text-muted);
}



/* Mobile & Touch Responsiveness Polish */
@media (max-width: 768px) {
  .brand-group-wrap {
    gap: 8px;
  }
  .noctis-svg-logo {
    max-width: 135px;
    height: 32px;
  }
  .keshet-kennel-badge {
    padding: 3px 8px 3px 4px;
    gap: 6px;
  }
  .kennel-img-wrap {
    width: 26px;
    height: 26px;
  }
  .kennel-sub {
    display: none;
  }
  .kennel-title {
    font-size: 0.72rem;
  }
  .brand-co-divider {
    height: 22px;
  }
  .btn-ptt-tactical {
    width: 160px;
    height: 160px;
  }
  .staff-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .staff-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .manager-kpi-ribbon {
    grid-template-columns: 1fr;
  }
  .manager-layout-grid {
    grid-template-columns: 1fr;
  }
  .command-actions-grid {
    grid-template-columns: 1fr;
  }
  .patrons-roster-grid {
    grid-template-columns: 1fr;
  }
  .staff-two-col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AJNA EVENT BUILDER SUITE & KESHET MASTER CONTROLS
   ========================================================================== */
.modal-builder-window {
  max-width: 820px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #060a14 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.15);
}

.builder-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.builder-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

.builder-body-scroll {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.builder-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.builder-section-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.builder-sec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.builder-sec-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #92400e);
  color: #030712;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.builder-sec-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.builder-sec-header p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.builder-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.builder-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.builder-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.builder-cover-ctrl-box {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cover-uploader-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cover-preview-box {
  width: 140px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.cover-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  color: #fef08a;
}

.cover-upload-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.upload-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

.builder-presets-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.presets-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.presets-gallery-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  border-color: var(--accent-gold);
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
}

.builder-map-picker-box {
  margin-top: 10px;
}

.map-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.coord-pill {
  font-family: monospace;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
}

.builder-leaflet-map {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
  background: #0b1120;
}

.builder-selectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.builder-staff-chip-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.builder-staff-chip-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}

.builder-staff-chip-label input[type="checkbox"] {
  accent-color: #d4af37;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.staff-chip-info {
  display: flex;
  flex-direction: column;
}

.staff-chip-name {
  font-size: 0.82rem;
  color: #fff;
}

.staff-chip-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Header & Fleet Table Toolbar */
.keshet-hub-ctrl-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-create-event-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #030712;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-create-event-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.fleet-table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-create-event-sm {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-create-event-sm:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold);
}

.btn-save-builder {
  padding: 8px 20px;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Compact Polish: No enormous oversized text constraint */
.section-guide-banner {
  padding: 8px 14px;
}

.section-guide-banner strong {
  font-size: 0.85rem;
}

.section-guide-banner p {
  font-size: 0.76rem;
}

@media (max-width: 768px) {
  .builder-form-grid-2,
  .builder-form-grid-3,
  .builder-form-grid-4 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .modal-builder-window {
    width: 98%;
    max-height: 95vh;
  }
  .builder-body-scroll {
    padding: 12px;
  }
}

/* ==========================================================================
   PWA VISUAL INSTALLATION GUIDE & FLOATING PROMPT STYLES
   ========================================================================== */

/* Top Navigation Install Button */
.btn-pwa-install-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.btn-pwa-install-nav:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.32));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4), 0 0 28px rgba(168, 85, 247, 0.3);
}

.pwa-nav-icon {
  font-size: 1rem;
}

/* Modal Window for PWA Guide */
.modal-pwa-window {
  max-width: 620px;
  width: 94%;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 70, 0.95), rgba(7, 10, 19, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  overflow: hidden;
}

.pwa-header-title-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0 2px 0;
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pwa-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 2px;
}

.pwa-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 1-Click Direct Install Box */
.pwa-direct-install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.direct-install-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.direct-icon {
  font-size: 1.5rem;
  color: #38bdf8;
}

.direct-install-info strong {
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
}

.direct-install-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-pwa-primary {
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}

.btn-pwa-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* Device Tabs Bar */
.pwa-device-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pwa-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.pwa-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.25));
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.tab-device-icon {
  font-size: 1rem;
}

/* Steps Cards List */
.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 16px;
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pwa-step-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.7);
  transform: translateX(-2px);
}

.step-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.step-icon-visual {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-icon-box {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.add-icon-box {
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.3);
}

.done-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.dots-icon-box,
.install-icon-box,
.desktop-icon-box {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.step-details {
  flex: 1;
}

.step-details strong {
  font-size: 0.94rem;
  color: #ffffff;
  display: block;
  margin-bottom: 3px;
}

.step-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Modal Footer Actions */
.pwa-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(7, 10, 19, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-pwa-dismiss-forever {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pwa-dismiss-forever:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.pwa-footer-right-actions {
  display: flex;
  gap: 8px;
}

/* Floating Install Banner (Discreet bottom-corner card) */
.pwa-floating-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  max-width: 420px;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.pwa-float-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-float-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pwa-float-text strong {
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
}

.pwa-float-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pwa-float-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pwa-float-open {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pwa-float-open:hover {
  background: linear-gradient(135deg, #0284c7, #8b5cf6);
  border-color: #38bdf8;
}

.btn-pwa-float-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pwa-float-dismiss:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-pwa-float-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: auto;
  padding: 4px;
}

.btn-pwa-float-close:hover {
  color: #ffffff;
}

.auth-security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  margin: 12px 0 16px 0;
  line-height: 1.4;
}

.auth-security-notice .sec-lock-icon {
  font-size: 1rem;
  color: #38bdf8;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pwa-floating-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .btn-pwa-install-nav .pwa-nav-label {
    display: none;
  }
  .btn-pwa-install-nav {
    padding: 6px 10px;
  }
}


/* Auto-Hide PWA Install triggers when running as installed standalone app */
@media all and (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .btn-pwa-install-nav,
  #btnPwaInstallNav,
  #pwaFloatingBanner,
  .pwa-standalone-hide {
    display: none !important;
  }
}

/* ==========================================================================
   PWA Dynamic Auto-Update Notification Banner & Version Checker
   ========================================================================== */
.app-update-banner {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  width: calc(100% - 24px);
  max-width: 500px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.98) 0%, rgba(20, 24, 46, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDownUpdate 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  direction: rtl;
}

@keyframes slideDownUpdate {
  from {
    opacity: 0;
    transform: translate(-50%, -30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.update-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.update-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  animation: pulseDotGlow 1.4s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDotGlow {
  0% { transform: scale(0.85); box-shadow: 0 0 4px #38bdf8; }
  100% { transform: scale(1.3); box-shadow: 0 0 16px #38bdf8, 0 0 24px rgba(56,189,248,0.7); }
}

.update-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.update-ver-tag {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.btn-update-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-update-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

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

.update-banner-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.update-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.update-feat-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 6px;
  padding: 2px 7px;
}

.update-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn-apply-update {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.45) !important;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-apply-update:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.65) !important;
}

.btn-apply-update:active {
  transform: translateY(1px);
}

.btn-update-remind {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-update-remind:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pwa-version-checker-card {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pwa-version-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.pwa-version-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-ver-pill {
  font-size: 0.8rem;
  color: #f8fafc;
}

.pwa-ver-pill strong {
  color: #38bdf8;
}

.pwa-sync-pill {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
}

.pwa-version-tip {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.btn-check-updates-modal {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-check-updates-modal:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .app-update-banner {
    width: calc(100% - 16px);
    padding: 12px 14px;
  }
  .btn-apply-update {
    font-size: 0.82rem !important;
    padding: 9px 12px !important;
  }
  .btn-update-remind {
    font-size: 0.74rem;
    padding: 9px 10px;
  }
}




/* ==========================================================================
   AJNA COMMAND ULTRA-LUXURY IPHONE & MOBILE RESPONSIVE ENGINE
   ========================================================================== */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

.navbar {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  padding: max(10px, env(safe-area-inset-top)) 16px 12px 16px !important;
}

.nav-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  /* Sleek, Ultra-Clean Single-Row Mobile Navbar */
  .navbar {
    padding: max(8px, env(safe-area-inset-top, 8px)) 12px 8px 12px !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    max-height: calc(64px + env(safe-area-inset-top, 0px)) !important;
    background: rgba(8, 14, 28, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .nav-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: 100% !important;
  }

  /* Brand on Right (RTL start) */
  .brand-group-wrap {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .nav-brand {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .noctis-svg-logo, .ajna-svg-logo {
    width: 95px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
  }

  .brand-co-divider {
    height: 16px !important;
    margin: 0 2px !important;
    opacity: 0.3 !important;
  }

  .keshet-kennel-badge {
    padding: 2px 6px !important;
    gap: 4px !important;
    border-radius: 9999px !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    height: 22px !important;
  }

  .kennel-img-wrap {
    width: 18px !important;
    height: 18px !important;
  }

  .kennel-title {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
  }

  .kennel-sub {
    display: none !important;
  }

  /* Quick Actions on Left (RTL end) */
  .nav-actions {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Hide duplicate buttons & hide giant tier-2 tab bar on mobile (handled by bottom mobileAppTabBar) */
  .nav-links,
  .btn-backstage,
  .btn-pwa-install-nav,
  #btnPwaInstallNav,
  .pwa-floating-banner {
    display: none !important;
  }

  .lang-selector .lang-btn {
    padding: 3px 6px !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important;
  }

  /* Mobile Responsive Staff Header Bar */
  .staff-header-bar {
    padding: 8px 10px !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  .staff-header-main {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .staff-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .staff-title-group h2.view-heading {
    font-size: 0.98rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .btn-back {
    font-size: 0.74rem !important;
    padding: 4px 8px !important;
  }

  .badge-event-scoped {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .staff-keshet-badge {
    font-size: 0.66rem !important;
    padding: 2px 5px !important;
  }

  .staff-quick-actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .btn-staff-pill {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  .mesh-network-chip {
    padding: 3px 7px !important;
    font-size: 0.7rem !important;
  }

  .staff-tabs {
    gap: 4px !important;
    margin-bottom: 12px !important;
    padding-bottom: 4px !important;
  }

  .staff-tab {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }

  /* Grid & Card Mobile Flow */
  .events-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .event-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .hero-section {
    padding: 24px 12px !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  /* Mobile Body Scroll Lock */
  body.modal-open {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Mobile App Bottom Tab Bar */
  .mobile-app-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99990 !important;
    background: rgba(11, 16, 32, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
    padding: 6px 8px max(14px, env(safe-area-inset-bottom, 14px)) 8px !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7) !important;
  }

  .tab-bar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    padding: 4px 6px !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    max-width: 80px !important;
  }

  .tab-bar-item:hover, .tab-bar-item.active {
    color: #38bdf8 !important;
  }

  .tab-bar-item.active .tab-bar-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
  }

  .tab-bar-icon {
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }

  .tab-bar-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
  }

  /* Ultra-Ergonomic Mobile Bottom-Sheet Modals (Zero Background Pull) */
  .modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    align-items: flex-end !important; /* Bottom-sheet */
    justify-content: center !important;
    padding: 0 !important;
    z-index: 100050 !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
  }

  .modal-backdrop[style*="display: none"],
  .modal-backdrop[style*="display:none"] {
    display: none !important;
  }

  .modal-backdrop.active,
  .modal-backdrop[style*="display: flex"],
  .modal-backdrop[style*="display:flex"] {
    display: flex !important;
  }

  .modal-window, .modal-pwa-window {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-bottom: none !important;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.9) !important;
    animation: bottomSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

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

  .sheet-drag-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    margin: 8px auto 4px auto;
    flex-shrink: 0;
  }

  .modal-top, .modal-header {
    flex-shrink: 0 !important;
    padding: 10px 16px 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  .modal-body-scroll, .pwa-modal-body, .modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
    padding: 14px 16px !important;
    max-height: calc(90dvh - 130px) !important;
  }

  .modal-footer-sticky, .pwa-modal-footer, .modal-footer {
    flex-shrink: 0 !important;
    padding: 10px 16px max(18px, env(safe-area-inset-bottom, 18px)) 16px !important;
    background: rgba(11, 16, 32, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Multi-Ticket Switcher Bar */
  .patron-ticket-switcher-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .switcher-lbl {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 700;
  }

  .switcher-pills-list {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .tkt-switch-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .tkt-switch-pill.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 700;
  }

  /* Forms & Touch Ergonomics */
  input, select, textarea, .input-modern {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    min-height: 44px; /* Apple Human Interface Guideline minimum touch target */
  }

  /* Universal Apple Touch Target & Ergonomics */
  button, .preset-chip, .tab-bar-item, .nav-item, .btn-primary, .btn-secondary {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Walkie-Talkie & Staff Controls on iPhone */
  .ptt-tactical-stage {
    padding: 20px 10px !important;
  }

  .btn-ptt-tactical {
    width: 140px !important;
    height: 140px !important;
  }

  .staff-two-col {
    grid-template-columns: 1fr !important;
  }

  .queue-panel, .review-panel {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 380px) {
  .noctis-svg-logo, .ajna-svg-logo {
    width: 90px !important;
    height: 22px !important;
    max-width: 90px !important;
  }
  .brand-group-wrap {
    gap: 4px !important;
  }
  .keshet-kennel-badge {
    padding: 2px 5px !important;
  }
  .btn-backstage span[data-i18n="btn_backstage"],
  .btn-backstage .btn-backstage-text {
    display: none !important;
  }
  .btn-backstage {
    padding: 6px 9px !important;
  }
}

/* ==========================================================================
   AJNA TICKET REFUND, RETENTION LEDGER & SEGREGATED SUPREME VAULT STYLES
   ========================================================================== */

/* --- Selector Ticket Inspector --- */
.selector-ticket-inspector {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.inspector-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.inspector-lbl {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-left: 6px;
}
.inspector-tier-title {
  font-size: 0.95rem;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.inspector-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.inspector-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.inspector-status-badge.refunded {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.inspector-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 6px;
}
.insp-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.insp-stat .insp-lbl {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 2px;
}
.insp-stat .insp-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}
.insp-stat .insp-val.gold { color: #f59e0b; }
.insp-stat .insp-val.green { color: #10b981; }
.btn-selector-refund {
  width: 100%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-selector-refund:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.55));
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Chat shortcut button */
.chat-mini-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.btn-chat-refund-shortcut {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chat-refund-shortcut:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* --- Pending Refunds Approval Queue --- */
.pending-refunds-hub-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.refunds-hub-header {
  margin-bottom: 14px;
}
.refunds-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.refunds-title-group h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
}
.badge-refund-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.refunds-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.refund-card-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 4px solid #ef4444;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.refund-info-col {
  flex: 1;
  min-width: 200px;
}
.refund-patron-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.refund-meta-line {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}
.refund-figures-col {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ref-fig {
  text-align: center;
}
.ref-fig-lbl {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}
.ref-fig-val {
  font-size: 0.92rem;
  font-weight: 800;
}
.ref-fig-val.gold { color: #f59e0b; }
.ref-fig-val.green { color: #10b981; }
.refund-actions-col {
  display: flex;
  gap: 8px;
}
.btn-approve-refund {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-approve-refund:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.btn-reject-refund {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-reject-refund:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* --- Segregated Event Vaults & Keshet Treasury --- */
.segregated-vaults-section {
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
.vaults-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.keshet-treasury-badge-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 8px 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.treasury-stream-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.treasury-stream-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 8px;
}
.treasury-stream-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}
.treasury-entry-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.treasury-entry-tag {
  color: #38bdf8;
  font-weight: 700;
}
.treasury-entry-val {
  color: #10b981;
  font-weight: 800;
}
.segregated-cards-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #e2e8f0;
  margin: 16px 0 10px 0;
}
.segregated-event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.event-vault-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.event-vault-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}
.event-vault-card.settled {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.12);
}
.vault-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.vault-event-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}
.vault-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.vault-status-pill.settled {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}
.vault-fin-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 10px;
  border-radius: 8px;
}
.vault-fin-row {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}
.vault-fin-row.net {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 6px;
  font-weight: 800;
  color: #f8fafc;
}
.btn-settle-vault {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-settle-vault:hover {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.btn-settle-vault.settled {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  cursor: default;
}

/* --- Sealed Master Kennel Ledger --- */
.sealed-kennel-ledger-card {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.sealed-ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sealed-ledger-notice {
  font-size: 0.72rem;
  color: #c084fc;
}
.sealed-ledger-content {
  font-family: monospace;
  font-size: 0.75rem;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #cbd5e1;
}
.sealed-ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

/* --- Zero-Trace Patron Privacy Card --- */
.zero-trace-privacy-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  text-align: center;
}
.zero-trace-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}
.zero-trace-privacy-card p {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* --- Patron Refunded State --- */
.badge-refunded {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.refund-patron-summary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.refund-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.refund-gate-warning {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

/* --- Modals: Refund & Settlement --- */
.refund-modal-win, .settlement-modal-win {
  max-width: 520px !important;
}
.refund-calc-card, .settlement-summary-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-row, .sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #cbd5e1;
}
.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.calc-row.highlight-gold, .sum-row.highlight-gold {
  color: #fbbf24;
}
.calc-row.highlight-green, .sum-row.highlight-green {
  color: #34d399;
}
.green.big {
  font-size: 1.15rem;
  font-weight: 800;
}
.refund-security-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #fde68a;
  line-height: 1.45;
  margin-top: 12px;
}
.payout-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px 0;
}
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.radio-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}
.radio-card input[type="radio"] {
  margin-top: 3px;
}
.radio-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.radio-card-body strong {
  font-size: 0.86rem;
  color: #f8fafc;
}
.radio-card-body span {
  font-size: 0.74rem;
  color: #94a3b8;
}
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 500px) {
  .form-row-two {
    grid-template-columns: 1fr;
  }
}
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

/* ==========================================================================
   LIVE REAL-TIME HARDWARE GPS ENGINE & MAP NAVIGATION STYLES
   ========================================================================== */
.leaflet-user-gps-marker {
  background: transparent !important;
  border: none !important;
}

.user-gps-marker-beacon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-gps-pulse-wave {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  animation: userGpsPulseAnim 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.user-gps-solid-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.8);
  z-index: 2;
}

@keyframes userGpsPulseAnim {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.leg-dot.blue-pulse {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: userGpsDotBlink 1.5s infinite ease-in-out;
}

@keyframes userGpsDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.map-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.btn-map-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-gps:hover {
  background: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.btn-map-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-map-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.map-picker-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-builder-gps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-builder-gps:hover {
  background: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.pass-venue-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-pass-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pass-waze {
  background: rgba(51, 204, 255, 0.15);
  border: 1px solid rgba(51, 204, 255, 0.4);
  color: #33ccff;
}

.btn-pass-waze:hover {
  background: rgba(51, 204, 255, 0.3);
  box-shadow: 0 0 12px rgba(51, 204, 255, 0.4);
}

.btn-pass-gmaps {
  background: rgba(52, 168, 83, 0.15);
  border: 1px solid rgba(52, 168, 83, 0.4);
  color: #4ade80;
}

.btn-pass-gmaps:hover {
  background: rgba(52, 168, 83, 0.3);
  box-shadow: 0 0 12px rgba(52, 168, 83, 0.4);
}

.pass-distance-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.event-location-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.event-quick-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-geo-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.mini-geo-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.geo-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

/* ==========================================================================
   EVENT BUILDER STREAMLINED 3-STEP WIZARD & KESHET EXECUTIVE CONTROLS
   ========================================================================== */
.builder-modal-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.builder-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-builder-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  color: #030712 !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-builder-top:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7) !important;
}

.btn-save-builder-lg {
  font-size: 0.92rem !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%) !important;
  color: #030712 !important;
  border: none !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  cursor: pointer;
}

.btn-save-builder-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.75) !important;
}

/* Stepper Progress Bar */
.builder-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.builder-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.builder-step-tab .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.builder-step-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.builder-step-tab.active .step-num {
  background: #38bdf8;
  color: #030712;
}

.step-connector {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* Stepper Panes */
.builder-step-pane {
  animation: fadeInPane 0.25s ease;
}

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

.builder-step-intro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-intro-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.builder-step-intro h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Compact Cover Section */
.builder-cover-compact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.cover-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.cover-compact-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cover-thumb-preview {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cover-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-compact-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cover-actions-line {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-cover-action-upload {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
}

.cover-url-inp {
  flex: 1;
  font-size: 0.78rem !important;
  padding: 6px 10px !important;
}

/* Compact Map Card */
.builder-map-compact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.builder-leaflet-map-compact {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-builder-gps-compact {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Wizard Footer Bar (Clean, Non-Obscuring) */
.builder-footer-sticky {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  background: rgba(8, 14, 28, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 16px !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4) !important;
}

.builder-wizard-footer-group {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

/* Master Sub-Tabs Executive Segmented Switcher */
.master-subtabs-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(11, 16, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.master-subtabs-nav::-webkit-scrollbar {
  display: none;
}

.master-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

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

.master-subtab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.master-sub-pane {
  animation: fadeInSubPane 0.25s ease;
}

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

/* Global Zero Horizontal Overflow Protections */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.app-viewport {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
  padding: 16px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

.staff-tabs {
  overflow-x: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
}

.keshet-fleet-table-wrap {
  overflow-x: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

.keshet-master-hub-card {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile Clean Responsive Adjustments */
@media (max-width: 640px) {
  .btn-save-builder-top {
    display: none !important;
  }

  .builder-modal-top {
    padding: 10px 14px !important;
  }

  .builder-form-grid-2,
  .builder-form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .builder-form-grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .builder-stepper-bar {
    padding: 8px 10px !important;
    gap: 4px !important;
  }

  .builder-step-tab {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  .master-subtab-btn {
    padding: 7px 8px !important;
    font-size: 0.76rem !important;
  }

  .modal-builder-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 20px 20px 0 0 !important;
    box-sizing: border-box !important;
  }

  /* When any modal is open, suppress floating banners so nothing is obscured */
  body.modal-open .mobile-app-tab-bar,
  body.modal-open .pwa-floating-banner,
  body.modal-open .app-update-banner {
    display: none !important;
    pointer-events: none !important;
  }
}

.modal-invite-window,
.modal-onboarding-window {
  max-width: 650px;
  width: 95%;
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #060a14 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* Selector KYC status pills & badges in Staff Deployment */
.selector-kyc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.kyc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.kyc-pill.verified {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.kyc-pill.pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.payout-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.selector-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-selector-action {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-selector-action:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Selector Commission Helper & Quick Roles */
.label-with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.help-tooltip-icon {
  cursor: help;
  font-size: 0.85rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.help-tooltip-icon:hover {
  opacity: 1;
}

.form-hint-micro {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.backstage-quick-roles {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.backstage-quick-roles .preset-chip {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  padding: 8px 10px;
}

.backstage-quick-roles .preset-chip.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
}

/* ==========================================================================
   DYNAMIC GATE STATIONS & SELECTOR APPROVAL DESIGN SYSTEM
   ========================================================================== */
.manager-gate-stations-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stations-quick-add-bar {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.stations-quick-add-bar input {
  flex: 1;
}

.gate-stations-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.station-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.station-chip-item:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.station-chip-item .stn-count {
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.station-chip-item .btn-stn-delete {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.station-chip-item .btn-stn-delete:hover {
  color: #ef4444;
}

/* Pending Selector Approval Queue */
.manager-pending-selectors-card {
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.manager-pending-selectors-grid {
  margin-top: 12px;
}

.pending-selector-item {
  transition: all 0.2s ease;
}

.pending-selector-item:hover {
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Button Luxury Palette */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-sms {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-sms:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-approve {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-approve:hover {
  background: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-reject:hover {
  background: #ef4444;
  color: #fff;
}

/* Dispatch Box in Invite Selector Modal */
.invite-dispatch-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.dispatch-header {
  margin-bottom: 10px;
}

.dispatch-tag {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.invite-link-preview {
  font-family: monospace;
  direction: ltr;
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 6px;
  color: #93c5fd;
  word-break: break-all;
}

.dispatch-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Station chips styling */
.station-chip-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 220px;
  transition: all 0.2s ease;
}

.station-chip-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
}

.station-chip-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.station-chip-info .stn-icon {
  font-size: 1.25rem;
}

.station-chip-info .stn-details strong {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
}

.station-chip-info .stn-desc {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-del-station {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  color: #fca5a5;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-del-station:hover:not(:disabled) {
  background: #ef4444;
  color: #fff;
}

/* Dynamic Station Selector Dropdown inside Staff Rows */
.station-assign-wrap {
  display: flex;
  flex-direction: column;
}

.station-assign-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.station-assign-select:hover,
.station-assign-select:focus {
  border-color: var(--accent-gold);
}

.station-fixed-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* Real Hardware Battery UI and Offline Status */
.real-hw-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.deploy-battery-pill.offline {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

/* Pending Selector KYC Approvals Cards */
.pending-selector-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.pending-selector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pending-selector-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pending-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pending-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pending-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pending-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pending-name-row strong {
  font-size: 1rem;
  color: #f8fafc;
}

.pending-details-sub {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.pending-payout-line {
  font-size: 0.76rem;
  color: #38bdf8;
  margin-top: 2px;
}

.pending-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .pending-selector-top {
    flex-direction: column;
    align-items: stretch;
  }
  .pending-action-buttons {
    justify-content: flex-end;
  }
  .stations-quick-add-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   DISCREET NATURE RAVE & PAYBOX PAYMENT FLOW (v8.6.0)
   ========================================================================== */

/* PayBox Modal & Checkout Terminal */
.modal-paybox-window {
  max-width: 520px;
  background: radial-gradient(130% 120% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, #0d1117 70%, #080c10 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(14, 165, 233, 0.15) !important;
}

.paybox-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.paybox-order-summary {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.paybox-checkout-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 26, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.paybox-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.paybox-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paybox-logo-badge .paybox-icon {
  font-size: 1.3rem;
}

.paybox-logo-badge .paybox-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.paybox-secure-tag {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.paybox-destination-details {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paybox-dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.paybox-dest-row .dest-lbl {
  color: #94a3b8;
}

.paybox-dest-row .dest-val {
  color: #f1f5f9;
  font-weight: 700;
}

.dest-phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dest-phone-wrap .dest-phone {
  font-family: monospace;
  font-size: 1.05rem;
  color: #38bdf8;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.btn-copy-mini {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.paybox-steps-guide {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paybox-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.paybox-step-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.btn-paybox-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 16px;
}

.btn-paybox-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.55);
}

.paybox-confirm-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 14px;
}

.ref-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ref-prefix-badge {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.ref-input-wrap input {
  padding-left: 56px;
}

.paybox-discreet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  font-size: 0.76rem;
  color: #94a3b8;
}

.paybox-discreet-footer .discreet-lock-icon {
  font-size: 0.9rem;
}

.alt-pay-toggle-wrap {
  margin-top: 16px;
  text-align: center;
}

.alt-pay-toggle-btn {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alt-pay-toggle-btn:hover {
  border-color: #cbd5e1;
  color: #f1f5f9;
}

/* ==========================================================================
   4-STEP EVENT BUILDER WIZARD
   ========================================================================== */

.modal-builder-window {
  max-width: 780px;
  width: 95vw;
}

.builder-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.builder-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.builder-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-builder-top {
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* Stepper Bar */
.builder-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  gap: 6px;
  overflow-x: auto;
}

.builder-step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
  white-space: nowrap;
}

.builder-step-tab .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.builder-step-tab .step-lbl {
  font-size: 0.84rem;
  font-weight: 600;
}

.builder-step-tab.active {
  background: rgba(168, 85, 247, 0.12);
  color: #f1f5f9;
}

.builder-step-tab.active .step-num {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.builder-step-tab.completed .step-num {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(148, 163, 184, 0.15);
  min-width: 12px;
}

/* Step Panes */
.builder-step-pane {
  display: none;
  padding: 16px 4px;
  animation: fadeInPane 0.25s ease forwards;
}

.builder-step-pane.active {
  display: block;
}

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

.builder-step-intro {
  margin-bottom: 16px;
}

.step-intro-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.builder-step-intro h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 2px;
}

@media (min-width: 769px) {
  .builder-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .builder-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .builder-form-grid-2,
  .builder-form-grid-3,
  .builder-form-grid-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.rave-secret-highlight {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.builder-step-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* ==========================================================================
   PATRON PHASED NAVIGATION & TACTICAL RADAR HUD
   ========================================================================== */

.patron-phased-nav-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 26, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.phased-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.phased-nav-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phased-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(8, 14, 26, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.2s ease;
}

.phased-step-row.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}

.phased-step-row.locked {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.phased-step-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.phased-step-content {
  flex: 1;
}

.phased-step-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.phased-step-row.active .phased-step-label {
  color: #38bdf8;
}

.phased-step-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 2px;
}

/* Tactical In-App Radar HUD */
.tactical-inapp-radar {
  position: relative;
  background: radial-gradient(circle at center, #061e2a 0%, #030d14 75%, #010609 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin-top: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.2) inset, 0 10px 30px rgba(0, 0, 0, 0.6);
}

.radar-hud-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.03);
  overflow: hidden;
}

.radar-hud-circle::before,
.radar-hud-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.25);
}

.radar-hud-circle::before {
  width: 90px;
  height: 90px;
}

.radar-hud-circle::after {
  width: 45px;
  height: 45px;
}

.radar-sweep-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  transform-origin: 0% 0%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.6) 0deg, rgba(56, 189, 248, 0) 60deg);
  animation: radarRotate 3s linear infinite;
  pointer-events: none;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  top: 36%;
  left: 64%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: blipPulse 1.5s ease-in-out infinite;
}

@keyframes blipPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.radar-coords-text {
  font-family: monospace;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #38bdf8;
  font-weight: 700;
}

/* Dynamic Anti-Leak Watermark Canvas */
.pass-watermark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  opacity: 0.65;
}

/* ==========================================================================
   TACTICAL RAVE OPS CARD (MANAGER VIEW)
   ========================================================================== */

.tactical-rave-ops-card {
  background: linear-gradient(145deg, #0b1320 0%, #070c14 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tactical-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  margin-bottom: 14px;
}

.tactical-badge-glow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.tactical-current-phase-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
}

.tactical-phases-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.tactical-phase-toggle-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #cbd5e1;
}

.tactical-phase-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
}

.tactical-phase-toggle-btn.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #38bdf8;
  color: #f1f5f9;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

.tactical-phase-toggle-btn .phase-btn-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.tactical-phase-toggle-btn.active .phase-btn-badge {
  color: #38bdf8;
}

.tactical-phase-toggle-btn .phase-btn-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.tactical-phase-toggle-btn .phase-desc-sm {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  line-height: 1.25;
}

.tactical-killswitch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.btn-trail-killswitch {
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-trail-killswitch:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.btn-trail-killswitch.trail-lock-active {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
  animation: pulseLock 1.2s infinite;
}

@keyframes pulseLock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ==========================================================================
   FIELD MANAGER WHATSAPP DISPATCH MODAL
   ========================================================================== */

.modal-mgr-invite-window {
  max-width: 500px;
}

.badge-role-manager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mgr-invite-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.mgr-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.mgr-invite-row:last-child {
  margin-bottom: 0;
}

.mgr-preview-box {
  background: rgba(8, 14, 26, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.mgr-preview-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mgr-preview-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.45;
}

.mgr-token-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.token-link-display {
  flex: 1;
  font-family: monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgr-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-dispatch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
}

.btn-whatsapp-dispatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Responsiveness tweaks */
@media (max-width: 640px) {
  .builder-form-grid-2,
  .builder-form-grid-3 {
    grid-template-columns: 1fr;
  }
  .tactical-phases-control-grid {
    grid-template-columns: 1fr;
  }
  .tactical-killswitch-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .builder-stepper-bar {
    padding: 10px 8px;
  }
  .builder-step-tab .step-lbl {
    display: none;
  }
}

/* ==========================================================================
   SELECTOR GATE COMMAND HUD & FIELD COMMANDER COCKPIT (v8.6.0)
   ========================================================================== */

/* Selector Gate Command HUD */
.selector-gate-command-hud {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 26, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hud-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hud-station-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
}

.btn-station-switch-mini {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-station-switch-mini:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.hud-net-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.hud-net-pill.offline {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.net-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.net-dot.offline {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

.hud-sub-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 6px;
}

/* Field Commander Cockpit */
.field-commander-cockpit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInPane 0.25s ease forwards;
}

.fld-cockpit-header {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fld-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fld-cockpit-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.fld-commander-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 4px;
}

.fld-gauge-box {
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: right;
  min-width: 170px;
}

.fld-gauge-label {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.fld-gauge-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
}

.gauge-track-sm {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 6px;
}

.gauge-fill-sm {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.fld-gates-card,
.fld-telemetry-card {
  background: linear-gradient(145deg, #0b1320 0%, #070c14 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fld-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fld-card-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}

.fld-pending-approvals-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

/* Modal Gate Station Picker */
.modal-station-picker-window {
  max-width: 440px;
}

.gate-picker-stations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.btn-picker-station {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-picker-station:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn-picker-station.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}

.stn-picker-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stn-picker-info {
  flex: 1;
}

.stn-picker-info strong {
  display: block;
  font-size: 0.95rem;
  color: #f8fafc;
}

.stn-picker-info small {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

.picker-check {
  margin-right: auto;
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   AJNA NATURE OPS - LUXURY UNDERGROUND NATURE RAVE STYLING (v8.6.0)
   ========================================================================== */

/* Hero Section Enhancement */
.hero-banner {
  padding: 38px 20px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #f8fafc;
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title .glow-word {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.45));
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

.hero-stats-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-dot.emerald { background: #10b981; box-shadow: 0 0 8px #10b981; }
.chip-dot.cyan { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.chip-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

/* Enhanced Nature Rave Event Cards */
.event-card.nature-rave-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.event-card.nature-rave-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.2);
}

.event-cover-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.event-badge-nature {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.event-cover-bottom-chips {
  position: absolute;
  bottom: 12px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.cover-chip-phase,
.cover-chip-paybox {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
}

.event-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.event-capacity-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.event-subtext {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.event-paybox-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  color: #fbbf24;
  margin: 10px 0;
  font-weight: 500;
}

.paybox-dot {
  color: #f59e0b;
  font-size: 0.9rem;
}

.btn-apply-nature {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-apply-nature:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5) !important;
  border-color: #38bdf8 !important;
}

/* Event Builder Modal High-End Styling Overhaul */
.modal-builder-window {
  background: radial-gradient(circle at 50% 0%, #111827 0%, #060911 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.12) !important;
  max-width: 820px !important;
  width: 96% !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.builder-modal-top {
  padding: 16px 22px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.builder-modal-title-box h3 {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

.builder-stepper-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 12px 20px !important;
  background: rgba(8, 12, 20, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.builder-step-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex: 1 !important;
  min-width: 0 !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.builder-step-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

.builder-step-tab.active {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.builder-step-tab .step-num {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

.builder-step-tab.active .step-num {
  background: #38bdf8 !important;
  color: #030712 !important;
  font-weight: 900 !important;
}

.builder-body-scroll {
  padding: 22px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  -webkit-overflow-scrolling: touch !important;
}

.builder-footer-sticky {
  position: sticky !important;
  bottom: 0 !important;
  background: rgba(9, 13, 22, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 14px 22px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 10 !important;
}

.builder-wizard-footer-group {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
}

/* Mobile Navbar & Ergonomic Polish */
@media (max-width: 640px) {
  .nav-container {
    padding: 6px 12px !important;
    gap: 8px !important;
  }

  .noctis-svg-logo,
  .ajna-svg-logo {
    height: 32px !important;
    max-width: 130px !important;
  }

  .keshet-kennel-badge {
    padding: 3px 8px !important;
    gap: 5px !important;
    font-size: 0.75rem !important;
  }

  .btn-pwa-install-nav {
    padding: 6px 10px !important;
  }

  .pwa-nav-label {
    display: none !important;
  }

  .btn-backstage {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .hero-banner {
    padding: 24px 14px 18px !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .builder-step-tab {
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
  }

  .builder-step-tab .step-lbl {
    display: inline-block !important;
  }
}

/* Polished Mobile App Bottom Tab Bar */
@media (max-width: 768px) {
  .mobile-app-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99990 !important;
    background: rgba(8, 12, 22, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 8px 12px max(14px, env(safe-area-inset-bottom, 14px)) 12px !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75) !important;
  }

  .tab-bar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    padding: 6px 14px !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex: 1 !important;
    max-width: 110px !important;
  }

  .tab-bar-item:hover, .tab-bar-item.active {
    color: #38bdf8 !important;
  }

  .tab-bar-item.active .tab-bar-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
  }

  .tab-bar-icon {
    font-size: 1.35rem !important;
    line-height: 1 !important;
  }

  .tab-bar-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
  }
}

/* ==========================================================================
   APPLE iOS DISCREET NATURE RAVE OPERATIONS BUILDER & MANAGER HQ (v8.6.2)
   ========================================================================== */

/* Apple Sheet Handle for Mobile */
.ios-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 4px auto;
  display: none;
}

@media (max-width: 768px) {
  .ios-sheet-handle {
    display: block;
  }
}

/* Apple Modal Container */
.modal-builder-window {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  background: #080c18 !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-builder-window {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
}

/* Apple Segmented Stepper Bar */
.ios-segmented-stepper {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 4px;
  display: flex;
  gap: 4px;
  margin: 10px 18px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.ios-segmented-stepper .builder-step-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
}

.ios-segmented-stepper .builder-step-tab.active {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ios-segmented-stepper .builder-step-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

/* iOS Inset Form Cards */
.ios-form-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.ios-form-card.ios-card-gold {
  border-color: rgba(251, 191, 36, 0.25);
  background: linear-gradient(145deg, rgba(20, 27, 44, 0.75), rgba(12, 17, 30, 0.85));
}

.ios-form-card.ios-card-secret {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(145deg, rgba(6, 26, 20, 0.7), rgba(11, 20, 32, 0.8));
}

.ios-card-header {
  margin-bottom: 14px;
}

.ios-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 6px;
}

.ios-card-badge.gold {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}

.ios-card-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
}

.ios-card-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.ios-input-group {
  margin-bottom: 14px;
}

.ios-input-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

/* iOS High-Resolution Form Inputs (16px to prevent iOS Safari auto-zoom) */
.ios-input {
  height: 50px !important;
  min-height: 50px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ios-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  outline: none !important;
}

.ios-textarea {
  font-size: 16px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 80px;
}

.ios-textarea:focus {
  border-color: #34d399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25) !important;
  outline: none !important;
}

/* Grid System */
.ios-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ios-span-2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .ios-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .ios-span-2 {
    grid-column: span 1 !important;
  }
}

/* Cover Image Preview & Presets */
.ios-cover-preview-wrapper {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ios-cover-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-cover-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ios-preset {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ios-preset:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

.ios-cover-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .ios-cover-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.ios-upload-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0 16px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Apple iOS Sticky Action Footer */
.builder-ios-footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(8, 12, 22, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 18px max(16px, env(safe-area-inset-bottom, 16px)) 18px !important;
}

.ios-footer-btn {
  height: 50px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.ios-footer-btn.submit-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Real-Time Field PayBox & Attendance Card */
.fld-paybox-ledger-card {
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.9), rgba(10, 16, 28, 0.95)) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
}

.fld-paybox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.fld-paybox-title h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 0 0;
}

.fld-paybox-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

.fld-paybox-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .fld-paybox-metrics-row {
    grid-template-columns: 1fr;
  }
}

.fld-paybox-metric {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fld-paybox-metric .metric-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.fld-paybox-metric .metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.fld-paybox-metric .metric-val.gold {
  color: #fbbf24;
}

.fld-paybox-metric .metric-val.green {
  color: #34d399;
}

.fld-paybox-actions-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .fld-paybox-actions-row {
    flex-direction: column;
  }
}

/* Nature Ops Real-Time Operations Hub */
.nature-ops-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .nature-ops-actions-grid {
    grid-template-columns: 1fr;
  }
}

.nature-ops-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.nature-ops-card.gold-border {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(145deg, rgba(20, 27, 44, 0.75), rgba(12, 17, 30, 0.85));
}

.nature-card-icon {
  font-size: 1.6rem;
}

.nature-card-details strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.nature-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}






