/* ════════════════════════════════════════════════════════════════════
   ADMIN PORTAL · luxe operator console
   Inherits tokens (--gold, --cream, --black) from styles.css
   ════════════════════════════════════════════════════════════════════ */
.admin-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--cream);
  font-family: var(--jcx-font-body, "Montserrat", sans-serif);
}

.admin-body h1,
.admin-body h2,
.admin-body .num,
.admin-body .eyebrow {
  font-family: var(--jcx-font-display, "Bebas Neue", "Big Caslon QR", Georgia, serif);
}

/* Override any old .admin-view display rules */
.admin-view { display: block !important; }
.admin-view[hidden] { display: none !important; }

.admin-view:not([hidden]) {
  animation: admin-view-in 520ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes admin-view-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── LOGIN ─────────────────────────────────────────────── */
.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.admin-login-side {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(160deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('images/images2/jeep/IMG-20260430-WA0241.webp') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  color: var(--cream);
}

.admin-login-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(181, 147, 86, 0.4));
}

.admin-login-side h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 4.5vw, 60px);
  text-transform: lowercase;
}

.admin-login-side .signature {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.admin-login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: #0c0c0c;
}

.admin-login-inner {
  width: 100%;
  max-width: 420px;
  min-width: 0;
}

.admin-login-inner h2 {
  font-size: clamp(38px, 4vw, 60px);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.admin-login-inner .muted-copy {
  margin: 0 0 32px;
  color: var(--muted);
}

.admin-back {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-back a { color: var(--gold-light); }
.admin-back a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .admin-login { grid-template-columns: 1fr; }
  .admin-login-side { min-height: 36vh; padding: 2rem 1.5rem; }
  .admin-login-form { padding: 2rem 1.5rem; }
}

/* ── ADMIN FORM PRIMITIVES ─────────────────────────────── */
.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: rgba(245, 240, 231, 0.78);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="tel"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--cream);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 200ms ease, background 200ms ease;
}
.admin-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(181, 147, 86, 0.04);
}

.admin-form input:focus-visible,
.admin-search:focus-visible,
.filter-chip:focus-visible,
.admin-nav-link:focus-visible,
.icon-btn:focus-visible,
.button-soft:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-form-2col {
  grid-template-columns: 1fr 1fr;
}
.admin-form-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .admin-form-2col { grid-template-columns: 1fr; }
}

/* ── SHELL ─────────────────────────────────────────────── */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-side {
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.admin-side-brand {
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}
.admin-side-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(181, 147, 86, 0.35));
}

.admin-nav-section {
  margin: 16px 8px 6px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 231, 0.45);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(245, 240, 231, 0.72);
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease, padding-left 200ms ease;
  cursor: pointer;
  position: relative;
}
.admin-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav-link:hover { background: rgba(255,255,255,0.04); color: var(--cream); padding-left: 14px; }
.admin-nav-link.active {
  background: linear-gradient(90deg, rgba(181,147,86,0.18), rgba(181,147,86,0.04) 70%);
  color: var(--cream);
}
.admin-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.admin-nav-link .badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--gold);
  color: #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}

.admin-side-foot {
  margin-top: auto;
  padding: 16px 8px 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(245, 240, 231, 0.55);
}
.admin-side-foot strong { color: var(--cream); }

#logout-btn { color: rgba(212, 121, 107, 0.62); }
#logout-btn:hover { color: #e8a89e; background: rgba(212, 121, 107, 0.08); }

