﻿:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0a;
  --elevated: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --faint: #5c5c5c;
  --accent: #ffffff;
  --danger: #ff453a;
  --ok: #30d158;
  --warn: #ffd60a;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(400px, calc(100vw - 2.5rem));
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  overflow-x: hidden;
}
/* iPhone: vertical centering + keyboard = page jump on focus */
@media (max-width: 720px) {
  .wrap {
    justify-content: flex-start;
    padding: 2.25rem 0 4rem;
  }
}

.brand {
  text-align: center;
  margin-bottom: 2rem;
}
.brand-badge { display: none; }
.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.brand p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.back-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.back-link:hover { color: var(--text); }
.back-link[hidden] { display: none; }

.spot-screen {
  text-align: center;
}
.spot-screen .pending-title {
  margin: 0 0 0.55rem;
}
.spot-screen .sub,
.card .spot-screen .sub {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1rem;
  text-align: center;
}
.spot-screen label {
  text-align: center;
  margin: 1.15rem 0 0.45rem;
}
.spot-screen .msg {
  margin: 1.15rem 0;
  text-align: center;
}
.spot-screen .msg + label {
  margin-top: 1.15rem;
}
.spot-screen .btn {
  width: 100%;
  margin-top: 0.75rem;
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
}
.spot-screen .btn-primary {
  margin-top: 1.35rem;
}
.spot-screen code {
  display: inline-block;
  word-break: break-word;
}
.spot-key {
  margin-bottom: 0.35rem;
}
.spot-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.spot-facts {
  display: grid;
  gap: 0.5rem;
  margin: 0 auto 0.35rem;
  width: 100%;
  max-width: 22rem;
  text-align: left;
}
.spot-fact {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.spot-fact-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spot-key-ok {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: #30d158;
  color: #04140a;
  font-size: 1.45rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(48, 209, 88, 0.12);
}
.spot-screen.working-screen .steps,
.working-screen .steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: none;
  margin: 1.15rem auto 0;
  text-align: center;
}
.working-screen .step {
  justify-content: center;
  width: 100%;
}
.spot-screen .btn-ghost {
  margin-top: 0.75rem;
}
.spot-pass {
  margin: 0 auto 1.15rem;
  padding: 0.8rem 0.9rem;
  width: 100%;
  max-width: 22rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  text-align: center;
}
.spot-pass code {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.spot-screen .msg-warn {
  margin: 0 auto 1rem;
  max-width: 28rem;
  text-align: center;
}
.spot-screen .spot-note {
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  text-align: center;
}

.with-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
}
.hint-q {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: help;
  position: relative;
}
.hint-q .hint-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: 16rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #1c1c1c;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  z-index: 5;
}
.hint-q:hover .hint-tip,
.hint-q:focus .hint-tip {
  display: block;
}

.admin-issue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 168px;
}
.admin-issue .btn {
  width: auto;
  margin: 0;
  padding: 0.4rem 0.8rem;
}
.home-nav button.home-nav-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-align: center;
}
.card .sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
  text-align: center;
}

label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  outline: none;
  font-size: 16px; /* iOS: <16px triggers zoom/jump on focus */
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* Native iOS date control is wider than the field — clip & normalize */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  line-height: 1.25;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: #141414;
}
input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1.15rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.file-drop.dragover {
  border-color: #fff;
  border-style: solid;
  background: rgba(255, 255, 255, 0.08);
}
.file-drop.has-file {
  border-style: solid;
  border-color: rgba(48, 209, 88, 0.35);
  background: rgba(48, 209, 88, 0.06);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
}
.file-drop-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.file-drop-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-drop-title {
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--text);
}
.file-drop-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.file-drop-name {
  font-size: 0.82rem;
  color: var(--ok);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}
textarea { min-height: 96px; resize: vertical; }
input:disabled {
  opacity: 0.55;
}

