/* ================================================================
   River Club — Admin Design System
   Theme: Navy / Cream / Gold
   Font: Gill Sans Nova (Adobe Typekit)
   ================================================================ */

@import url("https://use.typekit.net/amy0ihn.css");

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --navy: #1a1a2e;
  --navy-dark: #141428;
  --navy-light: #242445;
  --navy-lighter: #2e2e58;
  --navy-glass: rgba(26, 26, 46, 0.72);

  --cream: #f0ede4;
  --cream-muted: rgba(240, 237, 228, 0.4);
  --cream-subtle: rgba(240, 237, 228, 0.15);
  --cream-10: rgba(240, 237, 228, 0.10);
  --cream-06: rgba(240, 237, 228, 0.06);

  --gold: #d4af4f;
  --gold-dim: rgba(212, 175, 79, 0.3);
  --gold-glow: rgba(212, 175, 79, 0.20);
  --gold-hover: #e0be5a;

  --green: #4caf50;
  --red: #e74c3c;
  --blue: #2b3a8f;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(240, 237, 228, 0.06);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 237, 228, 0.06);
  --shadow-glow-gold: 0 0 24px rgba(212, 175, 79, 0.2);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --bottom-nav-height: 64px;
}

/* ── Keyframe Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 175, 79, 0.15); }
  50%      { box-shadow: 0 0 20px rgba(212, 175, 79, 0.4); }
}

@keyframes ripple {
  from { transform: scale(0);   opacity: 0.3; }
  to   { transform: scale(4);   opacity: 0; }
}

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

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

@keyframes logoZoom {
  from { transform: scale(1.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(-12px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Stagger Classes ───────────────────────────────────────────── */
.stagger-1 { animation-delay: 0.06s; }
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.18s; }
.stagger-4 { animation-delay: 0.24s; }
.stagger-5 { animation-delay: 0.30s; }
.stagger-6 { animation-delay: 0.36s; }
.stagger-7 { animation-delay: 0.42s; }
.stagger-8 { animation-delay: 0.48s; }

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: "gill-sans-nova", sans-serif;
  min-height: 100dvh;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Focus States ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Glass Component ───────────────────────────────────────────── */
.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ── Page Transitions ──────────────────────────────────────────── */
.page-enter {
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

.page-exit {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

/* ================================================================
   LAYOUT
   ================================================================ */

.admin-shell {
  display: flex;
  min-height: 100dvh;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  border-right: 1px solid var(--cream-06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.sidebar-logo {
  width: 120px;
  margin: 0 auto 0.35rem;
}

.sidebar-label {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Nav Links ─────────────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease-smooth);
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--cream);
  background: var(--cream-subtle);
  transform: translateX(4px);
}

.nav-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--cream-subtle);
  box-shadow: inset 3px 0 12px rgba(212, 175, 79, 0.08);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ── Nav Groups & Submenus ─────────────────────────────────────── */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-parent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--cream-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: all 0.25s var(--ease-smooth);
  border-left: 3px solid transparent;
}

.nav-parent:hover {
  color: var(--cream);
  background: var(--cream-subtle);
}

.nav-parent svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.nav-parent .chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav-group.open .nav-parent .chevron {
  transform: rotate(180deg);
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.nav-group.open .nav-submenu {
  max-height: 200px;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem 0.5rem 3rem;
  color: var(--cream-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
}

.nav-sub-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream-muted);
  flex-shrink: 0;
  opacity: 0.4;
  transition: all 0.2s;
}

.nav-sub-link:hover {
  color: var(--cream);
}

.nav-sub-link:hover::before {
  opacity: 0.8;
}

.nav-sub-link.active {
  color: var(--gold);
}

.nav-sub-link.active::before {
  background: var(--gold);
  opacity: 1;
}

/* ── Sidebar Footer ────────────────────────────────────────────── */
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--cream-06);
}

.sidebar-user {
  font-size: 0.8rem;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.btn-logout {
  background: none;
  border: 1px solid var(--cream-subtle);
  color: var(--cream-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-logout:hover {
  color: var(--cream);
  border-color: var(--cream-muted);
}

/* ── Main Content ──────────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  min-height: 100dvh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ================================================================
   MOBILE BOTTOM NAV
   ================================================================ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border-top: 1px solid var(--cream-10);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.6rem;
  color: var(--cream-muted);
  background: none;
  border: none;
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.bottom-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.bottom-tab.active {
  color: var(--gold);
}

.bottom-tab.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Bottom Sheet ──────────────────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 120;
  padding: 0.75rem 1.25rem 1.5rem;
  max-height: 70dvh;
  overflow-y: auto;
  transition: transform 0.4s var(--ease-out-expo);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--cream-muted);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* ================================================================
   STAT CARDS
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-smooth);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover), var(--gold));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 79, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.stat-value {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--cream-muted);
}

.stat-bar {
  height: 4px;
  background: var(--cream-06);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.6s var(--ease-out-expo);
}

/* ================================================================
   PANELS / CARDS
   ================================================================ */

.panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cream-06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel-title {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.panel-body {
  padding: 1.25rem;
}

/* ================================================================
   EVENT CARDS
   ================================================================ */

.event-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-smooth);
}

.event-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-elevated);
}

