:root {
  --bg: #f4f0e8;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --text: #11181c;
  --text-soft: #48555f;
  --muted: #687076;
  --border: rgba(17, 24, 28, 0.12);
  --accent: #0a7ea4;
  --accent-strong: #075b77;
  --accent-soft: rgba(10, 126, 164, 0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(8, 24, 33, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content: min(1180px, calc(100vw - 48px));
  --header-height: 82px;
  --font-sans: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

body[data-theme="dark"] {
  --bg: #151718;
  --bg-elevated: rgba(30, 32, 34, 0.8);
  --bg-strong: #1e2022;
  --surface: rgba(32, 38, 42, 0.74);
  --surface-strong: rgba(28, 33, 37, 0.92);
  --text: #eceeed;
  --text-soft: #cad4d8;
  --muted: #9ba1a6;
  --border: rgba(229, 231, 235, 0.12);
  --accent: #4ec5eb;
  --accent-strong: #9edff3;
  --accent-soft: rgba(78, 197, 235, 0.12);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(10, 126, 164, 0.18), transparent 38%),
    radial-gradient(circle at top right, rgba(217, 93, 57, 0.14), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, white 10%), var(--bg));
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.site-shell {
  min-height: 100vh;
}

body[data-app-shell="compact"] {
  background:
    radial-gradient(circle at top center, rgba(10, 126, 164, 0.14), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, white 8%), var(--bg));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: var(--content);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(10, 126, 164, 0.18);
}

.brand-mark img,
.hero-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.brand-manifesto {
  display: grid;
  gap: 2px;
  margin-top: 3px;
}

.brand-manifesto span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-logo-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
}

.hero-brand-copy strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-brand-copy span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.avatar-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 68%, #1a4d5f));
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 18px 42px rgba(10, 126, 164, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

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

.compact-header {
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
}

.compact-header-inner {
  min-height: auto;
  padding: 14px 0 12px;
}

.compact-brand-lockup {
  gap: 12px;
}

.compact-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 6px;
}

.compact-brand-copy strong {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.compact-brand-copy span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.compact-header-actions {
  gap: 8px;
}

.compact-points {
  padding-inline: 14px;
}

.compact-profile-button {
  min-width: 52px;
}

.compact-trip-strip {
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 12px;
}

.compact-trip-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
}

.compact-trip-strip strong {
  display: block;
  font-size: 0.95rem;
}

.compact-trip-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.icon-button,
.button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.button,
.pill-button {
  padding: 13px 20px;
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 38px rgba(10, 126, 164, 0.24);
}

.button:hover,
.pill-button:hover {
  transform: scale(0.97);
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.small,
.pill-button.small {
  padding: 10px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.icon-button:hover {
  transform: scale(0.97);
}

.page {
  width: var(--content);
  margin: 0 auto;
  padding: 26px 0 80px;
}

body[data-app-shell="compact"] .page {
  width: min(100vw - 24px, 760px);
  padding: 16px 0 104px;
}

body[data-app-shell="compact"] .site-shell {
  padding-bottom: env(safe-area-inset-bottom);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height) - 24px);
  border-radius: calc(var(--radius-xl) + 8px);
  background: #0c1d25;
  color: white;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 24, 32, 0.88), rgba(6, 24, 32, 0.22) 48%, rgba(6, 24, 32, 0.58)),
    linear-gradient(180deg, transparent 20%, rgba(8, 22, 30, 0.76));
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.04);
  transition: transform 280ms ease;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  min-height: inherit;
  padding: clamp(28px, 4vw, 54px);
  align-items: end;
}

