/* =====================================================================
   Loftigo Kiosk (guest.loftigo.de)
   Tablet-first, big-touch interface — frontend visual language.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Ephesis&display=swap');


:root {
  --kiosk-yellow: #e49e00;
  --kiosk-yellow-soft: #e4a00021;
  --kiosk-ink: #1a1a1a;
  --kiosk-text: #2c2c2c;
  --kiosk-muted: #6b7280;
  --kiosk-card-bg: rgba(255, 255, 255, 0.96);
  --kiosk-card-border: rgba(0, 0, 0, 0.06);
  --kiosk-radius: 20px;
  --kiosk-radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

.kiosk-body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--kiosk-text);
  background: #0e0e0e;
  overflow: hidden;             /* full-screen kiosk; no scroll between screens */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

/* =====================================================================
   Background (apartment hero photo) — shared across all screens
   ===================================================================== */
.kiosk-bg {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);       /* slight overscan for parallax-y feel */
  z-index: 0;
  transition: filter .5s ease;
}
.kiosk-bg__veil {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
  z-index: 1;
}

/* Slight blur when in menu/panel mode (welcome screen keeps it crisp) */
.kiosk-body.is-menu .kiosk-bg,
.kiosk-body.is-panel .kiosk-bg { filter: blur(8px) brightness(.85); }

/* =====================================================================
   Screens (CSS-only multi-screen flow)
   ===================================================================== */
