:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfc;
  --ink: #14222b;
  --muted: #64727d;
  --line: #dce5ec;
  --line-strong: #c8d5df;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --primary-soft: #e7f5f2;
  --accent: #d97706;
  --accent-soft: #fff4df;
  --ok-bg: #dcfce7;
  --ok: #166534;
  --warn-bg: #fef3c7;
  --warn: #92400e;
  --fail-bg: #fee2e2;
  --fail: #991b1b;
  --shadow: 0 10px 28px rgba(20, 34, 43, .08);
  --shadow-soft: 0 8px 18px rgba(20, 34, 43, .05);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Tahoma, sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: #143733;
  color: #e3fffa;
  padding: 20px 16px;
}

.brand {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding: 4px 8px 18px;
}

.brand strong {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
}

.brand span {
  color: #9fe4dc;
  font-size: 13px;
  font-weight: 700;
}

.menu {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.menu a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  color: #ddfbf6;
  font-weight: 800;
  text-decoration: none;
  padding: 0 12px;
}

.menu a.active {
  background: #ffffff;
  color: #0f3f3b;
}

.menu a:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.main {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar .actions {
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  font-size: 31px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 17px;
}

.muted {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.metric,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  margin-bottom: 18px;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px;
}

.metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  content: "";
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: #081921;
  font-size: 28px;
  line-height: 1.1;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.button:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: none;
}

.button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.notice {
  margin: 0 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.55;
  font-weight: 700;
}

.notice.ok {
  border-color: #bbf7d0;
  background: var(--ok-bg);
  color: var(--ok);
}

.notice.fail {
  border-color: #fecaca;
  background: var(--fail-bg);
  color: var(--fail);
}

.notice.warn {
  border-color: #fde68a;
  background: var(--warn-bg);
  color: var(--warn);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-scroll table {
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: #52616b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: #fbfdfd;
}

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

.table-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill.fail {
  background: var(--fail-bg);
  color: var(--fail);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-grid label,
.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.form-grid textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.filter-row input:focus,
.filter-row select:focus,
.button:focus-visible,
.menu a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .18);
  outline-offset: 2px;
  border-color: var(--primary);
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.span-2 {
  grid-column: span 2;
}

.filter-row {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.template-target-row {
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 0;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-card {
  overflow: hidden;
  padding: 0;
}

.template-card.current-template {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(15, 118, 110, .14);
}

.template-preview {
  display: grid;
  min-height: 145px;
  align-content: end;
  gap: 6px;
  background: linear-gradient(135deg, var(--template-primary), var(--template-accent));
  color: #fff;
  padding: 18px;
}

.template-preview span {
  display: block;
  width: 58px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}

.template-preview strong {
  font-size: 24px;
}

.template-preview small {
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
}

.template-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.template-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.template-swatches i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .18);
}

.template-swatches span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.template-zip-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.template-zip-status.ready {
  background: #ecfdf5;
  color: #047857;
}

.template-zip-status.missing {
  background: #fff7ed;
  color: #c2410c;
}

.theme-zip-upload {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}

.theme-zip-upload input[type="file"] {
  min-height: auto;
  padding: 10px;
}

.theme-zip-upload .button {
  width: fit-content;
}

.template-check {
  align-items: flex-start;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.5;
}

.switch-mode-list {
  display: grid;
  gap: 10px;
}

.switch-mode {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  cursor: pointer;
}

.switch-mode:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.switch-mode input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.switch-mode strong,
.switch-mode small {
  display: block;
}

.switch-mode small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.switch-mode.disabled {
  opacity: .58;
  cursor: not-allowed;
}

.detail-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
}

