/* ============================================================
   Tiqeet Design System - main.css
   Light-first. Electric cyan. Editorial confidence.
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=JetBrains+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap");

/* Geist - secondary (body/UI) font, self-hosted (not on Google Fonts). */
@font-face {
  font-family: "Geist";
  src:
    url("/static/fonts/geist/Geist-Variable.woff2") format("woff2-variations"),
    url("/static/fonts/geist/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Material Symbols Outlined Icon Standard ──────────────── */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}
.material-symbols-outlined.fill {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Maple Brand Palette */
  --primary-dark: #131b17; /* Deep forest/charcoal black */
  --neutral-dark: #131b17;
  --neutral-black: #0e1411;
  --neutral-base: #1b2620;

  --primary: #e85938; /* Signature terracotta / warm coral */
  --primary-hover: #d44727;
  --primary-aa: #ff875c; /* Warm coral highlight */
  --primary-tint: #fdf3ee;
  --primary-light: #ffdac9;

  /* Maple secondary mint */
  --secondary: #6ee6d7; /* Fresh mint aqua */
  --secondary-hover: #58d8c8;
  --secondary-tint: #ebf9f7;

  /* Aliases to instantly recolor existing elements calling cyan */
  --cyan: #e85938;
  --cyan-hover: #d44727;
  --cyan-dark: #c84729;
  --cyan-glow: rgba(232, 89, 56, 0.18);

  --magenta: #e85938;
  --white: #ffffff;
  --bg-body: #ffffff;
  --surface: #ffffff;
  --surface-warm: #ffffff;
  --surface-sand: #ffffff;
  --surface-hover: #f5f4ef;

  --border: #e5e0d8;
  --border-light: #efeae3;
  --border-focus: #e85938;

  --text-primary: #131b17; /* Near black dark forest */
  --text-secondary: #56625c; /* Slate warm charcoal */
  --text-muted: #8c9791; /* Soft muted gray-green */
  --text-inverse: #ffffff;

  --success: #1e7e34;
  --warning: #d9822b;
  --danger: #c92a2a;
  --danger-bg: rgba(201, 42, 42, 0.08);
  --success-bg: rgba(30, 126, 52, 0.1);

  /* Semantic aliases used in dashboard.css */
  --bg-secondary: #ffffff;
  --border-color: #e5e0d8;

  /* Typography */
  --font-primary:
    "Bricolage Grotesque", "Geist", "Inter", system-ui, -apple-system,
    sans-serif;
  --font-sans:
    "Bricolage Grotesque", "Geist", "Inter", system-ui, -apple-system,
    sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(19, 27, 23, 0.05);
  --shadow-md: 0 4px 16px rgba(19, 27, 23, 0.08);
  --shadow-card: 0 2px 14px rgba(19, 27, 23, 0.06);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration: 220ms;
}

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}
input,
textarea,
select {
  font: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--cyan);
}
ul,
ol {
  list-style: none;
}