.kiosk-screen {
  position: fixed; inset: 0;
  display: none;
  z-index: 2;
  padding: clamp(24px, 4vw, 56px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.kiosk-screen.is-visible { display: flex; }

/* Welcome is a hero — never scrolls, ever. */
.kiosk-screen--welcome {
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.kiosk-screen--menu      { flex-direction: column; }
.kiosk-screen--panel     { flex-direction: column; }
.kiosk-screen--error     { align-items: center; justify-content: center; text-align: center; color: #fff; }

/* =====================================================================
   SCREEN: Welcome
   ===================================================================== */

/* Full-bleed background video — only on the welcome screen */
.kiosk-welcome__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Subtle scale to feel cinematic, no transition jank */
  transform: scale(1.02);
}
.kiosk-welcome__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 65%, rgba(0,0,0,.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

/* Make sure the content text sits ABOVE the video + veil */
.kiosk-welcome {
  position: relative; z-index: 2;
  max-width: 820px;
  color: #fff;
  padding: 0 20px;
}

/* The video is inside the welcome screen's stacking context (z-index: 2),
   so it naturally paints above the global .kiosk-bg (z-index: 0). When the
   guest switches to menu/panel, the welcome screen hides → video disappears
   → the apartment-photo bg becomes visible again with the blur effect. */
.kiosk-welcome__eyebrow {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 22px;
}

/* Two-line composition — big calligraphic greeting, clean serif name below */
.kiosk-welcome__title {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

/* "Welcome home," — the warm calligraphic greeting */
.kiosk-welcome__title-pre {
    font-family: "Ephesis", cursive;
    font-weight: 100;
    font-size: clamp(64px, 9vw, 130px);
    line-height: 0;
    letter-spacing: 0;
    color: #fff;
}

/* The name — clean, elegant serif, smaller but still prominent */
.kiosk-welcome__title-name {
  font-family: "Outfit", serif;
  font-weight: 800;
  font-size: clamp(65px, 10vw, 196px);
  margin-top: 25px;
  letter-spacing: .005em;
  line-height: 1.1;
  color: #fff;
}

.kiosk-welcome__sub {
  margin: 0 0 44px;
  font-family: "Cormorant Garamond", "Outfit", serif;
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 400;
  letter-spacing: .02em;
  opacity: .88;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}

.kiosk-divebtn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 35px;
    font-family: inherit;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
        margin-top: 50px;
    background: var(--kiosk-yellow);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.kiosk-divebtn:hover  { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(228,158,0,.55); }
.kiosk-divebtn:active { transform: translateY(0);    box-shadow: 0 8px  20px rgba(228,158,0,.35); }

.kiosk-welcome__time {
      font-size: 15px;
    font-weight: 600;
    position: absolute;
    top: 10%;
    color: #ababab;
    z-index: 1000;
    letter-spacing: 2px;
    opacity: 1;
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   SCREEN: Main menu (big tiles)
   ===================================================================== */
.kiosk-menu__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin: 56px 4px 28px;
  color: #fff;
}
.kiosk-menu__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.kiosk-menu__title {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.kiosk-menu__clock {
  font-size: 18px; font-weight: 700; opacity: .8;
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,.32);
  padding: 8px 14px;
  border-radius: 999px;
}

.kiosk-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.kiosk-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px;
  min-height: 180px;
  background: var(--kiosk-card-bg);
  border: 1px solid var(--kiosk-card-border);
  border-radius: var(--kiosk-radius);
  color: var(--kiosk-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.kiosk-tile:hover  { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.kiosk-tile:active { transform: translateY(0);    box-shadow: 0 10px 28px rgba(0,0,0,.18); }

.kiosk-tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--kiosk-yellow-soft);
  color: var(--kiosk-yellow);
}
.kiosk-tile__label {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -.005em;
  line-height: 1.15;
}
.kiosk-tile__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--kiosk-muted);
  margin-top: auto;
}

.kiosk-tile.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.8);
}

/* Per-tile accent colors (subtle hover hint) */
.kiosk-tile--help:hover          .kiosk-tile__icon { background: #fde9b0; }
.kiosk-tile--door:hover          .kiosk-tile__icon { background: #d1fae5; color: #059669; }
.kiosk-tile--heating:hover       .kiosk-tile__icon { background: #fecaca; color: #b91c1c; }
.kiosk-tile--loftigo-fresh:hover .kiosk-tile__icon { background: #dbeafe; color: #1d4ed8; }
.kiosk-tile--comfort-fresh:hover .kiosk-tile__icon { background: #ede9fe; color: #6d28d9; }

/* =====================================================================
   SCREEN: Panel (full-screen overlay with back button)
   ===================================================================== */
.kiosk-panel__head {
  display: flex; align-items: center; gap: 16px;
  margin: 56px 4px 24px;
  color: #fff;
}
.kiosk-back {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  background: rgba(255,255,255,.92);
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--kiosk-text);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.kiosk-back:active { transform: scale(.97); }

.kiosk-panel__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.kiosk-panel__spacer { flex: 1; }

.kiosk-panel__body {
  flex: 1;
  display: flex; justify-content: center;
  padding: 4px 0 24px;
}

.kiosk-card {
  width: 100%;
  max-width: 760px;
  background: var(--kiosk-card-bg);
  border: 1px solid var(--kiosk-card-border);
  border-radius: var(--kiosk-radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.kiosk-card--center { text-align: center; }
.kiosk-card h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -.005em;
}
.kiosk-muted { color: var(--kiosk-muted); margin: 0 0 18px; }

/* ---- Help panel ----------------------------------------------------- */
.kiosk-contactgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 22px 0 22px;
}
.kiosk-contact {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px;
  background: #f9fafb;
  border-radius: var(--kiosk-radius-sm);
  text-decoration: none;
  color: var(--kiosk-text);
  transition: background .12s, transform .08s;
}
.kiosk-contact:hover  { background: #f3f4f6; }
.kiosk-contact:active { transform: scale(.97); }
.kiosk-contact svg    { color: var(--kiosk-yellow); }
.kiosk-contact strong { font-size: 15px; font-weight: 800; }
.kiosk-contact span   { font-size: 12px; color: var(--kiosk-muted); }

.kiosk-faq { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.kiosk-faq details {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: var(--kiosk-radius-sm);
}
.kiosk-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.kiosk-faq summary::-webkit-details-marker { display: none; }
.kiosk-faq summary::after {
  content: '+';
  float: right; font-size: 18px; font-weight: 700; color: var(--kiosk-muted);
}
.kiosk-faq details[open] summary::after { content: '−'; }
.kiosk-faq p { margin: 8px 0 0; color: var(--kiosk-muted); font-size: 14px; }

/* ---- Door panel ----------------------------------------------------- */
.kiosk-door { padding-top: 28px; padding-bottom: 28px; }
.kiosk-door__circle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: clamp(220px, 28vw, 280px);
  height: clamp(220px, 28vw, 280px);
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--kiosk-yellow);
  color: #fff;
  font-size: 18px; font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 28px 60px rgba(228,158,0,.45);
  transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
}
.kiosk-door__circle:active { transform: scale(.96); }
.kiosk-door__circle.is-busy {
  background: #16a34a;
  box-shadow: 0 28px 60px rgba(22,163,74,.4);
  animation: kioskPulse 1.2s ease-in-out infinite;
}
@keyframes kioskPulse {
  0%, 100% { box-shadow: 0 28px 60px rgba(22,163,74,.4); }
  50%      { box-shadow: 0 28px 80px rgba(22,163,74,.7); }
}
.kiosk-door__hint   { color: var(--kiosk-muted); font-size: 14px; margin: 0 0 6px; }
.kiosk-door__status { color: var(--kiosk-text); font-weight: 700; margin: 0; }

/* ---- Heating panel -------------------------------------------------- */
.kiosk-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.kiosk-rooms__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--kiosk-muted);
  font-weight: 600;
}
.kiosk-room {
  padding: 18px;
  background: #f9fafb;
  border-radius: var(--kiosk-radius-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.kiosk-room__name { font-size: 14px; font-weight: 700; }
.kiosk-room__temp {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.kiosk-room__big {
  font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  flex: 1; text-align: center;
}
.kiosk-room__step {
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--kiosk-yellow);
  color: #fff;
  font-size: 22px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(228,158,0,.4);
  flex-shrink: 0;
}
.kiosk-room__step:active { transform: scale(.94); }

/* ---- Order form (Fresh / Comfort) ----------------------------------- */
.kiosk-orderform { display: flex; flex-direction: column; gap: 16px; }
.kiosk-field { display: flex; flex-direction: column; gap: 6px; }
.kiosk-field > span {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--kiosk-muted);
}
.kiosk-field input,
.kiosk-field textarea,
.kiosk-field select {
  height: 50px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  border: 1.5px solid #e6e8ec;
  border-radius: var(--kiosk-radius-sm);
  outline: none;
  color: var(--kiosk-text);
}
.kiosk-field textarea {
  height: auto; padding: 14px 16px; line-height: 1.5;
  resize: vertical; min-height: 80px;
}
.kiosk-field input:focus,
.kiosk-field textarea:focus,
.kiosk-field select:focus { border-color: var(--kiosk-yellow); }

.kiosk-qtygrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.kiosk-qty {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--kiosk-radius-sm);
}
.kiosk-qty strong { font-size: 15px; font-weight: 800; }
.kiosk-qty small  { font-size: 12px; color: var(--kiosk-muted); margin-bottom: 8px; }
.kiosk-stepper {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.kiosk-stepper button {
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--kiosk-yellow);
  color: #fff;
  font-size: 22px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(228,158,0,.4);
}
.kiosk-stepper button:active { transform: scale(.94); }
.kiosk-stepper input {
  flex: 1;
  width: auto;
  height: 44px;
  text-align: center;
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: 0;
  color: var(--kiosk-text);
}

.kiosk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 16px; font-weight: 800;
  letter-spacing: .01em;
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: transform .1s, box-shadow .12s;
}
.kiosk-btn--primary {
  background: var(--kiosk-yellow);
  color: var(--kiosk-ink);
  box-shadow: 0 10px 28px rgba(228,158,0,.45);
}
.kiosk-btn--primary:active { transform: translateY(1px); }

/* Status box (shows existing fresh access / scheduled order) */
.kiosk-statusbox {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e6e8ec;
  border-left: 4px solid var(--kiosk-yellow);
  border-radius: var(--kiosk-radius-sm);
  font-size: 13px;
  line-height: 1.55;
  color: var(--kiosk-text);
}
.kiosk-statusbox--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #10b981;
}
.kiosk-statusbox strong { font-weight: 700; }

/* Checkbox fields */
.kiosk-checkfield {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: var(--kiosk-radius-sm);
  font-size: 14px;
  cursor: pointer;
}
.kiosk-checkfield input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--kiosk-yellow);
  flex-shrink: 0;
  cursor: pointer;
}
.kiosk-checkfield span { line-height: 1.45; color: var(--kiosk-text); }

