/* ============================================
   EUROBASKET TOURS — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-primary: #06080f;
  --bg-secondary: #0c1019;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 0, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #ff6b00;
  --accent-light: #ff8533;
  --accent-glow: rgba(255, 107, 0, 0.35);
  --gold: #fbbf24;
  --blue: #3b82f6;

  --gradient-hero: linear-gradient(135deg, #06080f 0%, #0f172a 40%, #1a0a00 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b00 0%, #fbbf24 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  --font-display: 'Syne', sans-serif;
  --font-tour-title: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 60px var(--accent-glow);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ---- Typography ---- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Uploaded logo image — never paint a box behind it */
.logo-mark-img,
.logo.logo-mark-only .logo-mark,
.logo.logo-mark-only .logo-mark-img {
  background: transparent !important;
  box-shadow: none;
  border: none;
}

.logo-mark-img {
  width: var(--logo-height, 42px);
  height: var(--logo-height, 42px);
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

.logo-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
}

.logo-accent,
.logo span.logo-accent {
  color: var(--accent);
}

/* Logo image only (no written name) — height from CMS (--logo-height) */
.logo.logo-mark-only {
  gap: 0;
  background: transparent;
}

.logo.logo-mark-only .logo-mark {
  width: auto;
  height: var(--logo-height, 1.85em);
  min-width: 0;
  max-width: min(320px, 60vw);
  border-radius: 0;
}

.logo.logo-mark-only .logo-mark-img {
  width: auto;
  height: var(--logo-height, 1.85em);
  border-radius: 0;
}

.logo.logo-mark-only .logo-mark-img img {
  width: auto;
  height: var(--logo-height, 1.85em);
  max-width: min(320px, 60vw);
  object-fit: contain;
  background: transparent;
}