/* ── Typography scale ─────────────────────────────────────── */
.display {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1,
.h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h2,
.h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3,
.h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.body-text {
  font-size: 15px;
  line-height: 1.7;
}
.small {
  font-size: 13px;
  line-height: 1.5;
}
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mono {
  font-family: var(--font-mono);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.text-danger {
  color: var(--danger);
}
.text-success {
  color: var(--success);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 80px;
}
@media (max-width: 768px) {
  .section {
    padding-block: 48px;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn,
.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover,
.vd-btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.vd-btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.vd-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.25);
}

.btn:disabled,
.btn[aria-disabled="true"],
.vd-btn:disabled,
.vd-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary / Dark (Forest Charcoal CTA) */
.btn-primary,
.btn-dark,
.vd-btn-primary {
  background: var(--primary-dark, #131b17);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover,
.btn-dark:hover,
.vd-btn-primary:hover {
  background: #233029;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(19, 27, 23, 0.2);
}
.btn-primary:active,
.btn-dark:active,
.vd-btn-primary:active {
  background: #0e1411;
  transform: scale(0.98);
}

/* Accent / Terracotta / Brand (Signature Action CTA) */
.btn-accent,
.btn-terracotta,
.btn-brand,
.vd-btn-accent,
.feed-btn-primary {
  background: var(--primary, #e85938);
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}
.btn-accent:hover,
.btn-terracotta:hover,
.btn-brand:hover,
.vd-btn-accent:hover,
.feed-btn-primary:hover {
  background: var(--primary-hover, #d44727);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232, 89, 56, 0.28);
}
.btn-accent:active,
.btn-terracotta:active,
.btn-brand:active,
.vd-btn-accent:active,
.feed-btn-primary:active {
  background: #c84729;
  transform: scale(0.98);
}

/* Mint / Soft Accent */
.btn-mint {
  background: var(--secondary, #6ee6d7);
  color: var(--primary-dark, #131b17);
  border-color: transparent;
  font-weight: 700;
}
.btn-mint:hover {
  background: var(--secondary-hover, #58d8c8);
  color: var(--primary-dark, #131b17);
  box-shadow: 0 4px 14px rgba(110, 230, 215, 0.32);
}
.btn-mint:active {
  transform: scale(0.98);
}

/* Secondary / Outline (Clean White Surface with Warm Border) */
.btn-secondary,
.btn-outline,
.vd-btn-outline,
.vd-btn-secondary {
  background: #ffffff;
  color: var(--text-primary, #131b17);
  border: 1.5px solid var(--border-light, #efeae3);
  font-weight: 600;
}
.btn-secondary:hover,
.btn-outline:hover,
.vd-btn-outline:hover,
.vd-btn-secondary:hover {
  background: var(--bg-secondary, #faf7f2);
  border-color: rgba(19, 27, 23, 0.25);
  color: var(--text-primary, #131b17);
  box-shadow: 0 2px 8px rgba(19, 27, 23, 0.05);
}
.btn-secondary:active,
.btn-outline:active,
.vd-btn-outline:active,
.vd-btn-secondary:active {
  background: #efeae3;
  transform: scale(0.98);
}

/* Ghost */
.btn-ghost,
.vd-btn-ghost,
.feed-btn-ghost {
  background: transparent;
  color: var(--text-secondary, #56625c);
  border: 1.5px solid transparent;
  font-weight: 600;
}
.btn-ghost:hover,
.vd-btn-ghost:hover,
.feed-btn-ghost:hover {
  background: rgba(19, 27, 23, 0.05);
  color: var(--text-primary, #131b17);
}
.btn-ghost:active,
.vd-btn-ghost:active,
.feed-btn-ghost:active {
  background: rgba(19, 27, 23, 0.09);
  transform: scale(0.98);
}

/* Destructive / Danger */
.btn-danger,
.btn-destructive,
.vd-btn-danger {
  background: var(--danger, #c92a2a);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}
.btn-danger:hover,
.btn-destructive:hover,
.vd-btn-danger:hover {
  background: #b02525;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.25);
}
.btn-danger:active,
.btn-destructive:active,
.vd-btn-danger:active {
  background: #961f1f;
  transform: scale(0.98);
}

/* Warning */
.btn-warning,
.vd-btn-warning {
  background: var(--warning, #d9822b);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}
.btn-warning:hover,
.vd-btn-warning:hover {
  background: #c27222;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 130, 43, 0.25);
}
.btn-warning:active,
.vd-btn-warning:active {
  background: #aa6119;
  transform: scale(0.98);
}

/* Success */
.btn-success,
.vd-btn-success {
  background: var(--success, #1e7e34);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}
.btn-success:hover,
.vd-btn-success:hover {
  background: #176529;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 126, 52, 0.25);
}
.btn-success:active,
.vd-btn-success:active {
  background: #114f1f;
  transform: scale(0.98);
}

/* Sizes */
.btn-xs,
.vd-btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  gap: 4px;
  border-radius: var(--radius-pill, 9999px);
}
.btn-sm,
.vd-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  gap: 6px;
  border-radius: var(--radius-pill, 9999px);
}
.btn-md {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  gap: 8px;
  border-radius: var(--radius-pill, 9999px);
}
.btn-lg,
.vd-btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  gap: 10px;
  border-radius: var(--radius-pill, 9999px);
}
.btn-full,
.vd-btn-full {
  width: 100%;
}
.btn-icon,
.vd-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-pill, 9999px);
  flex-shrink: 0;
}
.btn-icon.btn-sm,
.vd-btn-icon.vd-btn-sm {
  width: 36px;
  height: 36px;
}
.btn-icon.btn-xs,
.vd-btn-icon.vd-btn-xs {
  width: 28px;
  height: 28px;
}

/* Loading state inside button */
.btn-loading .btn-label {
  opacity: 0;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Social auth buttons */
.btn-social {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  font-weight: 500;
  width: 100%;
  gap: 12px;
}
.btn-social:hover {
  background: var(--surface);
  border-color: #c5c5bf;
}
.btn-social img {
  width: 20px;
  height: 20px;
}

/* ── Form fields ──────────────────────────────────────────── */
.form-group,
.vd-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 18px;
}

.form-label,
.vd-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.form-input,
.form-textarea,
.form-select,
.vd-form-input,
.vd-form-textarea,
.vd-form-select,
.vd-event-select {
  height: 44px;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-light, #efeae3);
  border-radius: 10px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

select,
.filter-select,
.ev-filter-select,
.vm-filter-select,
.aff-event-select,
.goal-select,
.plan-select,
.bc-select {
  height: 44px;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-light, #efeae3);
  border-radius: 10px;
  padding: 0 38px 0 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder,
.vd-form-input::placeholder,
.vd-form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:hover,
.form-textarea:hover,
select:hover,
.form-select:hover,
.vd-form-input:hover,
.vd-form-textarea:hover,
.vd-form-select:hover,
.vd-event-select:hover,
.aff-event-select:hover,
.filter-select:hover,
.ev-filter-select:hover,
.vm-filter-select:hover {
  border-color: rgba(19, 27, 23, 0.28);
}

.form-input:focus,
.form-textarea:focus,
select:focus,
.form-select:focus,
.vd-form-input:focus,
.vd-form-textarea:focus,
.vd-form-select:focus,
.vd-event-select:focus,
.aff-event-select:focus,
.filter-select:focus,
.ev-filter-select:focus,
.vm-filter-select:focus {
  border-color: var(--primary, #e85938);
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.12);
  background: #ffffff;
}

.form-input.error,
.form-textarea.error,
select.error,
.form-select.error,
.vd-form-input.error,
.vd-form-textarea.error,
.vd-form-select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.1);
}

.form-textarea,
.vd-form-textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

select,
.form-select,
.vd-form-select,
.vd-event-select,
.aff-event-select,
.filter-select,
.ev-filter-select,
.vm-filter-select,
.goal-select,
.plan-select,
.bc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356625C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
  cursor: pointer;
}

select option,
.form-select option,
.vd-form-select option,
.vd-event-select option,
.aff-event-select option,
.filter-select option,
.ev-filter-select option,
.vm-filter-select option {
  background: #ffffff;
  color: var(--text-primary, #131b17);
  padding: 8px 12px;
  font-size: 13.5px;
}

/* Password field wrapper */
.form-input-wrapper {
  position: relative;
}
.form-input-wrapper .form-input {
  padding-right: 48px;
}
.form-input-wrapper .input-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--duration-fast);
}
.form-input-wrapper .input-action:hover {
  color: var(--text-secondary);
}

/* Field error message */
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}
.field-error.visible {
  display: flex;
}

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Cards ────────────────────────────────────────────────── */
.card,
.section-card,
.vd-card,
.vd-section {
  background: var(--surface);
  border: 1px solid var(--border-light, #efeae3);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(19, 27, 23, 0.04);
}

@media (max-width: 640px) {
  .card,
  .section-card,
  .vd-card,
  .vd-section {
    padding: 16px;
  }
}

.card-interactive {
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}
.card-interactive:hover {
  background: var(--surface-hover);
  border-color: rgba(19, 27, 23, 0.2);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card-interactive.selected {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ── Metric & Stat Cards ──────────────────────────────────── */
.metric-card,
.stat-card,
.vd-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(19, 27, 23, 0.04);
  transition:
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}
.metric-card:hover,
.stat-card:hover,
.vd-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(19, 27, 23, 0.07);
  border-color: rgba(19, 27, 23, 0.18);
}

/* ── Navigation ───────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topnav-logo {
  font-family: var(--font-serif);
  font-style: bold;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--duration-fast);
  position: relative;
}
.topnav-link:hover {
  color: var(--text-primary);
}
.topnav-link.active {
  color: var(--text-primary);
}
.topnav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-top: 24px;
  margin-bottom: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
  text-decoration: none;
}
.sidebar-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--cyan);
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Badges & Status Badges ───────────────────────────────── */
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.badge-pending,
.status-badge.pending,
.status-badge.awaiting,
.status-badge.in_review {
  background: #fef3c7;
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
}

.badge-approved,
.status-badge.approved,
.status-badge.accepted {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.18);
}

.badge-success,
.badge-active,
.status-badge.paid,
.status-badge.settled,
.status-badge.confirmed,
.status-badge.completed,
.status-badge.delivered {
  background: #dcfce7;
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.18);
}

.badge-danger,
.badge-suspended,
.status-badge.rejected,
.status-badge.cancelled,
.status-badge.declined,
.status-badge.failed {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
}

.badge-live,
.status-badge.live,
.status-badge.active {
  background: rgba(232, 89, 56, 0.12);
  color: #c84729;
  border-color: rgba(232, 89, 56, 0.22);
}

.badge-published,
.status-badge.published {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-draft,
.badge-ended,
.status-badge.draft,
.status-badge.ended,
.status-badge.inactive,
.status-badge.archived {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.18);
}

.badge-upcoming,
.status-badge.upcoming {
  background: #f0fdf4;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.badge-warning,
.status-badge.warning {
  background: rgba(255, 179, 0, 0.12);
  color: #7a5100;
  border-color: rgba(122, 81, 0, 0.18);
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
}

.table,
.vd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.vd-table th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary, #56625c);
  background: var(--bg-body, #faf9f7);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--border-light, #efeae3);
  white-space: nowrap;
}

.table td,
.vd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light, #efeae3);
  vertical-align: middle;
}

.table tbody tr:hover td,
.vd-table tbody tr:hover td,
.vd-table tr:hover td {
  background: rgba(19, 27, 23, 0.018);
}

/* ── Empty states ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  gap: 12px;
}

.empty-state-icon {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 4px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
}

/* ── Inline feedback ──────────────────────────────────────── */
.inline-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success);
  animation: fadeIn 200ms var(--ease);
}

.inline-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  animation: fadeIn 150ms var(--ease);
}

/* ── Skeleton loaders ─────────────────────────────────────── */
.skeleton {
  background: var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

/* ── OTP input ────────────────────────────────────────────── */
.otp-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-input {
  width: 52px;
  height: 60px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
  outline: none;
  caret-color: transparent;
}

.otp-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.otp-input.filled {
  border-color: var(--text-primary);
  background: var(--surface);
}

.otp-input.error {
  border-color: var(--danger);
}

@media (max-width: 400px) {
  .otp-input {
    width: 44px;
    height: 52px;
    font-size: 20px;
  }
  .otp-group {
    gap: 6px;
  }
}
/* Dedicated Auth Layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.auth-header {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.auth-header-inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header-logo {
  font-family: var(--font-serif);
  font-style: bold;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0;
  text-decoration: none;
  transition: opacity 140ms ease;
  letter-spacing: -0.02em;
}
.auth-header-logo:hover {
  opacity: 0.85;
}

.auth-header-action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-header-btn {
  background: var(--primary-dark);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
}
.auth-header-btn:hover {
  background: #233029;
  transform: translateY(-1px);
}

.auth-header-btn-mint {
  background: var(--secondary);
  color: var(--primary-dark) !important;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(110, 230, 215, 0.25);
}
.auth-header-btn-mint:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px 64px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-container-wide {
  max-width: 860px;
}

.auth-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: left;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 0;
  }
  .auth-header-text {
    display: none;
  }
}

.auth-card-title,
.auth-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  line-height: 1.15;
}

.auth-card-sub,
.auth-subtitle {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-card-sub a,
.auth-subtitle a,
.auth-accent-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
.auth-card-sub a:hover,
.auth-subtitle a:hover,
.auth-accent-link:hover {
  color: var(--primary-hover);
}

/* Modern inputs inside auth card */
.auth-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card .form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
}

.auth-card .form-input {
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  background: #ffffff;
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}
.auth-card .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.15);
}
.auth-card .form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.1);
}

.auth-card .form-input-wrapper {
  position: relative;
}
.auth-card .form-input-wrapper .form-input {
  padding-right: 44px;
}
.auth-card .form-input-wrapper .input-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 140ms ease;
}
.auth-card .form-input-wrapper .input-action:hover {
  color: var(--text-primary);
}

.auth-card .btn-primary {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 9999px;
  height: 50px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(19, 27, 23, 0.18);
  transition: all 180ms ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card .btn-primary:hover {
  background: #233029;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19, 27, 23, 0.25);
}

.auth-card .btn-social {
  background: #ffffff;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  height: 48px;
  font-weight: 600;
  font-size: 14px;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.auth-card .btn-social:hover {
  background: #faf9f5;
  border-color: #d2cdc3;
  transform: translateY(-1px);
}
.auth-card .btn-social img {
  width: 20px;
  height: 20px;
}

.auth-divider,
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0;
}
.auth-divider::before,
.auth-divider::after,
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-trust-notice {
  text-align: center;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.auth-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-secondary);
  user-select: none;
}

.auth-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-brand-link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

/* Backward compatibility for centered container */
.auth-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-warm);
}
.auth-centered-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Role selection cards ─────────────────────────────────── */
.role-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .role-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .role-cards {
    grid-template-columns: 1fr;
  }
}

.role-card {
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.role-card:hover {
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 27, 23, 0.08);
}

.role-card.active {
  border-color: var(--primary-dark);
  background: var(--surface-warm);
  box-shadow: 0 6px 20px rgba(19, 27, 23, 0.12);
}

.role-card-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition:
    background 150ms ease,
    color 150ms ease;
}

.role-card.active .role-card-icon {
  background: var(--secondary);
  color: var(--primary-dark);
}

.role-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0;
}