.kiosk-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

/* Stripe package picker (radio cards) */
.kiosk-pkggrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 6px 0 8px;
}
.kiosk-pkg {
  position: relative;
  display: block;
  cursor: pointer;
}
.kiosk-pkg input[type="radio"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.kiosk-pkg__body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e6e8ec;
  border-radius: var(--kiosk-radius-sm);
  transition: border-color .14s, background .14s, transform .08s;
}
.kiosk-pkg__body strong {
  font-size: 15px; font-weight: 800; color: var(--kiosk-text);
}
.kiosk-pkg__body small {
  font-size: 12px; color: var(--kiosk-muted); line-height: 1.4;
}
.kiosk-pkg__body em {
  margin-top: 8px;
  font-style: normal;
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  color: var(--kiosk-text);
}
.kiosk-pkg input[type="radio"]:checked + .kiosk-pkg__body {
  background: #fffbeb;
  border-color: var(--kiosk-yellow);
}
.kiosk-pkg:active .kiosk-pkg__body { transform: scale(.99); }

/* =====================================================================
   Climate control + Door control (ported from guest-heating.php .gc-*)
   These panels need a LIGHT background — the dark blurred video bg
   makes all the soft shadows / track outlines disappear.
   ===================================================================== */

/* Heating + Door panels share the dark video background of the kiosk —
   no extra surface colour. Texts are inverted to white. The center
   readout stays white-on-dark so the temperature stays the focal point. */