.logo.logo-text-only {
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.nav-actions #auth-btn {
  position: relative;
  z-index: 1001;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6,8,15,0.95) 0%, rgba(6,8,15,0.7) 50%, rgba(6,8,15,0.4) 100%),
    linear-gradient(to top, var(--bg-primary) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 20%;
  right: -10%;
  filter: blur(80px);
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 4rem) 0 6rem;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 2rem;
  animation: fade-up 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero .lead {
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-up 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fade-up 0.8s ease 0.4s forwards;
  opacity: 0;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-item strong span { color: var(--accent); }

.stat-item small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Marquee ---- */
.marquee-section {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.marquee-item .flag { font-size: 1.5rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .lead {
  margin-inline: auto;
}

.section-header .display-lg {
  margin-bottom: 1rem;
}

/* ---- Cards ---- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.12);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.bento-item:hover {
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateY(-2px);
}

.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-12 { grid-column: span 12; }

.bento-item.featured {
  background:
    linear-gradient(145deg, rgba(255,107,0,0.12) 0%, rgba(255,107,0,0.02) 100%),
    var(--gradient-card);
  border-color: rgba(255, 107, 0, 0.2);
}

.bento-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- Pricing ---- */
.pricing-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 1.5rem 0 0.5rem;
}

.pricing-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  margin: 2rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(255, 107, 0, 0.2);
  transform: translateY(-4px);
}

.review-stars {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 0.875rem;
}

.review-author-info strong {
  display: block;
  font-size: 0.9375rem;
}

.review-author-info small {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.review-photos {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.review-photo-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.review-photo-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Review Form */
.review-form-section {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.review-form {
  max-width: 720px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group > label:not(.admin-check):not(.choice-control) {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group select {
  background-color: #ffffff !important;
  color: #0c1019 !important;
  color-scheme: light;
}

.form-group select option {
  background-color: #ffffff !important;
  color: #0c1019 !important;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

/* Choice controls (radio / checkbox) — site-wide */
.admin-check,
.choice-control,
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.admin-check:hover,
.choice-control:hover,
label:has(> input[type="checkbox"]):hover,
label:has(> input[type="radio"]):hover {
  border-color: rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.06);
}

.admin-check:has(input:checked),
.choice-control:has(input:checked),
label:has(> input[type="checkbox"]:checked),
label:has(> input[type="radio"]:checked) {
  border-color: rgba(255, 107, 0, 0.7);
  background: rgba(255, 107, 0, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.2);
}

.admin-check input[type="checkbox"],
.admin-check input[type="radio"],
.choice-control input[type="checkbox"],
.choice-control input[type="radio"],
label:has(> input[type="checkbox"]) > input[type="checkbox"],
label:has(> input[type="radio"]) > input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.admin-check input[type="radio"],
.choice-control input[type="radio"],
label:has(> input[type="radio"]) > input[type="radio"] {
  border-radius: 50%;
}

.admin-check input[type="checkbox"],
.choice-control input[type="checkbox"],
label:has(> input[type="checkbox"]) > input[type="checkbox"] {
  border-radius: 5px;
}

.admin-check input[type="radio"]:checked,
.choice-control input[type="radio"]:checked,
label:has(> input[type="radio"]:checked) > input[type="radio"] {
  border-color: var(--accent);
  background:
    radial-gradient(circle at center, var(--accent) 0 38%, transparent 40%),
    rgba(255, 107, 0, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.admin-check input[type="checkbox"]:checked,
.choice-control input[type="checkbox"]:checked,
label:has(> input[type="checkbox"]:checked) > input[type="checkbox"] {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.5' stroke='%2306080f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.78rem;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.admin-check input:focus-visible,
.choice-control input:focus-visible,
label:has(> input[type="checkbox"]) > input:focus-visible,
label:has(> input[type="radio"]) > input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
}

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

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

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Photo Upload */
.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.photo-upload-zone:hover,
.photo-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.05);
}

.photo-upload-zone input { display: none; }

.photo-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.photo-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Destinations ---- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.destination-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.destination-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.destination-overlay h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.destination-overlay span {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* ---- Partnership ---- */
.partnership-block {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: 3rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.partnership-block .section-label {
  justify-content: center;
}

.partnership-block .lead {
  margin: 1.25rem auto 0;
}

.partnership-block .lead a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partnership-block .lead a:hover {
  color: var(--accent);
}

.partnership-block .btn {
  margin-top: 2rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,107,0,0.15) 0%, rgba(251,191,36,0.05) 100%),
    var(--gradient-card);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
}

.cta-banner h2 {
  position: relative;
  margin-bottom: 1rem;
}

.cta-banner p {
  position: relative;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-banner .btn { position: relative; }

/* ---- About Page ---- */
.about-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: var(--gradient-hero);
  text-align: center;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 0, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.375rem 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #000;
}

/* ---- Auth Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: min(440px, 100%);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.ai-modal {
  max-width: 720px;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
}

.ai-modal-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

.ai-form .form-group label.admin-check {
  margin-bottom: 0;
  font-weight: 500;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.625rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.auth-tab.active {
  background: rgba(255, 107, 0, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-error.visible { display: block; }

/* ---- Lightbox ---- */
.is-zoomable,
[data-lightbox] {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-card);
  animation: slide-in 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- Loading ---- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ---- Page Header ---- */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.page-header .lead {
  margin-inline: auto;
  margin-top: 1.35rem;
  max-width: 40rem;
  line-height: 1.7;
}

body[data-page="destinations"] .page-header {
  padding: calc(var(--nav-height) + 3.25rem) 0 3.75rem;
}

body[data-page="destinations"] .page-header .section-label {
  margin-bottom: 1rem;
}

body[data-page="destinations"] .page-header h1 {
  max-width: 16ch;
  margin-inline: auto;
  line-height: 1.12;
}

body[data-page="destinations"] .page-header .lead {
  margin-top: 1.75rem;
  max-width: 38rem;
}

/* ---- Pricing packages / FAQ mounts ---- */
.pricing-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.pricing-card-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.pricing-card-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.pricing-card-disclaimer {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

/* ---- About team zigzag (measured side→top connectors) ---- */
.team-feature-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 1.75rem;
  position: relative;
  overflow: visible;
}

.team-connectors-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.team-feature {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  width: fit-content;
  max-width: min(560px, 72%);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.team-feature--flip {
  align-self: flex-end;
}

.team-feature-copy {
  flex: 0 1 20rem;
  min-width: 0;
}

.team-feature-copy .section-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.team-feature-copy h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.team-feature-copy p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.team-feature-media {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.team-feature-media img,
.team-feature-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-feature-placeholder {
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.18), var(--bg-secondary));
}

.people-grid,
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.people-card,
.coach-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.people-card-photo,
.coach-card-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.people-card-photo img,
.coach-card-photo img,
.people-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.people-card-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary), var(--border));
  min-height: 220px;
}

.people-card-body,
.coach-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.people-card-body h3,
.coach-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.people-card-role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.people-card-bio,
.coach-card-trips {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.coach-card {
  display: flex;
  flex-direction: column;
}

.coach-card-photo {
  aspect-ratio: 4/3;
}

/* ---- Admin CMS lists ---- */
.admin-cms-list-field {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-cms-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.admin-cms-list-header label {
  margin: 0;
}

.admin-cms-list-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-cms-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--bg-primary);
}

.admin-cms-list-item-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-cms-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .admin-cms-list-row {
    grid-template-columns: 1fr;
  }
}

.admin-cms-font-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.admin-cms-font-row label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-cms-font-row select,
.admin-cms-font-select {
  width: 100%;
  max-width: 36rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.admin-cms-font-row select:focus,
.admin-cms-font-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.875rem 1rem;
    text-align: center;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8 { grid-column: span 6; }

  .services-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .split-section { grid-template-columns: 1fr; gap: 2rem; }

  .team-feature,
  .team-feature--flip {
    align-self: stretch;
    width: 100%;
    max-width: none;
    flex-direction: row;
    gap: 1.1rem;
    padding: 1.1rem 1.15rem;
  }

  .team-feature-media {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    order: -1;
  }

  .team-feature-copy {
    flex: 1 1 auto;
    order: 1;
  }

  .team-feature-copy h3 {
    font-size: 1.3rem;
  }

  .team-connectors-overlay,
  .team-connector {
    display: none !important;
  }

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

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav-actions { margin-left: 0; }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-stats { flex-direction: column; gap: 1.5rem; }

  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8,
  .bento-item.span-12 { grid-column: span 12; }

  .services-grid,
  .reviews-grid,
  .destinations-grid { grid-template-columns: 1fr; }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-banner-inner { padding: 2.5rem 1.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .bento-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Post-tour page ---- */
.post-tour-hero {
  margin-top: var(--nav-height);
  padding: 1.25rem 1.25rem 0;
  background: transparent;
}

.post-tour-hero-frame {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  min-height: clamp(220px, 34vh, 360px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 107, 0, 0.12);
  display: flex;
  align-items: flex-end;
}

.post-tour-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-tour-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Brighter hero photo (Acropolis / destination) */
  opacity: 1;
  filter: saturate(1.08) contrast(1.05) brightness(1.08);
}

.post-tour-hero-shade {
  position: absolute;
  inset: 0;
  /* Light bottom scrub for text — image stays visible */
  background:
    linear-gradient(
      to top,
      rgba(6, 8, 15, 0.72) 0%,
      rgba(6, 8, 15, 0.28) 42%,
      rgba(6, 8, 15, 0.12) 100%
    );
}

.post-tour-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 1.75rem 1.75rem 1.85rem;
}

.post-tour-hero-copy .hero-badge {
  margin-bottom: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.post-tour-hero-title {
  font-family: var(--font-tour-title);
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Tour pages created in admin — sporty condensed titles */
body[data-page="post-tour"] #post-tour-root .display-md,
body[data-page="post-tour"] #post-tour-root .display-lg,
body[data-page="post-tour"] #post-tour-root .tour-itinerary-meta h3,
body[data-page="post-tour"] #post-tour-root .tour-video-card h3,
body[data-page="post-tour"] #post-tour-root .cta-banner-inner .display-md {
  font-family: var(--font-tour-title);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

body[data-page="post-tour"] #post-tour-root .display-md {
  font-size: clamp(2rem, 4vw, 3rem);
}

body[data-page="post-tour"] #post-tour-root .tour-itinerary-meta h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

body[data-page="post-tour"] #post-tour-root .tour-video-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.post-tour-hero-subtitle {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Tighter rhythm on trip-plan pages — less empty black between blocks */
body[data-page="post-tour"] #post-tour-root > .section,
body[data-page="post-tour"] #post-tour-root > section.section {
  padding: 2.25rem 0;
}

body[data-page="post-tour"] #post-tour-root .section-header {
  margin-bottom: 1.5rem;
}

body[data-page="post-tour"] .post-tour-hero {
  padding-bottom: 0;
}

body[data-page="post-tour"] .tour-trip-facts-section {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

@media (max-width: 700px) {
  .post-tour-hero {
    padding: 0.85rem 0.85rem 0;
  }

  .post-tour-hero-frame {
    min-height: clamp(240px, 48vh, 360px);
    border-radius: 14px;
  }

  .post-tour-hero-copy {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .post-tour-hero-title {
    max-width: none;
    font-size: clamp(2.1rem, 9vw, 2.85rem);
  }

  body[data-page="post-tour"] #post-tour-root > .section,
  body[data-page="post-tour"] #post-tour-root > section.section {
    padding: 1.75rem 0;
  }
}

.post-tour-library {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.post-tour-library-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.post-tour-library-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.post-tour-library-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.post-tour-library-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.post-tour-library-body h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.post-tour-library-body p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.admin-pages-list {
  display: grid;
  gap: 0.85rem;
}

.admin-page-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.admin-page-row-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 260px;
  flex: 1;
}

.admin-page-thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-page-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.admin-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.admin-radio-row {
  display: grid;
  gap: 0.55rem;
}

.post-tour-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-pill.pill-public {
  background: rgba(34, 197, 94, 0.9);
}

.admin-pill.pill-private {
  background: rgba(59, 130, 246, 0.95);
  color: #fff;
}

.admin-share-duration {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.admin-share-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.admin-share-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.5rem;
}

.admin-share-item code {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.4;
}

.share-access-banner {
  position: relative;
  z-index: 5;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.18), rgba(251, 191, 36, 0.12));
  border-bottom: 1px solid var(--border-accent);
  padding: calc(var(--nav-height) + 0.85rem) 0 0.85rem;
}

