/* =====================================================================
   UtsavBanquets Owner Portal — styles.css
   Dark glassmorphism theme · Gold accent #c9a84c · Inter font
   ===================================================================== */

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

:root {
  /* Color Palette */
  --bg-deep:      #07061a;
  --bg-dark:      #0d0a25;
  --bg-mid:       #12103a;
  --glass-bg:     rgba(255,255,255,0.045);
  --glass-border: rgba(255,255,255,0.09);
  --glass-hover:  rgba(255,255,255,0.075);

  --gold:         #c9a84c;
  --gold-light:   #f0d080;
  --gold-dim:     rgba(201,168,76,0.15);
  --gold-glow:    rgba(201,168,76,0.3);

  --text-primary: #f0eeff;
  --text-sec:     rgba(240,238,255,0.6);
  --text-muted:   rgba(240,238,255,0.35);

  --green:        #3dffa0;
  --green-dim:    rgba(61,255,160,0.12);
  --red:          #ff5252;
  --red-dim:      rgba(255,82,82,0.12);
  --orange:       #ffa940;
  --orange-dim:   rgba(255,169,64,0.12);
  --blue:         #6eb4ff;
  --blue-dim:     rgba(110,180,255,0.12);

  /* Layout */
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  /* Motion */
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── GLASS UTILITY ──────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
}

/* ── HIDDEN ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════ */
.login-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #1b1160 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 80%, #0e1060 0%, transparent 60%),
              var(--bg-deep);
  z-index: 1000;
  padding: 1rem;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.login-page.fade-out {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

/* Animated orbs */
.login-bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(110,90,200,0.18) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation-delay: -3s; animation-duration: 10s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(61,255,160,0.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation-delay: -6s; animation-duration: 12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.login-card {
  position: relative;
  width: 100%; max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(201,168,76,0.08);
  animation: cardIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.login-logo-icon {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-glow);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.login-logo-title { font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.login-logo-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }

.login-heading { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.4rem; }
.login-desc { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 1.8rem; }

.login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-sec); letter-spacing: 0.02em;
}

.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:not(.input-wrap .form-input) { padding-left: 1rem; }

/* inputs without icon */
.input-wrap .form-input { padding-left: 2.75rem; }
.input-wrap:not(:has(.input-icon)) .form-input { padding-left: 1rem; }

textarea.form-input { padding: 0.75rem 1rem; resize: vertical; line-height: 1.5; }
select.form-input { cursor: pointer; }

.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  transition: color var(--transition);
}
.toggle-password:hover { color: var(--gold); }

.login-error {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--red-dim);
  border: 1px solid rgba(255,82,82,0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--red);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: #1a0e00;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 30px rgba(201,168,76,0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-sec);
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--text-primary); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-danger {
  background: var(--red-dim); border: 1px solid rgba(255,82,82,0.3);
  color: var(--red);
}
.btn-danger:hover { background: rgba(255,82,82,0.2); }

.btn-login { margin-top: 0.5rem; padding: 0.85rem; font-size: 0.95rem; }

.login-demo-badge {
  display: flex; align-items: center; gap: 0.4rem; justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.login-demo-badge svg { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════════════════════════ */
.app {
  display: flex; height: 100vh; overflow: hidden;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: rgba(10,8,30,0.85);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition-slow);
}

.sidebar-inner {
  display: flex; flex-direction: column;
  height: 100%; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-inner::-webkit-scrollbar { display: none; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.2rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 0.7rem;
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo-name { font-weight: 700; font-size: 0.9rem; color: var(--gold); display: block; }
.sidebar-logo-role { font-size: 0.68rem; color: var(--text-muted); display: block; }

.sidebar-close {
  display: none; /* shown on mobile */
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  border-radius: 6px; transition: color var(--transition);
}
.sidebar-close:hover { color: var(--text-primary); }

.sidebar-nav {
  flex: 1; padding: 0.8rem 0.8rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}

.nav-item {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: none; border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-sec);
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative; text-align: left;
}
.nav-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}
.nav-item.active .nav-icon { color: var(--gold); }

.nav-icon { flex-shrink: 0; transition: color var(--transition); }
.nav-item span { flex: 1; }

.nav-badge {
  background: var(--orange);
  color: #1a0e00;
  font-size: 0.68rem; font-weight: 700;
  border-radius: 10px; padding: 0.1rem 0.45rem;
  min-width: 20px; text-align: center;
  display: none;
}
.nav-badge.visible { display: block; }

.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
}
.owner-info { flex: 1; overflow: hidden; }
.owner-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #a07830);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #1a0e00;
  /* inline inside flex */
}
.owner-info { display: flex; align-items: center; gap: 0.6rem; flex: 1; overflow: hidden; }
.owner-details { overflow: hidden; }
.owner-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-email { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-logout {
  background: var(--red-dim); border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-sm); padding: 0.5rem;
  color: var(--red); cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.btn-logout:hover { background: rgba(255,82,82,0.2); transform: scale(1.05); }

/* ── SIDEBAR OVERLAY (mobile) ─────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── MAIN WRAP ─────────────────────────────────────────────────────────── */
.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  min-width: 0;
}

/* ── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  position: relative; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none; /* shown on mobile */
  background: none; border: none; cursor: pointer;
  color: var(--text-sec); padding: 6px; border-radius: 6px;
  transition: color var(--transition);
}
.menu-toggle:hover { color: var(--text-primary); }
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-date { font-size: 0.8rem; color: var(--text-muted); }

.notification-bell {
  position: relative; cursor: pointer;
  color: var(--text-sec); padding: 6px; border-radius: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: color var(--transition), border-color var(--transition);
}
.notification-bell:hover { color: var(--gold); border-color: var(--gold-glow); }
.bell-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  border: 1.5px solid var(--bg-deep);
}

/* ── VIEWS CONTAINER ───────────────────────────────────────────────────── */
.views-container {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}
.views-container::-webkit-scrollbar { width: 5px; }
.views-container::-webkit-scrollbar-track { background: transparent; }
.views-container::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.view { display: none; animation: viewIn 0.3s cubic-bezier(0.4,0,0.2,1); }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── VIEW HEADERS ──────────────────────────────────────────────────────── */
.view-header { margin-bottom: 1.5rem; }
.view-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.view-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; }
.view-sub { color: var(--text-sec); font-size: 0.88rem; }

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.card-title { font-size: 0.95rem; font-weight: 700; }
.card-badge {
  font-size: 0.72rem; font-weight: 600;
  background: var(--gold-dim); color: var(--gold);
  border-radius: 20px; padding: 0.2rem 0.6rem;
  border: 1px solid rgba(201,168,76,0.2);
}

/* ── STAT GRID ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: statIn 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-color,#c9a84c) 0%, transparent 60%);
  opacity: 0.08; pointer-events: none;
}
@keyframes statIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-icon {
  width: 40px; height: 40px;
  background: var(--accent-color-dim, var(--gold-dim));
  border: 1px solid var(--accent-color-border, rgba(201,168,76,0.25));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-color, var(--gold));
  flex-shrink: 0;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ── DASHBOARD GRID ────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

/* ── BAR CHART ──────────────────────────────────────────────────────────── */
.bar-chart-wrap {
  height: 200px;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 0 0.5rem;
}
.chart-bar-group {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.chart-bar-outer {
  width: 100%; background: rgba(255,255,255,0.06);
  border-radius: 4px 4px 0 0;
  display: flex; align-items: flex-end;
  height: 160px; overflow: hidden;
}
.chart-bar-inner {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.8s cubic-bezier(0.34,1.56,0.64,1);
  min-height: 4px;
  animation: barGrow 0.9s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes barGrow {
  from { height: 0 !important; }
  to   { /* natural height */ }
}
.chart-label { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.chart-value { font-size: 0.7rem; color: var(--gold); font-weight: 600; text-align: center; }

/* ── QUICK ACTIONS ──────────────────────────────────────────────────────── */
.quick-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.quick-action-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.87rem; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: all var(--transition);
}
.quick-action-btn:hover {
  background: var(--glass-hover); border-color: var(--gold-glow);
  transform: translateX(3px);
}
.qa-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pending-icon { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,169,64,0.2); }
.venue-icon   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(110,180,255,0.2); }
.revenue-icon { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(61,255,160,0.2); }
.qa-arrow { margin-left: auto; color: var(--text-muted); }