/* ── MAIN ──────────────────────────────────────────────── */
.admin-main {
  padding: clamp(28px, 4vw, 56px);
  background: var(--black);
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-topbar h1 {
  font-size: clamp(36px, 4vw, 56px);
  text-transform: lowercase;
  margin: 6px 0 0;
}
.admin-topbar .eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.admin-userchip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.admin-userchip .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6a3a);
  color: #111;
  display: grid; place-items: center;
  font-family: "Big Caslon QR", Georgia, serif;
  font-weight: 500;
  font-size: 14px;
}
.admin-userchip strong { font-size: 13px; color: var(--cream); display: block; }
.admin-userchip span { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── STAT CARDS ────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  padding: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: border-color 240ms ease, transform 240ms ease;
  animation: admin-card-in 620ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
.stat-card:hover { border-color: rgba(181,147,86,0.35); transform: translateY(-2px); }
.stat-card .lbl {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,231,0.55);
}
.stat-card .num {
  margin: 0;
  font-family: "Big Caslon QR", Georgia, serif;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1;
}

.stat-card:nth-child(1) { animation-delay: 60ms; }
.stat-card:nth-child(2) { animation-delay: 110ms; }
.stat-card:nth-child(3) { animation-delay: 160ms; }
.stat-card:nth-child(4) { animation-delay: 210ms; }

@keyframes admin-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 1100px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ── PANEL + TABLE ─────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
}
.panel-head .muted-copy { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.panel-body { padding: 22px 24px; }
.panel-body.flush { padding: 0; }

.panel-body.flush:has(.tbl) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.tbl th, .tbl td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13.5px;
  color: rgba(245,240,231,0.85);
}
.tbl th {
  background: rgba(255,255,255,0.03);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tbl tbody tr:hover { background: rgba(181,147,86,0.04); }
.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl tbody tr {
  animation: admin-row-in 520ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.tbl tbody tr:nth-child(1) { animation-delay: 35ms; }
.tbl tbody tr:nth-child(2) { animation-delay: 70ms; }
.tbl tbody tr:nth-child(3) { animation-delay: 105ms; }
.tbl tbody tr:nth-child(4) { animation-delay: 140ms; }
.tbl tbody tr:nth-child(5) { animation-delay: 175ms; }
.tbl tbody tr:nth-child(6) { animation-delay: 210ms; }
.tbl tbody tr:nth-child(7) { animation-delay: 245ms; }
.tbl tbody tr:nth-child(8) { animation-delay: 280ms; }

@keyframes admin-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tbl-guest { display: flex; align-items: center; gap: 12px; }
.tbl-guest .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6a3a);
  color: #111;
  display: grid; place-items: center;
  font-family: "Big Caslon QR", Georgia, serif;
  font-size: 13px;
}
.tbl-guest strong { display: block; color: var(--cream); font-weight: 500; }
.tbl-guest small { font-size: 11.5px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-confirmed  { background: rgba(181,147,86,0.16); color: var(--gold-light); }
.pill-deposit    { background: rgba(212,189,135,0.14); color: var(--gold-light); }
.pill-pending    { background: rgba(255,255,255,0.08); color: rgba(245,240,231,0.7); }
.pill-cancelled  { background: rgba(120,120,120,0.15); color: rgba(245,240,231,0.45); }
.pill-completed  { background: rgba(72,187,120,0.16); color: #6ee7a0; }

.tbl-actions { display: inline-flex; gap: 4px; }
.icon-btn {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: transparent;
  color: rgba(245,240,231,0.7);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(181,147,86,0.08); transform: translateY(-1px) scale(1.04); }
.icon-btn svg { width: 14px; height: 14px; }

/* ── FILTER CHIPS + SEARCH ─────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(245,240,231,0.65);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--cream); }
.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.admin-search {
  width: clamp(180px, 28vw, 320px);
  max-width: 100%;
  height: 38px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 13px;
}
.admin-search:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.06); }

/* ── PRICING ───────────────────────────────────────────── */
.price-grid { display: grid; gap: 10px; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  transition: border-color 200ms ease;
  animation: admin-row-in 520ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
.price-row:hover { border-color: rgba(181,147,86,0.35); }
.price-row .meta strong {
  display: block;
  font-family: "Big Caslon QR", Georgia, serif;
  font-size: 19px;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.price-row .meta span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-input-wrap { display: flex; align-items: center; }
.price-input-wrap .currency {
  padding: 0 12px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--muted);
  font-family: "Big Caslon QR", Georgia, serif;
  font-size: 14px;
  display: grid; place-items: center;
}
.price-input-wrap input {
  width: 130px;
  height: 40px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 6px 6px 0;
  color: var(--cream);
  font-family: "Big Caslon QR", Georgia, serif;
  font-size: 16px;
  text-align: right;
}
.price-input-wrap input:focus { outline: none; border-color: var(--gold); }

.price-row .save-flash {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 300ms ease;
}
.price-row .save-flash.show { opacity: 1; }

@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr; }
  .price-input-wrap input { width: 100%; }
}

/* ── ADMIN TOOLBAR + BUTTONS ───────────────────────────── */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.admin-toolbar p { margin: 0; }

.button-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.button-soft:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,0.22); }