.share-access-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.share-access-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.share-access-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 900px) {
  .admin-share-duration { grid-template-columns: 1fr; }
}

.narrow-content {
  max-width: 760px;
}

.section-alt {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.tour-trip-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.tour-trip-fact {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  min-height: 8.5rem;
}

.tour-trip-fact-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.tour-trip-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.45;
  font-weight: 700;
}

.tour-welcome-note {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  max-width: 70ch;
}

.tour-welcome-note p {
  margin: 0;
}

.tour-welcome-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
}

.tour-welcome-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tour-welcome-list li {
  margin: 0;
  line-height: 1.45;
  color: var(--text-secondary);
}

.tour-itinerary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.tour-itinerary-day {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  overflow: hidden;
}

.tour-itinerary-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #0a0c12;
  border-bottom: 1px solid var(--border);
}

.tour-itinerary-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.tour-itinerary-day-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  padding: 1.25rem 1.5rem 1.4rem;
}

.tour-itinerary-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.16);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 700;
}

.tour-itinerary-meta time {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.tour-itinerary-meta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.tour-payment-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tour-payment-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 107, 0, 0.14), rgba(255, 255, 255, 0.02)),
    var(--bg-secondary);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.08);
}

.tour-payment-step-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.tour-payment-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.tour-payment-step p {
  color: var(--text-secondary);
  line-height: 1.55;
}

