:root {
  --bg: #030303;
  --card: #0c0c10;
  --purple: #8b5cf6;
  --purple-deep: #5b21b6;
  --purple-glow: rgba(139, 92, 246, 0.65);
  --orange: #ff5c00;
  --orange-hot: #ff7a2f;
  --orange-glow: rgba(255, 92, 0, 0.45);
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shell-pad: clamp(1.25rem, 4vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Full viewport page */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-crowd {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  filter: brightness(0.3) saturate(0.75);
}

.page-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 28%, transparent 72%, rgba(3, 3, 3, 0.85) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.6) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}

.page-purple {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 33, 182, 0.5) 0%,
    rgba(91, 33, 182, 0.12) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.page-spotlight {
  position: absolute;
  top: -15%;
  left: 32%;
  transform: translateX(-50%);
  width: 70%;
  height: 90%;
  background: radial-gradient(
    ellipse 40% 60% at 50% 0%,
    rgba(167, 139, 250, 0.85) 0%,
    rgba(139, 92, 246, 0.3) 40%,
    transparent 70%
  );
  animation: spotlight-pulse 5s ease-in-out infinite;
}

.page-spotlight-beam {
  position: absolute;
  top: 0;
  left: 32%;
  transform: translateX(-50%);
  width: 22%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(139, 92, 246, 0.06) 50%,
    transparent 100%
  );
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  filter: blur(3px);
}

@keyframes spotlight-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Header */
.topbar {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  padding: 1.5rem var(--shell-pad) 0;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: clamp(22px, 2.5vw, 36px);
  width: auto;
  filter: brightness(0) invert(1);
}

/* Main split layout — first screen */
.layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  width: 100%;
}

.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.coin {
  position: absolute;
  width: var(--size, 44px);
  height: var(--size, 44px);
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.5);
  animation: coin-float var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform: translate(-50%, -50%);
  left: var(--x, 50%);
  top: var(--y, 50%);
}

.coin img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@keyframes coin-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) translateY(-16px) rotate(6deg);
    opacity: 1;
  }
}

.device-wrap {
  position: relative;
  z-index: 6;
  animation: device-hover 5s ease-in-out infinite;
}

@keyframes device-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.device-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 40vw, 420px);
  height: clamp(300px, 50vw, 520px);
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.device-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(260px, 45vw, 480px);
  height: clamp(260px, 45vw, 480px);
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.25);
  animation: ring-spin 20s linear infinite;
}

.device-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 92, 0, 0.2);
  animation: ring-spin 30s linear infinite reverse;
}

@keyframes ring-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.device-img {
  position: relative;
  display: block;
  width: clamp(200px, 28vw, 380px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.8))
    drop-shadow(0 0 100px rgba(91, 33, 182, 0.45))
    drop-shadow(0 32px 64px rgba(0, 0, 0, 0.9));
  z-index: 2;
}

/* Pitch / CTA column */
.pitch {
  position: relative;
  z-index: 10;
  padding: 1.5rem var(--shell-pad) 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--orange), #ff3d00);
  color: #fff;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 28px var(--orange-glow);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h1 .accent {
  background: linear-gradient(90deg, #fff 20%, var(--orange-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--orange-hot);
  margin-bottom: 0.6rem;
}

.sub strong {
  font-weight: 700;
}

.fine {
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto 2rem;
}

.cta {
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: none;
  padding: 0.95rem 1.65rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff3d00 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 0 #c24100, 0 14px 48px var(--orange-glow);
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.pitch .cta {
  width: 100%;
  max-width: 420px;
  padding: clamp(1rem, 1.5vw, 1.2rem) clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cta-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #c24100, 0 20px 56px var(--orange-glow);
}

.cta:active {
  transform: translateY(2px);
}

.booking-main .cta,
.cta.cta-sm,
.cta.cta-seed {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.25;
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.cta-sm {
  padding: 0.85rem 1.5rem;
}

.cta.cta-seed {
  padding: 0.85rem 1.55rem;
}

.secure {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

/* Desktop: side-by-side full bleed */
@media (min-width: 900px) {
  .layout {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    min-height: 100dvh;
    max-width: 100%;
    padding: 0 var(--shell-pad) 2rem;
    gap: clamp(2rem, 5vw, 6rem);
  }

  .booking-head {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .hero {
    min-height: 0;
    justify-content: flex-end;
  }

  .hero-stage {
    min-height: 100%;
    max-width: none;
  }

  .page-spotlight,
  .page-spotlight-beam {
    left: 38%;
  }

  .page-vignette {
    background:
      linear-gradient(90deg, var(--bg) 0%, transparent 22%, transparent 58%, rgba(3, 3, 3, 0.92) 100%),
      linear-gradient(180deg, rgba(3, 3, 3, 0.5) 0%, transparent 25%, transparent 85%, var(--bg) 100%);
  }

  .pitch {
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .pitch-inner {
    max-width: 520px;
    text-align: left;
    margin-left: 0;
  }

  .fine {
    margin-left: 0;
    margin-right: 0;
  }

  .pitch .cta {
    margin-left: 0;
    max-width: 100%;
  }

  .secure {
    justify-content: flex-start;
  }

  .device-img {
    width: clamp(280px, 32vw, 420px);
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 4rem;
  }

  .device-img {
    width: clamp(320px, 28vw, 440px);
  }

  .coin {
    /* slightly larger coins on big screens via JS vars optional */
  }
}

@media (min-width: 1600px) {
  .layout {
    max-width: 1800px;
    margin: 0 auto;
  }
}

/* Inline booking section */
.booking {
  position: relative;
  z-index: 15;
  width: 100%;
  padding: 4rem var(--shell-pad) 5rem;
  scroll-margin-top: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 3, 3, 0.85) 12%, var(--bg) 28%);
}

.booking-anchor {
  position: absolute;
  top: -2rem;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.booking.is-highlight .booking-card {
  border-color: rgba(255, 92, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 92, 0, 0.2),
    0 0 60px rgba(139, 92, 246, 0.25),
    0 24px 80px rgba(0, 0, 0, 0.6);
}

.booking-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.booking-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-hot);
  margin-bottom: 0.6rem;
}

.booking-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.booking-lead {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto;
}

.booking-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.booking-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  pointer-events: none;
}

.booking-side {
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, rgba(91, 33, 182, 0.35) 0%, transparent 60%);
  border-right: 1px solid var(--border);
}