.event-card-image {
  height: 180px;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.event-card:hover .event-card-image img {
  transform: scale(1.04);
}

.event-card-body {
  padding: 1.25rem;
}

.event-card-title {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.event-card-meta {
  font-size: 0.8rem;
  color: var(--cream-muted);
  margin-bottom: 0.75rem;
}

.event-card-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.event-card-progress {
  height: 3px;
  background: var(--cream-06);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.event-card-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.6s var(--ease-out-expo);
}

/* ================================================================
   TABLES
   ================================================================ */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  border-bottom: 1px solid var(--cream-06);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--navy-glass);
  z-index: 2;
}

tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--cream-06);
  color: var(--cream);
  white-space: nowrap;
}

tbody tr {
  transition: all 0.2s var(--ease-smooth);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--cream-subtle);
  transform: translateX(3px);
}

.table-bar {
  display: inline-block;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  vertical-align: middle;
  min-width: 4px;
}

/* ── Responsive Table → Cards ──────────────────────────────────── */
@media (max-width: 768px) {
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody tr {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--cream-10);
    border-radius: var(--radius-md);
    background: var(--navy-glass);
  }

  .table-wrap tbody tr:hover {
    transform: none;
  }

  .table-wrap tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--cream-06);
    white-space: normal;
  }

  .table-wrap tbody td:last-child {
    border-bottom: none;
  }

  .table-wrap tbody td::before {
    content: attr(data-label);
    font-family: "gill-sans-nova-condensed", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-muted);
    flex-shrink: 0;
    margin-right: 1rem;
  }
}

/* ================================================================
   BADGES
   ================================================================ */

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "gill-sans-nova-condensed", sans-serif;
  white-space: nowrap;
}

.badge-paid {
  background: rgba(76, 175, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.1);
}

.badge-pending {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  animation: pulseGlow 2s infinite;
}

.badge-upcoming {
  background: rgba(43, 58, 143, 0.3);
  color: #7b8ddb;
  border: 1px solid rgba(43, 58, 143, 0.5);
}

.badge-past {
  background: var(--cream-06);
  color: var(--cream-muted);
  border: 1px solid var(--cream-06);
}

.badge-sold-out {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream-subtle);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: var(--cream-muted);
  background: var(--cream-subtle);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.btn-danger:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.5);
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
}

/* ── Ripple Effect ─────────────────────────────────────────────── */
.ripple {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.35);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

/* ================================================================
   FORMS
   ================================================================ */

.form-row {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--navy);
  border: 1px solid var(--cream-subtle);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: "gill-sans-nova", sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23f0ede4' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Float Label Pattern ───────────────────────────────────────── */
.form-float-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-float-group .form-input,
.form-float-group .form-textarea {
  padding-top: 1.2rem;
  padding-bottom: 0.35rem;
}

.form-float-label {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.85rem;
  color: var(--cream-muted);
  pointer-events: none;
  transition: all 0.2s var(--ease-smooth);
  transform-origin: left center;
}

.form-float-group .form-textarea ~ .form-float-label {
  top: 1rem;
  transform: translateY(0);
}

.form-float-group .form-input:focus ~ .form-float-label,
.form-float-group .form-input:not(:placeholder-shown) ~ .form-float-label,
.form-float-group .form-textarea:focus ~ .form-float-label,
.form-float-group .form-textarea:not(:placeholder-shown) ~ .form-float-label {
  top: 0.45rem;
  transform: translateY(0) scale(0.75);
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ================================================================
   MODAL
   ================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  width: 100%;
  max-width: 560px;
  max-height: 85dvh;
  overflow-y: auto;
  animation: scaleIn 0.3s var(--ease-out-expo) both;
}

.modal-handle {
  display: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cream-06);
}

.modal-close {
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--cream);
}

.modal-body {
  padding: 1.25rem;
}

/* ── Modal → Bottom Sheet on Mobile ────────────────────────────── */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: 100%;
    max-height: 90dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUp 0.4s var(--ease-out-expo) both;
  }

  .modal-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--cream-muted);
    border-radius: 2px;
    margin: 0.75rem auto 0;
  }
}

/* ================================================================
   ACCORDION
   ================================================================ */

.accordion-section {
  border-bottom: 1px solid var(--cream-subtle);
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--cream);
  font-family: "gill-sans-nova", sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--cream-06);
}

.accordion-header .chevron {
  width: 14px;
  height: 14px;
  stroke: var(--cream-muted);
  fill: none;
  stroke-width: 2;
  transition: transform 0.35s var(--ease-out-expo);
  flex-shrink: 0;
}

.accordion-section.open .accordion-header .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.accordion-section.open .accordion-body {
  max-height: 600px;
}

