@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("nunito-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --page-max: 1024px;
  --copy-max: 640px;
  --purple: #552e92;
  --purple-d: #3d2070;
  --purple-l: #f0edf8;
  --purple-m: #c9bfe8;
  --green: #38a169;
  --green-d: #2f855a;
  --green-l: #f0fff4;
  --yellow: #fdd506;
  --bg: #f5f5f7;
  --border: #e2e8f0;
  --text: #1a1a2e;
  --muted: #4a5568;
}

html {
  margin: 0;
  font-size: 18px;
  overflow-x: clip;
  background: #f0f0f0;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: #f0f0f0;
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  border: 0;
  color: inherit;
  font: inherit;
}

button[data-track-name] > *,
a[data-track-name] > * {
  pointer-events: none;
}

input {
  min-width: 0;
}

.app-root,
.app-shell {
  min-height: 100vh;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.app-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  background: white;
}

.hx-header {
  line-height: 0;
  padding-top: env(safe-area-inset-top);
  background: var(--purple);
}

.header-home {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.header-home:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.header-logo {
  display: block;
  width: 100%;
  height: auto;
  background: var(--purple);
}

.hero-wrap {
  width: 100%;
  line-height: 0;
}

.hero-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--copy-max);
  margin: 0 auto;
}

.step {
  display: none;
  padding: 24px 20px 120px;
}

