/* ============================================================
   ✨ Performative UI — AI-Native Casino Operating System
   "AI-native components that signal how oversubscribed your
   funding round is."
   Dark navy base · aurora gradient mesh · glassmorphism ·
   gradient text · pills · sparkles · pulsing status dots.
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:            #050510;
  --bg-2:          #0a0a1c;
  --ink:           #e8eaff;
  --text:          #e8eaff;
  --muted:         #9aa0c3;
  --indigo:        #6366f1;
  --indigo-hi:     #818cf8;
  --violet:        #a855f7;
  --violet-hi:     #c084fc;
  --cyan:          #22d3ee;
  --pink:          #ec4899;
  --success:       #34d399;
  --danger:        #fb7185;
  --glass:         rgba(255, 255, 255, 0.05);
  --glass-hi:      rgba(255, 255, 255, 0.08);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --grad:          linear-gradient(92deg, #818cf8 0%, #c084fc 35%, #f0abfc 65%, #22d3ee 100%);
  --grad-cta:      linear-gradient(92deg, #6366f1, #a855f7 50%, #ec4899);
  --glow-indigo:   0 0 40px rgba(99, 102, 241, 0.35);
  --glow-violet:   0 0 40px rgba(168, 85, 247, 0.30);
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.55);
  --radius:        18px;
}

/* ── Body & aurora mesh ─────────────────────────────────────── */
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Aurora: three giant blurred gradient blobs drifting on GPU */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}

.aurora-b1 {
  top: -25vmax; left: -15vmax;
  background: radial-gradient(circle at 35% 35%, #4f46e5 0%, transparent 65%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}
.aurora-b2 {
  bottom: -28vmax; right: -18vmax;
  background: radial-gradient(circle at 60% 50%, #a855f7 0%, #ec4899 45%, transparent 70%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}
.aurora-b3 {
  top: 20vh; left: 45vw;
  width: 44vmax; height: 44vmax;
  background: radial-gradient(circle at 50% 50%, #0891b2 0%, transparent 65%);
  opacity: 0.22;
  animation: aurora-drift-3 38s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(10vw, 8vh, 0) scale(1.15); }
}
@keyframes aurora-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-8vw, -10vh, 0) scale(0.95); }
}
@keyframes aurora-drift-3 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-12vw, 12vh, 0); }
}

/* Sparkle canvas (FloatingSparkles) */
#sparkle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── App shell ──────────────────────────────────────────────── */
.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ── Sticky banner ──────────────────────────────────────────── */
.sticky-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  color: #fff;
  background: linear-gradient(92deg, rgba(99,102,241,0.92), rgba(168,85,247,0.92) 50%, rgba(236,72,153,0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}
.sticky-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 800;
}

/* ── Gradient text (GradientText) ───────────────────────────── */
.gradient-text,
h1.page-title,
h2,
.section-title,
.brand {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Eyebrow pill (EyebrowPill) ─────────────────────────────── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
  color: var(--violet-hi);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}
.eyebrow-pill-cyan {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan);
}

/* ── Status dot (StatusDot) ─────────────────────────────────── */
.status-dot-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: dot-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
.status-dot-busy {
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6);
  animation-name: dot-pulse-pink;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes dot-pulse-pink {
  0%   { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* ── Glass card (GlassCard) — base recipe ───────────────────── */
.glass-card,
.panel,
.entity-card,
.entity-card-wrap,
.detail-actions,
.detail-section,
.edit-form-wrap,
.floor-card,
.mock-ide,
.chat-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel { padding: 1.25rem; }

.panel-inner {
  position: relative;
  border-radius: 12px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}

/* ── Top bar / navbar ───────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: 2.2rem;
  z-index: 50;
  background: rgba(10, 10, 28, 0.65);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), var(--glow-indigo);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { filter: brightness(1.2); }

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-links .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  transition: color 140ms ease, background 140ms ease;
}

.nav-links .nav-link:hover {
  color: #fff;
  background: var(--glass-hi);
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.6);
}

.nav-link-game {
  color: var(--cyan) !important;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.nav-link-game:hover {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.1) !important;
}

/* ── Page content & footer ──────────────────────────────────── */
.page-content { padding-top: 0.5rem; padding-bottom: 3rem; }

.site-footer {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.compliance-badge {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
}

/* ── Headings ───────────────────────────────────────────────── */
h1.page-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h3 { color: var(--text); letter-spacing: 0.01em; margin: 0 0 0.5rem; }

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-bar {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--indigo-hi); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--violet-hi); }
.breadcrumb-bar .breadcrumb-sep,
.breadcrumb-bar .sep { color: var(--violet); }
.breadcrumb-bar .current { color: var(--text); }

/* ── Entity grid + cards (index pages) ──────────────────────── */
.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.entity-card {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Inside .entity-card-wrap (index pages with Uredi/Obriši) the glass
   surface lives on the WRAP, so the .card-actions row — a sibling of
   the <a>, since forms can't nest inside links — stays INSIDE the
   panel. The inner card link becomes a transparent region. */
.entity-card-wrap > .entity-card {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding-bottom: 0.85rem;
}

/* shimmer sweep on hover */
.entity-card::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  transition: left 450ms ease;
  pointer-events: none;
}
.entity-card:hover::after,
.entity-card-wrap:hover .entity-card::after { left: 130%; }

.entity-card:hover { color: inherit; }

.entity-card-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow), var(--glow-violet);
}