.concierge-logo {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.concierge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-hot);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.concierge-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.perks li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 1.25rem;
  position: relative;
}

.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-hot);
  font-weight: 700;
}

.booking-main {
  padding: 2rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.step {
  flex: 0 1 auto;
  min-width: 4.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
  transition: all 0.2s;
}

.step.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.step.done {
  background: rgba(255, 92, 0, 0.15);
  border-color: rgba(255, 92, 0, 0.35);
  color: var(--orange-hot);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: panel-in 0.35s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.cal-head button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.cal-head button:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.15);
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.cal-day:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

.cal-day.selected {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.cal-day:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  background: transparent;
}

.cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.hint,
.panel-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

.panel-label {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--orange-hot);
  font-weight: 600;
  font-size: 0.95rem;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.slot {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.slot:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.12);
}

.slot.selected {
  border-color: var(--orange);
  background: rgba(255, 92, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.2);
}

.ghost {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.ghost:hover {
  color: #fff;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.panel[data-panel="3"] {
  max-width: 28rem;
}

.panel[data-panel="3"] .panel-label {
  line-height: 1.45;
  word-break: normal;
}

.panel[data-panel="3"] .form {
  width: 100%;
  max-width: 28rem;
}

.panel[data-panel="3"] .form .cta {
  align-self: flex-start;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 520px) {
  .panel[data-panel="3"] {
    max-width: 32rem;
  }

  .panel[data-panel="3"] .form {
    max-width: 32rem;
  }

  .panel[data-panel="3"] .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field label span {
  font-weight: 400;
  opacity: 0.7;
}

.field {
  width: 100%;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: normal;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.panel-done {
  text-align: center;
  padding: 2rem 0;
}

.done-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(255, 92, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-hot);
}

.panel-done h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.panel-done p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* Ledger connect & verify */
.ledger-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.25s;
}

.flow-step.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.flow-step.done {
  border-color: rgba(255, 92, 0, 0.35);
  color: var(--orange-hot);
}

.flow-step.done .flow-icon {
  background: rgba(255, 92, 0, 0.25);
  color: var(--orange-hot);
}

.flow-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.flow-step.active .flow-icon {
  background: var(--purple);
  color: #fff;
}

.connect-box {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.connect-box.is-searching {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.connect-box.is-searching .connect-device-img {
  animation: device-pulse 1.2s ease-in-out infinite;
}

@keyframes device-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

.connect-box.is-connected {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.12);
}

.connect-loading {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.loader-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--purple);
  border-right-color: var(--orange);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.loading-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.manual-fail-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.manual-fail-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.manual-fail-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fecaca;
  margin-bottom: 0.2rem;
}

.manual-fail-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.manual-device {
  font-size: 0.88rem;
  color: var(--orange-hot);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.panel[data-panel="5"] {
  max-width: 42rem;
  margin: 0 auto;
}

.panel[data-panel="5"] .manual-fail-banner,
.panel[data-panel="5"] .manual-device {
  max-width: 100%;
}

.seed-form {
  text-align: left;
  width: 100%;
}

.panel[data-panel="5"] .seed-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel[data-panel="5"] .seed-actions .cta {
  flex: 0 0 auto;
  align-self: center;
}

.seed-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.seed-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .seed-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.seed-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.seed-num {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

.seed-cell input {
  width: 100%;
  padding: 0.5rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-body);
}

.seed-cell input:focus {
  outline: none;
  border-color: var(--purple);
}

.seed-cell input.invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.seed-error {
  font-size: 0.82rem;
  color: #fca5a5;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-align: center;
}

.connect-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.seed-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0.75rem;
}

.cta.cta-seed:disabled {
  opacity: 0.7;
  transform: none;
  cursor: default;
}

.connect-device-img {
  width: 100px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.5));
}

.connect-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.connect-msg {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40ch;
  margin: 0 auto 1.25rem;
}

.connect-hint {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.verified-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.verified-model {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.verified-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.otp-box {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.otp-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.otp-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.otp-device {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.otp-screen {
  width: 200px;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.otp-screen-label {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.otp-code {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
}

.otp-screen-action {
  font-size: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.otp-timer {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

#confirmVerification:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 899px) {
  .booking {
    padding: 3rem 1.25rem 3.5rem;
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-side {
    display: none;
  }

  .booking-main {
    padding: 1.5rem 1.25rem 2rem;
  }

  .slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
