:root {
  --bg: #080c15;
  --bg-soft: #0f1626;
  --card: rgba(18, 25, 42, 0.78);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f6fc;
  --muted: #98a4be;
  --accent-1: #f59e0b;
  --accent-2: #f43f5e;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient glow */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.16), transparent 40%),
    radial-gradient(circle at 82% 22%, rgba(244, 63, 94, 0.15), transparent 42%),
    radial-gradient(circle at 50% 88%, rgba(56, 189, 248, 0.10), transparent 45%);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 21, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 11px 20px;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.48);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 84px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #fde68a 0%, #fb923c 45%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-lbl {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Preview card */
.preview-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.preview-banner {
  height: 250px;
  border-radius: 16px;
  background-image:
    linear-gradient(to top, rgba(8, 12, 21, 0.86) 0%, rgba(8, 12, 21, 0.18) 58%, rgba(8, 12, 21, 0.38) 100%),
    url('images/hero-santorini.jpg');
  background-size: cover;
  background-position: center;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 18px;
}

.trip-pill {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 21, 0.58);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
}

.trip-place {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.trip-dates {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.match-row:last-child {
  margin-bottom: 0;
}

.match-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.av-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-2 { background: linear-gradient(135deg, #06b6d4, #6366f1); }

.match-name {
  font-weight: 700;
  font-size: 0.94rem;
}

.match-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.verified-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dest-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: #111827;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  z-index: 0;
}

.dest-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 21, 0.90) 0%, rgba(8, 12, 21, 0.28) 55%, rgba(8, 12, 21, 0.08) 100%);
  z-index: 1;
}

.dest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.dest-card:hover img {
  transform: scale(1.06);
}

.dest-card h3,
.dest-card span {
  position: relative;
  z-index: 2;
}

.dest-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.dest-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(244, 63, 94, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Member Dashboard */
.dashboard {
  padding: 40px 0 60px;
}

.dash-card {
  background: var(--card);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.meta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.meta-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(440px, 100%);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: 12px;
  margin: 8px 0 22px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

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

.form-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group select option {
  background: #111827;
  color: #f3f6fc;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-1);
}

.alert {
  display: none;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.alert.show {
  display: block;
}

.alert-error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.alert-success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent-1);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 12px;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .dash-meta {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