.tour-payment-methods {
  max-width: 760px;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.tour-payment-methods h3 {
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
}

.tour-payment-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tour-cancel-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tour-cancel-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.tour-cancel-list strong {
  font-family: var(--font-display);
}

.tour-cancel-list span {
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .tour-trip-facts,
  .tour-payment-schedule {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tour-trip-facts,
  .tour-payment-schedule {
    grid-template-columns: 1fr;
  }

  .tour-itinerary-day-main {
    grid-template-columns: 1fr;
  }

  .tour-itinerary-day {
    grid-template-columns: 1fr;
  }
}

.post-tour-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-tour-highlight {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
}

.post-tour-highlight h3 {
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.post-tour-highlight p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.rich-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.tour-dates-banner {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.16), rgba(255, 107, 0, 0.04));
  padding: 0.9rem 0;
}

.tour-dates-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.tour-dates-banner strong {
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.tour-dates-banner span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tour-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Featured near the top — first impression after the hero */
body[data-page="post-tour"] .tour-videos-featured {
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
}

body[data-page="post-tour"] .tour-videos-featured .section-header {
  margin-bottom: 1.35rem;
}

.tour-video-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.tour-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0b0b;
}

.tour-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-video-thumb {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 280px;
}

.admin-video-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.admin-gallery-card {
  position: relative;
}

.admin-gallery-order {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-tour-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.post-tour-gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.post-tour-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: var(--transition);
}

.post-tour-gallery-item img:hover {
  transform: scale(1.02);
}

.post-tour-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Admin CMS ---- */
.admin-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(255, 107, 0, 0.12), transparent 40%),
    var(--bg-primary);
}

