/* =====================================================
   Adventure Booking — App Design System
   Based on pet-hotel-grooming design language
   ===================================================== */
:root {
  --green: #154236;
  --green-2: #1f5a49;
  --mint: #d8efe6;
  --mint-2: #effaf5;
  --orange: #ffb84c;
  --text: #172520;
  --muted: #71817a;
  --line: #e4ece8;
  --danger: #d94a4a;
  --success: #2ea44f;
  --warning: #ffb84c;
  --app-bg: #f8fbf6;
  --surface: #fff;
  --shadow: 0 18px 45px rgba(24,64,52,.12);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--app-bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 14px; background: var(--surface); color: var(--text);
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,66,54,.08);
}
button:disabled, input:disabled, select:disabled { opacity: .56; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
textarea { min-height: 100px; resize: vertical; }

/* ── Utility ── */
.muted { color: var(--muted); }
.eyebrow { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 4px; }
.helper-text { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.error-text { color: var(--danger); font-size: 12px; font-weight: 700; margin-top: 2px; }

/* ════════════════════════════════════════════════════
   CUSTOMER SPA
   ════════════════════════════════════════════════════ */

/* ── Shell ── */
.customer-shell {
  min-height: 100vh; max-width: 520px; margin: 0 auto;
  background: var(--app-bg); padding-bottom: 80px;
}
@media (min-width: 521px) {
  .customer-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ── Customer Header ── */
.customer-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 14px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.customer-header-brand { display: flex; align-items: center; gap: 10px; }
.customer-header-brand p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.customer-header-brand h1 { margin: 0; font-size: 16px; font-weight: 900; }
.logo-bubble {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.customer-icon-btn {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--app-bg); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.customer-icon-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(520px, 100%); z-index: 50;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(0,0,0,.08);
}
@media (min-width: 521px) {
  .bottom-nav { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.bn-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border-radius: 14px; padding: 8px 4px;
  color: var(--muted); font-size: 10px; font-weight: 800; transition: .1s;
}
.bn-btn .bn-icon { font-size: 22px; line-height: 1; }
.bn-btn.active { background: var(--mint); color: var(--green); }

/* ── Tab content ── */
.customer-tab { display: none; padding: 14px; }
.customer-tab.active { display: block; }

/* ── Section row ── */
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title { font-size: 17px; font-weight: 900; margin: 0; }
.see-all-btn { font-size: 13px; color: var(--muted); font-weight: 800; }

/* ── Skeleton ── */
.skeleton-row { height: 80px; border-radius: 18px; background: linear-gradient(90deg,#e4ece8 25%,#eef5f1 50%,#e4ece8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Login Gate ── */
.customer-login-gate {
  display: grid; place-items: center; padding: 20px 14px;
  min-height: 100vh; background: linear-gradient(180deg, #eaf7ef, #fff);
}
.line-login-gate-card {
  width: 100%; max-width: 380px; display: grid; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 24px; box-shadow: var(--shadow);
}
.line-login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.line-login-copy h2 { font-size: 20px; margin: 0 0 6px; line-height: 1.3; }
.line-login-copy p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 14px; }
.line-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #06C755; color: #fff; border-radius: 18px;
  padding: 15px; font-weight: 900; font-size: 16px;
  box-shadow: 0 8px 22px rgba(6,199,85,.3); transition: .15s;
}
.line-login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6,199,85,.4); }
.line-login-btn:disabled { opacity: .56; transform: none; cursor: not-allowed; }
.login-error-msg {
  background: #ffeceb; color: #a33a32; border-radius: 14px;
  padding: 12px; font-size: 13px; font-weight: 700;
}
.login-not-configured {
  background: #fff7e6; color: #8a5b00; border-radius: 14px;
  padding: 12px; font-size: 13px; font-weight: 700; text-align: center;
}

/* ── Cards ── */
.soft-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 16px;
  margin-bottom: 12px;
}
.customer-hero-card {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-radius: 22px; min-height: 160px; color: #fff;
  margin-bottom: 14px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-overlay {
  position: relative; z-index: 2; padding: 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  width: 100%;
}
.hero-pill {
  display: inline-block; background: rgba(255,255,255,.2);
  border-radius: 999px; padding: 4px 12px; font-size: 11px;
  font-weight: 800; color: rgba(255,255,255,.9); margin-bottom: 8px;
}
.hero-title { margin: 0; font-size: 18px; line-height: 1.4; }
.customer-hero-card h2 { margin: 6px 0 4px; font-size: 22px; }
.customer-hero-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; }
.customer-hero-card .eyebrow { color: rgba(255,255,255,.65); font-size: 11px; }

/* ── Section ── */
.customer-section { margin-top: 16px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-head h2 { font-size: 18px; margin: 0; font-weight: 900; }
.section-head button { color: var(--muted); font-size: 13px; }
.section-head a { color: var(--muted); font-size: 13px; }

/* ── Activity Entry Grid ── */
.activity-entry-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 0 0 4px;
}
.activity-entry-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  text-align: left; box-shadow: 0 4px 14px rgba(24,64,52,.07);
  display: flex; flex-direction: column; gap: 0; cursor: pointer; transition: .12s;
  overflow: hidden; padding: 0;
}
.activity-entry-btn:active { transform: translateY(1px); }
.activity-entry-img {
  height: 80px; background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; width: 100%;
}
.activity-entry-body { padding: 10px; display: grid; gap: 3px; flex: 1; }
.activity-entry-name { font-size: 13px; font-weight: 900; color: var(--text); line-height: 1.3; }
.activity-entry-price { color: var(--green); font-weight: 800; font-size: 12px; }
.activity-entry-arrow { display: none; }

/* ── Contact chips ── */
.contact-chips { display: flex; flex-direction: column; gap: 0; padding: 0; }

/* ── Contact ── */
.contact-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.contact-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--text);
}
.contact-chip:last-child { border-bottom: none; }
.contact-chip span:first-child { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }

/* ── Booking Card ── */
.customer-booking-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 10px; width: 100%; text-align: left; cursor: pointer;
  box-shadow: 0 4px 14px rgba(24,64,52,.06); transition: .1s;
}
.customer-booking-card:active { transform: translateY(1px); }
.customer-booking-card .bk-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
.customer-booking-card strong { font-size: 14px; font-weight: 900; display: block; }
.customer-booking-card span { color: var(--muted); font-size: 12px; display: block; }
.customer-booking-card .bk-code { color: var(--green); font-weight: 900; font-size: 15px; }

/* ── Booking card (SPA) ── */
.booking-card { margin-bottom: 10px; }
.booking-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 8px;
}
.booking-code { font-size: 17px; font-weight: 900; color: var(--green); }
.booking-activity { font-size: 14px; font-weight: 800; margin-top: 2px; }
.booking-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── Full activity card (SPA) ── */
.act-card-img {
  height: 170px; background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; font-size: 60px;
  background-size: cover; background-position: center; position: relative;
}
.act-duration-tag {
  position: absolute; top: 10px; left: 12px;
  background: rgba(0,0,0,.45); color: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 800;
}
.act-card-body { padding: 14px; }
.act-card-name { font-size: 17px; font-weight: 900; margin: 0 0 6px; }
.act-card-desc { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.act-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-card-price { color: var(--green); font-weight: 900; font-size: 15px; }

/* ── Reviews row (horizontal scroll) ── */
.reviews-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.reviews-row .review-card { flex-shrink: 0; width: 240px; margin-bottom: 0; }

/* ── Action row text alias ── */
.action-text { flex: 1; }

/* ── Status Chips ── */
.status-chip {
  display: inline-flex; border-radius: 999px; padding: 4px 9px;
  font-size: 11px; font-weight: 900; white-space: nowrap;
}
.st-pending { background: #fff0d4; color: #9b6200; }
.st-payment { background: #fff0d4; color: #9b6200; }
.st-slip { background: #eff6ff; color: #2563eb; }
.st-confirmed { background: #e8f7ef; color: #154236; }
.st-done { background: #f1f5f9; color: #475569; }
.st-cancel { background: #ffeceb; color: #a33a32; }
.st-noshow { background: #fdf2f8; color: #9d174d; }

/* ── Segmented ── */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #e9f2ee; border-radius: 18px; padding: 4px; margin-bottom: 14px;
}
.segmented button {
  border-radius: 14px; padding: 12px; background: transparent;
  color: var(--muted); font-weight: 800;
}
.segmented button.active { background: #fff; color: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* ── Filter Chips ── */
.filter-chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.filter-chip {
  flex-shrink: 0; border-radius: 999px; background: var(--mint); color: var(--green);
  padding: 8px 14px; font-weight: 800; font-size: 13px; border: 1px solid transparent; cursor: pointer;
}
.filter-chip.active { background: var(--green); color: #fff; }

/* ── Full activity card ── */
.activity-card-full {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); cursor: pointer;
  transition: .12s;
}
.activity-card-full:active { transform: translateY(1px); }
.activity-card-full .act-img {
  height: 160px; background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; font-size: 60px;
  background-size: cover; background-position: center;
}
.activity-card-full .act-body { padding: 14px; }
.activity-card-full .act-body h3 { margin: 0 0 6px; font-size: 17px; }
.activity-card-full .act-body p { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.activity-card-full .act-price { color: var(--green); font-weight: 900; margin-bottom: 12px; }
.book-btn {
  width: 100%; background: var(--green); color: #fff;
  border-radius: 14px; padding: 12px; font-weight: 900; font-size: 14px;
}

/* ── Account ── */
.account-profile-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; text-align: center; box-shadow: var(--shadow); margin-bottom: 14px;
}
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  display: grid; place-items: center; font-size: 36px;
  margin: 0 auto 12px; border: 3px solid var(--mint);
}
.account-name { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.line-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #06C755; color: #fff; border-radius: 999px;
  padding: 4px 14px; font-size: 12px; font-weight: 800;
}
.action-list {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; margin-bottom: 14px;
}
.action-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border-bottom: 1px solid var(--line); width: 100%;
  text-align: left; background: transparent; font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer; transition: .1s;
}
.action-row:last-child { border-bottom: none; }
.action-row:active { background: var(--app-bg); }
.action-icon { font-size: 20px; width: 30px; text-align: center; flex-shrink: 0; }
.action-label { flex: 1; }
.action-chevron { color: var(--muted); }
.action-row.danger { color: var(--danger); }

/* ── Buttons ── */
.primary-btn {
  background: var(--green); color: #fff; border-radius: 16px;
  padding: 13px 18px; font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: .1s;
}
.primary-btn:active { transform: translateY(1px); }
.secondary-btn {
  background: var(--mint); color: var(--green); border-radius: 16px;
  padding: 13px 18px; font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: .1s;
}
.danger-btn { background: #ffeceb; color: var(--danger); }

/* ── Empty state ── */
.empty-panel {
  text-align: center; padding: 36px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 20px; background: #fbfefc;
}
.empty-panel .ep-icon { font-size: 42px; margin-bottom: 10px; }
.empty-panel strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 15px; }

/* ── Bottom Sheet (booking modal) ── */
.sheet-layer { position: fixed; inset: 0; z-index: 200; display: none; }
.sheet-layer.open { display: block; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(11,18,16,.5);
  animation: sheetFadeIn .2s ease;
}
.bottom-sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 0 0 24px;
  box-shadow: 0 -18px 50px rgba(0,0,0,.18);
  animation: sheetSlideUp .22s ease;
}
@media (min-width: 521px) {
  .bottom-sheet { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@keyframes sheetFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetSlideUp { from { transform: translateX(-50%) translateY(40px); } to { transform: translateX(-50%) translateY(0); } }
.sheet-handle { width: 46px; height: 5px; border-radius: 999px; background: #d7e2dc; margin: 12px auto 10px; }
.sheet-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 14px; border-bottom: 1px solid var(--line);
}
.sheet-title-row h2 { font-size: 18px; margin: 0; }
.sheet-close {
  width: 36px; height: 36px; border-radius: 12px;
  background: #f0f4f2; display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.sheet-body { padding: 16px; }

/* ── My Bookings search ── */
.search-box {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.search-row .search-btn {
  background: var(--green); color: #fff; border-radius: 14px;
  padding: 12px 18px; font-weight: 900; white-space: nowrap;
}

/* ════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════ */

/* ── Admin body — flex column, no split grid ── */
.adminBody { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Auth Overlay ── */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(11,18,16,.92);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.auth-box {
  background: #fff; border-radius: 24px; padding: 32px 28px;
  width: min(380px, 94vw); text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,.3);
}
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-box h2 { margin: 0 0 4px; font-size: 22px; }
.auth-box > p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.auth-input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 16px; margin-bottom: 12px;
  background: #fff; color: var(--text);
}
.auth-input:focus { outline: none; border-color: var(--green); }
.auth-error { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 8px; font-weight: 700; }

/* ── Admin Topbar — always visible ── */
.admin-topbar {
  height: 64px; background: var(--green); color: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; position: sticky; top: 0; z-index: 45;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); flex-shrink: 0;
}
.hamburger {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 24px;
  display: grid; place-items: center;
}
.admin-brand-mini {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  color: #fff; font-size: 15px; flex: 1;
}
.admin-brand-mini .logo-bubble { background: rgba(255,255,255,.15); color: #fff; font-size: 18px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.admin-topbar-date { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; }
.profile-pill {
  width: 38px; height: 38px; border-radius: 999px;
  background: #fff; color: var(--green);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; flex-shrink: 0;
}
.profile-pill.light { background: var(--mint); }

/* ── Drawer Backdrop ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11,18,16,.48); z-index: 50; display: none; }
.drawer-backdrop.open { display: block; }

/* ── Sidebar Drawer (matches reference .sidebar-drawer) ── */
.sidebar-drawer {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: min(68vw, 330px); background: var(--green); color: #fff;
  z-index: 60; transform: translateX(-105%); transition: .22s ease;
  display: flex; flex-direction: column;
  box-shadow: 18px 0 40px rgba(0,0,0,.18);
}
.sidebar-drawer.open { transform: translateX(0); }
.drawer-head { padding: 18px; }
.close-btn {
  margin-left: auto; display: block; width: 36px; height: 36px;
  border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 26px;
}
.store-card-dark { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.store-card-dark .logo-bubble { background: rgba(255,255,255,.15); color: #fff; font-size: 22px; width: 52px; height: 52px; border-radius: 18px; flex-shrink: 0; }
.muted-dark { color: rgba(255,255,255,.66); font-size: 12px; margin-bottom: 3px; }
.drawer-menu { flex: 1; overflow-y: auto; padding: 8px 12px; display: grid; gap: 4px; }
.drawer-menu-group { margin-bottom: 6px; }
.drawer-menu-group > p {
  color: rgba(255,255,255,.5); font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px 4px; margin: 0;
}
.drawer-menu button {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  border-radius: 14px; background: transparent; color: rgba(255,255,255,.85);
  padding: 12px 14px; font-size: 14px; font-weight: 700; transition: .1s;
}
.drawer-menu button:hover { background: rgba(255,255,255,.1); color: #fff; }
.drawer-menu button.active { background: #dbece4; color: #0f382f; font-weight: 800; }
.drawer-footer {
  padding: 14px; display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.12); flex-shrink: 0;
}
.drawer-footer > div { flex: 1; min-width: 0; }
.drawer-footer strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-footer small { color: rgba(255,255,255,.6); font-size: 11px; }
.drawer-footer .logout-btn {
  background: rgba(255,255,255,.12); color: #fff; border-radius: 12px;
  padding: 9px 12px; font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* ── Admin Main — full width, centered ── */
.admin-main, .adminMain {
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 20px 18px 80px;
}

/* ── Page hero card ── */
.page-hero-card {
  padding: 20px; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #fff, #effaf5);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.page-hero-card h1 { margin: 0; font-size: 24px; }
.page-hero-card p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

/* ── Metric grid ── */
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .metric-grid { grid-template-columns: repeat(6, 1fr); } }
.metric-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
  box-shadow: 0 6px 20px rgba(24,64,52,.06);
}
.metric-card-text p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card-text strong { display: block; font-size: 22px; font-weight: 900; margin-top: 6px; color: var(--green); }
.metric-icon { font-size: 22px; background: var(--mint-2); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }

/* ── Admin Sections ── */
.admin-section { display: none; }
.admin-section.active { display: block; }
.section-title { font-size: 24px; font-weight: 900; margin: 0 0 18px; }

/* ── Admin Cards ── */
.admin-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(24,64,52,.06);
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.admin-card-head h2 { font-size: 18px; margin: 0; }
.admin-card-head h3 { font-size: 16px; margin: 0; }

/* ── Metric Cards (compat aliases for admin.js .cards/.metric) ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cards .metric { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.cards .metric span { color: var(--muted); font-weight: 800; font-size: 12px; display: block; }
.cards .metric b { display: block; font-size: 26px; font-weight: 900; margin-top: 6px; color: var(--green); }

/* ── Dashboard grid ── */
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 600px) { .dash-row { grid-template-columns: 1fr; } }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.dash-card h3 { font-size: 15px; margin: 0 0 12px; }
.recent-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 8px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px;
}
.recent-row:last-child { border-bottom: none; }
.recent-row:hover { background: var(--mint-2); border-radius: 8px; }
.recent-code { font-weight: 900; color: var(--green); }

/* ── Buttons (admin) ── */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; padding: 10px 16px; font-weight: 900; font-size: 13px; cursor: pointer; transition: .1s; border: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--green); color: #fff; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: #ffeceb; color: var(--danger); }
.btn.xs { padding: 7px 10px; font-size: 12px; border-radius: 10px; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn.full { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-field { display: grid; gap: 6px; font-weight: 800; font-size: 13px; color: #445550; }
.form-field input, .form-field select, .form-field textarea {
  border-radius: 12px; border: 1px solid var(--line); font-size: 14px; padding: 11px 12px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,66,54,.08);
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { background: var(--mint-2); color: var(--green); font-weight: 900; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
td { white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--mint-2); }
.action-btns { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Status badges (admin) ── */
.status {
  display: inline-flex; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
}
.st-pending { background: #fff0d4; color: #9b6200; }
.st-payment { background: #fef3c7; color: #d97706; }
.st-slip { background: #eff6ff; color: #2563eb; }
.st-confirmed { background: #e8f7ef; color: #154236; }
.st-checkin { background: #e8f7ef; color: #154236; }
.st-done { background: #f1f5f9; color: #475569; }
.st-cancel { background: #ffeceb; color: #a33a32; }
.st-noshow { background: #fdf2f8; color: #9d174d; }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filter-bar input, .filter-bar select { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 12px; }

/* ── Section Head ── */
.sectionHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sectionHead h2 { font-size: 20px; margin: 0; }

/* ── Sub sections ── */
.subSection { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; }
.subSection h3 { margin: 0 0 12px; }

/* ── Toggle ── */
.toggleWrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.switch {
  width: 52px; height: 28px; border-radius: 999px;
  background: #ef4444; padding: 3px;
  display: inline-flex; justify-content: flex-start; transition: .2s; flex-shrink: 0;
}
.switch.on { background: #22c55e; justify-content: flex-end; }
.knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; pointer-events: none; }

/* ── Schedule ── */
.scheduleCard {
  background: var(--mint-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; margin-bottom: 10px;
}
.scheduleCard.slotClosed { background: #fff5f5; border-color: #fca5a5; }
.scheduleHead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.scheduleStats { display: flex; align-items: center; gap: 8px; }
.scheduleBookings { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.scheduleBookingRow {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 12px; padding: 6px 0; font-size: 13px; align-items: center;
}

/* ── Gallery admin ── */
.galleryAdminGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.galleryAdminCard { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.galleryAdminCard img { width: 100%; height: 130px; object-fit: cover; }
.galleryAdminInfo { padding: 10px; }

/* ── Admin form ── */
.adminSection { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(24,64,52,.06); }
.adminSection h1 { font-size: 24px; margin: 0 0 18px; }
.adminSection h2 { font-size: 20px; margin: 0 0 16px; }

/* ── Auth overlay (old class kept for admin.js) ── */
.authOverlay { position: fixed; inset: 0; background: rgba(15,36,29,.92); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.authBox { background: #fff; border-radius: 24px; padding: 32px; width: min(380px, 94vw); text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,.3); }
.authLogo { font-size: 48px; margin-bottom: 12px; }
.authInput { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: 16px; margin: 12px 0; }
.authError { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 8px; }

/* ── Sidebar (hidden, kept for admin.js DOM compat only) ── */
.adminBody { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar { display: none !important; }
.adminBrand { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.adminBrand strong { color: #fff; }
.adminBrand small { color: rgba(255,255,255,.65); font-size: 11px; display: block; }
.logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.15); font-size: 22px; flex-shrink: 0; }

/* ── Admin cards (old class compat) ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.metric span { color: var(--muted); font-weight: 800; font-size: 12px; display: block; }
.metric b { display: block; font-size: 26px; font-weight: 900; margin-top: 6px; color: var(--green); }
.dashRow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dashCard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.dashCard h3 { font-size: 15px; margin: 0 0 12px; }
.recentRow { display: grid; grid-template-columns: auto 1fr 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.recentRow:hover { background: var(--mint-2); }
.recentCode { font-weight: 900; color: var(--green); }

/* ── Charts ── */
.chartRow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.chartLabel { width: 100px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.chartBar { flex: 1; height: 20px; background: var(--mint-2); border-radius: 6px; overflow: hidden; }
.chartFill { height: 100%; background: var(--green); border-radius: 6px; transition: .3s; }
.chartVal { width: 30px; text-align: right; font-size: 13px; font-weight: 700; }

/* ── Admin inline ── */
.inlineLabel { display: flex; align-items: center; gap: 10px; }
.dayChecks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.payCard { background: var(--mint-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; }
.slipThumb { max-width: 180px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); margin-top: 8px; }
.detailTable { width: 100%; font-size: 14px; }
.detailTable td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.detailTable td:first-child { color: var(--muted); font-weight: 800; width: 110px; }
.adminCard { background: var(--mint-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 10px; }
.adminCard.compact { padding: 12px; }
.adminCardHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cardActions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; background: #fff7ed; color: #c2410c; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; }

/* ── Gallery (customer pages compat) ── */
.galleryGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.galleryItem { border-radius: 16px; overflow: hidden; position: relative; }
.galleryItem img { width: 100%; height: 180px; object-fit: cover; }
.galleryCaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; padding: 8px; font-size: 12px; font-weight: 700; }

/* ── Reviews ── */
.reviewsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.reviewCard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 6px 20px rgba(24,64,52,.05); }
.stars { color: var(--orange); font-size: 16px; margin-bottom: 6px; }
.promoCard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.promoCard img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }

/* ── Footer ── */
footer { padding: 18px 5vw; background: #0f241d; color: #dff8e9; }
.footerInner { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footerInner a { color: #a7f3d0; }

/* ── Notifications ── */
.notifCard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 8px; cursor: pointer; }
.notifCard.unread { border-color: var(--green); background: var(--mint-2); }
.notifHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

/* ── Reports ── */
.reportGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.reportRow { display: flex; justify-content: space-between; padding: 10px; background: var(--mint-2); border-radius: 10px; font-size: 14px; }

/* ── Loading ── */
.loading { opacity: .5; pointer-events: none; }
.muted { color: var(--muted); }

/* ── Admin responsive ── */
@media (max-width: 900px) {
  .dashRow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { width: 100%; }
  .adminMain { padding: 14px; }
  .section { padding: 28px 14px; }
}
