/* ───── Preloader ───── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070707;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
#preloader img {
  max-width: 500px;
  height: auto;
  width: 80%;
}

:root {
  --bg: #070707;
  --bg-1: #0d0d0d;
  --bg-2: #131313;
  --bg-3: #161616;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --fg: #f3f4f5;
  --fg-mid: rgba(243,244,245,0.66);
  --fg-dim: rgba(243,244,245,0.42);
  --fg-faint: rgba(243,244,245,0.22);
  --accent: oklch(0.74 0.11 245);
  --accent-2: oklch(0.82 0.09 235);
  --accent-soft: oklch(0.74 0.11 245 / 0.14);
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 30% 0%, oklch(0.74 0.11 245 / 0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 30%, oklch(0.74 0.11 245 / 0.04), transparent 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
}

/* ───── Top bar ───── */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 28px; height: 28px; background: url('Weblycode/assets/weblycode-logo.jpg') center/cover; border-radius: 3px; }
.brand-name { font-weight: 500; letter-spacing: 0.02em; font-size: 15px; }
.brand-name span { color: var(--fg-mid); font-weight: 300; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-links a { color: var(--fg-dim); text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }

/* ───── Hero ───── */
.hero {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 88px 40px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero .eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 28px;
}
.hero .eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
  box-shadow: 0 0 0 3px oklch(0.74 0.11 245 / 0.18);
}
.hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-mid);
}
.hero .lede {
  font-size: 16px; color: var(--fg-mid);
  max-width: 380px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stats .stat {
  padding: 18px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.hero-stats .num em { color: var(--accent); font-style: normal; }
.hero-stats .lbl {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* ───── Filter bar ───── */
.filters {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 24px 40px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  appearance: none; cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-mid);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: all .2s ease;
}
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--fg);
}
.chip .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-faint);
  margin-left: 6px;
}
.chip[aria-pressed="true"] .count { color: var(--accent-2); }
.sort {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; gap: 14px; align-items: center;
}
.sort .v { color: var(--fg); }

/* ───── Grid ───── */
.grid-wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Cards */
.card {
  background: var(--bg-1);
  padding: 32px 30px 28px;
  display: flex; flex-direction: column; gap: 22px;
  cursor: pointer;
  position: relative;
  transition: background .35s ease, transform .35s ease;
  min-height: 420px;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.card:hover { background: var(--bg-2); }
.card:hover::before { transform: scaleY(1); }
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--bg-2);
}
.card:focus-visible::before { transform: scaleY(1); }
.card.is-active { background: var(--bg-2); }
.card.is-active::before { transform: scaleY(1); }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.stars {
  display: inline-flex; gap: 3px;
  color: var(--accent);
}
.stars svg { width: 12px; height: 12px; fill: currentColor; }
.stars .o { color: var(--fg-faint); fill: currentColor; }
.meta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.meta-tag .icon-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg-dim);
}
.meta-tag.hair .icon-dot { background: oklch(0.74 0.11 245); }
.meta-tag.spa .icon-dot { background: oklch(0.78 0.13 165); }

.quote {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--fg);
  flex: 1;
  font-weight: 300;
  text-wrap: pretty;
}
.quote::before {
  content: '\201C';
  display: block;
  font-size: 38px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.quote em {
  font-style: italic;
  background: linear-gradient(180deg, transparent 70%, var(--accent-soft) 70%);
}

.person {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--fg);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.avatar::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.04) 0 4px,
      rgba(255,255,255,0.01) 4px 8px);
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
  border-radius: 50%;
}
.avatar span {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--fg);
}
.person-info { flex: 1; min-width: 0; }
.person-name {
  font-size: 14px; font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.person-loc {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-faint);
  font-family: 'JetBrains Mono', monospace;
}
.card-foot .live-link {
  color: var(--fg-dim);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.card-foot .live-link:hover { color: var(--accent-2); }
.card-foot .live-link .arrow { font-size: 12px; }

/* ───── Side panel (live preview) ───── */
.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 50;
}
.panel-overlay.is-open { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(72vw, 1100px);
  background: var(--bg-1);
  border-left: 1px solid var(--line-strong);
  z-index: 51;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -40px 0 80px rgba(0,0,0,0.5);
}
.panel.is-open { transform: translateX(0); }