.loading-row td,
.skeleton-line {
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  display: block;
  width: min(260px, 70%);
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 30%, rgba(255,255,255,0.16) 48%, transparent 66% 100%);
  transform: translateX(-120%);
  animation: admin-skeleton 1200ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

@keyframes admin-skeleton {
  to { transform: translateX(120%); }
}

/* ── RESPONSIVE SHELL ──────────────────────────────────── */

/* Desktop: hide mobile-only UI */
.admin-mobile-bar { display: none; }
.admin-drawer-backdrop { display: none; }
.admin-hamburger { display: none; }

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

  /* Drawer — slides in from left */
  .admin-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
    flex-direction: column;
    padding: 28px 18px;
    max-height: 100dvh;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 0;
    box-shadow: none;
  }
  .admin-side.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 56px rgba(0,0,0,0.7);
  }

  /* Restore drawer internals to column layout */
  .admin-side-brand { display: block; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
  .admin-side-brand img { width: 56px; height: 56px; }
  .admin-nav-section { display: block; }
  .admin-nav { flex-direction: column; gap: 2px; flex: none; }
  .admin-nav-link { flex: none; min-width: 0; justify-content: flex-start; white-space: normal; padding: 11px 12px; font-size: 13.5px; }
  .admin-nav-link.active::before { display: block; }
  .admin-side-foot { display: flex; flex-direction: column; }

  /* Backdrop overlay */
  .admin-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background 320ms ease;
  }
  .admin-drawer-backdrop.is-open {
    background: rgba(0,0,0,0.65);
    pointer-events: auto;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  /* Mobile topbar */
  .admin-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: -20px -16px 20px;
  }
  .admin-mobile-brand img {
    width: 36px; height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(181,147,86,0.4));
    display: block;
  }
  .admin-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
  }
  .admin-hamburger:hover { border-color: var(--gold); background: rgba(181,147,86,0.08); }
  .admin-hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: rgba(245,240,231,0.85);
    border-radius: 2px;
    transition: transform 280ms ease, opacity 200ms ease;
  }
  .admin-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .admin-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .admin-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .admin-userchip { display: none; }
  .admin-main { padding: 20px 16px; }
  .panel-head { padding: 16px 18px; }
  .panel-body { padding: 18px; }
  .tbl th, .tbl td { padding: 12px 16px; font-size: 12.5px; }
}

