/* =========================================================
   LEGENDS FADE SHOP — FINAL GLOBAL DESIGN SYSTEM
   Luxury / Single Shop / Black + Gold
   ========================================================= */

/* -------------------------
   RESET
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}
a, a:active, a:focus {
  -webkit-tap-highlight-color: transparent;
  /* OR if you want a custom color instead of removing it: */
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3); /* gold with 30% opacity */
}
/* -------------------------
   VARIABLES
-------------------------- */
:root {
  /* Colors */
  --black: #000000;
  --black-soft: #050505;
  --black-glass: rgba(0,0,0,0.65);
  --white: #ffffff;
  --white-soft: #f5f5f5;
  --gold: #d4af37;
  --gold-soft: rgba(212,175,55,0.35);

  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;
  --space-xl: 72px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --fast: 180ms;
  --normal: 320ms;
}

/* -------------------------
   BASE
-------------------------- */
body {
  background: #000;
  color: var(--white-soft);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 76px;
}

/* -------------------------
   TYPOGRAPHY
-------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-md);
  color: var(--white);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--space-md);
  line-height: 1.65;
  opacity: 0.9;
}

/* -------------------------
   HEADER
-------------------------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: var(--space-sm) var(--space-lg);
  background: var(--black-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-soft);
}

header img.logo {
  height: 42px;
}

/* -------------------------
   BUTTONS
-------------------------- */
.button,
button,
a.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;

  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  cursor: pointer;
  text-decoration: none;

  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
}

.button-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(212,175,55,0.25);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(212,175,55,0.35);
}

.button-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
}

.button-ghost:hover {
  background: rgba(212,175,55,0.08);
}

.button[aria-disabled="true"] {
  filter: grayscale(1);
  pointer-events: none;
}

/* Pressed feedback */
button.pressed,
.button.pressed {
  transform: scale(.97);
}
/* -------------------------
   FORMS
-------------------------- */
.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35);

  background: rgba(0,0,0,0.55);
  color: #fff;

  font-family: var(--font-body);
  font-size: 0.95rem;

  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.input::placeholder {
  color: rgba(255,255,255,0.55);
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.25);
  background: rgba(0,0,0,0.75);
}
/* -------------------------
   SECTIONS
-------------------------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.section.center {
  text-align: center;
}

.section.dark {
  background: var(--black-soft);
}
.section.center {
  scroll-margin-top: 90px;
}
/* -------------------------
   HERO
-------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  padding: var(--space-lg);
}

/* -------------------------
   CARDS
-------------------------- */
.card {
  background: var(--black-glass);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);

  transition:
    transform var(--normal) var(--ease),
    box-shadow var(--normal) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

/* -------------------------
   GRID
-------------------------- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* -------------------------
   BARBERS
-------------------------- */
.provider-card {
  text-align: center;
  padding: var(--space-lg);
  border: 1px dashed var(--gold-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.provider-card:hover {
  transform: translateY(-2px);
}

.provider-card span {
  display: block;
  margin-top: var(--space-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* -------------------------
   PROFILE & PORTFOLIO
-------------------------- */
.profile-photo {
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  background-size: cover;
  background-position: center;
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-soft);
}

/* -------------------------
   PRICING
-------------------------- */
.pricing {
  max-width: 520px;
  margin: 0 auto;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gold-soft);
  cursor: pointer;
  transition: transform .12s ease;
}

.pricing-row:hover {
  transform: translateY(-2px);
}

.pricing-row span:last-child {
  color: var(--gold);
}

/* -------------------------
   TIME GRID
-------------------------- */
[data-time-grid] .card {
  cursor: pointer;
  transition: transform .12s ease;
}

[data-time-grid] .card:hover {
  transform: translateY(-2px);
}

/* -------------------------
   SELECTED STATE
-------------------------- */
.selected {
  outline: 2px solid #fff;
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* -------------------------
   STATUS
-------------------------- */
.status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.open { background: #1aff6a; color: #000; }
.status.closed { background: #aa0000; color: #fff; }

/* -------------------------
   TOASTS
-------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 999;
  opacity: 0;
  animation: toastIn 2.8s forwards;
}

@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* -------------------------
   FOOTER
-------------------------- */
footer {
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--gold-soft);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 768px) {
  header {
    padding: var(--space-sm);
  }

  .section {
    padding: var(--space-lg) var(--space-md);
  }
}
/* ===============================
   BACKGROUND IMAGE (DEFAULT)
   =============================== */

.bg-image {
  position: fixed;
  inset: 0;
  background: url("assets/bg-chair.jpg") center / cover no-repeat;
  z-index: -2;
}

/* ===============================
   BACKGROUND VIDEO
   =============================== */

.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* VIDEO VISIBLE */
.bg-video.active video {
  opacity: 1;
}

/* ===============================
   CONTENT LAYER
   =============================== */

.page-content {
  position: relative;
  z-index: 1;
}

/* ===============================
   SAFETY — DISABLE ON SCHEDULER
   =============================== */


/* ===============================
   DARK OVERLAY (TINT)
   =============================== */

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
  pointer-events: none;
}
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
}
/* ===============================
   PLAN BADGE
   =============================== */

.plan-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.plan-badge.super_basic {
  background: rgba(0,0,0,0.7);
}

.plan-badge.basic {
  background: rgba(120,90,20,0.75);
}

.plan-badge.upgraded {
  background: rgba(20,100,70,0.75);
}
/* ===============================
   SUPER BASIC HARD OVERRIDE
   =============================== */

body[data-plan="super_basic"] .hero,
body[data-plan="super_basic"] .section:not([data-super-basic-only]) {
  display: none !important;
}
.static-portfolio {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}

.static-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.static-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.35);
}

