:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #dfe4ea;
  --brand: #0f8b6f;
  --brand-2: #174ea6;
  --primary: #0f8b6f;
  --danger: #c2413f;
  --warn: #b7791f;
  --ok: #16825d;
  --success: #16825d;
  --warning: #b7791f;
  --text-main: #17202a;
  --text-muted: #667085;
  --border-color: #dfe4ea;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #eef7f4, #f8fafc 48%, #eef2ff); }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--muted); }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { font-weight: 600; font-size: 12px; }
.input, input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; background: #fff; color: var(--ink); font-size: 13px; }
.password-control { display: flex; align-items: stretch; width: 100%; }
.password-control input { border-radius: 8px 0 0 8px; }
.password-toggle {
  flex: 0 0 auto;
  min-width: 68px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  background: #f9fafb;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
textarea { min-height: 105px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.google-btn { width: 100%; min-height: 40px; margin: 8px 0 4px; background: #fff; color: #17202a; font-weight: 800; }
.google-btn::before { content: "G"; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: #eef2f7; color: #174ea6; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-input { text-align: center; font-size: 20px; font-weight: 900; letter-spacing: 8px; }
.turnstile-field { margin: 14px 0; min-height: 65px; }
.btn.blue { border-color: var(--brand-2); background: var(--brand-2); color: #fff; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-secondary { background: #eef2f7; color: #344054; }
.btn-success { border-color: var(--ok); background: var(--ok); color: #fff; }
.btn-warning { border-color: var(--warn); background: var(--warn); color: #fff; }
.btn-danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn-outline-primary { border-color: var(--brand); color: var(--brand); }
.btn-outline-secondary { color: #344054; }
.btn-outline-info { border-color: var(--brand-2); color: var(--brand-2); }
.btn-outline-danger { border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 216px 1fr; }
.app-shell { background: #f6f7f9; }
.side { position: sticky; top: 0; height: 100vh; padding: 14px; background: #111827; color: #e5e7eb; }
.app-side { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); }
.side.admin { background: #111827; padding: 14px; }
.side.admin.compact { width: 220px; transition: width .16s ease; overflow: hidden; }
.side.admin.compact.collapsed { width: 66px; }
.side.admin.compact.collapsed .brand-text,
.side.admin.compact.collapsed .nav a,
.side.admin.compact.collapsed .nav-submenu { font-size: 0; padding-left: 10px; padding-right: 10px; }
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 14px; font-weight: 650; white-space: nowrap; letter-spacing: 0; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--brand); color: #fff; flex: 0 0 28px; font-size: 13px; font-weight: 700; }
.side-section-label { margin: 0 0 8px; padding: 0 8px; color: #94a3b8; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 2px; }
.nav a { padding: 7px 9px; border-radius: 7px; color: #cbd5e1; font-size: 12px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.unified-sidebar { display: flex; flex-direction: column; }
.unified-sidebar .nav { flex: 1; }
.sidebar-close { display: none; margin-bottom: 8px; }
.nav-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.sidebar-profile {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #111827;
}
.sidebar-profile-main {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.sidebar-profile-main img,
.avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}
.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.sidebar-profile-main strong { display: block; font-size: 12px; line-height: 1.1; }
.sidebar-profile-main small { display: block; color: #94a3b8; font-size: 10px; line-height: 1.2; margin-top: 2px; }
.profile-dropdown {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 96px;
  z-index: 10;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 18px 35px rgba(0,0,0,.28);
}
.profile-dropdown.open { display: grid; }
.profile-dropdown a { padding: 8px 9px; border-radius: 7px; color: #dbe4f0; font-size: 12px; font-weight: 700; }
.profile-dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-cta { width: 100%; }
.sidebar-backdrop { display: none; }
.nav-group { border-radius: 8px; }
.nav-group.active > a { background: rgba(255,255,255,.09); color: #fff; }
.nav-submenu { display: grid; gap: 2px; margin: 3px 0 6px 10px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); }
.nav-submenu a { padding: 6px 9px; font-size: 12px; color: #94a3b8; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 14px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); font-size: 13px; }
.app-header strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.2; }
.header-subtitle { display: block; font-size: 11px; line-height: 1.2; margin-top: 1px; }
.topbar-spacer { flex: 1; }
.admin-meta { font-size: 11px; }
.icon-btn { width: 48px; min-height: 34px; padding: 0; font-size: 12px; }
.content { flex: 1; padding: 14px; }
.app-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-top: 1px solid var(--line); background: #fff; color: #475467; font-size: 11px; }
.app-footer span:first-child { font-weight: 600; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.page-head h1 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.compact-head { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; box-shadow: none; }
.card h2,
.card h3 { margin-top: 0; }
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.form-card { max-width: 720px; }
.form-actions,
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions { margin-top: 18px; }
.inline-form select { width: auto; min-width: 150px; }
.stat { font-size: 17px; font-weight: 650; margin-top: 5px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dashboard-kpi {
  min-width: 0;
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.dashboard-kpi:hover { border-color: #b8c2cc; box-shadow: 0 10px 22px rgba(15, 23, 42, .06); }
.dashboard-kpi span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.dashboard-kpi strong { min-width: 0; color: var(--ink); font-size: 20px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.dashboard-kpi small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.dashboard-kpi.ok { border-left: 4px solid var(--ok); }
.dashboard-kpi.warn { border-left: 4px solid var(--warn); }
.dashboard-kpi.danger { border-left: 4px solid var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.dashboard-panel { min-width: 0; }
.dashboard-panel h2 { margin: 0; font-size: 15px; line-height: 1.2; }
.dashboard-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-panel-head a { color: var(--brand); font-size: 12px; font-weight: 800; white-space: nowrap; }
.dashboard-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.attention-list,
.metric-rows,
.dashboard-list { display: grid; gap: 8px; }
.attention-list a,
.metric-rows div,
.dashboard-list a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.attention-list a:last-child,
.metric-rows div:last-child,
.dashboard-list a:last-child { border-bottom: 0; }
.attention-list span,
.metric-rows span,
.dashboard-list span { min-width: 0; color: var(--muted); font-size: 12px; }
.attention-list strong,
.metric-rows strong,
.dashboard-list strong {
  min-width: 0;
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-list small {
  min-width: 0;
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attention-list strong,
.metric-rows strong,
.dashboard-list em {
  flex: 0 0 auto;
  max-width: 45%;
  text-align: right;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.dashboard-list.compact { margin-top: 8px; }
.analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.analytics-wide { grid-column: span 2; }
.analytics-bars {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.analytics-bar-cell { min-width: 0; display: grid; gap: 6px; text-align: center; }
.analytics-bar-track {
  height: 150px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
}
.analytics-bar-track span {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.analytics-bar-cell strong { font-size: 12px; }
.analytics-bar-cell small { color: var(--muted); font-size: 10px; }
.metric-list,
.rank-list,
.insight-list { display: grid; gap: 10px; }
.metric-list div,
.rank-list div,
.rank-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.metric-list div:last-child,
.rank-list div:last-child,
.rank-list a:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-list a {
  color: inherit;
  border-radius: 7px;
  padding: 8px;
  margin: -4px -8px 0;
}
.rank-list a:hover { background: #f9fafb; }
.metric-list strong,
.rank-list strong { white-space: nowrap; }
.rank-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-list p {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  color: #344054;
}
.onboarding-list { display: grid; gap: 14px; }
.onboarding-request-card h3 { margin: 12px 0 8px; font-size: 13px; }
.onboarding-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.info-list div { min-width: 0; color: var(--ink); }
.info-list strong { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.review-form { display: grid; gap: 8px; margin-top: 14px; }
.review-form label { display: flex; align-items: center; gap: 8px; margin: 0; }
.users-filter-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.users-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.users-filter-head strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
}
.users-filter-head span { font-size: 12px; }
.users-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.users-filter-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
}
.users-filter-grid label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.users-filter-grid input,
.users-filter-grid select { min-height: 36px; }
.users-filter-submit {
  min-width: 82px;
  min-height: 36px;
}
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12px; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; background: #f9fafb; font-weight: 650; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 650; background: #eef2ff; color: #174ea6; }
.badge.ok { background: #eafaf3; color: var(--ok); }
.badge.warn { background: #fff7e6; color: var(--warn); }
.badge.danger { background: #fff1f1; color: var(--danger); }
.badge-success { background: #eafaf3; color: var(--ok); }
.badge-warning { background: #fff7e6; color: var(--warn); }
.badge-danger { background: #fff1f1; color: var(--danger); }
.badge-primary { background: #eef2ff; color: #174ea6; }
.table-responsive { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.table-responsive table { margin-bottom: 0; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-header h1 { margin: 0; font-size: 16px; font-weight: 700; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seat-danger { color: var(--danger); font-weight: 800; }
.seat-callout {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.seat-callout.urgent { border-color: #ffc7c7; background: #fff7f7; color: var(--danger); }
.seat-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.seat-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.btn[disabled],
.btn.disabled {
  opacity: .58;
  pointer-events: none;
  cursor: not-allowed;
}
.calendar-shell { display: grid; gap: 14px; }
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.calendar-head strong { display: block; font-size: 16px; line-height: 1.2; }
.calendar-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.calendar-tab { min-height: 32px; border: 0; border-radius: 6px; padding: 0 10px; background: transparent; font-weight: 800; cursor: pointer; }
.calendar-tab.active { background: var(--brand); color: #fff; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: #fff; }
.calendar-day-head,
.calendar-day { min-width: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
.calendar-day-head { background: #f9fafb; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.calendar-day { min-height: 112px; display: grid; align-content: start; gap: 6px; }
.calendar-day.muted-day { background: #f9fafb; color: var(--muted); }
.calendar-date { font-weight: 900; font-size: 12px; }
.calendar-event {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 6px 7px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.calendar-event strong { font-size: 12px; line-height: 1.2; }
.calendar-event span { color: var(--muted); font-size: 11px; }
.calendar-week { display: grid; gap: 10px; }
.calendar-week-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.calendar-event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.booking-modal-detail { display: grid; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.compact-toolbar { margin-bottom: 10px; }
.compact-toolbar input, .compact-toolbar select { width: auto; min-width: 180px; min-height: 36px; padding: 7px 10px; }
.compact-table table { min-width: 820px; }
.inline-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.inline-actions form { display: inline-flex; margin: 0; }
.btn.mini { min-height: 30px; padding: 5px 8px; font-size: 12px; border-radius: 7px; }
.item-row-title { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.item-row-title img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #e5e7eb; flex: 0 0 46px; }
.item-form .type-fields { border-top: 1px solid var(--line); padding-top: 10px; }
.tabbed-item-form { padding: 0; overflow: hidden; }
.item-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}
.item-tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 14px;
  background: transparent;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.item-tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.item-tab [data-tab-error] {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 11px;
}
.item-tab [data-tab-error]:not(:empty) {
  background: #fff1f1;
  color: var(--danger);
}
.item-tab-panels { padding: 16px; }
.item-tab-panel { animation: tabFade .14s ease; }
@keyframes tabFade { from { opacity: .65; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
.tab-section-head { margin-bottom: 14px; }
.tab-section-head h2 { margin: 0 0 3px; font-size: 16px; line-height: 1.2; }
.tab-section-head p { margin: 0; font-size: 13px; }
.field-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(194, 65, 63, .10); }
.field-message {
  min-height: 16px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}
.rich-editor-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.rich-toolbar button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.rich-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.rich-editor-wrap textarea.rich-editor {
  min-height: 170px;
  border: 0;
  border-radius: 0;
  resize: vertical;
}
.rich-editor-wrap textarea.rich-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(15, 139, 111, .18);
}
.media-preview-box,
.gallery-preview-grid {
  min-height: 112px;
  display: grid;
  align-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}
.media-preview-box img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}
.gallery-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}
.info-grid { display: grid; gap: 8px; }
.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-purchase-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(70px, 1fr) 44px;
  gap: 8px;
  margin: 12px 0;
}
.quantity-control input { text-align: center; font-weight: 900; }
.single-checkout-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}
.single-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}
.checkout-main-form { display: grid; gap: 18px; }
.checkout-main-form h1,
.checkout-main-form h2,
.checkout-summary h2 { margin: 0; line-height: 1.2; }
.checkout-main-form h1 { font-size: 22px; }
.checkout-main-form h2 { font-size: 15px; margin-bottom: 10px; }
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  font-weight: 800;
}
.payment-options input { width: 16px; height: 16px; }
.checkout-summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}
.checkout-summary > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}
.publish-actions,
.tab-form-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.tab-form-footer {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  background: #f9fafb;
}
.empty-row { text-align: center; color: var(--muted); font-weight: 700; }
.admin-permission-guide { margin-top: 12px; }
.admin-permission-guide h2,
.compact-form-card h2,
.modal-head h2 { margin: 0 0 10px; font-size: 15px; }
.permission-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.permission-grid p { margin: 4px 0 0; font-size: 12px; }
.permission-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.permission-checks label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.permission-checks input { width: 15px; height: 15px; flex: 0 0 15px; }
.modal-backdrop { position: fixed; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(15, 23, 42, .45); z-index: 20; }
.modal-backdrop.open { display: grid; }
.modal-panel { width: min(720px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.compact-form-card { max-width: 820px; }
.admin-form .field { margin: 0; }
.admin-form input, .admin-form select { min-height: 36px; padding: 8px 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.toast { margin-bottom: 16px; border-radius: 8px; padding: 12px 14px; background: #eafaf3; color: #0b684a; border: 1px solid #bdebd8; font-weight: 700; }
.toast.error { background: #fff1f1; color: #9f2d2b; border-color: #ffc7c7; }
.mode-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
}
.mode-banner strong { white-space: nowrap; }
.mode-banner span { flex: 1; min-width: 0; font-size: 12px; }
.mode-banner.restricted { border-color: #fecaca; background: #fff1f1; color: #991b1b; }
.locked-feature {
  position: relative;
  opacity: .62;
  cursor: not-allowed;
}
.locked-feature::after {
  content: attr(data-lock-message);
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}
.locked-feature:hover::after { display: block; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #fed7aa;
}
.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  margin: 0;
  box-shadow: var(--shadow);
}
.copy-toast.show { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.social-settings { margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.section-head.compact { margin-bottom: 12px; }
.section-head.compact h2 { margin: 0 0 4px; font-size: 22px; }
.section-head.compact p { margin: 0; }
.social-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.social-form-grid textarea { min-height: 82px; }
.settings-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.settings-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}
.settings-form { display: grid; gap: 16px; }
.settings-section { scroll-margin-top: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.theme-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.theme-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15, 139, 111, .12); }
.theme-preview { position: relative; background: #eef2f7; border-bottom: 1px solid var(--line); }
.theme-preview img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.theme-active-badge { position: absolute; top: 10px; right: 10px; border-radius: 999px; padding: 4px 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.theme-card-body { display: grid; gap: 10px; align-content: start; padding: 14px; }
.theme-card-body h2 { margin: 0; font-size: 15px; }
.theme-card-body p { margin: 0; min-height: 40px; }
.theme-card button[disabled] { opacity: .7; cursor: default; }
.toggle-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 12px;
}
.toggle-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.settings-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(246,247,249,0), var(--bg) 24%);
  z-index: 2;
}
.plan-grid { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.public-body { background: #f8fafc; }
.public-hero { padding: 34px 18px 18px; background: #0f172a; color: #fff; }
.public-wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.profile-top { display: flex; gap: 18px; align-items: center; }
.avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #d1fae5; color: #065f46; font-size: 34px; font-weight: 900; }
.public-section { padding: 22px 0; }
.public-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e5e7eb; margin-bottom: 12px; }
.price { font-size: 20px; font-weight: 900; margin: 8px 0; }
.storefront-body {
  --storefront-radius: 18px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 139, 111, .12) 0 18%, transparent 18% 100%),
    linear-gradient(45deg, transparent 0 72%, rgba(23, 78, 166, .10) 72% 100%),
    radial-gradient(circle at 15% 18%, rgba(15, 139, 111, .14), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(183, 121, 31, .10), transparent 24%),
    linear-gradient(120deg, #f7fbf8 0%, #eef7f4 44%, #f7f5ff 100%);
  background-attachment: fixed;
}
.storefront-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .55;
  background-image:
    linear-gradient(30deg, rgba(15, 23, 42, .045) 12%, transparent 12.5%, transparent 87%, rgba(15, 23, 42, .045) 87.5%, rgba(15, 23, 42, .045)),
    linear-gradient(150deg, rgba(15, 23, 42, .045) 12%, transparent 12.5%, transparent 87%, rgba(15, 23, 42, .045) 87.5%, rgba(15, 23, 42, .045)),
    linear-gradient(30deg, rgba(15, 23, 42, .035) 12%, transparent 12.5%, transparent 87%, rgba(15, 23, 42, .035) 87.5%, rgba(15, 23, 42, .035)),
    linear-gradient(150deg, rgba(15, 23, 42, .035) 12%, transparent 12.5%, transparent 87%, rgba(15, 23, 42, .035) 87.5%, rgba(15, 23, 42, .035));
  background-position: 0 0, 0 0, 28px 48px, 28px 48px;
  background-size: 56px 96px;
}
.storefront-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  justify-content: center;
}
.storefront-sidebar { position: sticky; top: 24px; }
.profile-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    radial-gradient(circle at 20% 0, rgba(15, 139, 111, .18), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(23, 78, 166, .12), transparent 28%);
  border: 0;
  border-radius: var(--storefront-radius);
  padding: 28px 20px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}
.profile-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: var(--storefront-radius);
  background: rgba(15, 23, 42, .18);
}
.storefront-avatar {
  width: 116px;
  height: 116px;
  border-radius: var(--storefront-radius);
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #dff7ef;
  color: #0b684a;
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 16px;
}
.storefront-avatar.initials { border: 0; }
.profile-panel h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.1; }
.username { margin: 0 0 14px; color: var(--muted); font-weight: 800; }
.sidebar-bio { color: #344054; line-height: 1.6; margin: 0 0 18px; }
.profile-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.profile-actions .btn { width: 100%; }
.social-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 0; padding-top: 16px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: var(--storefront-radius);
  padding: 0;
  color: #344054;
  background: #f9fafb;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-list a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.social-icon {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  border-radius: var(--storefront-radius);
  background: transparent;
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-list a[data-platform="youtube"] .social-icon svg path:first-child,
.social-list a[data-platform="facebook"] .social-icon svg path,
.social-list a[data-platform="youtube"] .social-icon svg path {
  fill: currentColor;
}
.social-list a[data-platform="youtube"] .social-icon svg path:last-child {
  fill: #fff;
  stroke: #fff;
}
.social-list a[data-platform="instagram"] { background: #fff5f9; color: #9d174d; }
.social-list a[data-platform="youtube"] { background: #fff1f1; color: #b91c1c; }
.social-list a[data-platform="twitter"] { background: #eff6ff; color: #1d4ed8; }
.social-list a[data-platform="linkedin"] { background: #eff6ff; color: #0f4c81; }
.social-list a[data-platform="facebook"] { background: #eff6ff; color: #1e40af; }
.social-list a[data-platform="whatsapp"] { background: #f0fdf4; color: #166534; }
.social-list a[data-platform="website"] { background: #f5f3ff; color: #5b21b6; }
.storefront-main { min-width: 0; width: 100%; display: grid; gap: 18px; }
.storefront-section {
  background: transparent;
  border: 0;
  border-radius: var(--storefront-radius);
  padding: 0 0 18px;
  box-shadow: none;
}
.storefront-section h1, .storefront-section h2 { margin: 0; line-height: 1.15; }
.storefront-section h1 { font-size: 34px; }
.storefront-section h2 { font-size: 26px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.storefront-copy { color: #344054; line-height: 1.75; margin: 16px 0 0; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.count-pill {
  white-space: nowrap;
  border: 0;
  color: #0b684a;
  background: #eafaf3;
  border-radius: var(--storefront-radius);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.storefront-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.storefront-card {
  min-width: 0;
  border: 0;
  border-radius: var(--storefront-radius);
  background: rgba(255, 255, 255, .54);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  backdrop-filter: blur(10px);
}
.storefront-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
  border-radius: var(--storefront-radius);
}
.storefront-card-body { padding: 16px; display: grid; gap: 8px; align-content: start; }
.storefront-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.storefront-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.type-label { color: var(--brand-2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.quick-actions .btn { width: 100%; min-width: 0; }
.empty-state {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--storefront-radius);
  color: var(--muted);
  font-weight: 800;
  background: #f9fafb;
}
.storefront-footer {
  border-top: 0;
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 18px;
  font-weight: 800;
}
.detail-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7fbf8, #eef7f4 48%, #f5f3ff);
}
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 63%) minmax(320px, 37%);
  gap: 28px;
  align-items: start;
}
.detail-main { min-width: 0; display: grid; gap: 18px; }
.detail-main h1 { margin: 4px 0 0; font-size: 38px; line-height: 1.12; }
.detail-media {
  display: grid;
  gap: 12px;
}
.detail-media > img,
.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}
.media-placeholder {
  display: grid;
  place-items: center;
  color: #0b684a;
  font-size: 72px;
  font-weight: 900;
}
.service-media .media-placeholder { aspect-ratio: 16 / 7; }
.gallery-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  opacity: .78;
}
.gallery-thumb.active { opacity: 1; box-shadow: 0 0 0 3px rgba(15, 139, 111, .22); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-description {
  color: #344054;
  line-height: 1.75;
}
.detail-description h2 { margin: 0 0 10px; color: var(--ink); }
.rich-text { overflow-wrap: anywhere; }
.rich-text h2,
.rich-text h3 {
  margin: 18px 0 8px;
  line-height: 1.2;
}
.rich-text h2 { font-size: 22px; }
.rich-text h3 { font-size: 18px; }
.rich-text p { margin: 0 0 12px; }
.rich-text ul,
.rich-text ol {
  margin: 0 0 14px 20px;
  padding: 0;
}
.rich-text li { margin-bottom: 6px; }
.checkout-panel {
  position: sticky;
  top: 24px;
  background: rgba(255,255,255,.86);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
}
.checkout-form { display: grid; gap: 12px; }
.form-grid.compact { gap: 10px; }
.pricing-box {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}
.pricing-box > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.discount-row { color: var(--muted); }
.total-row {
  padding-top: 10px;
  margin-top: 2px;
  box-shadow: inset 0 1px 0 rgba(15,23,42,.08);
  font-size: 18px;
}
.checkout-cta { width: 100%; min-height: 48px; }

/* Public storefront: modern retro skin shared by profiles, items, services, and checkout. */
.public-body.storefront-body,
.public-body.detail-body,
.public-body.retro-public {
  --sf-ink: #171327;
  --sf-muted: #645f73;
  --sf-paper: #fff9ed;
  --sf-card: rgba(255, 255, 255, .9);
  --sf-line: #171327;
  --sf-pink: #ff5ea8;
  --sf-mint: #49dfb1;
  --sf-blue: #5577ff;
  --sf-yellow: #ffd166;
  --sf-dark: #151225;
  --sf-shadow: 8px 8px 0 rgba(23, 19, 39, .95);
  color: var(--sf-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 94, 168, .22), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(73, 223, 177, .24), transparent 25%),
    linear-gradient(135deg, #fff9ed 0%, #fff2f8 44%, #ecfff8 100%);
}
.public-body.storefront-body::before,
.public-body.detail-body::before,
.public-body.retro-public::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(rgba(23, 19, 39, .18) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 50%, rgba(255, 209, 102, .18) 50% 56%, transparent 56%);
  background-size: 18px 18px, 100% 100%;
}
.public-body.storefront-body > *,
.public-body.detail-body > *,
.public-body.retro-public > * {
  position: relative;
  z-index: 1;
}
.storefront-shell,
.detail-shell,
.single-checkout-shell {
  width: min(1160px, calc(100% - 32px));
}
.storefront-shell {
  grid-template-columns: minmax(250px, 334px) minmax(0, 1fr);
  gap: 26px;
}
.profile-panel,
.storefront-section,
.checkout-panel,
.single-checkout-grid .card,
.checkout-summary {
  border: 3px solid var(--sf-line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 249, 237, .92)),
    radial-gradient(circle at 12% 0, rgba(255, 209, 102, .3), transparent 36%);
  box-shadow: var(--sf-shadow);
  backdrop-filter: blur(10px);
}
.profile-panel {
  overflow: hidden;
}
.profile-panel::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  transform: none;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--sf-pink), var(--sf-yellow), var(--sf-mint), var(--sf-blue));
  box-shadow: inset 0 -3px 0 var(--sf-line);
}
.storefront-avatar {
  border: 3px solid var(--sf-line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sf-yellow), var(--sf-mint));
  box-shadow: 5px 5px 0 var(--sf-line);
}
.profile-panel h1,
.storefront-section h1,
.storefront-section h2,
.detail-main h1,
.checkout-main-form h1 {
  color: var(--sf-ink);
  font-weight: 950;
  letter-spacing: 0;
}
.username,
.storefront-card p,
.detail-description,
.public-body .muted {
  color: var(--sf-muted);
}
.demo-badge,
.type-label,
.badge,
.free-badge,
.time-slot-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 2px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-yellow);
  color: var(--sf-ink);
  box-shadow: 3px 3px 0 var(--sf-line);
  font-weight: 900;
  letter-spacing: 0;
}
.storefront-body .btn,
.detail-body .btn,
.retro-public .btn {
  border: 2px solid var(--sf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-ink);
  box-shadow: 4px 4px 0 var(--sf-line);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.storefront-body .btn:hover,
.detail-body .btn:hover,
.retro-public .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--sf-line);
}
.storefront-body .btn.primary,
.detail-body .btn.primary,
.retro-public .btn.primary {
  border-color: var(--sf-line);
  background: linear-gradient(135deg, var(--sf-pink), var(--sf-blue));
  color: #fff;
}
.storefront-body .btn.outline,
.detail-body .btn.outline,
.retro-public .btn.outline {
  background: #fff;
}
.storefront-section {
  padding: 22px;
}
.section-head {
  margin-bottom: 18px;
}
.eyebrow {
  color: var(--sf-blue);
  letter-spacing: .08em;
}
.storefront-grid {
  gap: 18px;
}
.storefront-card {
  overflow: hidden;
  border: 2px solid var(--sf-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 5px 5px 0 rgba(23, 19, 39, .95);
  transition: transform .16s ease, box-shadow .16s ease;
}
.storefront-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(23, 19, 39, .95);
}
.storefront-card-image,
.detail-media > img,
.media-placeholder,
.checkout-summary img {
  border: 3px solid var(--sf-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #ecfff8);
  box-shadow: 6px 6px 0 var(--sf-line);
}
.storefront-card-image {
  border-width: 0 0 2px;
  border-radius: 18px 18px 0 0;
  box-shadow: none;
}
.price {
  color: var(--sf-ink);
  font-weight: 950;
}
.social-list a {
  border: 2px solid var(--sf-line);
  background: #fff;
  box-shadow: 3px 3px 0 var(--sf-line);
}
.detail-main,
.detail-media,
.detail-description {
  min-width: 0;
}
.detail-shell {
  grid-template-columns: minmax(0, .98fr) minmax(320px, .52fr);
  gap: 28px;
}
.media-placeholder {
  color: var(--sf-blue);
}
.gallery-thumb {
  border: 2px solid var(--sf-line);
  box-shadow: 3px 3px 0 var(--sf-line);
}
.gallery-thumb.active {
  box-shadow: 4px 4px 0 var(--sf-pink);
}
.checkout-panel {
  top: 22px;
}
.pricing-box,
.seat-callout,
.payment-options,
.order-summary,
.form-section,
.listing-summary,
.price-section,
.booking-details {
  border: 2px solid var(--sf-line);
  border-radius: 20px;
  background: rgba(255, 249, 237, .86);
  box-shadow: 4px 4px 0 rgba(23, 19, 39, .95);
}
.seat-callout.urgent {
  background: #fff1f6;
}
.seat-progress {
  border: 2px solid var(--sf-line);
  background: #fff;
}
.seat-progress span {
  background: linear-gradient(90deg, var(--sf-mint), var(--sf-yellow), var(--sf-pink));
}
.single-checkout-grid {
  gap: 24px;
}
.checkout-main-form section {
  border: 2px solid var(--sf-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
  padding: 16px;
}
.public-body.detail-body input,
.public-body.detail-body textarea,
.public-body.detail-body select,
.public-body.retro-public input,
.public-body.retro-public textarea,
.public-body.retro-public select {
  border: 2px solid var(--sf-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sf-ink);
  box-shadow: 3px 3px 0 rgba(23, 19, 39, .9);
}
.public-hero {
  color: var(--sf-ink);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 94, 168, .25), transparent 34%),
    linear-gradient(135deg, #fff9ed, #ecfff8);
  border-bottom: 3px solid var(--sf-line);
}
.public-hero h1 {
  margin: 12px 0 6px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: .95;
  font-weight: 950;
}
.public-wrap {
  width: min(1040px, calc(100% - 32px));
}
.listing-detail,
.purchase-form {
  border: 3px solid var(--sf-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--sf-shadow);
  padding: 22px;
}
.main-image,
.summary-image img {
  border: 3px solid var(--sf-line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--sf-line);
}
.listing-description {
  border: 3px solid var(--sf-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 6px 6px 0 var(--sf-line);
  padding: 22px;
}
.storefront-footer {
  margin-top: 28px;
  color: #fff;
  background: var(--sf-dark);
  border-top: 3px solid var(--sf-line);
}
body.retro-public .listing-detail,
body.retro-public .purchase-form,
body.retro-public .listing-summary,
body.retro-public .form-section,
body.retro-public .order-summary,
body.retro-public .price-section,
body.retro-public .booking-details,
body.retro-public .listing-description {
  border: 3px solid var(--sf-line) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 6px 6px 0 var(--sf-line) !important;
}
body.retro-public .listing-detail,
body.retro-public .purchase-form {
  box-shadow: var(--sf-shadow) !important;
}
body.retro-public .main-image,
body.retro-public .gallery-thumb,
body.retro-public .summary-image img {
  border: 3px solid var(--sf-line) !important;
  border-radius: 20px !important;
  box-shadow: 5px 5px 0 var(--sf-line) !important;
}
body.retro-public .price {
  color: var(--sf-ink) !important;
}
body.retro-public .time-slot-badge,
body.retro-public .free-badge {
  border-radius: 999px !important;
  background: var(--sf-yellow) !important;
  color: var(--sf-ink) !important;
}
.error-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 139, 111, .13), transparent 28%),
    linear-gradient(45deg, transparent 62%, rgba(23, 78, 166, .12)),
    linear-gradient(120deg, #f7fbf8, #eef7f4 48%, #f5f3ff);
  display: grid;
  place-items: center;
  padding: 24px;
}
.error-shell { width: min(720px, 100%); }
.error-panel {
  text-align: center;
  background: rgba(255,255,255,.82);
  border-radius: 18px;
  padding: clamp(28px, 6vw, 54px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
}
.error-code {
  font-size: clamp(70px, 18vw, 150px);
  line-height: .82;
  font-weight: 900;
  color: rgba(15, 139, 111, .18);
  margin-bottom: 14px;
}
.error-panel h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}
.error-copy {
  width: min(500px, 100%);
  margin: 16px auto 24px;
  color: var(--muted);
  font-size: 17px;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    z-index: 25;
    transform: translateX(-102%);
    transition: transform .18s ease;
  }
  body.sidebar-open .side { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(15,23,42,.45);
  }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-close { display: inline-flex; }
  .app-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav { display: grid; overflow-y: auto; padding-bottom: 2px; }
  .nav a { flex: initial; }
  .nav-submenu { display: grid; }
  .app-header { position: sticky; top: 0; z-index: 5; }
  .mode-banner { display: grid; align-items: start; }
  .app-footer { display: grid; justify-content: stretch; align-items: start; padding: 10px 14px; }
  .users-filter-grid { grid-template-columns: 1fr 1fr; }
  .users-filter-submit { width: 100%; }
  .cards, .form-grid, .social-form-grid, .settings-grid, .plan-grid, .public-grid, .analytics-grid, .dashboard-kpis, .dashboard-grid { grid-template-columns: 1fr; }
  .analytics-wide { grid-column: auto; }
  .page-head { display: grid; }
  .content { padding: 18px; }
  .storefront-shell { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .storefront-sidebar { position: static; }
  .storefront-grid { grid-template-columns: 1fr; }
  .storefront-section { padding: 18px; }
  .storefront-section h1 { font-size: 28px; }
  .section-head { align-items: flex-start; }
  .detail-shell { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .detail-main h1 { font-size: 30px; }
  .checkout-panel { position: static; }
  .permission-grid, .permission-checks { grid-template-columns: 1fr; }
  .compact-toolbar input, .compact-toolbar select { width: 100%; }
  .item-tab { flex: 0 0 auto; }
  .info-row { grid-template-columns: 1fr; }
  .media-preview-box { min-height: 92px; }
  .single-checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .onboarding-grid,
  .info-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .storefront-shell { width: min(100% - 20px, 1160px); }
  .profile-panel, .storefront-section { padding: 16px; }
  .storefront-avatar { width: 92px; height: 92px; font-size: 36px; }
  .profile-panel h1 { font-size: 24px; }
  .storefront-section h1 { font-size: 25px; }
  .storefront-section h2 { font-size: 22px; }
  .section-head { display: grid; gap: 10px; }
  .users-filter-head { display: grid; }
  .users-filter-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .detail-shell { width: min(100% - 20px, 1180px); }
  .detail-main h1 { font-size: 26px; }
  .checkout-panel { padding: 16px; }
  .gallery-thumb { width: 62px; height: 62px; }
}