.role-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* ── Step progress indicator ─────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--border);
  transition: all 200ms ease;
}

.step-dot.active {
  width: 24px;
  background: var(--primary-dark);
}

.step-dot.done {
  background: var(--primary);
}

/* ── OTP 6-box input ─────────────────────────────────────── */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 50px;
  height: 58px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
  background: #ffffff;
  color: var(--primary-dark);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.16);
}
.otp-input.filled {
  border-color: var(--primary-dark);
  background: #faf9f5;
}
.otp-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.1);
}
@media (max-width: 400px) {
  .otp-input {
    width: 42px;
    height: 50px;
    font-size: 20px;
    border-radius: 10px;
  }
  .otp-group {
    gap: 6px;
  }
}

/* ── Inline notification strip ────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-danger {
  background: var(--danger-bg);
  color: #c00;
  border: 1px solid rgba(240, 48, 48, 0.2);
}
.alert-success {
  background: var(--success-bg);
  color: #007a33;
  border: 1px solid rgba(0, 200, 83, 0.2);
}
.alert-info {
  background: rgba(232, 89, 56, 0.08);
  color: #c84729;
  border: 1px solid rgba(232, 89, 56, 0.25);
}
.alert-warning {
  background: rgba(255, 179, 0, 0.1);
  color: #7a5100;
  border: 1px solid rgba(255, 179, 0, 0.25);
}

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

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

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

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

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

@keyframes checkDraw {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Entry animations */
.animate-in {
  animation: fadeInUp var(--duration) var(--ease) both;
}