.entity-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  /* neutralize Bootstrap's .card-header */
  padding: 0;
  background: none;
  border-bottom: none;
}

.entity-card .card-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0; /* also overrides Bootstrap's .card-title margin */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.entity-card .card-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.entity-card .card-footer-bar {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.76rem;
  color: var(--indigo-hi);
  letter-spacing: 0.04em;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-available {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: var(--success);
}

.badge-unavailable {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: var(--violet-hi);
}

.badge-tx-danger {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.5);
  color: var(--danger);
}

/* span-only variants used in details pages */
span.badge-available, span.badge-unavailable, span.badge-purple {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Data table ─────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }

.data-table thead tr { border-bottom: 1px solid rgba(192, 132, 252, 0.3); }

.data-table th {
  text-align: left;
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.data-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
}

.data-table tbody tr:hover td { background: rgba(168, 85, 247, 0.05); }

.data-table a { color: var(--indigo-hi); }

/* Keep the nowrap "Akcije" column inside the glass panel: let the
   panel scroll horizontally instead of letting the table spill out. */
.panel:has(> .data-table),
.detail-section:has(.data-table) { overflow-x: auto; }

.data-table .d-inline { margin: 0; }

.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.58rem 1.25rem;
  background: var(--glass-hi);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  color: #fff;
  background: var(--glass-hi);
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}
.btn:active { transform: scale(0.985); }

/* shimmer sweep */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 450ms ease;
  pointer-events: none;
}
.btn:hover::before { left: 140%; }

.btn-primary {
  border-color: transparent;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.45);
  animation: cta-glow 2.4s ease-in-out infinite;
}
.btn-primary:hover { border-color: transparent; background: var(--grad-cta); color: #fff; }

.btn-accent {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
}
.btn-accent:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.45);
}

.btn-back {
  border-color: var(--glass-border);
  color: var(--muted);
  background: var(--glass);
}
.btn-back:hover { color: #fff; background: var(--glass-hi); }

.btn-sm {
  padding: 0.32rem 0.8rem;
  font-size: 0.74rem;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.35); }
  50%      { box-shadow: 0 0 34px rgba(236, 72, 153, 0.55); }
}

/* ── Detail page layout ─────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.detail-section { padding: 1.25rem; margin-bottom: 1rem; }

.detail-row { margin-bottom: 0.9rem; }

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.2rem;
}

.detail-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.detail-value a { color: var(--indigo-hi); }

/* Glass action bar (shares the glass-card recipe above) so the
   Uredi / Obriši buttons sit inside a panel, not loose on the page. */
.detail-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.85rem 1.15rem;
}
.detail-actions form { margin: 0; }

/* ── Floor / deployment cards (home) ────────────────────────── */
.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.floor-card {
  padding: 1.15rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.floor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: var(--shadow), var(--glow-indigo);
}

.floor-card .casino-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.floor-card .casino-name a {
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.floor-card .casino-address {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.table-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.table-chip {
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: default;
}
.table-chip.available {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--success);
}
.table-chip.unavailable {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.floor-card .view-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo-hi);
  text-decoration: none;
}
.floor-card .view-link:hover { color: var(--violet-hi); }