/* ── TABLE ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  color: var(--text-muted); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.data-table tr { transition: background var(--transition); }

/* ── STATUS BADGES ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px; white-space: nowrap;
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.status-Pending   { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,169,64,0.2); }
.status-Confirmed { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(61,255,160,0.2); }
.status-Rejected  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,82,82,0.2); }
.status-Completed { background: rgba(56, 173, 246, 0.1); color: #38adf6; border: 1px solid rgba(56, 173, 246, 0.2); }

/* ── FILTER TABS ────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.filter-tab {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: var(--glass-bg);
  color: var(--text-sec);
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { color: var(--text-primary); border-color: var(--gold-glow); }
.filter-tab.active {
  background: var(--gold-dim); color: var(--gold);
  border-color: rgba(201,168,76,0.35);
}

/* ── BOOKINGS GRID ─────────────────────────────────────────────────────── */
.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.booking-card {
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: statIn 0.4s ease both;
}
.booking-card:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,0,0,0.35); }

.booking-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
}
.booking-venue-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.15rem; }
.booking-meta { font-size: 0.78rem; color: var(--text-muted); }

.booking-details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem;
}
.booking-detail { display: flex; flex-direction: column; gap: 0.1rem; }
.booking-detail-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.booking-detail-value { font-size: 0.88rem; font-weight: 600; }

.booking-customer {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); padding: 0.75rem;
  border: 1px solid var(--glass-border);
}
.booking-customer-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #6060d0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; color: white;
}
.booking-customer-info { flex: 1; overflow: hidden; }
.booking-customer-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-customer-contact { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.booking-amount { font-size: 1.15rem; font-weight: 800; color: var(--gold); }

.booking-actions { display: flex; gap: 0.5rem; }
.btn-approve {
  flex: 1; padding: 0.5rem; font-size: 0.82rem; font-weight: 600;
  background: var(--green-dim); border: 1px solid rgba(61,255,160,0.25);
  color: var(--green); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.btn-approve:hover { background: rgba(61,255,160,0.2); transform: scale(1.02); }
.btn-reject {
  flex: 1; padding: 0.5rem; font-size: 0.82rem; font-weight: 600;
  background: var(--red-dim); border: 1px solid rgba(255,82,82,0.25);
  color: var(--red); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.btn-reject:hover { background: rgba(255,82,82,0.2); transform: scale(1.02); }

/* ── VENUES GRID ─────────────────────────────────────────────────────── */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.venue-card {
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: statIn 0.4s ease both;
}
.venue-card:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,0,0,0.35); }

.venue-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.venue-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.15rem; }
.venue-city { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }

.venue-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.venue-stat {
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 0.5rem 0.6rem;
  border: 1px solid var(--glass-border);
}
.venue-stat-label { font-size: 0.67rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.venue-stat-value { font-size: 0.88rem; font-weight: 700; margin-top: 0.1rem; color: var(--gold); }

.venue-amenities { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.amenity-tag {
  font-size: 0.7rem; padding: 0.2rem 0.6rem;
  background: var(--blue-dim); color: var(--blue);
  border-radius: 20px; border: 1px solid rgba(110,180,255,0.15);
}

.venue-actions { display: flex; align-items: center; gap: 0.6rem; }
.venue-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
  cursor: pointer;
}
.toggle-switch {
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--glass-border); position: relative;
  transition: background var(--transition); flex-shrink: 0;
  border: none; cursor: pointer; outline: none; padding: 0;
}
.toggle-switch::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-muted); top: 3px; left: 3px;
  transition: transform var(--transition), background var(--transition);
}
.toggle-switch.on { background: rgba(61,255,160,0.3); }
.toggle-switch.on::after { background: var(--green); transform: translateX(16px); }