.animate-in-delay-1 {
  animation-delay: 60ms;
}
.animate-in-delay-2 {
  animation-delay: 120ms;
}
.animate-in-delay-3 {
  animation-delay: 180ms;
}
.animate-in-delay-4 {
  animation-delay: 240ms;
}

/* 3-dot pulse (AI "thinking" / processing state) */
.pulse-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseScale 1.2s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.pulse-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Typing cursor for AI streaming */
.ai-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text-primary);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.w-full {
  width: 100%;
}
.mt-1 {
  margin-top: 4px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-8 {
  margin-bottom: 32px;
}
.mx-auto {
  margin-inline: auto;
}
.text-center {
  text-align: center;
}

/* Alpine: hide x-cloak elements until Alpine initialises */
[x-cloak] {
  display: none !important;
}

/* ── Site nav (shared across all public, non-dashboard pages) ──── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(19, 27, 23, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(245, 245, 230, 0.1);
  transition: box-shadow 200ms ease;
}
.site-nav.sld {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3);
}
.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}
.site-nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 18px;
}
.site-nav-logo img {
  height: 26px;
  width: auto;
  vertical-align: middle;
}
.site-nav-logo .site-nav-logo-dark {
  display: inline-block;
}
.site-nav-logo .site-nav-logo-light {
  display: none;
}
.site-nav.site-nav-light .site-nav-logo .site-nav-logo-dark {
  display: none !important;
}
.site-nav.site-nav-light .site-nav-logo .site-nav-logo-light {
  display: inline-block !important;
}
.site-nav-segments {
  display: inline-flex;
  align-items: center;
  background: rgba(250, 249, 247, 0.08);
  border: 1px solid rgba(250, 249, 247, 0.16);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  margin-right: 18px;
  flex-shrink: 0;
}
.site-nav-seg {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(250, 249, 247, 0.75);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 9999px;
  transition: all 140ms ease;
  white-space: nowrap;
}
.site-nav-seg:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.site-nav-seg.active {
  background: #faf9f7;
  color: #131b17;
  font-weight: 700;
}
@media (max-width: 992px) {
  .site-nav-segments {
    display: none;
  }
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-link {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  color: rgba(245, 245, 230, 0.8);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  transition:
    background 140ms,
    color 140ms;
}
.site-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ── Site Nav Dual Search Pill (Search events | Your Location) ── */
.site-nav-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(19, 27, 23, 0.14);
  border-radius: 9999px;
  height: 44px;
  padding: 4px 5px 4px 16px;
  max-width: 460px;
  flex: 1;
  margin: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 150ms ease,
    border-color 150ms ease;
  min-width: 0;
}