.kiosk-screen--panel[data-screen="panel-heating"] .kiosk-panel__title,
.kiosk-screen--panel[data-screen="panel-door"] .kiosk-panel__title {
  display: none;   /* .gc-title takes over — avoids duplicate header */
}

/* Dark-theme variables override for the .gc-* dial when inside heating/door */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-app,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-app {
  --gc-text:   rgba(255, 255, 255, 0.95);
  --gc-muted:  rgba(255, 255, 255, 0.62);
  --gc-muted2: rgba(255, 255, 255, 0.42);
  --gc-card:   rgba(255, 255, 255, 0.10);
  --gc-ringShadow:
    0 0 0 10px rgba(255, 255, 255, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.55);
}

/* Title typography — light, with subtle text-shadow for legibility on the
   blurred video background. */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-title__main,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-title__main {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.kiosk-screen--panel[data-screen="panel-heating"] .gc-title__sub,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-title__sub {
  color: rgba(255, 255, 255, 0.70);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Room dropdown — frosted card on the dark bg */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-roomselect {
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* The donut track: outer rim becomes a faint white ring so it's visible
   on dark. The inner disc stays white so the readout reads cleanly. */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-ring__track,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-ring__track {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.96) 0 52%,
    rgba(255, 255, 255, 0.10) 53% 100%
  );
}

/* Knob — still white but with a stronger drop-shadow */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-knob {
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Center: keep the white pill (so the value stays high-contrast),
   but darken the text. */
.kiosk-screen--panel[data-screen="panel-heating"] .gc-center,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-center {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.2);
}
.kiosk-screen--panel[data-screen="panel-heating"] .gc-center__label,
.kiosk-screen--panel[data-screen="panel-door"]    .gc-center__label {
  color: rgba(0, 0, 0, 0.55);
}
.kiosk-screen--panel[data-screen="panel-heating"] .gc-center__value {
  color: #1a1a1a;
}
.kiosk-screen--panel[data-screen="panel-heating"] .gc-center__sub {
  color: rgba(0, 0, 0, 0.55);
}
.kiosk-screen--panel[data-screen="panel-door"] .gc-center__state {
  color: #1a1a1a;
}

/* +/- and power buttons keep the yellow brand color — already correct on dark */

/* Toast on dark bg — already dark by default, good */

/* Door secondary "Lock" button — needs more contrast on dark background */
.kiosk-screen--panel[data-screen="panel-door"] .gc-doorbtn--secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
}

/* Door hint paragraph */
.kiosk-screen--panel[data-screen="panel-door"] .gc-doorhint {
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gc-app {
  --gc-bg: transparent;
  --gc-card: #ffffff;
  --gc-text: rgba(0,0,0,.86);
  --gc-muted: rgba(0,0,0,.55);
  --gc-muted2: rgba(0,0,0,.40);
  --gc-yellow: #e49e00;
  --gc-radius: 10px;
  --gc-ringShadow: 0 0 0 10px rgba(0,0,0,.06), 0 18px 45px rgba(0,0,0,.14);

  max-width: 520px;
  margin: 0 auto;
  padding: 6px 14px 28px;
  color: var(--gc-text);
  width: 100%;
}

.gc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 12px;
}
.gc-title       { text-align: center; flex: 1; }
.gc-title__main { font-weight: 900; letter-spacing: -.02em; font-size: 35px; }
.gc-title__sub  { font-size: 20px; color: var(--gc-muted); margin-top: 2px; }