.detail-grid span {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list strong {
  color: var(--ink);
}

.ready-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-block {
  overflow-x: auto;
  margin: 14px 0 0;
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 16px;
  line-height: 1.6;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: min(100%, 430px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card .form-grid {
  margin-top: 18px;
}

.setup-shell {
  width: min(980px, calc(100% - 32px));
  margin: 30px auto;
}

@media (max-width: 1040px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .admin-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 14px;
  }

  .brand {
    padding: 0 4px 12px;
  }

  .menu {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .menu a {
    justify-content: center;
    white-space: nowrap;
  }

  .two-col,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 14px;
  }

  h1 {
    font-size: 26px;
  }

  .metric-grid,
  .form-grid,
  .filter-row,
  .template-target-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .panel,
  .metric,
  .auth-card {
    padding: 16px;
  }

  .actions .button,
  .topbar .button,
  .filter-row .button {
    width: 100%;
  }

  th,
  td {
    padding: 10px;
  }
}

/* Step Admin 1.0: Booking-style central admin theme + mobile responsive
   Applies to every admin.resort108.com page that loads assets/css/admin.css */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e3ef;
  --line-strong: #b9c8dc;
  --primary: #006ce4;
  --primary-dark: #003b95;
  --primary-soft: #eaf3ff;
  --accent: #febb02;
  --accent-soft: #fff7db;
  --ok-bg: #e9f8ef;
  --ok: #008234;
  --warn-bg: #fff4cf;
  --warn: #9a6500;
  --fail-bg: #ffe8e8;
  --fail: #b42318;
  --shadow: 0 20px 50px rgba(0, 53, 128, .12);
  --shadow-soft: 0 12px 30px rgba(0, 53, 128, .075);
  --booking-blue: #003b95;
  --booking-blue-2: #006ce4;
  --booking-yellow: #febb02;
}

html,
body {
  background: var(--bg) !important;
  color: var(--ink) !important;
}

body {
  font-family: Arial, Tahoma, sans-serif !important;
  font-size: 15px !important;
}

.admin-wrap {
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 108, 228, .10) 0%, transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%) !important;
}

.sidebar {
  border-right: 0 !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 108, 228, .42) 0%, rgba(0, 108, 228, 0) 36%),
    linear-gradient(180deg, #003b95 0%, #00224f 100%) !important;
  color: #ffffff !important;
  box-shadow: 16px 0 38px rgba(0, 34, 79, .16) !important;
}

.brand {
  border-bottom-color: rgba(255, 255, 255, .22) !important;
}

.brand strong {
  color: #ffffff !important;
  font-size: 22px !important;
  letter-spacing: -.02em !important;
}

.brand span {
  color: rgba(255, 255, 255, .78) !important;
}

.menu a {
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, .88) !important;
  font-weight: 900 !important;
}

.menu a.active {
  background: #ffffff !important;
  color: var(--booking-blue) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16) !important;
}

.menu a:hover {
  border-color: rgba(255, 255, 255, .20) !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #ffffff !important;
}

.main {
  padding: 28px !important;
}

.topbar {
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 96% 90%, rgba(0, 108, 228, .70) 0%, rgba(0, 108, 228, 0) 42%),
    linear-gradient(135deg, #003b95 0%, #0057c2 58%, #0071e8 100%) !important;
  color: #ffffff !important;
  margin-bottom: 20px !important;
  padding: 22px 24px !important;
  box-shadow: 0 22px 54px rgba(0, 59, 149, .20) !important;
}

.topbar h1 {
  color: #ffffff !important;
  font-size: clamp(26px, 3.2vw, 42px) !important;
  letter-spacing: -.02em !important;
}

.topbar .muted {
  color: rgba(255, 255, 255, .78) !important;
}

.eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--booking-blue) !important;
  padding: 6px 12px !important;
  letter-spacing: .04em !important;
  box-shadow: 0 10px 22px rgba(0, 34, 79, .14) !important;
}

.panel,
.metric,
.auth-card,
.template-card,
.switch-mode,
.table-scroll {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-soft) !important;
}

.panel {
  padding: 20px !important;
}

.panel-head {
  border-radius: 14px !important;
  background: #f4f7fb !important;
  margin: -6px -6px 16px !important;
  padding: 14px !important;
}

.metric-grid {
  gap: 16px !important;
}

.metric {
  min-height: 112px !important;
  padding: 18px !important;
}

.metric::before {
  inset: 0 0 auto 0 !important;
  width: auto !important;
  height: 5px !important;
  background: linear-gradient(90deg, var(--booking-yellow), var(--booking-blue-2)) !important;
}