.site-nav-search:focus-within {
  border-color: rgba(232, 89, 56, 0.5);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.14),
    0 0 0 3px rgba(232, 89, 56, 0.12);
}

.nav-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-search-query {
  flex: 1.15;
}

.nav-search-location {
  flex: 1;
}

.nav-search-icon {
  font-size: 14px;
  color: #4b5563;
  flex-shrink: 0;
}

.nav-search-input {
  width: 100%;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #131b17;
  line-height: 1.2;
}

.nav-search-input::placeholder {
  color: #4b5563;
  font-weight: 400;
  opacity: 1;
}

.nav-search-divider {
  width: 1px;
  height: 22px;
  background: rgba(19, 27, 23, 0.16);
  margin: 0 8px;
  flex-shrink: 0;
}

.nav-search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e85938;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 6px;
  transition:
    background 150ms ease,
    transform 100ms ease;
  box-shadow: 0 2px 6px rgba(232, 89, 56, 0.3);
}

.nav-search-btn:hover {
  background: #d24828;
  transform: scale(1.05);
}

.nav-search-btn:active {
  transform: scale(0.95);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.site-nav-login {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(245, 245, 230, 0.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  transition:
    background 140ms,
    color 140ms;
}
.site-nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.site-nav-cta {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--secondary);
  color: #131b17 !important;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    background 140ms,
    transform 80ms,
    box-shadow 140ms;
}
.site-nav-cta:hover {
  background: var(--secondary-hover);
  box-shadow: 0 4px 16px rgba(110, 230, 215, 0.3);
}
.site-nav-cta:active {
  transform: scale(0.97);
}
.site-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
}
.site-nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #faf9f7;
  transition:
    transform 200ms,
    opacity 200ms;
  border-radius: 2px;
}
.site-nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.site-nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.site-nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: #131b17;
  border-top: 1px solid rgba(250, 249, 247, 0.1);
  padding: 12px 24px 24px;
}
.site-nav-mobile-menu.open {
  display: flex;
}
.site-nav-mobile-menu a {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(250, 249, 247, 0.9);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250, 249, 247, 0.08);
}
.site-nav-mobile-menu a:last-child {
  border-bottom: none;
}
.site-nav-mobile-cta {
  margin-top: 12px;
  background: var(--secondary) !important;
  color: #131b17 !important;
  border-radius: 9999px;
  padding: 13px 20px !important;
  font-weight: 700 !important;
  text-align: center;
  border-bottom: none !important;
}