/* ── Stat pills / counters (StatCounter) ────────────────────── */
.stat-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.stat-pill {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.65rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 96px;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-pill .stat-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-pill .stat-value {
  font-family: 'Space Grotesk', 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-pill.stat-pill-danger { border-color: rgba(236, 72, 153, 0.4); }

.stat-in-use { animation: none; }

/* Hero stat counter row */
.stat-counter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}
.stat-counter {
  flex: 1 1 180px;
  max-width: 240px;
  text-align: center;
  padding: 1.1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-counter-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-counter-label {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Hero (landing) ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 1.1rem 0 0.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-roll {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  min-height: 2.2em;
}

.word-roll {
  display: inline-block;
  min-width: 9ch;
  text-align: left;
  background: linear-gradient(92deg, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: word-roll-in 400ms ease;
}
@keyframes word-roll-in {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 3.2em;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.hero-ctas .btn { font-size: 0.95rem; padding: 0.75rem 1.7rem; }

/* ── Token stream (TokenStream) ─────────────────────────────── */
.token-stream { white-space: pre-wrap; }
.token-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--violet-hi);
  border-radius: 2px;
  animation: caret-blink 0.85s step-end infinite;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Logo marquee (LogoMarquee) ─────────────────────────────── */
.logo-marquee {
  margin: 2.5rem auto 1rem;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-marquee-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.logo-marquee-track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.logo-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 234, 255, 0.45);
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Mock IDE (MockIDE) ─────────────────────────────────────── */
.mock-ide {
  max-width: 620px;
  margin: 2.5rem auto;
  overflow: hidden;
  text-align: left;
}
.mock-ide-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}
.mock-ide-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-ide-dot.r { background: #fb7185; }
.mock-ide-dot.y { background: #facc15; }
.mock-ide-dot.g { background: #34d399; }
.mock-ide-file {
  margin-left: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.mock-ide-body {
  padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-x: auto;
}
.code-kw  { color: var(--violet-hi); }
.code-fn  { color: var(--cyan); }
.code-str { color: var(--success); }
.code-cm  { color: var(--muted); font-style: italic; }
.code-num { color: var(--pink); }

/* ── Waitlist form (WaitlistForm) ───────────────────────────── */
.waitlist-card {
  max-width: 560px;
  margin: 2.5rem auto;
  padding: 2rem;
  text-align: center;
}
.waitlist-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form .form-input { flex: 1 1 220px; max-width: 320px; }
.waitlist-success {
  margin-top: 1rem;
  color: var(--success);
  font-weight: 700;
  font-size: 0.92rem;
  animation: word-roll-in 350ms ease;
}
.waitlist-note {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ── Chat FAB + panel (ChatFAB / ChatBubble) ────────────────── */
.chat-fab {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.45rem;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
  animation: cta-glow 2.4s ease-in-out infinite;
  transition: transform 140ms ease;
}
.chat-fab:hover { transform: scale(1.08); }

.chat-panel {
  position: fixed;
  bottom: 5.6rem;
  right: 1.4rem;
  z-index: 90;
  width: min(330px, calc(100vw - 2.8rem));
  padding: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; animation: chat-pop 220ms ease; }
@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 700;
  font-size: 0.85rem;
}
.chat-header .gradient-text { font-family: 'Space Grotesk', sans-serif; }

.chat-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
}

.chat-msg {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 14px 14px 14px 4px;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}
.chat-msg-user {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.4);
}

/* ── Chat markdown — rendered AI replies ────────────────────── */
.chat-md {
  display: block;
  animation: chat-md-fade 260ms ease;
}
@keyframes chat-md-fade {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

.chat-msg p { margin: 0 0 0.45rem; }
.chat-msg p:last-child { margin-bottom: 0; }

.chat-msg ul {
  margin: 0.25rem 0 0.45rem;
  padding-left: 1.1rem;
}
.chat-msg ul:last-child { margin-bottom: 0; }
.chat-msg li { margin: 0.15rem 0; }

.chat-msg code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--violet-hi);
}

.chat-md-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.35rem 0 0.45rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}
.chat-md-table-wrap:last-child { margin-bottom: 0; }
.chat-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  line-height: 1.35;
}
.chat-md-table th,
.chat-md-table td {
  padding: 0.3rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.chat-md-table th {
  background: var(--glass);
  color: var(--indigo-hi);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chat-md-table tr:last-child td { border-bottom: none; }

.chat-msg-typing {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: max-content;
  padding: 0.7rem 0.8rem;
}
.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-dot-bounce 1.2s ease-in-out infinite;
}
.chat-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--glass-border);
}
.chat-input-row .form-input { flex: 1; font-size: 0.82rem; padding: 0.45rem 0.7rem; }
.chat-send {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ── Edit / create form ─────────────────────────────────────── */
.edit-form-wrap {
  max-width: 540px;
  padding: 1.75rem 2rem;
  margin-top: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}

.form-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(5, 5, 16, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.58rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 0 18px rgba(168, 85, 247, 0.18);
}

.form-input[type="date"],
.form-input[type="datetime-local"] { color-scheme: dark; }

.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0c3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}
.form-select option { background: #0a0a1c; color: var(--text); }

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

.form-validation {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1.1em;
}

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

/* ── Checkbox field ─────────────────────────────────────────── */
.form-check-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--violet);
  cursor: pointer;
}
.form-check-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* ── Entity card wrapper + actions ──────────────────────────── */
/* .entity-card-wrap carries the glass-card recipe (see group above)
   so both the card link and the action buttons share one panel. */