.row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.row > * { flex: 1; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 980px;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-weight: 560;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease, transform 0.08s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  width: 100%;
  margin-top: 1rem;
  background: #fff;
  color: #000;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary .spinner {
  border-color: rgba(0,0,0,0.2);
  border-top-color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-danger {
  background: transparent;
  color: #ff6961;
  border: 1px solid rgba(255, 69, 58, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0;
  width: 100%;
  margin-top: 0.75rem;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.25rem 0 0.5rem;
}
.device-btn {
  background: var(--elevated);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 1rem 0.4rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.device-btn.selected {
  border-color: #fff;
  background: #161616;
}

.msg {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: var(--surface);
}
.msg-info { color: var(--text); }
.msg-ok {
  color: #d2f5d8;
  border-color: rgba(48, 209, 88, 0.25);
}
.msg-err {
  color: #ffb4ae;
  border-color: rgba(255, 69, 58, 0.28);
}
.msg-warn {
  color: #ffe8a3;
  border-color: rgba(255, 214, 10, 0.35);
  background: rgba(255, 214, 10, 0.1);
}

.slot {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.75rem;
  background: var(--surface);
}
.slot .meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.slot a.link {
  word-break: break-all;
  font-size: 0.86rem;
  color: var(--text);
}

.issue-status {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.issue-status strong {
  color: var(--text);
  font-weight: 560;
}

.delivery-card {
  margin-top: 0.25rem;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  text-align: center;
}
.delivery-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.delivery-card .link-box {
  word-break: break-all;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
  padding: 0.85rem;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  text-align: left;
  margin-bottom: 0.75rem;
}
.delivery-actions {
  display: grid;
  gap: 0.5rem;
}

.pending-screen .wait-panel {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
}
.pending-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.pulse-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  animation: ping 1.6s ease-out infinite;
}
.pulse-ring .hourglass {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: #fff;
  animation: spin 0.85s linear infinite;
}
@keyframes ping {
  0% { transform: scale(0.85); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.working-screen .steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 1.15rem auto 0;
  width: 100%;
}
.working-screen .step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  color: var(--faint);
  font-size: 0.9rem;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.working-screen .step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.working-screen .step.active {
  color: var(--text);
}
.working-screen .step.active .dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
  transform: scale(1.15);
  animation: pulse 1.2s ease-in-out infinite;
}
.working-screen .step.done {
  color: var(--muted);
}
.working-screen .step.done .dot {
  background: #6a6a6a;
}

.tv-success-screen {
  text-align: center;
  animation: rise 0.4s ease both;
}
.success-burst {
  width: 88px;
  height: 88px;
  margin: 0.25rem auto 1.25rem;
  position: relative;
  display: grid;
  place-items: center;
}
.success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(48, 209, 88, 0.45);
  animation: successPop 0.55s ease-out both, successPulse 1.6s ease-out 0.45s 2;
}
.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #30d158;
  color: #04140a;
  font-size: 1.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  animation: successPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 0 8px rgba(48, 209, 88, 0.12);
}
@keyframes successPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes successPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

.pin-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.25rem;
  flex-wrap: nowrap;
}
.pin-box {
  width: 2.15rem;
  height: 2.55rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 560;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  padding: 0;
}
.pin-box:focus {
  border-color: rgba(255,255,255,0.4);
  outline: none;
}
.pin-dash {
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0 0.15rem;
}
.ext-hint {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.device-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: 0; }
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  background: #2a2a2a;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch.on { background: #fff; }
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111;
  transition: transform 0.2s ease;
}
.switch.on::after {
  transform: translateX(18px);
  background: #000;
}

.hidden { display: none !important; }
.footer { display: none; }

.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.75s linear infinite;
  vertical-align: -2px;
  margin-right: 0.45rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Admin denser layout still inherits the same tokens */
.admin-shell .wrap {
  width: min(920px, calc(100vw - 2.5rem));
  justify-content: flex-start;
  padding-top: 2.5rem;
}
.admin-shell .brand {
  text-align: left;
  margin-bottom: 1.25rem;
}
.admin-shell .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  background: var(--surface);
}
.admin-shell .card h2,
.admin-shell .card .sub { text-align: left; }

@media (max-width: 420px) {
  .device-grid { grid-template-columns: 1fr; }
  .wrap { width: min(100vw - 2rem, 400px); }
}

section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.turnstile-wrap {
  margin: 0.85rem 0 0.15rem;
  display: flex;
  justify-content: center;
  min-height: 0;
}
.turnstile-wrap:empty { display: none; }

/* Custom desktop date picker */
.dp {
  position: relative;
  width: 100%;
  min-width: 140px;
}
.dp-display {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  border-radius: 12px;
  padding: 0.9rem 2.4rem 0.9rem 1rem;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dp-display:focus,
.dp.open .dp-display {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: #141414;
}
.dp-pop {
  display: none;
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: min(292px, 92vw);
  padding: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #121212;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: rise 0.18s ease both;
}
.dp.open .dp-pop { display: block; }
.dp-pop-portal {
  display: block;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.dp-title,
.dp-title-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}
.dp-title-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dp-nav {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.dp-nav:hover { border-color: var(--line-strong); }
.dp-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.15rem 0 0.25rem;
}
.dp-chip {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.dp-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dp-chip.today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.dp-chip.selected {
  background: #fff;
  color: #000;
  font-weight: 600;
}
.dp-chip.selected:hover {
  background: #fff;
}
.dp-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.25rem;
  color: var(--faint);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-day {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
}
.dp-day.empty {
  cursor: default;
  pointer-events: none;
}
.dp-day:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.08);
}
.dp-day.today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.dp-day.selected {
  background: #fff;
  color: #000;
  font-weight: 600;
}
.dp-day.selected:hover {
  background: #fff;
}
.dp-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.dp-foot button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
}
.dp-foot button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