.panel-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
  flex-shrink: 0;
}
.panel-bar .dots { display: inline-flex; gap: 6px; }
.panel-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.panel-bar .url {
  flex: 1;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--fg-mid);
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.panel-bar .url svg { width: 10px; height: 10px; color: oklch(0.78 0.13 165); flex-shrink: 0; }
.panel-bar .stamp {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint);
  font-family: 'JetBrains Mono', monospace;
}
.panel-close {
  appearance: none; background: transparent; border: 0;
  color: var(--fg-dim); cursor: pointer;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease;
}
.panel-close:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.panel-close svg { width: 14px; height: 14px; }

.panel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
}
.panel-iframe-wrap {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.panel-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  background: #fff;
}
.panel-iframe-wrap.is-locked iframe {
  filter: blur(8px);
  pointer-events: none;
}
.iframe-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(7,7,7,0.45);
  gap: 18px;
}
.iframe-lock-overlay svg {
  width: 64px;
  height: 64px;
  color: var(--fg-mid);
  opacity: 0.8;
}
.iframe-lock-overlay .lock-text {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mid);
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

.panel-side {
  border-left: 1px solid var(--line);
  padding: 28px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.panel-side .salon-name {
  font-size: 22px; font-weight: 300; letter-spacing: -0.015em;
  margin: 0;
}
.panel-side .salon-name em { color: var(--fg-mid); font-style: italic; }
.panel-side .salon-loc {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-mid);
  margin-top: 6px;
}
.panel-quote {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
  font-weight: 300;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.panel-quote::before {
  content: '\201C';
  display: block;
  font-size: 30px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.panel-meta { display: flex; flex-direction: column; }
.pmeta-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pmeta-row .k {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint);
  align-self: center;
}
.pmeta-row .v { color: var(--fg); }
.pmeta-row .v.muted { color: var(--fg-mid); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.pmeta-row .v.live a {
  color: var(--accent-2); text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}
.pmeta-row .v.live a:hover { color: var(--fg); border-color: var(--accent-2); }

.panel-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-ghost {
  appearance: none;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 13px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.02); }
.btn-ghost .arrow { color: var(--fg-dim); transition: transform .2s ease, color .2s ease; }
.btn-ghost:hover .arrow { transform: translateX(2px); color: var(--fg); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-primary .arrow { color: rgba(0,0,0,0.5); }
.btn-primary:hover .arrow { color: var(--bg); }

/* ───── CTA ───── */
.cta {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 80px 40px 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  border-top: 1px solid var(--line);
}
.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 700px;
}
.cta h2 em { font-style: italic; color: var(--fg-mid); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: transform .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn .arrow { transition: transform .25s ease; }
.cta-btn:hover .arrow { transform: translateX(3px); }

/* ───── Footer ───── */
.footer {
  position: relative; z-index: 5;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint);
}
.footer a { color: var(--fg-dim); text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-wrap { padding: 32px 24px; }
  .filters { padding: 20px 24px 12px; }
  .panel { width: 100%; }
  .panel-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .panel-side { border-left: 0; border-top: 1px solid var(--line); max-height: 50vh; }
}
@media (max-width: 640px) {
  .topbar { padding: 18px 20px; }
  .nav-links { display: none; }
  .hero { padding: 48px 20px 32px; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stats .stat { padding: 14px 0; border-top: 1px solid var(--line); }
  .hero-stats .stat:first-child { border-top: 0; }
  .grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cta { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .footer { padding: 18px 20px; flex-direction: column; gap: 8px; }
}

/* ───── Notifications ───── */
.toast-notif {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  max-width: 320px;
  margin-top: 10px;
}

.toast-notif.show {
  transform: translateX(0);
}

.toast-notif .avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.toast-notif .text {
  font-size: 13px;
  line-height: 1.4;
}

.toast-notif .text strong {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