/* ── SEARCH BAR ──────────────────────────────────────────────────────── */
.search-bar-wrap {
  position: relative; margin-bottom: 1rem;
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-input {
  width: 100%; max-width: 400px;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
  outline: none; transition: all var(--transition);
}
.search-input:focus {
  border-color: var(--gold); background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── EMPTY STATE ──────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 4rem 2rem; color: var(--text-muted);
  text-align: center;
}
.empty-state svg { opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* ── REVENUE ─────────────────────────────────────────────────────────── */
.top-venue-highlight {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}
.top-venue-name { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.4rem; }
.top-venue-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.top-venue-stat { font-size: 0.82rem; color: var(--text-sec); }
.top-venue-stat span { color: var(--text-primary); font-weight: 600; }

.revenue-bar {
  display: flex; align-items: center; gap: 0.6rem;
  height: 8px; background: var(--glass-bg); border-radius: 4px; overflow: hidden;
}
.revenue-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px; transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ── SETTINGS ──────────────────────────────────────────────────────────── */
.settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.2rem;
}
.settings-card { padding: 1.6rem; }
.settings-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem; color: var(--text-primary);
}
.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.form-success {
  font-size: 0.82rem; color: var(--green);
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--green-dim);
  border: 1px solid rgba(61,255,160,0.2);
  border-radius: var(--radius-sm);
}
.form-error {
  font-size: 0.82rem; color: var(--red);
  padding: 0.6rem 0.8rem;
  background: var(--red-dim);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-sm);
}

/* ── MODAL DIALOG ──────────────────────────────────────────────────────── */
.portal-dialog {
  border: none; background: transparent; padding: 0;
  max-width: 600px; width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.portal-dialog::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.portal-dialog[open] {
  animation: dialogIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dialog-inner {
  border-radius: var(--radius-lg);
  overflow-y: auto; max-height: calc(100vh - 2rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0;
  background: rgba(13,10,37,0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}
.dialog-title { font-size: 1rem; font-weight: 700; }
.dialog-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.dialog-close:hover { color: var(--text-primary); background: var(--glass-bg); }

.venue-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.dialog-actions {
  display: flex; gap: 0.75rem; justify-content: flex-end;
  padding-top: 0.5rem; border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
}

/* ── TOAST ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 9000;
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.toast-success { border-color: rgba(61,255,160,0.3); color: var(--green); }
.toast.toast-error   { border-color: rgba(255,82,82,0.3);  color: var(--red); }
.toast.toast-info    { border-color: rgba(201,168,76,0.3); color: var(--gold); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── CHART CARD ─────────────────────────────────────────────────────── */
.chart-card { overflow: hidden; }

/* ── CUSTOM SCROLLBARS ──────────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-actions-card { order: -1; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .sidebar {
    transform: translateX(-100%);
    position: fixed; z-index: 300;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay { z-index: 299; }

  .main-wrap { margin-left: 0; }
  .menu-toggle { display: flex; }

  .topbar-date { display: none; }
  .views-container { padding: 1rem; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bookings-grid { grid-template-columns: 1fr; }
  .venues-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portal-dialog { width: calc(100% - 1rem); }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .view-title { font-size: 1.25rem; }
  .stat-value { font-size: 1.5rem; }
  .login-card { padding: 1.75rem 1.25rem; }
}

/* ── BLOCK DATES CALENDAR ──────────────────────────────────────────── */
.block-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.block-cal-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.block-cal-legend {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-sec);
}
.bcl-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bcl-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.bcl-free {
  background: rgba(61,255,160,0.3);
  border: 1px solid rgba(61,255,160,0.5);
}
.bcl-blocked {
  background: #1a1a1a;
  border: 1px solid #555;
}
.block-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.block-cal-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.3rem 0;
  text-transform: uppercase;
}
.block-cal-cell {
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(61,255,160,0.06);
  border: 1px solid rgba(61,255,160,0.12);
  color: var(--text-primary);
}
.block-cal-cell:hover:not(.past):not(.empty) {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  transform: scale(1.08);
}
.block-cal-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.block-cal-cell.past {
  opacity: 0.25;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
  border-color: transparent;
}
.block-cal-cell.blocked {
  background: #1a1a1a;
  border-color: #555;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.block-cal-cell.blocked:hover:not(.past) {
  background: #2a2a2a;
  border-color: #888;
}
.block-cal-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ── UTILITY ANIMATION DELAYS FOR STAT CARDS ─── */
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