td .dp { min-width: 150px; }
td .dp-display { padding: 0.45rem 2rem 0.45rem 0.65rem; border-radius: 10px; font-size: 0.9rem; }

.home-logo { text-decoration: none; color: inherit; font-weight: 560; letter-spacing: -0.03em; }
body.home-body { overflow-x: hidden; }
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.orb-a {
  width: 42vw;
  height: 42vw;
  left: -12vw;
  top: -10vh;
  background: rgba(255, 255, 255, 0.07);
  animation: orbMove 22s ease-in-out infinite;
}
.orb-b {
  width: 36vw;
  height: 36vw;
  right: -10vw;
  top: 28vh;
  background: rgba(90, 140, 255, 0.08);
  animation: orbMove 28s ease-in-out infinite reverse;
}
.orb-c {
  width: 30vw;
  height: 30vw;
  left: 28vw;
  bottom: -12vh;
  background: rgba(255, 255, 255, 0.045);
  animation: orbMove 26s ease-in-out infinite 4s;
}
@keyframes orbMove {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, -3vh, 0) scale(1.08); }
}
.hero {
  width: min(1100px, calc(100vw - 2.5rem));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 3.5rem;
}
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 3;
}
.home-nav { display: flex; align-items: center; gap: 1rem; }
.home-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.home-nav-cta {
  color: #000 !important;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
  padding: 4rem 0 5rem;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  letter-spacing: -0.05em;
  font-weight: 560;
  line-height: 1.05;
}
.home-lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 30rem;
  line-height: 1.55;
  font-size: 1.05rem;
}
.home-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  max-width: 14.5rem;
}
.home-actions .btn {
  width: 100%;
  margin: 0;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  text-align: center;
}
.float-reviews { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float {
  position: absolute;
  width: min(320px, 74vw);
  margin: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: drift 9s ease-in-out infinite;
  pointer-events: auto;
}
.float p { margin: 0; line-height: 1.5; font-size: 0.95rem; }
.float footer { margin-top: 0.65rem; color: var(--faint); font-size: 0.78rem; }
.f1 { top: 16%; right: 0; }
.f2 { top: 46%; right: 14%; animation-delay: -3s; }
.f3 { bottom: 14%; right: 2%; animation-delay: -5.5s; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 900px) {
  .hero-copy { padding: 3rem 0 1.5rem; }
  .float-reviews {
    position: relative;
    inset: auto;
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
  }
  .float {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    animation: none;
  }
}
.home-reviews .btn {
  width: 100%;
  margin-top: 0.75rem;
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.card > .btn,
.card > a.btn {
  width: 100%;
  margin-top: 0.75rem;
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.home-block { margin-top: 2rem; }
.home-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.home-points { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.55; }
.home-points li { margin: 0.35rem 0; }
.home-reviews { display: grid; gap: 0.75rem; }
.home-reviews blockquote {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.home-reviews p { margin: 0; line-height: 1.45; }
.home-reviews footer { margin-top: 0.55rem; color: var(--faint); font-size: 0.82rem; }

body.dash-body .wrap {
  width: min(720px, calc(100vw - 2.5rem));
  justify-content: flex-start;
  padding: 1.25rem 0 4.5rem;
}
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.dash-logo {
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}
.dash-who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.dash-out {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
}
.dash-out:hover { color: var(--text); }
.view-as {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: #2a2416;
  color: #f3e6c4;
  font-size: 0.9rem;
}
.view-as button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.dash-kicker {
  margin: 0 0 0.5rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.dash-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 560;
  line-height: 1.15;
}
.dash-lead {
  margin: 0.7rem 0 2rem;
  color: var(--muted);
}
.dash-room { margin-bottom: 1.75rem; }
.dash-room-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.dash-room-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.dash-add {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}
.dash-add:hover { color: var(--text); }
.dash-empty {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--faint);
  font-size: 0.9rem;
}
.dash-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem 0.95rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 0.65rem;
}
.dash-row.is-expired .dash-mark,
.dash-row.is-expired .dash-copy { opacity: 0.62; }
.dash-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #141414;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 620;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.dash-mark-logo {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.dash-mark-logo .dash-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.dash-copy { min-width: 0; }
.dash-name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.dash-code { margin: 0.35rem 0 0; }
.dash-code code {
  font-size: 0.86rem;
  color: var(--muted);
}
.dash-meta {
  margin: 0.35rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 560;
}
.dash-chip-ok { background: rgba(48, 209, 88, 0.14); color: #8ee8a4; }
.dash-chip-live { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.dash-chip-wait { background: rgba(255, 214, 10, 0.12); color: #f5d76e; }
.dash-chip-off { background: rgba(255, 69, 58, 0.12); color: #ff8a82; }
.dash-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.dash-actions .btn {
  width: auto;
  margin: 0;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
@media (min-width: 640px) {
  .dash-row {
    grid-template-columns: 44px 1fr auto;
    align-items: center;
  }
  .dash-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 8.5rem;
  }
}

body.auth-body .wrap {
  width: min(400px, calc(100vw - 2.5rem));
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
}
.auth-card {
  padding: 1.65rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.auth-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.auth-lead {
  margin: 0.45rem 0 1.35rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.auth-email {
  color: var(--text);
  word-break: break-all;
}
.auth-field { margin-bottom: 0.9rem; }
.auth-field label { margin-bottom: 0.4rem; }
.auth-code {
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.auth-card .turnstile-wrap { margin: 0.15rem 0 0.15rem; }
.auth-card .btn-primary { margin-top: 0.35rem; }
.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.auth-switch a {
  color: var(--text);
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-card .msg { margin-top: 0.85rem; }
.auth-reqs {
  list-style: none;
  margin: -0.35rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-reqs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.auth-reqs li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}
.auth-reqs li.ok {
  color: var(--ok);
}
.auth-reqs li.ok::before {
  border-color: var(--ok);
  background: var(--ok);
}
@media (max-width: 720px) {
  body.auth-body .wrap {
    justify-content: flex-start;
    padding-top: 3.25rem;
  }
}

.spot-screen .field-shell { width: 100%; text-align: left; }
.field-shell { position: relative; }
.field-shell input { padding-right: 2.7rem; }
.field-q {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  cursor: help;
  line-height: 1;
}
.field-tip {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: 16.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #1c1c1c;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  z-index: 6;
  text-align: left;
}
.field-q:hover .field-tip,
.field-q:focus .field-tip { display: block; }
.spot-note {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}
.spot-note a { color: var(--text); }

body.panel-body .wrap {
  width: min(540px, calc(100vw - 2.5rem));
  justify-content: flex-start;
  padding: 3.5rem 0 4.5rem;
}
.panel-list { margin-bottom: 1.5rem; text-align: left; }
.panel-list .dash-row { text-align: left; }
.spot-screen .dash-room-head { text-align: left; }
.spot-faq {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.spot-faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-align: left;
}
.spot-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.2rem;
}
.spot-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.35;
}
.spot-faq summary::-webkit-details-marker { display: none; }
.spot-faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-weight: 400;
  margin-left: 0.75rem;
}
.spot-faq details[open] summary::after { content: "–"; }
.spot-faq details p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.spot-faq details a { color: var(--text); }
.totp-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: #fff;
  padding: 0.45rem;
}
.lost-page {
  text-align: center;
}
.lost-page .dash-bar {
  justify-content: center;
}
.lost-page .dash-lead {
  margin-bottom: 1.5rem;
}
.lost-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.1rem;
  color: var(--text);
}
.lost-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lost-lock {
  transform-origin: 70px 52px;
  animation: lostRattle 2.4s ease-in-out infinite;
}
.lost-shackle {
  transform-origin: 70px 40px;
  animation: lostShackle 2.4s ease-in-out infinite;
}
.lost-key {
  transform-origin: 22px 108px;
  animation: lostKey 2.4s ease-in-out infinite;
}
@keyframes lostRattle {
  0%, 55%, 100% { transform: rotate(0deg); }
  60% { transform: rotate(-6deg); }
  68% { transform: rotate(5deg); }
  76% { transform: rotate(-3deg); }
  84% { transform: rotate(2deg); }
}
@keyframes lostShackle {
  0%, 70%, 100% { transform: translateY(0); }
  78% { transform: translateY(-4px); }
}
@keyframes lostKey {
  0% { transform: translate(0, 0) rotate(-12deg); }
  35% { transform: translate(28px, -22px) rotate(8deg); }
  48% { transform: translate(36px, -28px) rotate(18deg); }
  58% { transform: translate(18px, -8px) rotate(-20deg); }
  100% { transform: translate(0, 0) rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .lost-lock, .lost-shackle, .lost-key { animation: none; }
}
.lost-home {
  width: auto;
  display: inline-flex;
  margin: 0 auto;
}

.cust-list { display: grid; gap: 0.55rem; }
.cust-row {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}
.cust-row:hover { border-color: var(--line-strong); }
.cust-row span { color: var(--muted); font-size: 0.86rem; }
.cust-count { color: var(--faint) !important; font-size: 0.78rem !important; }
