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

:root {
  --blue: #1a56db;
  --blue-dark: #1240a8;
  --green: #0e9f6e;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-logo { font-size: 1.2rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-left: 20px; }
.nav-links a:hover { color: var(--blue); }

/* HERO */
.hero {
  position: relative;
  color: #fff;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 560px; margin: 0 auto 36px; }

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.hero h1, .hero p, .signup-note, .success-msg { color: #fff; }

.geo-tag {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 12px;
  color: #fff;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  outline: none;
}
.btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #fff; color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.signup-note { font-size: 0.82rem; opacity: 0.7; margin-top: 12px; }
.hero iframe { display: block; margin: 0 auto; }
#beehiiv-form-wrapper { width: 400px; margin: 0 auto; padding-bottom: 16px; }
.success-msg { display: none; background: rgba(255,255,255,0.2); border-radius: var(--radius); padding: 12px 20px; margin-top: 16px; font-weight: 600; }

/* STATS BAR */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* SECTION */
section { max-width: 960px; margin: 0 auto; padding: 56px 24px; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }

/* DEAL CARDS */
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.deal-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

.deal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
}
.badge-flight { background: #dbeafe; color: #1e40af; }
.badge-package { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }

.deal-header {
  padding: 20px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.deal-route { font-size: 1.25rem; font-weight: 800; margin-top: 8px; }
.deal-price { text-align: right; }
.deal-price .amount { font-size: 1.6rem; font-weight: 800; color: var(--green); }
.deal-price .per { font-size: 0.75rem; color: var(--muted); }

.deal-body { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.deal-desc { color: var(--muted); font-size: 0.88rem; margin: 12px 0; }
.deal-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.deal-meta span::before { margin-right: 4px; }

.deal-link {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.deal-link:hover { background: var(--blue-dark); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; grid-column: 1/-1; }
.empty-state p { font-size: 1.1rem; }

/* PACKAGE CARDS */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.pkg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pkg-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

.pkg-card-top {
  background: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  padding: 20px;
  color: #fff;
}
.pkg-destination { font-size: 1.35rem; font-weight: 800; }
.pkg-event-label { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }
.pkg-price-tag { font-size: 1.6rem; font-weight: 800; margin-top: 12px; display: inline; }
.pkg-price-sub { font-size: 0.75rem; opacity: 0.75; margin-left: 4px; }

.pkg-includes {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pkg-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f1f5f9;
  color: var(--text);
}

.pkg-body { padding: 16px 20px 20px; }
.pkg-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.pkg-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.pkg-link { background: #7c3aed !important; }
.pkg-link:hover { background: #6d28d9 !important; }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.how-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.how-num { font-size: 2rem; font-weight: 900; color: var(--blue); opacity: 0.15; line-height: 1; }
.how-card h3 { font-size: 1rem; font-weight: 700; margin: 8px 0 6px; }
.how-card p { font-size: 0.85rem; color: var(--muted); }

/* FOOTER */
footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* PACKAGE DETAIL OVERLAY */
#pkg-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#pkg-overlay.open { transform: translateX(0); }

.pkg-overlay-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
.pkg-back-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 8px 0;
}
.pkg-back-btn:hover { opacity: 0.7; }

.pkg-detail-hero {
  background: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  padding: 56px 24px;
  color: #fff;
  text-align: center;
}
.pkg-detail-destination { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.pkg-detail-event { font-size: 1rem; opacity: 0.85; margin-bottom: 20px; }
.pkg-detail-price { font-size: 2.4rem; font-weight: 800; }
.pkg-detail-per { font-size: 1rem; opacity: 0.75; margin-left: 4px; }

.pkg-detail-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }

.pkg-detail-includes { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.pkg-detail-item {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pkg-detail-item-icon { font-size: 1.4rem; }
.pkg-detail-item-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pkg-detail-item-value { font-size: 0.95rem; font-weight: 600; }

.pkg-detail-desc { font-size: 1.05rem; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.pkg-detail-date { font-size: 0.9rem; color: var(--muted); margin-bottom: 32px; }
.pkg-detail-cta {
  display: block;
  text-align: center;
  background: #7c3aed;
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  max-width: 320px;
  transition: background 0.15s;
}
.pkg-detail-cta:hover { background: #6d28d9; }

/* ADMIN */
.admin-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.admin-wrap h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.admin-wrap .sub { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.subscriber-list { list-style: none; }
.subscriber-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text); display: flex; justify-content: space-between; }
.subscriber-list li:last-child { border-bottom: none; }
.subscriber-list .date { color: var(--muted); font-size: 0.8rem; }

#login-section { max-width: 400px; margin: 80px auto; }
.auth-msg { color: #ef4444; font-size: 0.85rem; margin-top: 8px; min-height: 20px; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
