/* =============================================================================
   BOOKIMI DESIGN SYSTEM — Dynamic Multi-Aesthetic Storefronts + Provider PWA
   ============================================================================= */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --text: #141413;
  --muted: #66635E;
  --primary: #141413;
  --primary-text: #FFFFFF;
  --accent: #F0ECE6;
  --border: #E5E0D8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Loader & Toasts */
.bm-loader {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.bm-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: bmSpin 0.7s linear infinite;
}

@keyframes bmSpin { to { transform: rotate(360deg); } }

.bm-toast-root {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.bm-toast {
  background: #141413;
  color: #FFFFFF;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Shared Layout & Buttons */
.bm-container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.18s ease;
}

.bm-btn:active { transform: scale(0.98); }
.bm-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.bm-btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.bm-btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.bm-btn-soft {
  background: var(--accent);
  color: var(--text);
}

.bm-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.bm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: var(--text);
}

.bm-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-pill.active {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

/* =============================================================================
   1. BOOKIMI PLATFORM LANDING PAGE (/)
   ============================================================================= */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.lp-brand {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-brand span { color: #F59E0B; }

.lp-hero {
  background: radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 45%),
              linear-gradient(180deg, #0B0C10 0%, #14161F 100%);
  color: #FFFFFF;
  padding: 72px 0 80px;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.lp-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0;
}

.lp-hero p.lead {
  font-size: 17px;
  color: #B4BCC8;
  max-width: 560px;
  margin-bottom: 28px;
}

.lp-domain-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  margin-top: 24px;
}

.lp-domain-row {
  display: flex;
  gap: 10px;
}

.lp-domain-row input {
  flex: 1;
  background: #0B0C10;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 13px 16px;
  color: #FFFFFF;
  font-size: 15px;
  outline: none;
}

.lp-pricing-card {
  background: linear-gradient(160deg, #1A1D28 0%, #11131B 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lp-price-big {
  font-family: 'Syne', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #F59E0B;
  line-height: 1.1;
}

.lp-breakdown {
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.lp-breakdown-row {
  display: flex;
  justify-content: space-between;
  color: #CBD5E1;
}

.lp-showcase {
  padding: 72px 0;
  background: #FAF9F7;
  color: #141413;
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.lp-demo-card {
  background: #FFFFFF;
  border: 1px solid #E6E1D9;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lp-demo-cover {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.lp-demo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-demo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 12, 16, 0.8);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.lp-demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* =============================================================================
   2. MULTI-TENANT CLIENT STOREFRONT (/s/:slug & Custom .com)
   ============================================================================= */
.sf-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.sf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.sf-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.sf-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

/* HERO VARIANT 1: SPLIT MAGAZINE (editorial_salon) */
.hero-split {
  padding: 40px 0 48px;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-split h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  margin: 14px 0 16px;
}

.hero-split-img {
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.hero-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO VARIANT 2: CENTERED MINIMAL (soft_luxe) */
.hero-centered {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-centered h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  max-width: 780px;
  margin: 14px auto 16px;
}

.hero-centered p {
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.hero-centered-banner {
  margin-top: 32px;
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  height: clamp(220px, 38vw, 390px);
  box-shadow: var(--shadow-md);
}

.hero-centered-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO VARIANT 3: FULL-BLEED DARK CINEMA (sharp_studio) */
.hero-cinema {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-cinema-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.1);
}

.hero-cinema-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,0.2) 0%, var(--bg) 98%);
}

.hero-cinema-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-cinema h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 14px;
}

/* HERO VARIANT 4: FLOATING CARD (minimal_spa) */
.hero-floating {
  padding: 28px 0 40px;
}

.hero-floating-wrap {
  position: relative;
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.hero-floating-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: var(--radius);
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.hero-floating-card h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  margin: 8px 0 10px;
}

/* Info Strip */
.sf-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sf-meta-chip {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Section Headers */
.sf-section {
  padding: 40px 0;
}

.sf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sf-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
}

/* MENU LAYOUT 1: LOOKBOOK GRID (editorial_salon) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.svc-card-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.svc-compare {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}

/* MENU LAYOUT 2 & 3: COMPACT PRICE LIST & ACCORDION */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.svc-row-thumb {
  width: 68px;
  height: 68px;
  border-radius: calc(var(--radius) * 0.7);
  object-fit: cover;
  flex-shrink: 0;
}

.cat-group {
  margin-bottom: 24px;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Portfolio Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  border: 1px solid var(--border);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover img { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #FFFFFF;
}

/* =============================================================================
   3. 30-SECOND ONLINE BOOKING DRAWER / MODAL
   ============================================================================= */
.bm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.68);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bm-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.bm-modal-head {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.bm-modal-body {
  padding: 20px 22px 28px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.slot-btn.selected {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

.bm-input, .bm-select, .bm-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.bm-input:focus, .bm-select:focus, .bm-textarea:focus {
  border-color: var(--primary);
}

.bm-field {
  margin-bottom: 14px;
}

.bm-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--bg);
}

.addon-item.checked {
  border-color: var(--primary);
  background: var(--accent);
}

/* =============================================================================
   4. PROVIDER MOBILE PWA ADMIN (/admin/:slug)
   ============================================================================= */
.admin-shell {
  min-height: 100vh;
  background: #0F1117;
  color: #F8FAFC;
  --bg: #0F1117;
  --surface: #181B24;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --primary: #F59E0B;
  --primary-text: #0B0C10;
  --accent: #222634;
  --border: #2A2F40;
  --radius: 12px;
  padding-bottom: 86px;
}

.admin-header {
  background: #151821;
  border-bottom: 1px solid #262B3A;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.admin-stat-card {
  background: #181B24;
  border: 1px solid #2A2F40;
  border-radius: 14px;
  padding: 16px;
}

.admin-card {
  background: #181B24;
  border: 1px solid #2A2F40;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.admin-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #151821;
  border-top: 1px solid #262B3A;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 50;
}

.admin-tab-btn {
  padding: 12px 6px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.admin-tab-btn.active {
  color: #F59E0B;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-confirmed { background: rgba(16, 185, 129, 0.16); color: #34D399; }
.status-pending_deposit { background: rgba(245, 158, 11, 0.16); color: #FBBF24; }
.status-completed { background: rgba(59, 130, 246, 0.16); color: #60A5FA; }
.status-cancelled, .status-no_show { background: rgba(239, 68, 68, 0.16); color: #F87171; }

.ai-bubble {
  padding: 12px 15px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  max-width: 90%;
}

.ai-bubble.user {
  background: #F59E0B;
  color: #0B0C10;
  margin-left: auto;
  font-weight: 600;
}

.ai-bubble.bot {
  background: #222634;
  color: #F8FAFC;
  border: 1px solid #2E3446;
}

/* Responsive */
@media (max-width: 820px) {
  .lp-hero-grid, .hero-split-grid {
    grid-template-columns: 1fr;
  }
  .hero-split-img {
    max-height: 360px;
    order: -1;
  }
  .svc-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .bm-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .bm-modal {
    border-radius: 22px 22px 0 0;
    max-height: 90vh;
  }
}