@media (max-width: 768px) {
  .static-gallery {
    grid-template-columns: 1fr;
  }
}
/* SUPER BASIC HARD KILL */
body[data-plan="super_basic"] .hero,
body[data-plan="super_basic"] .section:not([data-super-basic-only]) {
  display: none !important;
}
/* =========================================================
   SUPER BASIC – UPGRADE OVERLAY
   ========================================================= */

.upgrade-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 30;
}

.upgrade-box {
  margin: 20px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.upgrade-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,215,0,.15);
  border: 1px solid rgba(255,215,0,.4);
  border-radius: 999px;
  margin-bottom: 8px;
}

body[data-plan="super_basic"] .upgrade-overlay {
  display: flex;
}

body[data-plan="super_basic"] [data-booking-ui],
body[data-plan="super_basic"] a[href*="/book"] {
  display: none !important;
}
/* ================================
   SUPER BASIC UPGRADE OVERLAY
   ================================ */

[data-upgrade-overlay] {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

[data-upgrade-overlay][hidden] {
  display: none;
}

.upgrade-card {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 24px 28px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.upgrade-card .lock {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.upgrade-card strong {
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}

.upgrade-card p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.4;
}
/* =========================================================
   COCKPIT EXTENSIONS
   ========================================================= */

/* Ticker */
#apptTicker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.appt-pill {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
  white-space: nowrap;
}

.appt-pill.completed {
  opacity: 0.6;
}

/* Panels */
.zone {
  padding: 16px;
  overflow-y: auto;
}

.panel-section {
  margin-bottom: 18px;
}

.panel-item {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 6px;
}

/* Camera */
#cameraPreview {
  flex: 1;
  background: black;
  border-radius: 14px;
  overflow: hidden;
}

#cameraPreview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoneBottom button {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  border: none;
}
.ls-time-editor {
  --gold: #d4af37;
  --glass: rgba(0,0,0,.85);
  --blur: blur(18px);
}
/* =========================================================
   GLOBAL UNDO PILL (FINAL)
   ========================================================= */
.drag-pill.undo {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: gold;
  color: black;
  font-weight: 600;
  z-index: 99999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drag-pill.undo.visible {
  opacity: 1;
  pointer-events: auto;
}
.appt-undo {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .2s ease, transform .2s ease;
}

.appt-undo.visible {
  opacity: 1;
  transform: scale(1);
}

.undo-ring {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35));
}

.undo-progress {
  stroke-dasharray: 94;
  stroke-dashoffset: 0;
}

.undo-count {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: white;
  pointer-events: none;
}
/* =========================================
   APPOINTMENT UNDO BUTTON
========================================= */

.appt-undo {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}

.appt-undo.visible {
  opacity: 1;
  transform: scale(1);
}

.undo-svg {
  width: 44px;
  height: 44px;
  animation: undo-spin 1.2s linear infinite;
}

.undo-arrow,
.undo-head {
  transition: opacity .2s ease;
}

.undo-check {
  opacity: 0;
}

.appt-undo.done .undo-arrow,
.appt-undo.done .undo-head {
  opacity: 0;
}

.appt-undo.done .undo-check {
  opacity: 1;
}

.undo-count {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  color: white;
  pointer-events: none;
}

/* Rotation */
@keyframes undo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.undo-check {
  opacity: 0;
  transition: opacity .2s ease;
}

.appt-undo.done .undo-check {
  opacity: 1;
}
/* =========================================
   UNDO BACKGROUND SUCCESS FLASH
========================================= */

.appt-undo.success .undo-bg {
  animation: undo-bg-flash 0.6s ease-out;
}

@keyframes undo-bg-flash {
  0% {
    stroke: rgba(255,255,255,0.25);
  }
  40% {
    stroke: #2cff6a; /* success green */
  }
  100% {
    stroke: rgba(255,255,255,0.25);
  }
}