.step.active {
  display: block;
  animation: fade-up 0.2s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.summary-title {
  margin-bottom: 10px;
}

.step-description {
  margin: 0 0 18px;
  color: #555;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.step-q {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.step-q strong {
  color: var(--text);
  font-weight: 700;
}

.notice {
  margin: 18px 20px 0;
  padding: 0.75rem 1rem;
  border: 1.5px solid #fed7d7;
  border-radius: 10px;
  background: #fff5f5;
  color: #9b2c2c;
  font-weight: 700;
}

.email-title {
  margin-bottom: 1.1rem;
}

.email-row {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.email-field-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: block;
}

.email-field {
  width: 100%;
  min-height: 72px;
  border: 2px solid var(--purple);
  border-radius: 10px;
  padding: 1.9rem 1rem 0.7rem;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  -webkit-appearance: none;
}

.email-field:focus {
  border-color: var(--purple-d);
}

.email-field-label {
  position: absolute;
  top: 0.62rem;
  left: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
}

.email-send-btn {
  flex: 0 0 52px;
  width: 52px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.email-send-btn:hover {
  background: var(--purple-d);
}

.email-skip {
  width: 100%;
  display: block;
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.email-skip:hover {
  color: var(--purple);
}

.email-perks-wrap {
  color: var(--text);
}

.email-perks-intro {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.email-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.email-perks li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.email-perks span {
  color: var(--green-d);
  font-weight: 700;
}

.email-smallprint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.sec-lbl {
  margin: 0 0 0.625rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recents-section {
  margin-bottom: 1.375rem;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.recent-chip {
  align-items: center;
  display: inline-flex;
  min-height: 40px;
  max-width: 100%;
  overflow: hidden;
  border: 1.5px solid var(--purple-m);
  border-radius: 20px;
  background: var(--purple-l);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.recent-chip:hover,
.recent-chip:focus-within {
  background: var(--purple-m);
}

.recent-chip-main,
.recent-chip-remove {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.recent-chip-main {
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.45rem 0 0.875rem;
}

.recent-chip-main span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-chip-remove {
  justify-content: center;
  width: 2.25rem;
  flex: 0 0 2.25rem;
  border-left: 1px solid rgba(91, 50, 147, 0.18);
  color: var(--muted);
}

.recent-chip-remove:hover,
.recent-chip-remove:focus-visible {
  background: rgba(91, 50, 147, 0.08);
  color: var(--purple);
}

.ctx-bar {
  margin-bottom: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  background: #f8f7fc;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ctx-bar strong {
  color: var(--text);
  font-weight: 700;
}

.ctx-bar + .step-title {
  margin-top: 26px;
}

.calendar {
  padding-top: 0.125rem;
}

.calendar-key {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.1rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.calendar-key-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.calendar-key-closed {
  width: 1.4rem;
  height: 3px;
  display: inline-block;
  border-radius: 999px;
  background: #d92d4b;
}

.cal-month {
  margin-bottom: 2rem;
}

.cal-month-name {
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.cal-day {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: white;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.cal-day span,
.cal-day small {
  display: block;
  line-height: 1.1;
}

.cal-day-number {
  position: relative;
}

.cal-day.is-attraction-closed .cal-day-number::after {
  content: "";
  position: absolute;
  right: -0.12rem;
  bottom: -0.13rem;
  left: -0.12rem;
  height: 2px;
  border-radius: 999px;
  background: #d92d4b;
}

.cal-day.is-selected.is-attraction-closed .cal-day-number::after {
  background: #ffbcc8;
}

.cal-day small {
  margin-top: 0.12rem;
  color: var(--green-d);
  font-size: 0.55rem;
  font-weight: 800;
}

.cal-day.has-price {
  min-height: 46px;
  flex-direction: column;
}

.cal-day.avail:hover {
  background: var(--purple-l);
  color: var(--purple);
}

.cal-day.avail:hover small {
  color: var(--purple);
}

.cal-day.past {
  color: #c8cfe0;
  cursor: default;
}

.cal-day.cache-unavailable {
  color: #c8cfe0;
}

.cal-day.cal-anchor {
  border: 2px solid var(--green);
  color: var(--muted);
  font-weight: 600;
}

.cal-day.is-selected {
  border: 0;
  background: var(--purple);
  color: white;
  font-weight: 700;
}

.cal-day.is-selected small {
  color: white;
}

.time-grid,
.number-grid,
.choice-list {
  display: grid;
  gap: 0.5rem;
}

.time-grid {
  grid-template-columns: repeat(2, 1fr);
}

.number-grid {
  grid-template-columns: repeat(3, 1fr);
}

.choice-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  background: white;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.choice-row:not(:disabled):hover,
.choice-row.selected {
  border-color: var(--purple);
  background: var(--purple-l);
}

.choice-row:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.choice-row.sold-out {
  border-color: #f1b9be;
  background: #fff6f6;
}

.choice-row.sold-out .choice-main {
  color: #77424a;
}

.choice-row.sold-out .choice-meta {
  color: #c83345;
  font-weight: 900;
}

.choice-main {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.choice-meta {
  flex-shrink: 0;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.time-pill,
.number-tile {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.time-pill {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.time-pill.has-price,
.time-pill.has-inventory {
  min-height: 78px;
}

.time-pill small {
  display: grid;
  gap: 0.08rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.time-pill.loading {
  color: var(--muted);
  cursor: default;
}

.time-empty {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.time-empty strong,
.time-empty span {
  display: block;
}

.time-empty strong {
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 700;
}

.time-pill:hover,
.number-tile:hover {
  border-color: var(--purple);
  background: var(--purple-l);
}

.time-pill.tp-sel,
.number-tile.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
  font-weight: 700;
}

.time-pill.tp-sel small {
  color: white;
}

.number-tile {
  min-height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.age-list {
  display: grid;
  gap: 0.625rem;
}

.age-summary-row,
.age-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
}

.age-summary-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.age-summary-row:hover {
  border-color: var(--purple);
  background: var(--purple-l);
}

.age-summary-row strong,
.age-summary-row small {
  display: block;
}

.age-summary-row strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.age-summary-row small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.age-edit {
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
}

.age-card {
  padding: 0.75rem;
  background: #f8f7fc;
}

.age-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.age-card-head strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.age-card-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.age-tile {
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.age-tile:hover {
  border-color: var(--purple);
  background: var(--purple-l);
}

.age-tile.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.age-continue {
  margin-top: 1rem;
}

.time-tip {
  margin-top: 1.5rem;
  border: 1.5px solid #e8e4ff;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  background: #f8f7ff;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.time-tip strong {
  color: var(--text);
  font-weight: 700;
}

.review-rows {
  margin-bottom: 1.25rem;
}

.review-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #f0f4f8;
  padding: 0.875rem 0;
  background: white;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row:hover .rr-label {
  color: var(--purple);
}

.rr-icon {
  flex-shrink: 0;
  margin: 0.1rem 0.75rem 0 0;
  font-size: 1rem;
}

.rr-body {
  min-width: 0;
  display: block;
  overflow-wrap: break-word;
}

.rr-label,
.rr-value,
.rr-note {
  display: block;
}

.rr-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.rr-value {
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.rr-note {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.btn-success {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.9rem 1.5rem;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.btn-success:hover {
  background: var(--green-d);
}

.confidence-box {
  margin-top: 0.875rem;
  border: 1px solid #c6f6d5;
  border-radius: 9px;
  padding: 0.75rem 1rem;
  background: var(--green-l);
}

.confidence-box span {
  display: block;
  color: var(--green-d);
  font-size: 0.82rem;
  line-height: 1.5;
}

.confidence-box strong {
  color: var(--green-d);
  font-weight: 700;
}

.booking-notice {
  margin-top: 0.875rem;
  border: 1px solid #fbd38d;
  border-radius: 9px;
  padding: 0.85rem 1rem;
  background: #fffaf0;
}

.booking-notice span {
  display: block;
  color: #8a4b13;
  font-size: 0.82rem;
  line-height: 1.55;
}

.booking-notice strong {
  color: #7b341e;
  font-weight: 700;
}

.handoff-url {
  display: block;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  background: #f8f7fc;
  color: var(--purple);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.text-btn {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.75rem 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

@media (min-width: 360px) {
  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 480px) {
  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .step {
    padding: 32px 48px 140px;
  }
}

@media (max-width: 1023px) {
  html,
  body {
    background: white;
  }
}

.admin-page {
  background: #f3f3f4;
  color: #222;
  scroll-behavior: smooth;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--purple);
  color: #fff;
}

.admin-topbar h1 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-topbar h1 span {
  color: #ded5ef;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-topnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-topnav a,
.admin-topnav button {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f1fb;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-topnav a:hover,
.admin-topnav button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.admin-topnav button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-log-tools {
  position: sticky;
  top: 59px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.62rem 1.25rem;
  border-bottom: 1px solid #dfe4ec;
  background: #fff;
}

.admin-log-tools input[type="search"] {
  width: min(340px, 100%);
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-log-stat {
  color: #718096;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-log-stat strong {
  color: var(--text);
}

.admin-log-status {
  margin-left: auto;
  color: #718096;
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-log-status-ok {
  color: var(--green-d);
}

.admin-log-status-error {
  color: #c53030;
}

.admin-wide-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
}

.admin-screen {
  min-height: calc(100vh - 59px);
  scroll-margin-top: 59px;
}

.admin-log-screen {
  background: #fff;
}

.admin-log-panel {
  background: #fff;
}

.admin-log-wrap {
  overflow: auto;
  max-height: calc(100vh - 111px);
  border-bottom: 1px solid #e7ebf2;
}

.admin-log-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  background: #fff;
  color: #333;
  font-size: 0.73rem;
  font-weight: 650;
}

.admin-log-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.48rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f0f8;
  color: var(--purple);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-log-table td {
  max-width: 220px;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid #f0f2f5;
  overflow: hidden;
  color: #2d3748;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.admin-log-table tr:hover td {
  background: #fbf9ff;
}

.copy-btn {
  margin-left: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #718096;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--purple);
}

.admin-muted,
.admin-no {
  color: #a0aec0;
}

.admin-yes {
  color: #2f855a;
  font-weight: 900;
}

.admin-sent-link {
  color: #2f855a;
  font-weight: 900;
  text-decoration: none;
}

.admin-sent-link:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-price-panel {
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
  padding: 28px 24px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.admin-cache-screen {
  display: flex;
  align-items: flex-start;
  padding: 34px 0 72px;
  background: #f3f3f4;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.admin-section-heading .admin-intro {
  margin-bottom: 0;
}

.admin-section-link {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0.42rem 0.75rem;
  border: 1px solid #dfd6f4;
  border-radius: 5px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-section-link:hover {
  background: var(--purple-l);
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-intro {
  margin: 0 0 1.1rem;
  color: #718096;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-input {
  width: 100%;
  height: 52px;
  margin-bottom: 1rem;
  padding: 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
}

.admin-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(85, 46, 146, 0.12);
}

.admin-actions {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-button {
  width: 100%;
  min-height: 52px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-button-green {
  background: var(--green);
}

.admin-button-green:hover {
  background: var(--green-d);
}

.admin-button-purple {
  background: var(--purple);
}

.admin-button-purple:hover {
  background: var(--purple-d);
}

.admin-status {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-status-ok {
  border-color: #c6f6d5;
  background: var(--green-l);
  color: var(--green-d);
}

.admin-status-working {
  border-color: #dfd6f4;
  background: var(--purple-l);
  color: var(--purple-d);
}

.admin-status-error {
  border-color: #fed7d7;
  background: #fff5f5;
  color: #9b2c2c;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.admin-metrics div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfcfe;
}

.admin-metrics dt {
  margin: 0 0 0.3rem;
  color: #718096;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-metrics dd {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-table th,
.admin-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  background: #f7f5fc;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-pill-ok {
  background: var(--green-l);
  color: var(--green-d);
}

@media (max-width: 620px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-log-tools {
    top: 104px;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-log-tools input[type="search"] {
    width: 100%;
    max-width: none;
  }

  .admin-log-status {
    margin-left: 0;
  }

  .admin-log-wrap {
    max-height: calc(100vh - 220px);
  }

  .admin-price-panel {
    width: min(100% - 32px, 1060px);
  }

  .admin-section-heading {
    flex-direction: column;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }
}