.entity-card-wrap {
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.entity-card-wrap .entity-card { flex: 1; }

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 1.15rem 1.05rem;
}
.card-actions form { margin: 0; }

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar { margin-bottom: 1rem; position: relative; }
.search-bar .form-input { max-width: 420px; }

/* ── Autocomplete ───────────────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 28, 0.95);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 12px; max-height: 200px; overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
}
.autocomplete-item {
  padding: 0.55rem 0.85rem; cursor: pointer; color: var(--text); font-size: 0.9rem;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: rgba(168, 85, 247, 0.16); color: #fff;
}
.autocomplete-error { color: var(--danger); font-size: 0.8rem; min-height: 1.1em; }

/* ── Index action bar ───────────────────────────────────────── */
.index-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.index-eyebrow { margin-bottom: 0.6rem; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .top-bar { position: static; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .entity-grid { grid-template-columns: 1fr; }
  .floor-grid  { grid-template-columns: 1fr; }
}

/* ── Custom date picker ─────────────────────────────────────── */
.datepicker-wrap { position: relative; }

.datepicker-display { cursor: pointer; caret-color: transparent; }

.datepicker-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  width: 280px;
  background: rgba(10, 10, 28, 0.95);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), var(--glow-violet);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem;
  user-select: none;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.dp-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.dp-nav {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--violet-hi);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.dp-nav:hover { background: rgba(168, 85, 247, 0.15); border-color: rgba(192, 132, 252, 0.6); }

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
}

.dp-day-head {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.2rem 0;
}

.dp-cell {
  text-align: center;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 0.3rem 0;
  transition: background 100ms, color 100ms;
}

.dp-day { cursor: pointer; color: var(--text); }
.dp-day:hover { background: rgba(168, 85, 247, 0.18); color: #fff; }

.dp-selected {
  background: var(--grad-cta) !important;
  color: #fff !important;
  font-weight: 700;
}

.dp-today {
  border: 1px solid rgba(34, 211, 238, 0.6);
  color: var(--cyan);
}

.dp-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
  justify-content: center;
}

.dp-time-label { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.dp-time-input {
  width: 46px;
  text-align: center;
  background: rgba(5, 5, 16, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 0.25rem 0.3rem;
  outline: none;
  -moz-appearance: textfield;
}
.dp-time-input::-webkit-inner-spin-button,
.dp-time-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dp-time-input:focus { border-color: rgba(192, 132, 252, 0.65); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15); }

.dp-time-sep { color: var(--violet-hi); font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 700; }

.dp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.dp-clear {
  background: none;
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 999px;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.dp-clear:hover { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.7); }

/* ============================================================
   Identity (auth pages, login partial) & attachments
   ============================================================ */

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.auth-eyebrow { text-align: center; margin-bottom: 0.9rem; }

.auth-intro {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.auth-intro strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-hype {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  margin: -0.4rem 0 1.1rem;
}

.validation-summary ul,
.validation-summary-errors ul {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem 0.65rem 2rem;
  list-style: square;
  color: var(--danger);
  font-size: 0.85rem;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 12px;
}
.validation-summary-valid ul { display: none; }

.form-check-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.form-checkbox {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 5px;
  background: rgba(5, 5, 16, 0.55);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.form-checkbox::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--grad-cta);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
  transform: scale(0);
  transition: transform 100ms ease;
}
.form-checkbox:checked::before { transform: scale(1); }

.form-check-field .form-check-label {
  color: var(--text);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.45), transparent);
}