.metric span {
  color: #475467 !important;
  font-weight: 900 !important;
}

.metric strong {
  color: #101828 !important;
  font-size: clamp(24px, 2.2vw, 34px) !important;
}

.button {
  min-height: 42px !important;
  border-radius: 999px !important;
  background: var(--booking-blue-2) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 108, 228, .18) !important;
}

.button:hover {
  background: #0057c2 !important;
}

.button.secondary {
  border-color: #d0dce9 !important;
  background: #ffffff !important;
  color: var(--booking-blue) !important;
  box-shadow: 0 8px 18px rgba(0, 34, 79, .06) !important;
}

.button.secondary:hover {
  border-color: var(--booking-blue-2) !important;
  background: var(--primary-soft) !important;
  color: var(--booking-blue) !important;
}

.actions .button:first-child:not(.secondary),
.topbar .button:first-child:not(.secondary),
.form-grid .button:not(.secondary) {
  background: var(--booking-yellow) !important;
  color: #172033 !important;
  box-shadow: 0 14px 28px rgba(254, 187, 2, .22) !important;
}

.notice {
  border-radius: 14px !important;
}

.table-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

table {
  border-radius: 14px !important;
  overflow: hidden !important;
}

th {
  background: #f4f7fb !important;
  color: #344054 !important;
  font-weight: 1000 !important;
  letter-spacing: .02em !important;
}

td {
  color: #172033 !important;
}

tbody tr:hover td {
  background: #f8fbff !important;
}

.table-link {
  color: var(--booking-blue-2) !important;
}

.pill {
  background: #eaf3ff !important;
  color: var(--booking-blue) !important;
}

.pill.warn {
  background: #fff4cf !important;
  color: #9a6500 !important;
}

