:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07070a;
  color: #f7f7fb;
  --panel: rgba(18, 18, 25, .76);
  --panel-2: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.11);
  --muted: #a8a8b5;
  --cyan: #48e7ff;
  --pink: #ff4fd8;
  --purple: #9b6cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(72,231,255,.11), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(255,79,216,.10), transparent 28rem),
    radial-gradient(circle at 50% 90%, rgba(155,108,255,.10), transparent 30rem),
    #07070a;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 18px;
  display: grid;
  place-items: center;
}

.status-card, .error-card, .editor-card {
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
}

.status-card, .error-card {
  border-radius: 26px;
  padding: 24px;
}

.brand-row { display: flex; align-items: center; gap: 12px; }
.gem {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.gem svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: url("#avellaGradient");
  stroke: #e9faff;
  stroke-width: 2.25;
  stroke-linejoin: round;
}
.gem.large { width: 54px; height: 54px; margin-bottom: 14px; }

.eyebrow, .mini-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.powered { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.business-block { padding: 42px 0 24px; }
.business-block h1, .error-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 9vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
.address { margin: 0; color: var(--muted); line-height: 1.5; }

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px currentColor;
}
.status-pill.closed .status-dot { background: #8e8e99; }
.status-pill.away .status-dot { background: var(--pink); }

.away-panel {
  margin: 2px 0 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,79,216,.22);
  background: linear-gradient(135deg, rgba(155,108,255,.12), rgba(255,79,216,.08), rgba(72,231,255,.05));
}
.away-panel h2 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.away-panel > p:not(.mini-label) { color: #d4d4dd; line-height: 1.55; margin: 0; }
.return-time {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.return-time strong { color: #fff; }

.hours-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(0,0,0,.12);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
}
.today-line { margin: 0; color: var(--muted); font-size: 12px; }
.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 14px;
}
.hours-row.today { color: #fff; font-weight: 750; }
.hours-row:first-child { border-top: 0; }

.call-button {
  margin-top: 18px;
  min-height: 58px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  color: #07070a;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(100deg, var(--cyan), #f4f4ff 45%, var(--pink));
  box-shadow: 0 10px 36px rgba(72,231,255,.11);
}
.footer-note { text-align: center; color: var(--muted); font-size: 11px; margin: 12px 0 0; }

.hidden { display: none !important; }

.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.03em; }
.admin-note { color: var(--muted); max-width: 680px; line-height: 1.5; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; }
.editor-card { border-radius: 22px; padding: 22px; }
.editor-card h2 { margin: 8px 0 10px; letter-spacing: -.03em; }
.muted { color: var(--muted); line-height: 1.6; }

.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label { color: #d7d7df; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  color: #fff;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(72,231,255,.5); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 0;
  margin: 2px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.switch-row strong { display: block; margin-bottom: 4px; }
.switch-row span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.switch { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #292932; border: 1px solid var(--line); cursor: pointer; }
.slider::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .slider { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.switch input:checked + .slider::after { transform: translateX(22px); }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .secondary-button {
  border-radius: 13px;
  min-height: 46px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: .03em;
}
.primary-button { border: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); color: #07070a; }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; }
.future-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.future-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: #c9c9d2; font-size: 11px; }

@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  .status-card { padding: 20px; border-radius: 22px; }
  .business-block { padding-top: 34px; }
}
