:root {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #242836;
  --card: #1e2230;
  --border: #2d3348;
  --text: #e4e6f0;
  --text2: #9ba1b8;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --green: #34d399;
  --orange: #f59e0b;
  --red: #f87171;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* NAV */
nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
nav a:hover, nav a.active {
  color: #fff;
  background: var(--accent);
}
nav .brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #fff;
  margin-right: auto;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO */
.hero {
  background: var(--gradient);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}
.hero .badge-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.badge-light {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.badge-green { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-orange { background: rgba(245,158,11,0.15); color: var(--orange); }
.badge-red { background: rgba(248,113,113,0.15); color: var(--red); }
.badge-blue { background: rgba(96,165,250,0.15); color: var(--blue); }
.badge-accent { background: rgba(108,99,255,0.15); color: var(--accent2); }

/* CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent2);
  margin: 18px 0 8px;
}
.card p { color: var(--text2); margin-bottom: 10px; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
thead th {
  background: var(--bg3);
  color: var(--accent2);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
tr:last-child td { border-bottom: none; }

/* LISTS */
ul, ol { padding-left: 20px; color: var(--text2); }
li { margin-bottom: 6px; }

/* ALERT BOXES */
.alert {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 14px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-warn { background: rgba(245,158,11,0.1); border-left: 4px solid var(--orange); color: var(--orange); }
.alert-danger { background: rgba(248,113,113,0.1); border-left: 4px solid var(--red); color: var(--red); }
.alert-info { background: rgba(96,165,250,0.1); border-left: 4px solid var(--blue); color: var(--blue); }
.alert-success { background: rgba(52,211,153,0.1); border-left: 4px solid var(--green); color: var(--green); }

/* SECTION DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* MEAL PLAN */
.meals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.meal {
  background: var(--bg3);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
}
.meal strong { color: var(--cyan); }

/* NIGHT SECTION */
.night-card {
  background: linear-gradient(135deg, #1a1040 0%, #1e2230 100%);
  border: 1px solid #3b2d6b;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
}
.night-card h3 { color: var(--cyan); }

/* HOTEL */
.hotel-card {
  background: linear-gradient(135deg, #1a2a1a 0%, #1e2230 100%);
  border: 1px solid #2d4a2d;
  border-radius: 14px;
  padding: 20px;
  margin: 12px 0;
}
.hotel-card h4 { color: var(--green); font-size: 15px; margin-bottom: 6px; }

/* STATUS INDICATORS */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.status-safe { color: var(--green); }
.status-caution { color: var(--orange); }
.status-danger { color: var(--red); }

/* COST TABLE */
.cost-total {
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 14px;
}

/* CHECKLIST */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--accent2);
  border-radius: 4px;
  display: inline-block;
}

/* DAY NAV CARDS */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.day-link {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.day-link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.2);
}
.day-link .day-num {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.day-link .day-title {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin: 4px 0;
}
.day-link .day-desc {
  font-size: 13px;
  color: var(--text2);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  color: var(--text2);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 600px) {
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
  nav { gap: 6px; }
  nav a { font-size: 11px; padding: 5px 8px; }
}

/* PRINT BUTTON */
.print-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(108,99,255,0.4);
  transition: all 0.2s;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.6);
}

/* PRINT STYLES */
@media print {
  nav, .print-btn, footer { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .container { padding: 0; max-width: 100%; }
  .hero {
    background: #6c63ff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 30px;
  }
  .card, .night-card, .hotel-card, .alert {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .card h2, .card h3 { color: #222 !important; }
  .card p, .card li, td { color: #333 !important; }
  .night-card h3 { color: #6c63ff !important; }
  .hotel-card h4 { color: #059669 !important; }
  .badge { border: 1px solid #ccc; }
  a[href]:not(.brand) { color: #6c63ff !important; }
  thead th {
    background: #eee !important;
    color: #222 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .status-safe { color: #059669 !important; }
  .status-caution { color: #b45309 !important; }
  .status-danger { color: #dc2626 !important; }
  .cost-total {
    background: #6c63ff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .day-link { border: 1px solid #ccc !important; background: #f9f9f9 !important; }
  .day-link .day-title { color: #111 !important; }
  .day-link .day-num { color: #6c63ff !important; }
  .day-link .day-desc { color: #555 !important; }
  .checklist li::before { border-color: #666 !important; }
  .text2, .meal, .checklist li { color: #333 !important; }
  .meal { background: #f3f3f3 !important; border: 1px solid #ddd; }
  .meal strong { color: #0891b2 !important; }
  .alert-warn { background: #fef3c7 !important; border-left-color: #b45309 !important; color: #92400e !important; }
  .alert-danger { background: #fee2e2 !important; border-left-color: #dc2626 !important; color: #991b1b !important; }
  .alert-info { background: #dbeafe !important; border-left-color: #2563eb !important; color: #1e40af !important; }
  .alert-success { background: #d1fae5 !important; border-left-color: #059669 !important; color: #065f46 !important; }
}