.accordion-content {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
  line-height: 1.6;
}

/* ================================================================
   GALLERY GRID + LIGHTBOX
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: rgba(231, 76, 60, 0.85);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .delete-btn {
  opacity: 1;
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: scaleIn 0.3s var(--ease-out-expo) both;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: var(--navy-lighter);
}

.lightbox-nav--prev {
  left: 1rem;
}

.lightbox-nav--next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--cream);
}

/* ================================================================
   UPLOAD ZONE
   ================================================================ */

.upload-zone {
  border: 2px dashed var(--cream-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  color: var(--cream-muted);
  font-size: 0.85rem;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 79, 0.05);
}

.upload-zone svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 0.5rem;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.upload-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.upload-progress {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-progress-circle {
  width: 32px;
  height: 32px;
  border: 2px solid var(--cream-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ================================================================
   SKELETON LOADERS
   ================================================================ */

.skeleton {
  background: var(--cream-06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 237, 228, 0.04),
    transparent
  );
  background-size: 400px 100%;
  animation: shimmer 1.8s infinite linear;
}

.skeleton-text {
  height: 14px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.skeleton-text:nth-child(1) { width: 80%; }
.skeleton-text:nth-child(2) { width: 60%; }
.skeleton-text:nth-child(3) { width: 70%; }

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--cream);
  z-index: 400;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--ease-out-expo);
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success {
  border-left: 3px solid var(--green);
}

.toast-error {
  border-left: 3px solid var(--red);
}

.toast-warning {
  border-left: 3px solid var(--gold);
}

.toast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cream-muted);
  transform-origin: left;
  animation: toastProgress 3s linear forwards;
}

/* ================================================================
   ACTIVITY FEED
   ================================================================ */

.activity-feed {
  position: relative;
  padding-left: 1.5rem;
}

.activity-feed::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream-06);
}

.activity-item {
  position: relative;
  padding: 0.75rem 0 0.75rem 1rem;
  animation: slideInRight 0.4s var(--ease-out-expo) both;
}

.activity-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-muted);
  border: 2px solid var(--navy);
  z-index: 1;
}

.activity-item--gold::before {
  background: var(--gold);
}

.activity-time {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.activity-text {
  font-size: 0.85rem;
  color: var(--cream);
  line-height: 1.4;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(43, 58, 143, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 79, 0.08) 0%, transparent 50%),
    var(--navy);
  background-size: 200% 200%;
  animation: loginBg 20s ease infinite;
}

@keyframes loginBg {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.login-box {
  width: 100%;
  max-width: 380px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-logo {
  width: 160px;
  margin: 0 auto 0.5rem;
  animation: logoZoom 1.2s var(--ease-out-expo) both;
}

.login-label {
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.login-box .form-row {
  text-align: left;
}

.login-box .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.login-error {
  color: var(--red);
  font-size: 0.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-smooth), margin 0.3s;
  margin-bottom: 0;
}

.login-error.show {
  max-height: 3em;
  margin-bottom: 0.75rem;
}

/* ================================================================
   PREVIEW PANEL
   ================================================================ */

.preview-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  transform: translateX(100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border-left: 1px solid var(--cream-10);
  box-shadow: var(--shadow-elevated);
  z-index: 150;
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.preview-panel.open {
  transform: translateX(0);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cream-06);
}

.preview-frame {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame iframe {
  width: 375px;
  height: 100%;
  border: 2px solid var(--cream-subtle);
  border-radius: var(--radius-lg);
  background: #fff;
}

/* ================================================================
   LIVE EVENT CARD
   ================================================================ */

.live-card {
  position: relative;
  min-height: 200px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--navy-glass);
  border: 1px solid var(--cream-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.live-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.4);
  z-index: 0;
}

.live-card-content {
  position: relative;
  z-index: 1;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "gill-sans-nova-condensed", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseGlow 2s infinite;
}

.live-countdown {
  font-size: 0.8rem;
  color: var(--gold);
  font-family: "gill-sans-nova-condensed", sans-serif;
  letter-spacing: 0.08em;
}

/* ================================================================
   EMPTY STATES
   ================================================================ */

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--cream-subtle);
  fill: none;
  stroke-width: 1;
  margin-bottom: 1rem;
}

/* ── Spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--cream-06);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .main {
    margin-left: 0;
    padding: 1.25rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1.25rem);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .preview-panel {
    width: 100%;
  }

  .preview-frame iframe {
    width: 100%;
  }

  .toast {
    bottom: calc(var(--bottom-nav-height) + 0.75rem);
    right: 50%;
    transform: translateX(50%) translateY(20px);
    max-width: calc(100vw - 2rem);
  }

  .toast.show {
    transform: translateX(50%) translateY(0);
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Scrollbar Styling ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cream-subtle);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cream-muted);
}

/* ── Selection ─────────────────────────────────────────────────── */
::selection {
  background: rgba(212, 175, 79, 0.3);
  color: var(--cream);
}