.site-nav-mobile-segments {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(250, 249, 247, 0.08);
  border: 1px solid rgba(250, 249, 247, 0.16);
  border-radius: 9999px;
  padding: 3px;
  margin-bottom: 18px;
  box-sizing: border-box;
  width: 100%;
}
.site-nav-mobile-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  background: #faf9f7;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 340ms cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}
.site-nav-mobile-seg {
  position: relative;
  z-index: 2;
  color: rgba(250, 249, 247, 0.75) !important;
  padding: 8px 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border: none !important;
  text-decoration: none !important;
  border-radius: 9999px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 240ms ease !important;
  min-width: 0;
}
.site-nav-mobile-seg:hover {
  color: #ffffff !important;
}
.site-nav-mobile-seg.active {
  color: #131b17 !important;
  font-weight: 700 !important;
}

@media (max-width: 360px) {
  .site-nav-mobile-seg {
    font-size: 11.5px !important;
    padding: 7px 3px !important;
  }
}

/* ── Site Nav Light Mode (for all non-homepage public pages) ───── */
.site-nav.site-nav-light {
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(19, 27, 23, 0.08);
}
.site-nav.site-nav-light.sld {
  box-shadow: 0 4px 20px rgba(19, 27, 23, 0.06);
}
.site-nav-light .site-nav-logo {
  color: #131b17 !important;
}
.site-nav-light .site-nav-logo:hover {
  opacity: 0.85;
}
.site-nav-light .site-nav-segments {
  background: rgba(19, 27, 23, 0.06);
  border: 1px solid rgba(19, 27, 23, 0.12);
}
.site-nav-light .site-nav-seg {
  color: rgba(19, 27, 23, 0.72);
}
.site-nav-light .site-nav-seg:hover {
  color: #131b17;
  background: rgba(19, 27, 23, 0.06);
}
.site-nav-light .site-nav-seg.active {
  background: #131b17;
  color: #ffffff;
}
.site-nav-light .site-nav-link {
  color: rgba(19, 27, 23, 0.78);
}
.site-nav-light .site-nav-link:hover {
  background: rgba(19, 27, 23, 0.06);
  color: #131b17;
}
.site-nav-light .site-nav-login {
  color: #131b17;
}
.site-nav-light .site-nav-login:hover {
  background: rgba(19, 27, 23, 0.06);
  color: #e85938;
}
.site-nav-light .site-nav-cta {
  background: #131b17;
  color: #ffffff !important;
}
.site-nav-light .site-nav-cta:hover {
  background: #2a3630;
  box-shadow: 0 4px 16px rgba(19, 27, 23, 0.22);
}
.site-nav-light .site-nav-hamburger span {
  background: #131b17;
}
.site-nav-light .site-nav-mobile-menu {
  background: #faf9f7;
  border-top: 1px solid rgba(19, 27, 23, 0.08);
  box-shadow: 0 12px 30px rgba(19, 27, 23, 0.08);
}
.site-nav-light .site-nav-mobile-menu a {
  color: #131b17;
  border-bottom: 1px solid rgba(19, 27, 23, 0.06);
}
.site-nav-light .site-nav-mobile-menu a:hover {
  color: #e85938;
}
.site-nav-light .site-nav-mobile-cta {
  background: #131b17 !important;
  color: #ffffff !important;
}
.site-nav-light .site-nav-mobile-segments {
  background: rgba(19, 27, 23, 0.06);
  border: 1px solid rgba(19, 27, 23, 0.12);
}
.site-nav-light .site-nav-mobile-glider {
  background: #131b17;
  box-shadow: 0 2px 8px rgba(19, 27, 23, 0.18);
}
.site-nav-light .site-nav-mobile-seg {
  color: rgba(19, 27, 23, 0.7) !important;
}
.site-nav-light .site-nav-mobile-seg:hover {
  color: #131b17 !important;
}
.site-nav-light .site-nav-mobile-seg.active {
  color: #ffffff !important;
}