.pill.fail {
  background: #ffe8e8 !important;
  color: #b42318 !important;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.filter-row input,
.filter-row select {
  min-height: 44px !important;
  border-color: #d0dce9 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.filter-row input:focus,
.filter-row select:focus,
.button:focus-visible,
.menu a:focus-visible {
  outline: 3px solid rgba(0, 108, 228, .18) !important;
  border-color: var(--booking-blue-2) !important;
}

.auth-shell {
  background:
    radial-gradient(circle at 95% 8%, rgba(0, 108, 228, .20) 0%, transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%) !important;
}

.auth-card {
  border-top: 6px solid var(--booking-blue-2) !important;
  padding: 30px !important;
}

.code-block {
  border-color: #00224f !important;
  background: #001b3f !important;
}

@media (max-width: 1040px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 880px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .admin-wrap {
    display: block !important;
    width: 100% !important;
  }

  .sidebar {
    position: static !important;
    min-height: auto !important;
    border-radius: 0 0 22px 22px !important;
    padding: 14px 12px 16px !important;
  }

  .brand {
    padding: 0 4px 12px !important;
  }

  .brand strong {
    font-size: 20px !important;
  }

  .menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    margin-top: 12px !important;
    padding-bottom: 0 !important;
  }

  .menu a {
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 0 8px !important;
  }

  .main {
    width: 97vw !important;
    max-width: 97vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px 0 18px !important;
  }

  .topbar,
  .panel-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .topbar {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  .topbar h1 {
    font-size: 26px !important;
  }

  .topbar .actions,
  .actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .actions .button,
  .topbar .button,
  .filter-row .button {
    width: 100% !important;
  }

  .two-col,
  .template-grid {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .metric,
  .auth-card {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .panel-head {
    margin: -2px -2px 12px !important;
    padding: 12px !important;
  }

  .table-scroll table {
    min-width: 760px !important;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px !important;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .metric {
    min-height: 88px !important;
    padding: 13px !important;
  }

  .metric strong {
    font-size: 22px !important;
  }

  .metric span {
    font-size: 12px !important;
  }

  .form-grid,
  .filter-row,
  .template-target-row {
    grid-template-columns: 1fr !important;
  }

  .span-2 {
    grid-column: span 1 !important;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 18px !important;
  }

  th,
  td {
    padding: 9px !important;
  }
}


/* Admin Resort108 Booking-style theme Step 2
   Central theme for admin.resort108.com: Booking.com-inspired blue/yellow palette + mobile 97%. */
:root {
  --booking-navy: #003b95;
  --booking-navy-dark: #00224f;
  --booking-blue: #006ce4;
  --booking-blue-2: #0071c2;
  --booking-blue-soft: #eaf3ff;
  --booking-yellow: #febb02;
  --booking-yellow-dark: #e6a700;
  --booking-bg: #f5f7fb;
  --booking-surface: #ffffff;
  --booking-head: #f4f7fb;
  --booking-line: #d7e3f2;
  --booking-text: #1a1f2c;
  --booking-muted: #5d6677;
  --bg: var(--booking-bg) !important;
  --surface: var(--booking-surface) !important;
  --surface-soft: #f9fbff !important;
  --ink: var(--booking-text) !important;
  --muted: var(--booking-muted) !important;
  --line: var(--booking-line) !important;
  --line-strong: #bfd0e5 !important;
  --primary: var(--booking-blue) !important;
  --primary-dark: var(--booking-navy) !important;
  --primary-soft: var(--booking-blue-soft) !important;
  --accent: var(--booking-yellow-dark) !important;
  --accent-soft: #fff7d6 !important;
  --shadow: 0 16px 36px rgba(0, 35, 79, .10) !important;
  --shadow-soft: 0 10px 24px rgba(0, 35, 79, .075) !important;
}

html, body {
  background:
    radial-gradient(circle at 94% 0%, rgba(0,108,228,.10), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, var(--booking-bg) 48%, #eef4fb 100%) !important;
  color: var(--booking-text) !important;
}

.admin-wrap {
  background: transparent !important;
}

.sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(0,108,228,.52), transparent 36%),
    linear-gradient(180deg, var(--booking-navy) 0%, var(--booking-navy-dark) 100%) !important;
  color: #ffffff !important;
  box-shadow: 14px 0 38px rgba(0, 35, 79, .16) !important;
}

.brand {
  border-bottom-color: rgba(255,255,255,.22) !important;
}

.brand strong {
  color: #ffffff !important;
}

.brand span {
  color: #cfe5ff !important;
}

.menu a {
  color: #eaf3ff !important;
  border: 1px solid transparent !important;
  transition: transform .15s ease, background .15s ease, color .15s ease !important;
}

.menu a:hover {
  background: rgba(255,255,255,.14) !important;
  color: #ffffff !important;
  transform: translateX(2px) !important;
}

.menu a.active {
  background: #ffffff !important;
  color: var(--booking-navy) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.16) !important;
}

.main {
  background: transparent !important;
}

.topbar {
  background:
    radial-gradient(circle at 88% 18%, rgba(102,178,255,.45), transparent 32%),
    linear-gradient(135deg, var(--booking-navy-dark) 0%, var(--booking-navy) 54%, var(--booking-blue) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 18px 42px rgba(0, 35, 79, .18) !important;
}

.topbar h1,
.topbar h2,
.topbar h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(25px, 3.1vw, 38px) !important;
  letter-spacing: -.02em !important;
}

.topbar .muted,
.topbar p,
.topbar small {
  color: rgba(255,255,255,.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,.82) !important;
}

.topbar .eyebrow,
.eyebrow {
  width: fit-content !important;
  border: 1px solid #c7e0ff !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--booking-navy) !important;
  -webkit-text-fill-color: var(--booking-navy) !important;
  padding: 7px 12px !important;
  letter-spacing: .06em !important;
}

.topbar .button,
.topbar a.button,
.topbar button.button {
  background: #ffffff !important;
  color: var(--booking-navy) !important;
  -webkit-text-fill-color: var(--booking-navy) !important;
  border-color: rgba(255,255,255,.7) !important;
  box-shadow: 0 10px 20px rgba(0,35,79,.18) !important;
}

.topbar .button.primary,
.topbar .button:not(.secondary):last-child,
.button.primary,
button.button.primary {
  background: var(--booking-yellow) !important;
  color: #1a1f2c !important;
  -webkit-text-fill-color: #1a1f2c !important;
  border-color: var(--booking-yellow-dark) !important;
}

.panel,
.metric,
.auth-card,
.template-card {
  background: var(--booking-surface) !important;
  border: 1px solid var(--booking-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-soft) !important;
}

.panel-head {
  background: var(--booking-head) !important;
  border: 1px solid #e1e9f5 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: -4px -4px 16px !important;
}

.metric {
  border-top: 4px solid var(--booking-blue) !important;
  overflow: hidden !important;
}

.metric::before {
  display: none !important;
}

.metric span {
  color: var(--booking-muted) !important;
}

.metric strong {
  color: var(--booking-navy-dark) !important;
}

.button,
button,
input[type="submit"] {
  border-radius: 10px !important;
}

.button,
button.button,
a.button {
  background: var(--booking-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #0057b8 !important;
  box-shadow: 0 8px 18px rgba(0,108,228,.18) !important;
  font-weight: 900 !important;
}

.button:hover,
button.button:hover,
a.button:hover {
  background: #005fc8 !important;
}

.button.secondary,
a.button.secondary,
button.button.secondary {
  background: #ffffff !important;
  color: var(--booking-navy) !important;
  -webkit-text-fill-color: var(--booking-navy) !important;
  border-color: #c8d8ef !important;
  box-shadow: none !important;
}

.button.danger,
button.button.danger,
a.button.danger {
  background: #d4111e !important;
  color: #ffffff !important;
  border-color: #b80f19 !important;
}

.notice.ok,
.badge.ok,
.status.active,
.status.paid {
  background: #e7f8ee !important;
  color: #087443 !important;
}

.notice.fail,
.badge.fail,
.status.cancelled,
.status.suspended {
  background: #fff1f2 !important;
  color: #b42318 !important;
}

.notice.warn,
.badge.warn,
.status.open,
.status.pending {
  background: #fff7d6 !important;
  color: #7a4b00 !important;
}

.table-scroll,
table {
  border-color: var(--booking-line) !important;
}

thead th,
th {
  background: var(--booking-head) !important;
  color: #25314a !important;
  border-color: var(--booking-line) !important;
}

td {
  border-color: #e6eef8 !important;
}

tr:hover td {
  background: #f9fbff !important;
}

input,
select,
textarea {
  border: 1px solid #c8d8ef !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--booking-text) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0,108,228,.16) !important;
  border-color: var(--booking-blue) !important;
}

.auth-shell {
  min-height: 100vh !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(0,108,228,.22), transparent 34%),
    linear-gradient(135deg, #eaf3ff 0%, #f6f8fb 58%, #fff8db 100%) !important;
}

.auth-card {
  border-top: 6px solid var(--booking-blue) !important;
}

.auth-card h1 {
  color: var(--booking-navy-dark) !important;
}

.code-block,
pre {
  background: var(--booking-navy-dark) !important;
  border-color: #001a3d !important;
  color: #eaf3ff !important;
}

@media (max-width: 880px) {
  .admin-wrap {
    display: block !important;
    width: 100% !important;
  }

  .sidebar {
    position: static !important;
    min-height: auto !important;
    border-radius: 0 0 20px 20px !important;
    padding: 14px 12px !important;
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .menu a {
    min-height: 44px !important;
    justify-content: center !important;
    padding: 8px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .main {
    width: 97vw !important;
    max-width: 97vw !important;
    margin: 0 auto !important;
    padding: 12px 0 18px !important;
  }

  .topbar {
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .topbar h1 {
    font-size: 24px !important;
  }

  .topbar .actions,
  .actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .metric {
    min-height: 88px !important;
    padding: 13px !important;
  }

  .panel {
    padding: 14px !important;
  }

  .panel-head {
    margin: -2px -2px 12px !important;
    padding: 12px !important;
  }

  .two-col,
  .template-grid,
  .form-grid,
  .filter-row,
  .template-target-row {
    grid-template-columns: 1fr !important;
  }

  .span-2 {
    grid-column: span 1 !important;
  }

  .table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-scroll table {
    min-width: 760px !important;
  }
}
