/* SmplyInvite — dark glass application shell.
   Aesthetic: frosted glass + light refraction. Depth from translucency,
   edge highlights, and soft black shadows — never colored neon glow. */

:root {
  --bg: #06070a;
  --ambient: rgba(255, 255, 255, 0.03);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --border-bright: rgba(255, 255, 255, 0.20);
  --highlight: rgba(255, 255, 255, 0.12);
  --text: #f0f1f3;
  --muted: #8b919a;
  --accent: #a8b4c4;
  --accent-hover: #c8d0dc;
  --on-light: #0c0e12;
  --danger: #d98c8c;
  --danger-bg: rgba(217, 140, 140, 0.10);
  --danger-border: rgba(217, 140, 140, 0.30);
  --ok-bg: rgba(168, 196, 168, 0.10);
  --ok-border: rgba(168, 196, 168, 0.30);
  --ok-text: #b6d0b6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 1px var(--border-bright);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-section: 4rem;
  --space-block: 2.5rem;
  --density-form: 1.25rem;
  --density-list: 0.75rem;
  --header-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--ambient), transparent 60%),
    radial-gradient(ellipse 55% 40% at 88% 12%, rgba(255, 255, 255, 0.025), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 85%, rgba(255, 255, 255, 0.02), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* App shell + atmosphere */

.app-shell {
  position: relative;
  z-index: 1;
}

.app-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* CSS god-ray fallback (reduced-motion, no-JS, or before WebGL mounts). */
.app-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(
      from 180deg at 50% -8%,
      transparent 0deg,
      rgba(255, 255, 255, 0.035) 18deg,
      transparent 36deg,
      rgba(255, 255, 255, 0.02) 52deg,
      transparent 70deg,
      rgba(255, 255, 255, 0.03) 88deg,
      transparent 108deg,
      rgba(255, 255, 255, 0.015) 128deg,
      transparent 360deg
    ),
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 255, 255, 0.04), transparent 65%);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.app-atmosphere--webgl::before {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-atmosphere--webgl::before {
    opacity: 1;
  }
}

/* Layout */

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-xl);
}

.page--wide {
  max-width: 960px;
}

.page--hub {
  max-width: 1280px;
}

.page--form {
  max-width: 440px;
}

.page--tool {
  max-width: 1120px;
}

.page--hero {
  max-width: 720px;
  text-align: center;
}

.page--form .field {
  margin-bottom: var(--density-form);
}

.page--form .card {
  padding: var(--space-lg) var(--space-md);
}

/* Typography */

h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
  font-size: 1.0625rem;
}

.page-title {
  margin-bottom: var(--space-lg);
}

/* Section rhythm */

.section-head {
  margin-bottom: var(--space-md);
}

.section-head .section-title {
  margin: 0 0 4px;
  border-top: none;
  padding-top: 0;
  font-size: 1.125rem;
}

.section-dek {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.card .section-head + .share-box,
.card .section-head + form {
  margin-top: 0;
}

/* Hub split (dashboard) */

.hub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

@media (min-width: 900px) {
  .hub-split {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--space-xl);
  }
}

.hub-split-primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hub-split-primary .subtitle {
  margin-bottom: 0;
}

.hub-split-secondary .action-grid {
  margin-top: 0;
}

/* Tool layout (event detail) */

.tool-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .tool-layout {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: var(--space-xl);
  }
}

.tool-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .tool-aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
  }
}

.tool-aside .meta-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.tool-aside .actions--toolbar {
  margin-bottom: 0;
  flex-direction: column;
  align-items: stretch;
}

.tool-aside .actions--toolbar .btn {
  width: 100%;
  justify-content: center;
}

.tool-main .card + .card {
  margin-top: var(--space-block);
}

.tool-main-title {
  margin-bottom: var(--space-lg);
}

.tool-main-title .subtitle {
  margin-bottom: 0;
}

/* Glass surfaces */

.card,
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

/* Top-edge catch light: panels look lit from above, like real glass. */
.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--highlight) 0%,
    rgba(255, 255, 255, 0) 35%
  );
}

.card + .card,
.panel + .panel {
  margin-top: var(--space-md);
}