.gc-roombar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.gc-roomselect {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--gc-card);
  padding: 0 12px;
  font-weight: 800;
  font-family: inherit;
  color: var(--gc-text);
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}
.gc-power {
  width: 48px;
  height: 48px;
  border-radius: var(--gc-radius);
  border: 0;
  background: var(--gc-yellow);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.gc-power.is-off {
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
}

.gc-dialwrap { margin-top: 40px; }

.gc-dial {
  --pos: .5;
  --cold: #2b6cff;
  --hot:  #ff3b30;
  background: transparent;
}

.gc-ring {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: none;
}
.gc-ring__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, #fff 0 52%, rgba(0,0,0,.06) 53% 100%);
  box-shadow: var(--gc-ringShadow);
}
.gc-ring__fill {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: conic-gradient(from 220deg, rgba(0,0,0,.14) 0deg, rgba(0,0,0,.14) 270deg, rgba(0,0,0,0) 270deg 360deg);
  mask: radial-gradient(circle, transparent 0 60%, #000 61% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 61% 100%);
  opacity: .95;
}

.gc-knob {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}
.gc-knob::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.35);
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.gc-center {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 6px;
}
.gc-center__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--gc-muted);
}
.gc-center__value {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
}
.gc-center__sub {
  margin-top: -6px;
  font-weight: 900;
  color: var(--gc-muted);
}

.gc-plusminus {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}
.gc-pm {
  width: 72px;
  height: 52px;
  border-radius: var(--gc-radius);
  border: 0;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background: var(--gc-yellow);
  cursor: pointer;
  font-family: inherit;
}

.gc-dial.is-off { filter: grayscale(.25); }
.gc-dial.is-off .gc-center__value { color: rgba(0,0,0,.35); }
.gc-dial.is-off .gc-center__label { color: rgba(0,0,0,.45); }
.gc-dial.is-off .gc-pm { background: rgba(0,0,0,.18); box-shadow: none; }
.gc-dial.is-disabled .gc-pm { background: rgba(0,0,0,.18); box-shadow: none; }
.gc-dial.is-disabled { opacity: .85; }
.gc-dial.is-disabled .gc-ring,
.gc-dial.is-off .gc-ring { pointer-events: none; }

.gc-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.84);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
  z-index: 20;
}

/* ----- Door variant ----- */
.gc-app--door .gc-ring__fill--door {
  /* Always-on yellow ring at ~75% to mirror the door-control mock */
  background: conic-gradient(
    from 220deg,
    var(--gc-yellow) 0deg 200deg,
    rgba(0,0,0,.10) 200deg 270deg,
    rgba(0,0,0,0) 270deg 360deg
  );
}
.gc-center--door {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}
.gc-door-icon { line-height: 0; }
.gc-center__state {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--gc-text);
}
.gc-dial--door.is-busy .gc-ring__fill--door {
  animation: gcDoorPulse 1.4s ease-in-out infinite;
}
@keyframes gcDoorPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

.gc-doorbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px auto 16px;
  max-width: 460px;
}
.gc-doorbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: var(--gc-radius);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s, opacity .12s, background .12s;
}
.gc-doorbtn:active { transform: scale(.98); }
.gc-doorbtn[disabled] { opacity: .55; cursor: not-allowed; }