.btn-google {
  width: 100%;
  text-align: center;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}
.btn-google:hover { box-shadow: 0 0 28px rgba(34, 211, 238, 0.4); border-color: rgba(34, 211, 238, 0.8); }

.btn-google-mark {
  display: inline-grid;
  place-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: rgba(232, 234, 255, 0.92);
  color: #312e81;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  vertical-align: -0.3em;
}

.auth-alt-link {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.auth-alt-link a {
  color: var(--violet-hi);
  text-decoration: none;
  font-weight: 600;
}
.auth-alt-link a:hover { color: var(--cyan); }

/* ── Access denied (403) ────────────────────────────────────── */
.access-denied {
  max-width: 520px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding: 2.25rem 2rem;
  border-color: rgba(251, 113, 133, 0.35);
  box-shadow: var(--shadow), 0 0 40px rgba(251, 113, 133, 0.12);
}

.access-denied-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(92deg, #fb7185, #ec4899, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.5rem;
}

.access-denied .page-title { justify-content: center; }

.access-denied-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.75rem 0 1.5rem;
}

/* ── Login partial (navbar) ─────────────────────────────────── */
.login-partial {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.login-user {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.login-user strong {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logout-form { margin: 0; display: inline; }

.btn-logout {
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  border-color: rgba(251, 113, 133, 0.45);
  color: var(--danger);
  background: rgba(251, 113, 133, 0.06);
}
.btn-logout:hover {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.75);
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.25);
}

.auth-link-accent {
  color: var(--violet-hi) !important;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 999px;
}
.auth-link-accent:hover {
  color: #fff !important;
  border-color: rgba(192, 132, 252, 0.8);
}

/* ── Attachments (Dropzone + list) ──────────────────────────── */
.attachment-section { margin-top: 1.5rem; max-width: 720px; }

.dropzone#attachmentDz {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(192, 132, 252, 0.35);
  border-radius: 16px;
  min-height: 120px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dropzone#attachmentDz:hover,
.dropzone#attachmentDz.dz-drag-hover {
  border-color: rgba(192, 132, 252, 0.75);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
}

.dropzone#attachmentDz .dz-message {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 1.5em 0;
}

.dropzone#attachmentDz .dz-preview .dz-image {
  border-radius: 12px;
  background: linear-gradient(145deg, #1e1b4b, #312e81);
}

.dropzone#attachmentDz .dz-preview .dz-details {
  color: var(--text);
  font-size: 0.8rem;
}

.attachment-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  margin: 0.25rem 0;
}

.attachment-link {
  color: var(--indigo-hi);
  text-decoration: none;
  font-weight: 600;
}
.attachment-link:hover { color: var(--cyan); }

.attachment-actions { text-align: right; white-space: nowrap; }
.attachment-actions > * + * { margin-left: 0.45rem; }

.btn-attachment-download {
  display: inline-block;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(52, 211, 153, 0.08);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.btn-attachment-download:hover {
  color: var(--success);
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.btn-attachment-delete {
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(251, 113, 133, 0.08);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.btn-attachment-delete:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.3);
}

/* ── Entrance animation hook (JS adds .deal-in-ready) ───────── */
.deal-in-ready .entity-card-wrap,
.deal-in-ready .floor-card {
  animation: card-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.deal-in-ready .entity-card-wrap:nth-child(2),
.deal-in-ready .floor-card:nth-child(2) { animation-delay: 60ms; }
.deal-in-ready .entity-card-wrap:nth-child(3),
.deal-in-ready .floor-card:nth-child(3) { animation-delay: 120ms; }
.deal-in-ready .entity-card-wrap:nth-child(4),
.deal-in-ready .floor-card:nth-child(4) { animation-delay: 180ms; }
.deal-in-ready .entity-card-wrap:nth-child(n+5),
.deal-in-ready .floor-card:nth-child(n+5) { animation-delay: 240ms; }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion: disable the theatre ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .aurora-blob { animation: none !important; }
  .logo-marquee-track { animation: none !important; }
  #sparkle-canvas { display: none !important; }
}