@media (max-width: 1200px) {
  .site-nav-links {
    gap: 2px;
  }
  .site-nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 1060px) {
  .site-nav-links {
    display: none;
  }
  .site-nav-hamburger {
    display: flex;
  }
  .site-nav-search {
    max-width: 360px;
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .nav-search-icon {
    display: none !important;
  }
  .site-nav-login,
  .site-nav-cta {
    display: none !important;
  }
  .site-nav-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .site-nav-logo {
    font-size: 24px;
    margin-right: 6px;
  }
  .site-nav-mobile-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 580px) {
  .nav-search-divider,
  .nav-search-location {
    display: none;
  }
  .site-nav-search {
    margin: 0 4px;
    height: 40px;
    padding-left: 12px;
  }
  .nav-search-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .site-nav-inner {
    padding: 0 12px;
  }
  .site-nav-logo {
    font-size: 24px;
    margin-right: 2px;
  }
  .site-nav-search {
    padding-left: 10px;
  }
  .nav-search-input {
    font-size: 12.5px;
  }
}

/* ── Global Lively Motion & Entrance Animations ───────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Content is always fully visible by default so no section is ever blank */
.mpl-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Gentle hover lift for cards */
.mpl-hover-lift {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mpl-hover-lift:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .mpl-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Dropdown Menus ───────────────────────────────────────── */
.user-menu-dropdown,
.org-switcher-dropdown,
.notif-dropdown,
.ev-actions-dropdown,
.custom-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--border-light, #efeae3) !important;
  border-radius: 14px !important;
  box-shadow:
    0 14px 36px rgba(19, 27, 23, 0.12),
    0 2px 8px rgba(19, 27, 23, 0.04) !important;
  padding: 6px !important;
  z-index: 1000 !important;
}

.user-menu-item,
.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary, #131b17);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.14s ease;
  box-sizing: border-box;
}

.user-menu-item:hover,
.dropdown-menu-item:hover {
  background: var(--bg-secondary, #faf7f2) !important;
  color: var(--text-primary, #131b17) !important;
}

/* Global Print Optimization */
@media print {
  .no-print,
  .site-nav,
  .main-nav,
  .navbar,
  .footer,
  .site-footer,
  .tiqeet-ai-widget-root,
  .tiqeet-ai-launcher,
  .tiqeet-ai-dialog,
  #tiqeet-cookie-consent,
  .hcc-container,
  .cookie-consent-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  @page {
    margin: 10mm 12mm;
    size: auto;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-avoid-break,
  .ticket-stub,
  .ticket {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* ── Google Antigravity Particle Background ────────────────────── */
.antigravity-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