.hero-copy {
  max-width: 620px;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.display {
  margin: 18px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 46ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.button-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-notes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.hero-panel {
  align-self: end;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(7, 20, 27, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.hero-panel h2,
.section h2,
.section h3,
.detail-grid h2,
.detail-grid h3,
.surface h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.panel-stack,
.bullet-list,
.info-list,
.story-body,
.quiz-list,
.task-list {
  display: grid;
  gap: 14px;
}

.panel-stack .info-chip,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.1;
}

.tag {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.surface,
.slab,
.catalog-item,
.story-card,
.dashboard-card,
.detail-aside,
.reward-card,
.package-card,
.module-card,
.result-card,
.blog-card,
.partner-strip,
.empty-state,
.hotel-strip,
.timeline-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.slab,
.surface,
.dashboard-card,
.detail-aside,
.reward-card,
.package-card,
.module-card,
.result-card,
.blog-card,
.partner-strip,
.empty-state,
.timeline-card {
  padding: clamp(20px, 3vw, 28px);
}

.section {
  margin-top: 22px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(var(--radius-xl) + 4px);
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

body[data-app-shell="compact"] .section {
  margin-top: 14px;
  padding: 18px;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(8, 24, 33, 0.12);
}

body[data-app-shell="compact"] .surface,
body[data-app-shell="compact"] .slab,
body[data-app-shell="compact"] .catalog-item,
body[data-app-shell="compact"] .dashboard-card,
body[data-app-shell="compact"] .detail-aside,
body[data-app-shell="compact"] .reward-card,
body[data-app-shell="compact"] .package-card,
body[data-app-shell="compact"] .module-card,
body[data-app-shell="compact"] .result-card,
body[data-app-shell="compact"] .blog-card,
body[data-app-shell="compact"] .hotel-strip,
body[data-app-shell="compact"] .timeline-card {
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(8, 24, 33, 0.1);
}

.section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-header > div,
.dashboard-header > div {
  display: grid;
  gap: 6px;
}

.section-header .eyebrow,
.dashboard-header .eyebrow {
  justify-self: start;
}

.section-header h2,
.dashboard-header h2 {
  margin: 0;
}

.flow-section .section-header {
  margin-bottom: 16px;
}

.section-header p,
.surface p,
.catalog-copy p,
.detail-grid p,
.story-body p,
.timeline-card p,
.partner-strip p {
  color: var(--text-soft);
  line-height: 1.7;
}

.section-header p {
  max-width: 54ch;
  margin: 0;
}

.grid-2,
.grid-3,
.grid-4,
.catalog-grid,
.reward-grid,
.package-grid,
.blog-grid,
.module-grid,
.stats-grid,
.hotel-grid,
.detail-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.grid-2,
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.catalog-grid,
.reward-grid,
.package-grid,
.blog-grid,
.hotel-grid,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-item,
.story-card,
.reward-card,
.package-card,
.module-card,
.blog-card,
.hotel-strip {
  overflow: hidden;
}

.media {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.catalog-copy,
.blog-copy,
.hotel-copy,
.package-copy {
  padding: 22px;
}

.catalog-copy h3,
.blog-copy h3,
.hotel-copy h3,
.package-copy h3 {
  margin: 0 0 14px;
}

.catalog-copy .meta-row,
.hotel-copy .meta-row,
.package-copy .meta-row,
.reward-card .meta-row {
  margin-bottom: 18px;
}

.featured-hotel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.featured-hotel-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.featured-hotel-card .media {
  aspect-ratio: 1.24 / 1;
  min-height: 0;
}

.featured-hotel-card .hotel-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 14px 14px;
}

.featured-hotel-card .meta-row {
  gap: 8px;
  margin: 0 0 4px;
}

.featured-hotel-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.05;
}

.featured-hotel-card .meta-chip {
  padding: 7px 10px;
  font-size: 0.78rem;
}

.featured-hotel-card .button.small {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.featured-hotel-card .button {
  width: fit-content;
}

.meta-row,
.metric-row,
.route-list,
.utility-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 12px;
}

.metric-chip,
.meta-chip,
.outline-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

body[data-app-shell="compact"] .metric {
  padding: 16px;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-shell {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.detail-main,
.detail-aside {
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 10px;
  min-height: 420px;
}

.gallery > div {
  border-radius: calc(var(--radius-lg) - 4px);
  background-size: cover;
  background-position: center;
}

.gallery > div:first-child {
  min-height: 420px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.knowledge-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.knowledge-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-slide-card {
  display: grid;
  gap: 22px;
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.module-slide-card h3 {
  margin: 0;
}

.module-slide-card p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.module-step-count {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  color: var(--text-soft);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.field-group legend {
  font-size: 0.88rem;
  color: var(--muted);
}

.field span {
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.inline-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.auth-page {
  min-height: min(72vh, 780px);
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.auth-card {
  width: min(100%, 640px);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface-strong)), var(--surface-strong));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.auth-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.auth-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-provider-button {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.auth-provider-button strong {
  font-size: 1rem;
}

.auth-provider-button small {
  color: var(--muted);
  line-height: 1.5;
}

.auth-provider-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
}

.auth-provider-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

.traveler-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.traveler-choice {
  position: relative;
  display: flex;
  align-items: center;
}

.traveler-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.traveler-choice span {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.traveler-choice input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface-strong));
}

.dashboard {
  display: grid;
  gap: 18px;
}

.trip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.trip-card-header,
.dashboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.booking-card,
.task-row,
.line-item,
.package-line,
.timeline-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.task-copy {
  min-width: 0;
  flex: 1;
}

.task-copy strong {
  display: block;
  line-height: 1.3;
}

.task-copy small {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.task-row .badge {
  min-width: 96px;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.booking-card:first-child,
.task-row:first-child,
.line-item:first-child,
.package-line:first-child,
.timeline-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.line-item strong,
.timeline-line strong {
  display: block;
}

.line-item small,
.timeline-line small,
.booking-card small {
  color: var(--muted);
}

.score-banner,
.status-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.status-banner.success {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  border-color: color-mix(in srgb, var(--success) 26%, transparent);
}

.status-banner.warning {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  border-color: color-mix(in srgb, var(--warning) 28%, transparent);
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option-button:hover,
.option-button.is-selected {
  transform: scale(0.985);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface-strong));
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-soft);
}

.segmented button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.table-grid {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.table-row.is-head {
  background: transparent;
  color: var(--muted);
}

.category-band {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
}

.footer {
  width: var(--content);
  margin: 20px auto 34px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.footer small,
.footer p,
.footer li,
.footer a {
  color: var(--muted);
  line-height: 1.7;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer h4 {
  margin: 0 0 12px;
}

.empty-state {
  text-align: center;
  padding-block: 48px;
}

.empty-state p {
  max-width: 42ch;
  margin: 12px auto 0;
  color: var(--text-soft);
}

.compact-home-hero {
  padding: 20px;
}

.compact-home-intro h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.compact-home-intro p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.compact-action-grid,
.compact-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compact-action-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
}

.compact-action-card strong {
  font-size: 1rem;
}

.compact-action-card span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.compact-card-stack {
  display: grid;
  gap: 14px;
}

.compact-card .compact-copy {
  padding: 18px;
}

.compact-media {
  min-height: 190px;
}

.compact-section-header {
  align-items: start;
}

.compact-learn-card .catalog-copy {
  padding: 18px;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 10px 8px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bottom-nav a.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.route-fade {
  animation: routeFade 320ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.celebration {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 14, 18, 0.56);
  backdrop-filter: blur(10px);
}

.celebration-card {
  position: relative;
  overflow: hidden;
  max-width: 520px;
  width: min(100%, 520px);
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(10, 126, 164, 0.15), var(--surface-strong));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.celebration-card h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.celebration-card p {
  color: var(--text-soft);
}

.celebration-icon {
  font-size: 3rem;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  opacity: 0.75;
  animation: fall 2000ms linear infinite;
}

.confetti span:nth-child(1) { left: 8%; background: #0a7ea4; animation-delay: 80ms; }
.confetti span:nth-child(2) { left: 18%; background: #22c55e; animation-delay: 260ms; }
.confetti span:nth-child(3) { left: 28%; background: #f59e0b; animation-delay: 140ms; }
.confetti span:nth-child(4) { left: 38%; background: #ef4444; animation-delay: 320ms; }
.confetti span:nth-child(5) { left: 48%; background: #d95d39; animation-delay: 220ms; }
.confetti span:nth-child(6) { left: 58%; background: #6b21a8; animation-delay: 460ms; }
.confetti span:nth-child(7) { left: 68%; background: #0a7ea4; animation-delay: 180ms; }
.confetti span:nth-child(8) { left: 78%; background: #22c55e; animation-delay: 520ms; }
.confetti span:nth-child(9) { left: 88%; background: #f59e0b; animation-delay: 120ms; }

.noscript-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

@keyframes routeFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fall {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(26px, 120vh, 0) rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero-inner,
  .split-hero,
  .detail-hero,
  .trip-hero,
  .detail-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .catalog-grid,
  .reward-grid,
  .package-grid,
  .blog-grid,
  .module-grid,
  .hotel-grid,
  .stats-grid,
  .footer-grid,
  .form-grid.columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

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

  .gallery > div:first-child {
    grid-column: 1 / -1;
  }

  .knowledge-grid,
  .auth-provider-grid,
  .traveler-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --content: min(100vw - 28px, 1180px);
    --header-height: 76px;
  }

  .header-inner {
    padding: 10px 0;
    align-items: start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .page {
    padding-top: 18px;
  }

  .section,
  .hero-inner,
  .celebration-card {
    padding: 22px;
  }

  .display {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-brand {
    margin-bottom: 18px;
  }

  .hero-logo-mark {
    width: 68px;
    height: 68px;
  }

  .brand-copy {
    min-width: auto;
  }

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

  .compact-header-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .button,
  .button.secondary,
  .button.ghost,
  .pill-button {
    width: 100%;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .metric-row,
  .meta-row,
  .tag-row,
  .utility-row {
    gap: 8px;
  }

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

  .compact-action-grid,
  .compact-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-app-shell="compact"] .section-header,
  body[data-app-shell="compact"] .dashboard-header,
  body[data-app-shell="compact"] .trip-card-header,
  body[data-app-shell="compact"] .booking-card,
  body[data-app-shell="compact"] .task-row,
  body[data-app-shell="compact"] .line-item,
  body[data-app-shell="compact"] .package-line,
  body[data-app-shell="compact"] .timeline-line {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-app-shell="compact"] .hero,
  body[data-app-shell="compact"] .hero-inner,
  body[data-app-shell="compact"] .split-hero,
  body[data-app-shell="compact"] .detail-hero,
  body[data-app-shell="compact"] .trip-hero,
  body[data-app-shell="compact"] .detail-grid,
  body[data-app-shell="compact"] .grid-2,
  body[data-app-shell="compact"] .grid-3,
  body[data-app-shell="compact"] .grid-4,
  body[data-app-shell="compact"] .catalog-grid,
  body[data-app-shell="compact"] .reward-grid,
  body[data-app-shell="compact"] .package-grid,
  body[data-app-shell="compact"] .blog-grid,
  body[data-app-shell="compact"] .module-grid,
  body[data-app-shell="compact"] .hotel-grid,
  body[data-app-shell="compact"] .stats-grid,
  body[data-app-shell="compact"] .knowledge-grid,
  body[data-app-shell="compact"] .traveler-type-grid,
  body[data-app-shell="compact"] .auth-provider-grid {
    grid-template-columns: 1fr;
  }

  body[data-app-shell="compact"] .button,
  body[data-app-shell="compact"] .button.secondary,
  body[data-app-shell="compact"] .button.ghost,
  body[data-app-shell="compact"] .pill-button {
    width: 100%;
  }

  body[data-app-shell="compact"] .meta-row,
  body[data-app-shell="compact"] .tag-row,
  body[data-app-shell="compact"] .utility-row,
  body[data-app-shell="compact"] .button-row {
    gap: 8px;
  }

  body[data-app-shell="compact"] .gallery > div:first-child {
    min-height: 260px;
  }

  body[data-app-shell="compact"] .media {
    min-height: 180px;
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
    gap: 6px;
    padding: 7px;
  }

  .bottom-nav a {
    min-height: 48px;
    font-size: 0.68rem;
  }
}