.card--centered {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

/* Site header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-height);
  padding: var(--space-sm) var(--space-md);
  background: rgba(6, 7, 10, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

/* A single faint refraction line where the glass header meets the page. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

.site-brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.site-brand span {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-strong);
}

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

.nav-logout-btn {
  width: auto;
}

/* Mobile menu toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: var(--surface-strong);
  border-color: var(--border-bright);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header--nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* Buttons */

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* Primary: solid frosted near-white. Premium, readable, no gradient/glow. */
.btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: var(--on-light);
  background: #ffffff;
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--border-bright);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-danger:hover {
  color: #e8a8a8;
  background: rgba(217, 140, 140, 0.16);
  border-color: rgba(217, 140, 140, 0.45);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.actions--toolbar {
  margin-bottom: var(--space-md);
}

/* Forms */

.field {
  margin-bottom: var(--space-md);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text);
}

.field-value {
  margin: 0;
  color: var(--muted);
}

.field-input,
.field textarea,
.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="time"],
.field input[type="file"] {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field-input--compact {
  padding: 9px 12px;
  font-size: 0.875rem;
}

/* Focus: brighter hairline edge + subtle inner highlight. No colored bloom. */
.field-input:focus,
.field textarea:focus,
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--border-bright);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.field-input::placeholder {
  color: rgba(139, 145, 154, 0.7);
}

.field input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.helptext {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.form-footer a {
  font-weight: 500;
}

.field-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 4px;
}

.errors {
  margin: 0 0 var(--space-md);
  padding: 12px 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.9375rem;
}

/* Messages */

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.messages li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.messages .error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

/* Footer */

.site-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Hero (home) */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - var(--space-section));
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-wordmark {
  margin: 0 0 var(--space-sm);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 40px rgba(0, 0, 0, 0.6);
}

.hero-wordmark span {
  color: var(--muted);
  font-weight: 500;
}

.hero-dek {
  margin: 0 auto var(--space-lg);
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-card {
  margin-top: var(--space-section);
  text-align: left;
}

.empty-state-panel {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.empty-state-panel .empty-state-text {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  font-size: 1rem;
}

.empty-state-panel .empty-state-cta {
  display: inline-flex;
}

/* Dashboard action tiles */

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (min-width: 540px) {
  .action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.action-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.action-tile:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

.action-tile-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.action-tile-desc {
  font-size: 0.8125rem;
  color: var(--muted);
}

.action-tile-arrow {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--accent);
}

/* Event list (glass rows) */

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--density-list);
}

.event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  padding: calc(var(--space-md) + 2px) var(--space-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.event-row:hover {
  border-color: var(--border-bright);
}

.event-row-main {
  min-width: 0;
}

.event-row-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
}

.event-row-title:hover {
  color: var(--accent-hover);
}

.event-row-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.event-row-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-lg);
  color: var(--muted);
}

.empty-state a {
  font-weight: 500;
}

/* Event detail */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.meta-item {
  padding: var(--space-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.meta-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.share-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.share-url {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
  margin: var(--space-sm) 0;
}

.share-url input {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--text);
}

.invite-text {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  resize: vertical;
}

.danger-zone {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--danger-border);
}

/* Event form */

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.section-title {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.custom-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-sm);
  align-items: end;
  margin-bottom: var(--space-sm);
}

@media (max-width: 640px) {
  .custom-field-row {
    grid-template-columns: 1fr auto;
  }

  .custom-field-row > div:not(:last-child) {
    grid-column: 1 / -1;
  }
}

.remove-field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.remove-field-btn:hover {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.remove-field-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Send history */

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.data-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.data-list-item span:last-child {
  color: var(--muted);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* Account link list -> inline tiles */

.link-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.link-list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.link-list a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

/* Legal pages */

.legal h2 {
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--accent);
}

/* Motion — felt, not seen. Lifts and edge-brighten only, never colored glow. */

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-ghost:hover,
  .btn-danger:hover {
    transform: translateY(-1px);
  }

  .action-tile:hover,
  .event-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .action-tile-arrow {
    transition: transform 0.15s ease;
  }

  .action-tile:hover .action-tile-arrow {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Responsive nav */

@media (max-width: 720px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(6, 7, 10, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    box-shadow: var(--shadow-sm);
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .site-header--nav-open .site-nav {
    max-height: min(80vh, 420px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .nav-logout-form {
    display: block;
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border);
  }

  .nav-logout-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-backdrop,
  .nav-toggle__bar {
    transition-duration: 0.01ms !important;
  }
}