.gc-doorbtn--primary {
  background: var(--gc-yellow);
  color: #fff;
  box-shadow: 0 10px 28px rgba(228,158,0,.42);
}
.gc-doorbtn--primary:hover { background: #c98d00; }

.gc-doorbtn--secondary {
  background: #fff;
  color: var(--gc-text);
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.gc-doorbtn--secondary:hover { background: #f7f7f8; }

.gc-doorhint {
  max-width: 460px;
  margin: 4px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: var(--gc-muted);
}

/* =====================================================================
   Flash modal — full-screen, demands attention.
   Used for Stripe cancel/error returns so the guest can't miss it.
   ===================================================================== */
.kiosk-flashmodal {
  position: fixed;
  inset: 0;
  z-index: 50;                            /* above every screen + toast */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: kioskFlashFade .22s ease-out;
}
.kiosk-flashmodal.is-visible { display: flex; }

@keyframes kioskFlashFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kiosk-flashmodal__card {
  max-width: 520px;
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
  background: var(--kiosk-card-bg, #fff);
  border-radius: var(--kiosk-radius, 20px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: kioskFlashPop .35s cubic-bezier(.2, 1.2, .4, 1);
}

@keyframes kioskFlashPop {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.kiosk-flashmodal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  background: #fef3c7;        /* warm yellow tint — not alarming, just attention */
  color: #b45309;
  border-radius: 50%;
}

.kiosk-flashmodal__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--kiosk-text, #2c2c2c);
}

.kiosk-flashmodal__msg {
  margin: 0 auto 26px;
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--kiosk-muted, #6b7280);
}

.kiosk-flashmodal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.kiosk-flashmodal__actions .kiosk-btn {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
}

.kiosk-btn--ghost {
  background: #fff;
  color: var(--kiosk-text, #2c2c2c);
  border: 1.5px solid rgba(0, 0, 0, .10);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.kiosk-btn--ghost:active { transform: translateY(1px); }

/* =====================================================================
   QR Handoff modal — kiosk hands payment over to the guest's phone
   ===================================================================== */
.kiosk-qrmodal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.kiosk-qrmodal.is-visible { display: flex; animation: kioskFlashFade .22s ease-out; }

.kiosk-qrmodal__card {
  max-width: 540px;
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border-radius: var(--kiosk-radius, 20px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: kioskFlashPop .35s cubic-bezier(.2, 1.2, .4, 1);
}

/* State machine — only one section visible at a time */
.kiosk-qrmodal__open,
.kiosk-qrmodal__success,
.kiosk-qrmodal__expired { display: none; }
.kiosk-qrmodal__card[data-state="open"]    .kiosk-qrmodal__open    { display: block; }
.kiosk-qrmodal__card[data-state="success"] .kiosk-qrmodal__success { display: block; }
.kiosk-qrmodal__card[data-state="expired"] .kiosk-qrmodal__expired { display: block; }

.kiosk-qrmodal__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--kiosk-text, #2c2c2c);
}
.kiosk-qrmodal__sub {
  margin: 0 auto 18px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kiosk-muted, #6b7280);
}

/* QR area */
.kiosk-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  margin: 6px auto 18px;
  padding: 16px;
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.kiosk-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.kiosk-qr__loading {
  font-size: 13px;
  color: var(--kiosk-muted);
}

/* Service summary line */
.kiosk-qrmodal__service {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 0 auto 18px;
  font-size: 14px;
  color: var(--kiosk-muted);
}
.kiosk-qrmodal__service strong {
  font-size: 18px;
  color: var(--kiosk-text);
  font-weight: 800;
}

/* "Waiting for payment…" spinner row */
.kiosk-qrmodal__waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #7c5500;
  max-width: 360px;
}
.kiosk-qrspinner {
  display: inline-flex;
  gap: 4px;
}
.kiosk-qrspinner__dot {
  width: 7px; height: 7px;
  background: var(--kiosk-yellow);
  border-radius: 50%;
  animation: kioskQrBlink 1.2s ease-in-out infinite;
}
.kiosk-qrspinner__dot:nth-child(2) { animation-delay: .15s; }
.kiosk-qrspinner__dot:nth-child(3) { animation-delay: .30s; }
@keyframes kioskQrBlink {
  0%, 100% { opacity: .25; transform: scale(.85); }
  40%      { opacity: 1;   transform: scale(1.05); }
}

/* Success: animated checkmark */
.kiosk-checkmark {
  width: 96px;
  height: 96px;
  margin: 10px auto 18px;
}
.kiosk-checkmark svg {
  width: 100%; height: 100%;
}
.kiosk-checkmark__circle {
  fill: #ecfdf5;
  stroke: #10b981;
  stroke-width: 3;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: kioskCheckCircle .55s ease-out forwards;
}
.kiosk-checkmark__check {
  fill: none;
  stroke: #10b981;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: kioskCheckMark .45s .45s cubic-bezier(.2, 1.2, .4, 1) forwards;
}
@keyframes kioskCheckCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes kioskCheckMark {
  to { stroke-dashoffset: 0; }
}

/* Sad "checkout is soon" state */
.kiosk-sad {
  text-align: center;
  padding: 28px 16px 16px;
}
.kiosk-sad__face {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 18px;
  filter: grayscale(.15);
}
.kiosk-sad h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 10px;
}
.kiosk-sad p { max-width: 460px; margin: 0 auto; }

/* =====================================================================
   Toast
   ===================================================================== */
.kiosk-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 22px;
  background: rgba(0,0,0,.92);
  color: #fff;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  z-index: 10;
  transition: transform .35s cubic-bezier(.4,1.4,.6,1), opacity .25s;
  opacity: 0;
}
.kiosk-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.kiosk-toast.is-error { background: #b91c1c; }

/* =====================================================================
   Error screen
   ===================================================================== */
.kiosk-error {
  max-width: 540px; padding: 40px;
  background: rgba(255,255,255,.06);
  border-radius: var(--kiosk-radius);
  backdrop-filter: blur(20px);
}
.kiosk-error h1 { font-size: 28px; margin: 0 0 12px; }
.kiosk-error p  { color: rgba(255,255,255,.7); margin: 8px 0; }
.kiosk-error__hint code {
  background: rgba(255,255,255,.1);
  padding: 4px 8px; border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