.admin-gate {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.admin-gate[hidden] { display: none; }

.admin-gate-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(12, 16, 25, 0.9);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.admin-editor[hidden] { display: none; }

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-header p {
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 0.5rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  background: var(--gold);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-side .admin-card {
  display: grid;
  gap: 0.65rem;
}

.admin-side a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.sticky-card {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.admin-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-block-head h2 { margin-bottom: 0; }

.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-card-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Compact choice variant (inline rows inside cards) */
.admin-card .admin-check,
.admin-inline-actions .admin-check {
  width: auto;
  max-width: 100%;
}

.admin-hero-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 160px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-itinerary-photo-preview {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  min-height: 140px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-itinerary-photo-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.admin-itinerary-photo-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.portal-card-grid,
.portal-identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.portal-pick-card,
.portal-identity-card {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.portal-pick-card:hover,
.portal-identity-card:hover {
  border-color: var(--accent, #e85d04);
  background: rgba(232, 93, 4, 0.08);
}

.portal-jersey {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent, #e85d04);
  margin-bottom: 0.35rem;
}

.portal-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.portal-photo-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.portal-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.portal-photo-card figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.portal-stats-preview {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 420px;
}

.portal-stats-preview img {
  width: 100%;
  display: block;
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.portal-roster-list {
  display: grid;
  gap: 0.65rem;
}

.portal-roster-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.02);
}

.portal-sheet-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
}

.portal-sheet-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.875rem;
}

.portal-sheet-table th,
.portal-sheet-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.portal-sheet-table th {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}

.portal-sheet-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-sheet-input {
  width: 4.5rem;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
}

.portal-sheet-input:focus {
  outline: 2px solid var(--accent, #c45c26);
  outline-offset: 1px;
}

.admin-content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-content-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: var(--radius-md, 8px);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-content-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-content-tab.active {
  color: var(--text-primary);
  border-color: var(--accent, #e85d04);
  background: rgba(232, 93, 4, 0.12);
}

.admin-content-fields {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
}

.rev-bulk-progress {
  margin-top: 1rem;
}

.rev-bulk-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.rev-bulk-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent, #e85d04);
  transition: width 0.2s ease;
}

.admin-hero-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.admin-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-gallery-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.admin-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.admin-gallery-meta {
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .post-tour-highlights,
  .post-tour-gallery,
  .post-tour-library,
  .tour-videos-grid,
  .admin-gallery-list { grid-template-columns: 1fr; }

  .post-tour-library-card {
    grid-template-columns: 1fr;
  }

  .post-tour-library-body {
    padding: 0 1.25rem 1.25rem;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .post-tour-highlights,
  .post-tour-gallery { grid-template-columns: repeat(2, 1fr); }
}

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

  .marquee-track { animation: none; }
}

/* ---- Admin ops hub ---- */
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-subnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}

.admin-subnav-link:hover {
  color: var(--text-primary);
  border-color: var(--border);
}

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0b0b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inbox-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.inbox-filter.is-active {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 107, 0, 0.14);
  color: var(--text-primary);
}

.inbox-count {
  min-width: 1.1rem;
  text-align: center;
  color: var(--accent);
  font-weight: 800;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.inbox-list {
  display: grid;
  gap: 0.65rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.inbox-item {
  text-align: left;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.inbox-item:hover,
.inbox-item.is-selected {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.08);
}

.inbox-item.is-unread {
  box-shadow: inset 3px 0 0 var(--accent);
}

.inbox-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.inbox-item-top time,
.inbox-item-email {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.inbox-item p {
  margin: 0.45rem 0 0.65rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.inbox-status {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.inbox-status-new {
  color: #0b0b0b;
  background: var(--accent);
  border-color: transparent;
}

.inbox-status-read {
  color: var(--text-secondary);
}

.inbox-status-archived {
  color: var(--text-muted);
}

.inbox-detail {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  min-height: 280px;
}

.inbox-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.inbox-email-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent-light);
}

.inbox-detail-body {
  padding: 1rem 0 1.25rem;
  border-block: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: normal;
}

.inbox-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .inbox-detail {
    position: static;
  }

  .inbox-list {
    max-height: none;
  }
}

.admin-subnav-link.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.admin-stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-hub-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(12, 16, 25, 0.75);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.admin-hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.admin-hub-card p {
  color: var(--text-secondary);
  margin: 0;
}

.admin-hub-cta {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  min-width: 180px;
}

/* Selects must use dark text — Windows dropdown options inherit select color */
input.admin-search[type="search"],
input.admin-search:not([type]) {
  color: var(--text-primary);
}

select.admin-search,
.admin-toolbar select,
.form-group select {
  background-color: #ffffff !important;
  color: #0c1019 !important;
  color-scheme: light;
}

select.admin-search option,
.admin-toolbar select option,
.form-group select option,
select option {
  background-color: #ffffff !important;
  color: #0c1019 !important;
}

.admin-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.admin-crumb {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.admin-crumb a { color: var(--text-secondary); }
.admin-crumb a:hover { color: var(--accent); }

.admin-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-inline-row:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .admin-stats-grid,
  .admin-hub-grid,
  .admin-create-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Featured traveler posters & spotlight cards ---- */
.featured-reviews-section {
  padding-block: 1rem 3rem;
}

.featured-reviews-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.featured-reviews-stack .traveler-poster {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-reviews-stack .traveler-poster-top {
  padding: 1.15rem 1.15rem 1rem;
}

.featured-reviews-stack .traveler-poster-title {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  margin-bottom: 1rem;
}

.featured-reviews-stack .traveler-poster-identity {
  grid-template-columns: minmax(88px, 38%) 1fr;
  gap: 0.75rem;
}

.featured-reviews-stack .traveler-name {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

.featured-reviews-stack .traveler-score {
  font-size: 1.2rem;
}

.featured-reviews-stack .traveler-qa {
  padding: 1rem 1.15rem 1.15rem;
  gap: 0.9rem;
  flex: 1;
}

.featured-reviews-stack .traveler-qa-row {
  grid-template-columns: 36px 1fr;
  gap: 0.65rem;
}

.featured-reviews-stack .traveler-qa-icon {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.featured-reviews-stack .traveler-q {
  font-size: 0.68rem;
}

.featured-reviews-stack .traveler-a {
  font-size: 0.88rem;
  line-height: 1.35;
}

.featured-reviews-stack .traveler-poster-footer {
  min-height: 88px;
  padding: 1rem;
}

.featured-reviews-stack .traveler-poster-footer p {
  font-size: 0.85rem;
  max-width: none;
}

.traveler-poster {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.traveler-poster.is-preview {
  max-width: 560px;
  margin: 0 auto;
  transform: scale(0.98);
}

.traveler-poster-top {
  padding: 1.75rem 1.75rem 1.25rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 107, 0, 0.22), transparent 45%),
    linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.traveler-poster-brand {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.traveler-poster-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.traveler-poster-title span {
  color: #fff;
}

.traveler-poster-title {
  color: var(--accent);
}

.traveler-poster-identity {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 1.25rem;
  align-items: end;
}

.traveler-poster-photo {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.traveler-poster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.traveler-poster-photo-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.traveler-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}

.traveler-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.traveler-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.traveler-stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.traveler-score {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
}

.traveler-qa {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem 1.5rem;
}

.traveler-qa-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.traveler-qa-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.traveler-q {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.traveler-a {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #fff;
  font-style: italic;
  font-weight: 700;
}

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

.traveler-a-sub {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.45;
}

.traveler-poster-footer {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 50% 20%, rgba(255, 107, 0, 0.25), transparent 50%),
    #151515;
  background-size: cover;
  background-position: center;
}

.traveler-poster-footer p {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 22ch;
}

.spotlight-section {
  padding-block: 2rem 4rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.spotlight-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  max-width: 1100px;
  margin-inline: auto;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.spotlight-card.is-preview {
  max-width: 420px;
}

.spotlight-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-media img {
  display: block;
  width: 100%;
  height: auto;
}

.spotlight-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.spotlight-caption {
  padding: 0 0.25rem;
}

.spotlight-line1 {
  color: var(--gold);
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.spotlight-line2 {
  color: rgba(255, 255, 255, 0.72);
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.review-live-preview {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
}

/* ---- Invite wizard modal ---- */
.invite-wizard-modal {
  max-width: 560px;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: hidden;
}

.invite-wizard-modal .modal-header {
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.invite-wizard-step {
  display: none;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

.invite-wizard-step.is-active {
  display: grid;
  flex: 1;
  grid-template-rows: auto auto 1fr auto;
}

#invite-step-ask.is-active,
#invite-step-confirm-no.is-active,
#invite-step-done.is-active {
  grid-template-rows: auto auto auto;
  align-content: start;
}

.invite-wizard-step[hidden] {
  display: none !important;
}

.invite-wizard-text {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.invite-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.invite-group-list {
  display: grid;
  gap: 0.55rem;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 0.25rem;
  align-content: start;
}

.invite-group-option {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.invite-group-option:hover {
  border-color: rgba(255, 107, 0, 0.45);
}

.invite-group-option.selected {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.12);
}

.invite-group-option strong {
  font-size: 1rem;
}

.invite-group-option span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.invite-link-box {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  word-break: break-all;
}

.invite-link-box code {
  font-size: 0.85rem;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .featured-reviews-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .spotlight-reviews-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 1.75rem;
  }
}

@media (max-width: 700px) {
  .featured-reviews-stack {
    grid-template-columns: 1fr;
  }

  .spotlight-reviews-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .traveler-poster-identity {
    grid-template-columns: 1fr;
  }

  .traveler-poster-photo {
    max-width: 260px;
  }

  .featured-reviews-stack .traveler-poster-identity {
    grid-template-columns: minmax(110px, 40%) 1fr;
  }
}

/* ---- Legal consent gate + docs ---- */
html.legal-locked,
body.legal-locked {
  overflow: hidden !important;
}

body.legal-locked > *:not(#legal-consent-gate) {
  pointer-events: none !important;
  user-select: none !important;
  filter: blur(2px);
}

.legal-consent-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 6, 12, 0.92);
  backdrop-filter: blur(10px);
  pointer-events: auto !important;
  filter: none !important;
  user-select: auto !important;
}

.legal-consent-card {
  width: min(640px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #0c1019;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.legal-consent-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.legal-consent-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.75rem;
}

.legal-consent-lead,
.legal-consent-summary {
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.legal-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 1.1rem;
}

.legal-consent-links a {
  color: var(--accent-light);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.legal-consent-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.legal-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.legal-consent-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-consent-footnote {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-doc p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.85rem;
}

.legal-doc-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ---- Account page ---- */
.account-page {
  max-width: 760px;
}

.account-summary h2,
#account-form h2,
#account-password-form h2 {
  margin-top: 0;
}

.account-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.account-dl-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.account-dl-row:last-child {
  border-bottom: none;
}

.account-dl-row dt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-dl-row dd {
  margin: 0;
  color: var(--text-primary);
}

.player-edit-modal {
  max-height: min(90vh, 820px);
}

.player-edit-form {
  display: grid;
  gap: 0.85rem;
  overflow: auto;
  min-height: 0;
  max-height: calc(90vh - 6rem);
  padding-right: 0.15rem;
}

@media (max-width: 640px) {
  .account-dl-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---- Join invite form ---- */
.join-form-full {
  display: grid;
  gap: 1.25rem;
}

.join-section {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.join-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.join-section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.join-flight-notice {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.08);
  margin: 0;
}

.contract-rank-list {
  display: grid;
  gap: 0.55rem;
}

.contract-rank-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 500;
}

.contract-rank-input {
  width: 3.25rem;
  flex-shrink: 0;
}

.account-athlete-fields {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.account-athlete-fields h3,
.player-edit-subhead {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}
