/* Hotel Collab Club: shared tokens + glass system.
   Radius rule: panels 22px, rows/inputs 14px, buttons + chips full pill.
   Glass here is a web approximation (backdrop-filter + layered borders + highlight), with solid fallbacks. */
@import url("/s/fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #061219;
  --bg-2: #0b1d27;
  --ink: #eef6f4;
  --ink-2: #b3c7c6;
  --ink-3: #8aa3a4;
  --glass: rgba(220, 245, 240, .055);
  --glass-2: rgba(220, 245, 240, .095);
  --glass-solid: #10252f;
  --line: rgba(220, 245, 240, .12);
  --line-2: rgba(220, 245, 240, .2);
  --hl: rgba(255, 255, 255, .16);
  --accent: #ff9b63;
  --accent-2: #ffb487;
  --accent-ink: #2b1205;
  --accent-text: #ffb487;
  --sea: #3cc8bc;
  --sea-text: #7fe3d9;
  --rose: #ff7a8a;
  --amber: #f5c451;
  --shadow: 0 24px 60px -24px rgba(0, 8, 12, .7), 0 2px 8px -2px rgba(0, 8, 12, .35);
  --blob-a: #0f6e72;
  --blob-b: #b8552c;
  --blob-c: #163f7a;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --r-panel: 22px;
  --r-row: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eaf3f1;
    --bg-2: #dcebe8;
    --ink: #0c2027;
    --ink-2: #3a565b;
    --ink-3: #56716f;
    --glass: rgba(255, 255, 255, .5);
    --glass-2: rgba(255, 255, 255, .72);
    --glass-solid: #f7fbfa;
    --line: rgba(12, 32, 39, .1);
    --line-2: rgba(12, 32, 39, .18);
    --hl: rgba(255, 255, 255, .85);
    --accent: #ff9255;
    --accent-2: #ff7d3a;
    --accent-ink: #2b1205;
    --accent-text: #b2440c;
    --sea: #13958a;
    --sea-text: #0b6e66;
    --rose: #c9374c;
    --amber: #9a6a00;
    --shadow: 0 24px 50px -28px rgba(20, 60, 64, .45), 0 2px 6px -2px rgba(20, 60, 64, .15);
    --blob-a: #7fd6cc;
    --blob-b: #ffc39c;
    --blob-c: #a9c8f0;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eaf3f1; --bg-2: #dcebe8; --ink: #0c2027; --ink-2: #3a565b; --ink-3: #56716f;
  --glass: rgba(255, 255, 255, .5); --glass-2: rgba(255, 255, 255, .72); --glass-solid: #f7fbfa;
  --line: rgba(12, 32, 39, .1); --line-2: rgba(12, 32, 39, .18); --hl: rgba(255, 255, 255, .85);
  --accent: #ff9255; --accent-2: #ff7d3a; --accent-ink: #2b1205; --accent-text: #b2440c;
  --sea: #13958a; --sea-text: #0b6e66; --rose: #c9374c; --amber: #9a6a00;
  --shadow: 0 24px 50px -28px rgba(20, 60, 64, .45), 0 2px 6px -2px rgba(20, 60, 64, .15);
  --blob-a: #7fd6cc; --blob-b: #ffc39c; --blob-c: #a9c8f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
img, svg, canvas { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Living backdrop: three slow blobs behind every pane of glass, plus fixed grain */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background:
  radial-gradient(120% 80% at 50% 120%, var(--bg-2), var(--bg) 60%); }
.sky i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.sky i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: var(--blob-a); animation: drift1 38s var(--ease-io) infinite alternate; }
.sky i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; top: 18vh; background: var(--blob-b); opacity: .38; animation: drift2 44s var(--ease-io) infinite alternate; }
.sky i:nth-child(3) { width: 46vmax; height: 46vmax; left: 20vw; bottom: -30vmax; background: var(--blob-c); opacity: .42; animation: drift3 52s var(--ease-io) infinite alternate; }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, 10vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.1); } }

/* Glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, var(--glass-2), var(--glass) 55%);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--hl), var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Buttons */
.btn {
  --b-bg: var(--glass-2); --b-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--b-bg); color: var(--b-ink); font-weight: 600; font-size: 15px; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--hl);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { --b-bg: var(--accent); --b-ink: var(--accent-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.big { height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.ghost { --b-bg: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--b-bg) 88%, var(--ink)); }
  .btn.primary:hover { background: var(--accent-2); }
  .btn.ghost:hover { background: var(--glass); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms: label above, error below */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-row);
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease; caret-color: var(--accent);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .err { color: var(--rose); font-size: 13.5px; font-weight: 500; min-height: 0; }
.field.bad input, .field.bad textarea { border-color: var(--rose); }
.help { font-size: 13.5px; color: var(--ink-3); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip[aria-pressed="true"], .chip.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sky i { animation: none; }
}
