:root {
  --bg: #f3eee6;
  --bg-2: #e7efe8;
  --ink: #132027;
  --muted: #5d6c74;
  --line: rgba(20, 32, 43, 0.08);
  --card: #fffdf8;
  --teal: #0d6e6a;
  --teal-2: #15928c;
  --sun: #f0b429;
  --sun-ink: #3a2a04;
  --coral: #e8573a;
  --live: #ff2d55;
  --shadow: 0 16px 40px rgba(19, 32, 39, 0.1);
  --radius: 22px;
  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, #d9efe8 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #efe8dc 100%);
  color: var(--ink);
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }

.app {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100%;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-2), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 45, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.hero, .section { padding: 8px 18px 18px; }
.hero h1 {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
}

.lead { color: var(--muted); font-size: 15px; max-width: 36ch; }

.search {
  margin-top: 18px;
  background: var(--card);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
  background: #f6f1e8;
  border-radius: 16px;
  padding: 10px 12px;
}

.field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field select {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
}

.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.trust div {
  background: rgba(255, 253, 248, 0.7);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
}

.trust b { display: block; font-size: 16px; }
.trust span { font-size: 11px; color: var(--muted); }

.h-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.h-row h2 {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.link { color: var(--teal); font-weight: 800; font-size: 13px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.chip.is-on { background: var(--ink); color: #fff; }

.cards { display: grid; gap: 14px; }

.tour {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cover {
  height: 168px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 32, 43, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.badge.live { background: var(--live); }

.tour-body { padding: 14px; }
.tour-body h3 { font-size: 18px; letter-spacing: -0.03em; }
.meta { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price b { font-size: 20px; }
.price span { color: var(--muted); font-size: 12px; }

.live-card .cover { height: 210px; }
.live-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
}
.live-info h3 { text-shadow: 0 8px 24px #000; }
.viewers { font-size: 12px; opacity: 0.92; }

.chat {
  margin-top: 12px;
  background: #11181d;
  color: #e9eef1;
  border-radius: 20px;
  padding: 12px;
  min-height: 180px;
}
.chat p { font-size: 13px; margin: 0 0 8px; opacity: 0.92; }
.chat b { color: #8be0d8; }

.steps { display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
}
.num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  font-weight: 800;
}

.form {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.toast {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #dff6e8;
  color: #146c43;
  font-weight: 700;
}
.toast.show { display: block; }

.screen { display: none; }
.screen.is-on { display: block; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 8px 10px var(--safe-bottom);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
}

.bottom-nav button {
  display: grid;
  gap: 2px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav button.is-on { color: var(--teal); }
.bottom-nav svg { width: 22px; height: 22px; }

.hidden { display: none !important; }

@media (min-width: 720px) {
  .app { width: min(980px, 100%); }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bottom-nav { width: min(980px, 100%); }
}