/* Tablet: horizontal scrollable nav */
@media (max-width: 640px) {
  .admin-login-side {
    min-height: auto;
    padding: 24px 18px;
  }
  .admin-login-brand img {
    width: 64px;
    height: 64px;
  }
  .admin-login-side h1,
  .admin-login-inner h2 {
    font-size: clamp(32px, 11vw, 44px);
    line-height: 1.04;
  }
  .admin-topbar h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
  .admin-login-form {
    align-items: start;
    padding: 28px 18px;
  }

  /* Mobile bar: adjust negative margins for narrower padding */
  .admin-mobile-bar { margin: -16px -12px 16px; }

  /* User chip — compact, auto width */
  .admin-userchip {
    padding: 6px 10px 6px 6px;
    gap: 8px;
  }
  .admin-userchip .avatar { width: 28px; height: 28px; font-size: 11px; }
  .admin-userchip strong { font-size: 12px; }
  .admin-userchip span { display: none; }

  .admin-main { padding: 16px 12px; }

  /* Topbar: wrap allowed so danger button drops below title on narrow screens */
  .admin-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .admin-topbar > div:first-child { min-width: 0; flex: 1 1 auto; }
  .admin-topbar .eyebrow { font-size: 10px; }
  /* Buttons in topbar stay auto-width */
  .admin-topbar .button-soft,
  .admin-topbar .button,
  .admin-topbar .button-gold { width: auto; }

  /* Panel */
  .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .panel-body { padding: 14px; }

  /* Table: horizontal scroll with edge shadow indicators */
  .panel-body.flush {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #0a0a0a, transparent) left / 24px 100% no-repeat local,
      linear-gradient(to left,  #0a0a0a, transparent) right / 40px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(181,147,86,0.22), transparent) right / 18px 100% no-repeat scroll;
  }
  .tbl { min-width: 520px; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 12px; }

  /* Bigger touch targets for icon buttons */
  .icon-btn { width: 38px; height: 38px; border-radius: 8px; }
  .icon-btn svg { width: 15px; height: 15px; }
  .tbl-actions { gap: 6px; }

  /* Filter bar: 2 column chip wrap */
  .filter-bar { gap: 6px; }
  .filter-chip {
    flex: 1 1 calc(50% - 6px);
    padding: 9px 10px;
    text-align: center;
  }

  /* Search: full width under filter chips */
  .admin-search { width: 100%; }

  /* Toolbar: stack vertically, full-width buttons */
  .admin-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .admin-toolbar .button,
  .admin-toolbar .button-soft,
  .admin-toolbar .button-gold { width: 100%; justify-content: center; text-align: center; }

  /* Modal footer buttons full-width */
  .adm-modal-foot .button,
  .adm-modal-foot .button-gold { width: 100%; justify-content: center; }

  /* Pricing */
  .price-row { padding: 14px; grid-template-columns: 1fr; gap: 12px; }
  .price-input-wrap { width: 100%; }
  .price-input-wrap input { width: 100%; }

  /* Stats — 2×2 grid */
  .stat-grid { gap: 10px; margin-bottom: 20px; }
  .stat-card { padding: 16px 13px; }
  .stat-card .lbl { font-size: 10px; margin-bottom: 8px; }
  .stat-card .num { font-size: clamp(24px, 7vw, 30px); }

  /* Modal full-height bottom sheet */
  .adm-modal-backdrop { padding: 0; align-items: flex-end; }
  .adm-modal-box {
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
  }
  .adm-modal-body { padding: 20px; }
  .adm-modal-head { padding: 16px 20px; }
  .adm-modal-foot { padding-top: 14px; flex-direction: column; align-items: stretch; }
  .adm-modal-foot .button,
  .adm-modal-foot .button-gold { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-view:not([hidden]),
  .stat-card,
  .tbl tbody tr,
  .price-row,
  .skeleton-line::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ── FORM STATUS ───────────────────────────────────────── */
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(181,147,86,0.1);
  border-left: 3px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  display: none;
}
.form-status.show { display: block; }
.form-status.error { background: rgba(212,121,107,0.12); border-left-color: #d4796b; color: #e8a89e; }

/* ── MODAL ─────────────────────────────────────────────── */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.adm-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.adm-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.975);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
  opacity: 0;
}
.adm-modal-backdrop.open .adm-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.adm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.adm-modal-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  text-transform: lowercase;
  color: var(--cream);
}
.adm-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 240, 231, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}
.adm-modal-close:hover {
  border-color: #d4796b;
  color: #e8a89e;
  background: rgba(212, 121, 107, 0.1);
}
.adm-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.adm-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}
.adm-modal-foot .form-status {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .adm-modal-backdrop { padding: 12px; align-items: flex-end; }
  .adm-modal-box { max-height: 96vh; border-radius: 10px 10px 0 0; }
}

