:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --color-windows: #3b82f6;
  --color-screens: #10b981;
  --color-panels: #f59e0b;
  --color-discount: #10b981;
  /* keeps every fixed top-of-screen element clear of a notch/Dynamic
     Island on real phones — 0px on anything without one */
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

/* a visible keyboard-focus ring on anything interactive — mouse/touch
   clicks never trigger :focus-visible, so this never shows up as an
   unwanted box around a tapped button, only when actually tabbing */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior-x: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
}

/* ================= CAROUSEL SHELL ================= */
.app-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.pages-track {
  display: flex;
  width: 300vw;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.pages-track.dragging { transition: none; }

.page {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.page-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#page-home .page-scroll { padding-bottom: 190px; }

/* ---- nav dots + arrows (fixed to real viewport, outside track) ---- */
.brilliant-reward-tag {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  padding: 8px 14px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #92400e, #ca8a04);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  padding-top: calc(8px + var(--safe-top));
}
.brilliant-reward-tag:hover { filter: brightness(1.06); }
.brilliant-reward-tag.claimed { background: linear-gradient(90deg, #059669, #10b981); }
.brilliant-reward-tag.hidden { display: none; }

body.reward-tag-visible .carousel-hint,
body.reward-tag-visible .admin-icon-btn,
body.reward-tag-visible .call-icon-btn {
  top: calc(46px + var(--safe-top));
}
body.reward-tag-visible .combo-toast-root { top: calc(56px + var(--safe-top)); }

.carousel-hint {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 7px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  pointer-events: none;
}
.carousel-hint .dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; transition: all 0.3s ease; }
.carousel-hint .dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-arrow:hover { transform: translateY(-50%) scale(1.06); }
.nav-arrow.left { left: 14px; }
.nav-arrow.right { right: 14px; }
.nav-arrow.hidden { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .nav-arrow { display: none; } }

.admin-icon-btn {
  position: fixed;
  top: calc(14px + var(--safe-top));
  right: 14px;
  z-index: 210;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.admin-icon-btn:hover { transform: scale(1.08); background: #0f172a; }

.call-icon-btn {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 14px;
  z-index: 210;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0f172a;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.call-icon-btn:hover { transform: scale(1.08); background: #f1f5f9; }

.brand-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.brand-logo svg { filter: drop-shadow(0 6px 14px rgba(37,99,235,0.35)); }

.swipe-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 18px;
}

/* ================= HEADER / SHARED ================= */
.header { text-align: center; margin-bottom: 32px; max-width: 600px; }
.header img { max-height: 110px; margin-bottom: 18px; border-radius: 12px; object-fit: contain; }
.header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px 0; color: var(--text-main); }
.header p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ================= HOME / ESTIMATOR ================= */
.app-container {
  background: var(--surface); border-radius: 24px; padding: 32px; width: 100%;
  max-width: 800px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background-image: radial-gradient(circle at 50% 0%, #e0f2fe 0%, transparent 70%);
}

.story-toggle { display: flex; background: #f1f5f9; border-radius: 12px; padding: 6px; margin-bottom: 32px; position: relative; }
.story-btn { flex: 1; text-align: center; padding: 14px; cursor: pointer; border-radius: 8px; font-weight: 600; font-size: 1.05rem; color: var(--text-muted); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1; }
.story-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.house-visual { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.toggle-item { border: 2px solid var(--border); border-radius: 16px; padding: 32px 20px; text-align: center; cursor: pointer; transition: all 0.2s ease; background: var(--surface); position: relative; overflow: hidden; }
.toggle-item:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.toggle-item.selected { background: #f8fafc; border-color: var(--service-color, var(--primary)); }

.toggle-item .icon { margin-bottom: 20px; }
.toggle-item h3 { margin: 0 0 8px 0; font-size: 1.15rem; font-weight: 700; }

.badge { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.toggle-item.selected .badge { color: var(--service-color, var(--primary)); }

/* ---- refreshed icon system (CSS-driven coloring, no JS attr hacks) ---- */
.icon-svg { width: 60px; height: 60px; --icon-color: #cbd5e1; transition: filter 0.3s ease; }
.icon-stroke { stroke: var(--icon-color); fill: none; }
.icon-mesh { stroke: var(--icon-color); }
.icon-accent { fill: var(--icon-color); stroke: none; }
.icon-shine { stroke: rgba(255,255,255,0.95); }
.icon-sun { fill: var(--icon-color); opacity: 0.3; transition: opacity 0.3s ease; }
.icon-rays { stroke: var(--icon-color); opacity: 0.3; transition: opacity 0.3s ease; }
.icon-panel-glass { fill: rgba(255,255,255,0.65); }

.xmas-bulb { fill: #94a3b8; transition: fill 0.35s ease; }
.xmas-glow { fill: #94a3b8; opacity: 0.12; transition: fill 0.35s ease, opacity 0.35s ease; }
.toggle-item.selected .xmas-bulb-red, .toggle-item.picking-tier .xmas-bulb-red, .service-pick-btn.active .xmas-bulb-red, .service-card .xmas-bulb-red { fill: #ef4444; }
.toggle-item.selected .xmas-glow-red, .toggle-item.picking-tier .xmas-glow-red, .service-pick-btn.active .xmas-glow-red, .service-card .xmas-glow-red { fill: #ef4444; opacity: 0.35; }
.toggle-item.selected .xmas-bulb-green, .toggle-item.picking-tier .xmas-bulb-green, .service-pick-btn.active .xmas-bulb-green, .service-card .xmas-bulb-green { fill: #22c55e; }
.toggle-item.selected .xmas-glow-green, .toggle-item.picking-tier .xmas-glow-green, .service-pick-btn.active .xmas-glow-green, .service-card .xmas-glow-green { fill: #22c55e; opacity: 0.35; }
.toggle-item.selected .xmas-bulb-blue, .toggle-item.picking-tier .xmas-bulb-blue, .service-pick-btn.active .xmas-bulb-blue, .service-card .xmas-bulb-blue { fill: #3b82f6; }
.toggle-item.selected .xmas-glow-blue, .toggle-item.picking-tier .xmas-glow-blue, .service-pick-btn.active .xmas-glow-blue, .service-card .xmas-glow-blue { fill: #3b82f6; opacity: 0.35; }
.toggle-item.selected .xmas-bulb-gold, .toggle-item.picking-tier .xmas-bulb-gold, .service-pick-btn.active .xmas-bulb-gold, .service-card .xmas-bulb-gold { fill: #fbbf24; }
.toggle-item.selected .xmas-glow-gold, .toggle-item.picking-tier .xmas-glow-gold, .service-pick-btn.active .xmas-glow-gold, .service-card .xmas-glow-gold { fill: #fbbf24; opacity: 0.35; }

.toggle-item.selected .icon-svg, .toggle-item.picking-tier .icon-svg { --icon-color: var(--service-color, var(--primary)); filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25)); }
.toggle-item.selected .icon-sun, .toggle-item.selected .icon-rays { opacity: 1; }

.tier-pill-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.tier-pill {
  font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 100px;
  border: 2px solid var(--border); color: var(--text-main); cursor: pointer;
  transition: all 0.15s ease; background: var(--surface);
}
.tier-pill:hover { border-color: var(--service-color, var(--primary)); color: var(--service-color, var(--primary)); transform: translateY(-1px); }

.floating-bar {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px);
  max-width: 700px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(0,0,0,0.05); border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12); display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 32px; z-index: 50;
}

.price-col { display: flex; flex-direction: column; }
.earned-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.earned-badges.has-badges { margin-bottom: 6px; }
.earned-badge { display: inline-flex; cursor: default; }
.earned-badge .badge-shield-svg { width: 20px; height: 20px; margin-bottom: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 4px; }
.time-amount { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.discount-text { color: var(--color-discount); font-weight: 700; }

.book-btn { background: var(--primary); color: white; text-decoration: none; padding: 18px 40px; border-radius: 100px; font-size: 1.15rem; font-weight: 700; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); transition: all 0.2s ease; cursor: pointer; text-align: center; border: none; }
.book-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4); }

.legal-links { text-align: center; margin-top: 30px; font-size: 0.85rem; color: var(--text-muted); max-width: 700px; }
.legal-links span, .legal-links a { text-decoration: underline; cursor: pointer; color: var(--text-muted); }

.reviews-cta-section {
  margin-top: 36px;
  width: 100%;
  max-width: 700px;
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}
.reviews-cta-stars { font-size: 1.3rem; letter-spacing: 5px; color: #d97706; margin-bottom: 12px; }
.reviews-cta-section h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; color: var(--text-main); }
.reviews-cta-section p { margin: 0 0 20px; color: var(--text-muted); font-size: 1rem; }
.reviews-cta-btn {
  display: inline-block;
  background: #d97706;
  color: #fff;
  text-decoration: none !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 100px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reviews-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217, 119, 6, 0.4); }
.reviews-live:empty { display: none; }
.reviews-live { margin-top: 22px; width: 100%; }

.google-rating-summary { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.google-rating-number { font-size: 1.6rem; font-weight: 800; color: var(--text-main); }
.google-rating-stars { color: #d97706; font-size: 1.2rem; letter-spacing: 2px; }
.google-rating-count { color: var(--text-muted); font-size: 0.9rem; }

.google-review-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.google-review-card { background: rgba(255,255,255,0.65); border: 1px solid rgba(217,119,6,0.18); border-radius: 16px; padding: 16px; }
.google-review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.google-review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.google-review-avatar-fallback { display: flex; align-items: center; justify-content: center; background: #d97706; color: #fff; font-weight: 700; }
.google-review-who { flex: 1; min-width: 0; }
.google-review-author { font-weight: 700; color: var(--text-main); font-size: 0.92rem; }
.google-review-stars { color: #d97706; font-size: 0.85rem; letter-spacing: 1px; }
.google-review-time { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.google-review-text { margin: 0; color: var(--text-main); font-size: 0.9rem; line-height: 1.5; }

/* ================= MODALS / OVERLAYS (real viewport-fixed, live outside track) ================= */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; opacity: 0; animation: fadeIn 0.2s forwards; }

.glass-overlay { z-index: 1000; background: rgba(15, 23, 42, 0.65); opacity: 0; transition: opacity 0.35s ease; animation: none; padding: 10px; }
.glass-overlay.show { opacity: 1; }
.glass-stage {
  position: relative;
  width: min(97vw, 900px);
  height: min(92vh, 900px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: linear-gradient(160deg, #1d4ed8 0%, #3b82f6 45%, #7dd3fc 100%);
}
.glass-stage.bonus-mode { animation: bonusPulseBorder 1.4s ease-in-out infinite; }
@keyframes bonusPulseBorder {
  0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 0 4px rgba(217,119,6,0.7); }
  50% { box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 0 8px rgba(217,119,6,0.95); }
}
.glass-clear { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.glass-message { text-align: center; color: #fff; }
.glass-message svg { margin-bottom: 20px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }
.glass-message h2 { font-size: 2rem; font-weight: 800; line-height: 1.35; margin: 0; text-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.glass-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; filter: blur(1.5px); }
.glass-water-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.glass-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 600; background: rgba(15,23,42,0.4); padding: 8px 16px; border-radius: 100px; pointer-events: none; transition: opacity 0.4s ease; letter-spacing: 0.02em; z-index: 3; }
.glass-hint.hidden { opacity: 0; }
.glass-progress { position: absolute; top: 14px; left: 14px; color: rgba(255,255,255,0.95); font-size: 0.78rem; font-weight: 700; background: rgba(15,23,42,0.4); padding: 6px 13px; border-radius: 100px; pointer-events: none; z-index: 4; letter-spacing: 0.02em; transition: background 0.3s ease; }
.glass-progress.bonus-urgent { background: rgba(190,18,60,0.65); animation: bonusUrgentFlash 0.6s ease-in-out infinite; }
@keyframes bonusUrgentFlash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.glass-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,23,42,0.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; z-index: 5; line-height: 1; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes glassCelebrateGlow {
  0% { text-shadow: 0 4px 16px rgba(0,0,0,0.25); transform: scale(1); }
  35% { text-shadow: 0 0 34px rgba(255,255,255,0.95), 0 4px 16px rgba(0,0,0,0.25); transform: scale(1.07); }
  100% { text-shadow: 0 4px 16px rgba(0,0,0,0.25); transform: scale(1); }
}
.glass-message.celebrate h2 { animation: glassCelebrateGlow 1.2s ease-in-out; }

.modal-box { background: white; padding: 40px; border-radius: 24px; max-width: 600px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.modal-box h2 { margin-top: 0; font-size: 1.5rem; font-weight: 800; border-bottom: 2px solid var(--bg); padding-bottom: 15px; margin-bottom: 20px; }
.modal-box ul { padding-left: 20px; color: var(--text-muted); }
.modal-box li { margin-bottom: 16px; line-height: 1.6; font-size: 0.95rem; }
.close-btn { background: var(--text-main); color: white; text-align: center; padding: 16px; border-radius: 12px; cursor: pointer; font-weight: 700; margin-top: 20px; }
.ghost-btn { background: #f1f5f9; color: var(--text-main); }

.field { width:100%; padding:14px; margin-bottom:12px; border-radius:8px; border:1px solid var(--border); font-size: 1rem; font-family: inherit; }

/* ================= INFO PAGE ================= */
.info-section { width: 100%; max-width: 720px; margin-bottom: 36px; }
.info-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.info-section p { color: var(--text-muted); line-height: 1.7; font-size: 1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.service-card .icon-svg { width: 46px; height: 46px; --icon-color: var(--service-color, var(--primary)); margin-bottom: 12px; opacity: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12)); }
.service-card .icon-sun, .service-card .icon-rays { opacity: 0.9; }
.service-card h3 { margin: 0 0 8px 0; font-size: 1.05rem; }
.service-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; }
.faq-q .chev { transition: transform 0.25s ease; color: var(--text-muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding-top: 10px; }

.back-home-btn { margin-top: 10px; }

/* ================= UPLOAD PAGE ================= */
.upload-actions { width: 100%; max-width: 720px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 18px; }
.manage-link { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.pill-btn { background: var(--primary); color: white; border: none; padding: 12px 22px; border-radius: 100px; font-weight: 700; cursor: pointer; font-size: 0.95rem; box-shadow: 0 6px 16px rgba(37,99,235,0.3); }
.pill-btn.secondary { background: #f1f5f9; color: var(--text-main); box-shadow: none; }

.uploader-box { width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 28px; }
.uploader-box h3 { margin-top: 0; }
.dropzone { border: 2px dashed var(--border); border-radius: 14px; padding: 28px; text-align: center; color: var(--text-muted); cursor: pointer; margin-bottom: 16px; transition: border-color 0.2s ease, background 0.2s ease; }
.dropzone.drag-over { border-color: var(--primary); background: #eff6ff; }
.dropzone video { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 12px; }

.video-grid { width: 100%; max-width: 720px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.video-card video { width: 100%; display: block; background: #000; max-height: 220px; }
.video-card .meta { padding: 12px 14px; }
.video-card h4 { margin: 0 0 4px 0; font-size: 0.95rem; }
.video-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.video-card .del { display: inline-block; margin-top: 8px; font-size: 0.8rem; color: #ef4444; cursor: pointer; font-weight: 600; }
.empty-state { color: var(--text-muted); text-align: center; padding: 40px 20px; font-size: 0.95rem; }

/* ================= DATA DASHBOARD ================= */
#data-dashboard .modal-box { max-width: 1000px; text-align: left; }
.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dash-title { font-size: 1.5rem; font-weight: 800; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.dash-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-toolbar input { flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 0.95rem; }

.booking-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 12px; background: #fff; }
.mystery-gift-banner { background: linear-gradient(135deg, #eab308, #f59e0b); color: #451a03; font-weight: 800; font-size: 0.85rem; padding: 8px 14px; border-radius: 10px; margin-bottom: 12px; text-align: center; }
.booking-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.booking-name { font-size: 1.1rem; font-weight: 800; }
.status-pill { font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.status-pill.booked { background: #dbeafe; color: #1d4ed8; }
.status-pill.paid { background: #d1fae5; color: #047857; }
.status-pill.pending { background: #fef3c7; color: #b45309; }

.booking-group-header { font-weight: 800; font-size: 0.95rem; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--bg); display: flex; align-items: center; gap: 8px; }
.booking-group-header:first-child { margin-top: 0; }
.group-count { background: var(--bg); color: var(--text-muted); font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; }
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; font-size: 0.88rem; margin-bottom: 12px; }
.booking-grid .k { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.booking-grid .v { color: var(--text-main); font-weight: 600; word-break: break-word; }
.booking-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn { font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 8px; cursor: pointer; border: none; }
.mini-btn.mark { background: var(--primary); color: white; }
.mini-btn.del { background: #fee2e2; color: #b91c1c; }
.mini-btn.export { background: #f1f5f9; color: var(--text-main); }

.security-note { font-size: 0.78rem; color: var(--text-muted); background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.5; }

.admin-modal { max-width: 1000px; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.admin-tab-btn { background: none; border: none; padding: 10px 16px; font-weight: 700; font-size: 0.92rem; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.panel-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 0; margin-bottom: 16px; }
.admin-subheading { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 20px 0 10px 0; }
.save-msg { font-size: 0.82rem; font-weight: 700; color: var(--color-discount); opacity: 0; transition: opacity 0.2s ease; }
.save-msg.show { opacity: 1; }

.admin-faq-row { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; position: relative; }
.admin-faq-row .mini-btn.del { align-self: flex-end; }

.admin-secret-overlay { z-index: 1001; }

.combo-service-palette { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.combo-chip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px; border: 2px solid var(--border); cursor: pointer; font-weight: 700; font-size: 0.85rem; background: #fff; user-select: none; transition: border-color 0.15s ease, background 0.15s ease; }
.combo-chip svg { width: 18px; height: 18px; }
.combo-chip.selected { border-color: var(--service-color, var(--primary)); background: color-mix(in srgb, var(--service-color, var(--primary)) 14%, white); }
.combo-drop-zone { min-height: 56px; border: 2px dashed var(--border); border-radius: 14px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.combo-dropzone-hint { color: var(--text-muted); font-size: 0.85rem; }
.combo-tag { display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--service-color, var(--primary)) 16%, white); border: 1px solid var(--service-color, var(--border)); padding: 6px 10px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; }
.combo-tag svg { width: 15px; height: 15px; }
.combo-tag b { cursor: pointer; color: #b91c1c; font-weight: 900; margin-left: 2px; }
.glow-picker { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.glow-swatch { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--swatch-color); cursor: pointer; border: 3px solid transparent; box-shadow: 0 0 10px 1px var(--swatch-color), inset 0 0 0 1px rgba(15,23,42,0.15); transition: transform 0.15s ease, border-color 0.15s ease; }
.glow-swatch:hover { transform: scale(1.1); }
.glow-swatch.selected { border-color: #0f172a; }
.glow-swatch.small { width: 16px; height: 16px; box-shadow: 0 0 6px 1px var(--swatch-color), inset 0 0 0 1px rgba(15,23,42,0.15); cursor: default; flex-shrink: 0; }

.icon-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-swatch { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 10px; background: #475569; cursor: pointer; border: 3px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease; }
.icon-swatch svg { width: 20px; height: 20px; }
.icon-swatch:hover { transform: scale(1.08); }
.icon-swatch.selected { border-color: #0f172a; background: #1e293b; }

/* ambient bundle glow — sits behind/around a toggle-item without touching
   its own --service-color, so bundled tiles visibly pulse together */
.toggle-item.combo-glow-active { animation: comboGlowPulse 2.4s ease-in-out infinite; }
@keyframes comboGlowPulse {
  0%, 100% { box-shadow: 0 0 16px 2px color-mix(in srgb, var(--combo-glow, transparent) 45%, transparent); }
  50% { box-shadow: 0 0 34px 8px color-mix(in srgb, var(--combo-glow, transparent) 70%, transparent); }
}

/* the one visible, permanent mark of having won The Brilliant Reward —
   applied only in the winner's own browser (see isBrilliantRewardWinnerLocally) */
.floating-bar.brilliant-winner-glow {
  border-color: #d4a017;
  animation: brilliantGoldPulse 2.6s ease-in-out infinite;
}
@keyframes brilliantGoldPulse {
  0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 18px 2px rgba(234,179,8,0.55); }
  50% { box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 36px 8px rgba(234,179,8,0.85); }
}

/* every other bonus-level winner — same permanent discount as gold, just
   a different color so it's visually clear they aren't the one-of-a-kind
   Brilliant Reward winner */
.floating-bar.game-winner-glow-blue {
  border-color: #1d4ed8;
  animation: gameWinnerBluePulse 2.6s ease-in-out infinite;
}
@keyframes gameWinnerBluePulse {
  0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 18px 2px rgba(37,99,235,0.55); }
  50% { box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 36px 8px rgba(37,99,235,0.85); }
}

.combo-toast-root { position: fixed; top: calc(20px + var(--safe-top)); left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; padding: 0 12px; box-sizing: border-box; width: 100%; }
.combo-toast { background: #0f172a; color: white; padding: 12px 20px; border-radius: 100px; font-size: 0.88rem; font-weight: 700; box-shadow: 0 15px 35px rgba(0,0,0,0.3); opacity: 0; transform: translateY(-16px); transition: opacity 0.3s ease, transform 0.3s ease; display: flex; align-items: center; gap: 8px; text-align: center; }
.combo-toast.show { opacity: 1; transform: translateY(0); box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 24px 2px color-mix(in srgb, var(--combo-glow, transparent) 55%, transparent); }
.combo-toast-icon { font-size: 1.05rem; flex-shrink: 0; }
.combo-toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch-color); flex-shrink: 0; box-shadow: 0 0 8px 1px var(--swatch-color); }
.combo-toast .badge-shield-svg { width: 24px; height: 24px; margin-bottom: 0; flex-shrink: 0; }

.promo-code-section { text-align: left; margin-bottom: 20px; }
.promo-status { font-size: 0.85rem; font-weight: 700; margin-top: 8px; min-height: 1.2em; }
.promo-status.valid { color: #047857; }
.promo-status.invalid { color: #b91c1c; }

.promo-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.promo-row .code { font-weight: 800; letter-spacing: 0.03em; }
.promo-row .amount { font-weight: 800; color: var(--color-discount); margin-left: auto; white-space: nowrap; }
.promo-row.inactive { opacity: 0.5; }

/* ======================================================================
   BADGES — every discount mechanism (glass game, content engagement,
   bundle combos, referral codes) rendered as one shield-card style,
   tinted by the badge's own color, expandable in place for editing.
   ====================================================================== */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.badge-card { border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px; text-align: center; cursor: pointer; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.badge-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.badge-card.disabled { opacity: 0.45; }
.badge-card.expanded { grid-column: 1 / -1; text-align: left; cursor: default; }
.badge-card.expanded:hover { transform: none; box-shadow: none; }

.badge-shield-svg { width: 56px; height: 56px; margin-bottom: 8px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)); }
.badge-card-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 2px; }
.badge-card-amount { font-weight: 700; font-size: 0.85rem; color: var(--color-discount); }
.badge-card-off-label { font-weight: 700; font-size: 0.8rem; color: var(--text-muted); }

.badge-editor { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.badge-editor-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.badge-editor-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

.badge-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.badge-toggle input { opacity: 0; width: 0; height: 0; }
.badge-toggle-track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 100px; transition: background 0.2s ease; }
.badge-toggle-track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.badge-toggle input:checked + .badge-toggle-track { background: var(--primary); }
.badge-toggle input:checked + .badge-toggle-track::before { transform: translateX(20px); }

.share-prompt { margin-top: 30px; }
.share-tagline { font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; color: var(--text-main); }
.share-site-btn {
  border: none; cursor: pointer; padding: 14px 28px; border-radius: 100px;
  font-weight: 800; font-size: 0.95rem; color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.share-site-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45); }
.share-site-btn:active { transform: translateY(0); }

.before-after-grid { width: 100%; max-width: 720px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; margin-bottom: 8px; }
.before-after-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--bg); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.before-after-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.before-after-card .ba-after-img { opacity: 0; }
.before-after-card:hover .ba-after-img, .before-after-card.flipped .ba-after-img { opacity: 1; }
.before-after-card .ba-label { position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,0.78); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 11px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; pointer-events: none; transition: opacity 0.3s ease; }
.before-after-card .ba-label-after { opacity: 0; }
.before-after-card:hover .ba-label-before, .before-after-card.flipped .ba-label-before { opacity: 0; }
.before-after-card:hover .ba-label-after, .before-after-card.flipped .ba-label-after { opacity: 1; }
.before-after-card .ba-desc { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.before-after-card .ba-del { position: absolute; top: 8px; right: 8px; background: rgba(239,68,68,0.92); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; cursor: pointer; z-index: 2; }

.before-after-admin-row { display: flex; gap: 14px; flex-wrap: wrap; }
.before-after-admin-block { flex: 1; min-width: 150px; }
.before-after-admin-block .dropzone { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.before-after-admin-block .dropzone img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: cover; }
.admin-ba-row { display: flex; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; align-items: center; }
.admin-ba-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-ba-row .admin-ba-desc { flex: 1; font-size: 0.85rem; color: var(--text-muted); }

.bundle-list { margin-bottom: 20px; }
.bundle-row-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.bundle-row-header { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bundle-row-card.expanded .bundle-row-header { cursor: default; margin-bottom: 4px; }
.bundle-row-name { font-weight: 800; flex: 1; }
.bundle-row-amount { font-weight: 700; color: var(--color-discount); white-space: nowrap; }
.promo-row-code { font-weight: 700; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.03em; margin-left: 6px; }

.admin-video-row { display: flex; gap: 16px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; align-items: flex-start; }
.admin-video-row video { width: 160px; max-width: 100%; border-radius: 10px; background: #000; flex-shrink: 0; }
.admin-video-row .fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.admin-video-row .row-actions { display: flex; gap: 8px; align-self: flex-start; }

.admin-blog-row { display: flex; gap: 14px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; align-items: flex-start; }
.admin-category-row { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.admin-category-row input[type="text"] { flex: 1; min-width: 140px; margin-bottom: 0; }
.admin-blog-row .fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.admin-blog-row .row-actions { display: flex; gap: 8px; align-self: flex-start; }

.logo-preview-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.logo-preview { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-preview img, .logo-img { width: 64px; height: 64px; object-fit: cover; border-radius: 18px; box-shadow: 0 6px 14px rgba(37,99,235,0.25); }

.about-image-wrap { width: 100%; max-width: 720px; margin-bottom: 28px; }
.about-image-wrap img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.1); display: block; }

.about-image-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }

.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 14px; text-align: left; }
.blog-card h4 { margin: 0 0 4px 0; font-size: 1.05rem; }
.blog-card .blog-date { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.blog-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }

.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.equipment-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.equipment-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.equipment-body { padding: 16px; }
.equipment-body h3 { margin: 0 0 6px 0; font-size: 1rem; }
.equipment-body p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.partner-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.partner-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.partner-body h4 { margin: 0 0 4px 0; font-size: 1rem; }
.partner-body p { margin: 0 0 6px 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.partner-link { font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.partner-link:hover { text-decoration: underline; }
.equipment-link { display: inline-block; margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.equipment-link:hover { text-decoration: underline; }

.admin-partner-row { display: flex; gap: 14px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; align-items: flex-start; }
.admin-partner-thumb { width: 72px; flex-shrink: 0; text-align: center; cursor: pointer; }
.admin-partner-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; margin-bottom: 4px; background: #f1f5f9; display: block; }
.admin-partner-thumb-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.equipment-admin-block { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.equipment-admin-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; margin-bottom: 6px; }
.pricing-col { display: flex; flex-direction: column; }
.pricing-col-title { font-weight: 700; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.pricing-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.tier-price-input-row { display: flex; gap: 6px; }
.tier-price-input-row .service-tier-price-input { min-width: 0; }

.service-picker { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.service-pick-btn { --service-color: #94a3b8; width: 96px; text-align: center; border: 2px solid var(--border); border-radius: 14px; padding: 12px 8px; cursor: pointer; transition: all 0.2s ease; background: #fff; }
.service-pick-btn:hover { border-color: #cbd5e1; }
.service-pick-btn.active { border-color: var(--service-color); background: #f8fafc; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.service-pick-btn .icon-svg { width: 34px; height: 34px; --icon-color: var(--service-color); margin-bottom: 6px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15)); }
.service-pick-name { font-size: 0.72rem; font-weight: 700; color: var(--text-main); line-height: 1.25; margin-bottom: 6px; min-height: 1.9em; }
.service-pick-status { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 9px; border-radius: 100px; display: inline-block; }
.service-pick-status.on { background: #d1fae5; color: #047857; }
.service-pick-status.off { background: #f1f5f9; color: #64748b; }

.revenue-title { margin: 0 0 4px 0; font-size: 1.15rem; font-weight: 800; }
.revenue-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.revenue-filter-btn { --service-color: #94a3b8; display: flex; align-items: center; gap: 8px; border: 2px solid var(--border); border-radius: 100px; padding: 8px 16px 8px 10px; cursor: pointer; transition: all 0.2s ease; background: #fff; }
.revenue-filter-btn:hover { border-color: #cbd5e1; }
.revenue-filter-btn .icon-svg { width: 24px; height: 24px; --icon-color: #cbd5e1; }
.revenue-filter-btn.active { border-color: var(--service-color); background: #f8fafc; }
.revenue-filter-btn.active .icon-svg { --icon-color: var(--service-color); filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15)); }
.revenue-filter-btn span { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.revenue-filter-btn.active span { color: var(--text-main); }

.service-editor-box { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #f8fafc; margin-top: 14px; }
.service-editor-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.service-editor-header .icon-svg { width: 32px; height: 32px; flex-shrink: 0; }
.service-editor-header h4 { margin: 0; font-size: 1.05rem; flex: 1; }
.toggle-switch-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.toggle-switch-label input { width: 17px; height: 17px; cursor: pointer; }

@media (max-width: 600px) {
  .floating-bar { flex-direction: column; border-radius: 24px; padding: 20px; gap: 15px; }
  .price-col { text-align: center; }
  .book-btn { width: 100%; text-align: center; box-sizing: border-box; }
  .modal-box { padding: 26px; }
  #page-home .page-scroll { padding-bottom: 280px; }

  /* two compact columns so 4-6 services are visible at once, making it
     easy to try different combinations and see bundle discounts unlock */
  .house-visual { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .toggle-item { padding: 16px 8px; border-radius: 14px; }
  .toggle-item .icon { margin-bottom: 8px; }
  .toggle-item .icon-svg { width: 40px; height: 40px; }
  .toggle-item h3 { font-size: 0.92rem; margin-bottom: 5px; }
  .toggle-item .badge { font-size: 0.78rem; }
  .tier-pill { font-size: 0.74rem; padding: 5px 9px; }
}

/* ================= SPLASH INTRO ================= */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  transition: opacity 0.55s ease;
  pointer-events: none;
  overflow: hidden;
}
/* the "fog" — a real blur of the live page behind it, not a painted
   color layer; JS animates a soft mask on this to reveal the real page
   sharply as the rinse passes over it */
#splash-frost {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(22px) saturate(0.85) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(0.85) brightness(1.06);
  background: rgba(255, 255, 255, 0.28);
}
#splash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================= BOOKING / SCHEDULE CALENDAR ================= */
.booking-calendar-section { margin-bottom: 24px; text-align: left; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-label { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.cal-nav-btn { background: #fff; border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--text-main); line-height: 1; }
.cal-nav-btn:hover { background: #f1f5f9; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekday { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-main); background: #fff; border: 1px solid var(--border); }
.cal-day-pick { cursor: pointer; transition: all 0.15s ease; }
.cal-day-pick:hover:not(.disabled) { border-color: var(--primary); background: #eff6ff; }
.cal-day.disabled { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; }
.cal-day.blocked { background: #fee2e2; border-color: #fecaca; color: #b91c1c; cursor: pointer; }
.cal-day.today { border-width: 2px; border-color: var(--primary); }
.cal-day.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.cal-day-badge { position: absolute; top: -5px; right: -5px; background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700; border-radius: 100px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 0 2px #fff; }
.cal-day.selected .cal-day-badge { background: #fff; color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.cal-selected-text { margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.cal-detail { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.cal-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.cal-detail-header h4 { margin: 0; font-size: 0.95rem; }
.cal-booking-row { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.cal-booking-name { font-weight: 700; font-size: 0.9rem; }
.cal-booking-meta { font-size: 0.8rem; color: var(--text-muted); }
.time-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.time-slot-btn { border: 2px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; font-weight: 700; color: var(--text-main); cursor: pointer; }
.time-slot-btn:hover { border-color: var(--primary); background: #eff6ff; }
.time-slot-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.business-hours-row { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.weekly-off-row { display: flex; gap: 6px; margin: 8px 0 16px 0; }
.weekday-toggle-btn { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--border); background: #fff; font-weight: 700; font-size: 0.8rem; color: var(--text-main); cursor: pointer; }
.weekday-toggle-btn.off { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.cal-booking-row[draggable="true"] { cursor: grab; }
.cal-day.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; }
.revenue-lock-screen { max-width: 380px; margin: 40px auto; text-align: center; }

/* ================= SERVICE PHOTO SLIDESHOW (Our Services) ================= */
.service-photo-slideshow { width: 100%; height: 140px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #f1f5f9; }
.service-photo-slideshow img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-visual-box { position: relative; width: 100%; height: 140px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.service-visual-box .service-photo-slideshow { margin-bottom: 0; height: 100%; border-radius: 0; }
.service-visual-box .service-static-visual { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.25s ease; }
.service-visual-box .service-static-visual > .icon-svg { width: 68px; height: 68px; }
.service-preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.service-card.showing-video .service-preview-video { opacity: 1; }
.service-card.showing-video .service-static-visual { opacity: 0; }
.service-video-preview-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* ================= ADMIN: SERVICE PHOTO GALLERY ================= */
.service-image-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.service-image-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.service-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-image-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15,23,42,0.7); color: #fff; border: none; font-size: 0.75rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ================= CONTENT PERMALINKS (share / SEO) ================= */
.permalink-link { display: inline-block; margin-top: 8px; margin-left: 12px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.permalink-link:hover { text-decoration: underline; }
.blog-hook { color: var(--text-muted); }
.blog-full { color: var(--text-main); white-space: pre-wrap; }
.blog-expand-btn { border: none; background: none; color: var(--primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; padding: 0; margin-top: 4px; }
.blog-expand-btn:hover { text-decoration: underline; }