/* ── ADMIN SELECT + TEXTAREA ───────────────────────────── */
.admin-select,
.admin-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--cream);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b59356' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.admin-select:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(181, 147, 86, 0.04);
}
.admin-select option,
.admin-form select option {
  background: #1a1a1a;
  color: var(--cream);
}

.admin-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--cream);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  resize: vertical;
  min-height: 80px;
  transition: border-color 200ms ease, background 200ms ease;
}
.admin-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(181, 147, 86, 0.04);
}

/* ── PERMISSION CHIPS ──────────────────────────────────── */
.perm-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 240, 231, 0.35);
  background: transparent;
  margin-right: 4px;
  margin-bottom: 4px;
}
.perm-chip.active {
  background: rgba(181, 147, 86, 0.18);
  border-color: rgba(181, 147, 86, 0.45);
  color: var(--gold-light);
}

/* ── PERMISSION CHECKBOXES ─────────────────────────────── */
.adm-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.adm-perm-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 240, 231, 0.75);
  text-transform: capitalize;
  letter-spacing: 0;
  transition: border-color 180ms ease, background 180ms ease;
}
.adm-perm-label:hover { border-color: rgba(181, 147, 86, 0.4); background: rgba(181, 147, 86, 0.04); }
.adm-perm-label:has(input:checked) {
  border-color: rgba(181, 147, 86, 0.55);
  background: rgba(181, 147, 86, 0.1);
  color: var(--gold-light);
}
.adm-perm-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── TOGGLE LABEL (inline checkbox) ───────────────────── */
.adm-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 240, 231, 0.78);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.adm-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── DANGER BUTTON ─────────────────────────────────────── */
.icon-btn.btn-danger:hover {
  border-color: #d4796b;
  color: #e8a89e;
  background: rgba(212, 121, 107, 0.12);
}
.icon-btn.icon-btn-complete:hover {
  border-color: #48bb78;
  color: #6ee7a0;
  background: rgba(72, 187, 120, 0.12);
}

/* ── BUTTON SOFT DANGER ────────────────────────────────── */
.button-soft.btn-danger {
  border-color: rgba(212, 121, 107, 0.35);
  color: #e8a89e;
}
.button-soft.btn-danger:hover {
  border-color: #d4796b;
  color: #e8a89e;
  background: rgba(212, 121, 107, 0.1);
}

/* ── CODE IN TABLE ─────────────────────────────────────── */
.tbl code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ── TOUR IMAGE THUMBNAILS ─────────────────────────────── */
#tour-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  min-height: 32px;
}

.ti-thumb {
  position: relative;
  width: 104px;
  height: 78px;
  border-radius: 5px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.ti-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 220ms ease;
}
.ti-thumb:hover .ti-thumb-img {
  transform: scale(1.04);
}

.ti-thumb-cat {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 5px;
  background: rgba(0,0,0,.65);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(245,240,231,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ti-thumb-actions {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 160ms ease;
}
.ti-thumb:hover .ti-thumb-actions {
  opacity: 1;
}

.ti-thumb-actions .icon-btn {
  width: 20px;
  height: 20px;
  padding: 2px;
  background: rgba(0,0,0,.8);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ── IMAGE LIGHTBOX ─────────────────────────────────────── */
.ti-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.ti-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.ti-lb-inner {
  position: relative;
  max-width: min(860px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ti-lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  display: block;
}

.ti-lb-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: rgba(245,240,231,.7);
}

.ti-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--cream, #f5f0e7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
  z-index: 10001;
}
.ti-lb-close:hover {
  background: rgba(255,255,255,.16);
}

