/* =========================================================================
   FlowState Gallery — cinematic design system
   Warm-gold film aesthetic. Tokens in :root; per-gallery themes override inline.
   Signature animated effects (aurora, particles, spotlight, tilt, border-beam,
   shiny text, count-up, blur-in, click-spark) are vanilla CSS/JS — no framework.
   ========================================================================= */
:root {
  --bg: #0a0908;
  --bg2: #100d0b;
  --surface: #161310;
  --surface-hover: #1f1b16;
  --raised: #242019;
  --text: #f5efe6;
  --text-2: #c4b9a8;
  --muted: #8a7f6f;
  --muted-dim: #6f6557;
  --accent: #c9a96e;
  --accent-light: #e6cd99;
  --accent-dim: #8a7445;
  --rose: #c98a8a;
  --success: #86c393;
  --border: #2c261f;
  --border-strong: #3d352b;
  --gold-soft: rgba(201, 169, 110, 0.10);
  --hairline: rgba(245, 239, 230, 0.07);
  --hairline-strong: rgba(245, 239, 230, 0.15);

  /* liquid-glass surfaces */
  --glass: rgba(28, 23, 18, 0.55);
  --glass-strong: rgba(28, 23, 18, 0.72);
  --glass-border: rgba(201, 169, 110, 0.18);
  --glass-blur: blur(20px) saturate(1.4);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Lato", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  /* premium fluid easings (slower, expressive — never "cheap fast") */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fluid: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bar-h: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- atmospheric backdrop (aurora + grain + particles) ---------- */
#bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(201,169,110,0.10), transparent 70%),
    radial-gradient(55% 45% at 90% 10%, rgba(201,169,110,0.06), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(138,116,69,0.10), transparent 70%);
}
.aurora::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax;
  top: -20vmax; left: -15vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.07), transparent 60%);
  filter: blur(40px);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
.aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax;
  bottom: -20vmax; right: -15vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,116,69,0.08), transparent 60%);
  filter: blur(50px);
  animation: auroraDrift 30s ease-in-out infinite alternate-reverse;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}
/* fine film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
.display { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 300; letter-spacing: 0.01em; }
.h-xl { font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 300; }
.h-lg { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 400; }
.serif-it { font-style: italic; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 58ch; font-weight: 300; }

/* shiny animated gradient text (React-Bits "GradientText"/"ShinyText" vibe) */
.shiny {
  background: linear-gradient(110deg, var(--accent) 20%, var(--accent-light) 40%, #fff7e8 50%, var(--accent-light) 60%, var(--accent) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -220% center; } }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before { content: "✦"; font-size: 0.85em; opacity: 0.85; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ornament divider — ✦ ✦ ✦ */
.ornament { text-align: center; color: var(--accent-dim); font-size: 1rem; letter-spacing: 0.6em; margin: 1.2rem 0; user-select: none; }
.ornament::before { content: "✦ ✦ ✦"; }
.stars { text-align: center; color: var(--accent); letter-spacing: 1em; font-size: 0.8rem; opacity: 0.75; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 1; }
section { padding-block: clamp(60px, 9vw, 124px); position: relative; z-index: 1; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

main, footer, header, section { position: relative; z-index: 1; }

/* page has a bottom nav -> reserve room */
body.has-bottomnav { padding-bottom: calc(var(--bar-h) + var(--safe-bottom) + 12px); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.92em 1.7em; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap; overflow: hidden;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-gold { background: linear-gradient(145deg, var(--accent-light), var(--accent) 55%, var(--accent-dim)); color: #1a1408; box-shadow: 0 4px 16px -8px rgba(201,169,110,0.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(201,169,110,0.7); }
/* shimmer sweep on gold buttons */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: none;
}
.btn-gold:hover::after { animation: shimmer 0.9s var(--ease); }
@keyframes shimmer { to { transform: translateX(120%); } }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,0.012); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
/* WhatsApp: muted green-tinted glass so it keeps the brand cue without breaking
   the noir+gold palette (the bright solid green clashed). */
.btn-wa { background: rgba(37,211,102,0.07); color: #5fdc92; border-color: rgba(37,211,102,0.32); }
.btn-wa:hover { background: rgba(37,211,102,0.14); border-color: rgba(37,211,102,0.7); color: #7ce8a6; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.78rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }

/* film-frame corner motif */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 30px; height: 30px; pointer-events: none; z-index: 3; }
.frame::before { top: 16px; left: 16px; border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.frame::after { bottom: 16px; right: 16px; border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); }

/* ---------- top brand bar (slim) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.5em; font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.01em; }
.brand b { font-weight: 600; }
.brand .flow { color: var(--accent); }
.brand small { font-family: var(--body); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted-dim); align-self: center; }
.topbar .nav-cta { display: flex; align-items: center; gap: 12px; }

/* legacy .nav (dashboard/manage headers reuse this) */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a { font-size: 0.84rem; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}
/* keep app headers (dashboard/manage/marketing) from overflowing on phones:
   let the brand sit on its own line and the action buttons wrap + shrink */
@media (max-width: 600px) {
  .nav-in, .topbar-in { height: auto; min-height: 58px; padding-block: 9px; flex-wrap: wrap; gap: 8px 10px; }
  .nav-cta, .topbar .nav-cta { gap: 8px; flex-wrap: wrap; row-gap: 8px; }
  .nav .btn-sm, .topbar .btn-sm { padding: 0.5em 0.8em; font-size: 0.72rem; }
  .brand { font-size: 1.2rem; }
}

/* ---------- floating bottom nav (signature) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  height: calc(var(--bar-h) + var(--safe-bottom));
  padding: 0 max(18px, env(safe-area-inset-left)) var(--safe-bottom);
  display: grid; grid-template-columns: 1fr 1fr 92px 1fr 1fr; align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.45);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 100%; color: var(--muted); position: relative;
  -webkit-tap-highlight-color: transparent; transition: color 0.3s var(--ease);
}
.bn-item svg { width: 23px; height: 23px; transition: transform 0.3s var(--ease), filter 0.3s; }
.bn-item .bn-label { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; opacity: 0.8; }
.bn-item:hover { color: var(--accent); }
.bn-item:hover svg { transform: translateY(-2px); }
.bn-item.active { color: var(--accent); }
.bn-item.active svg { filter: drop-shadow(0 0 8px rgba(201,169,110,0.6)); }
.bn-item.active::before {
  content: ""; position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.bn-center { position: relative; overflow: visible; }
.bn-fab {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-light), var(--accent) 55%, var(--accent-dim));
  border: 2.5px solid var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(201,169,110,0.4); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.bn-fab svg { width: 26px; height: 26px; color: #1a1408; }
.bn-center:hover .bn-fab { transform: translate(-50%, -62%) scale(1.06); box-shadow: 0 10px 28px rgba(201,169,110,0.55); }
.bn-fab::before, .bn-fab::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.bn-fab::before { inset: -6px; border: 2px solid rgba(201,169,110,0.3); animation: ring 2.4s ease-in-out infinite; }
.bn-fab::after { inset: -12px; border: 1.5px solid rgba(201,169,110,0.14); animation: ring 2.4s ease-in-out infinite 0.6s; }
@keyframes ring { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.14); opacity: 0.7; } }
@media (max-width: 420px) {
  :root { --bar-h: 68px; }
  .bn-item .bn-label { display: none; }
  .bn-item svg { width: 24px; height: 24px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; overflow: hidden; }
/* warm cinematic glow so the ambient hero reads as intentional film grain,
   not an empty black void; sits above the video, below the content. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 72% 34%, rgba(201,169,110,0.16), transparent 68%),
    radial-gradient(70% 90% at 100% 0%, rgba(201,169,110,0.08), transparent 60%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,0.55) 0%, rgba(12,10,8,0.82) 55%, var(--bg) 100%);
}
.hero-media .tile-grid { position: absolute; inset: -2%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transform: scale(1.05); filter: saturate(0.9) brightness(0.85); }
.hero-media .tile-grid img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; animation: slowzoom 30s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.08); } }
.hero-content { position: relative; z-index: 1; padding-block: 120px; }
.letterbox { display: inline-flex; align-items: center; gap: 1em; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 26px; font-weight: 700; }
.letterbox .bar { width: 46px; height: 1px; background: var(--accent); opacity: 0.6; }
.rec { display: inline-flex; align-items: center; gap: 0.5em; }
.rec .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0533f; animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }
.hero h1 { max-width: 15ch; margin-bottom: 0.35em; }
.hero .lede { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--muted-dim); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--accent), transparent); animation: scrolldrop 1.8s ease-in-out infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- stats (with count-up) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.stat { background: var(--bg); padding: clamp(28px, 4vw, 52px) var(--gut); text-align: center; transition: background 0.3s; }
.stat:hover { background: var(--bg2); }
.stat .num { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--text); line-height: 1; font-weight: 300; }
.stat .lbl { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 680px){ .stats { grid-template-columns: 1fr; } }

/* ---------- pull quote ---------- */
.quote { text-align: center; }
.quote blockquote { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.25; max-width: 22ch; margin: 0 auto; font-weight: 300; }
.quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--accent-dim); letter-spacing: 0.5em; }

/* ---------- steps ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin-top: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 1px solid var(--border-strong); padding-top: 26px; transition: border-color 0.3s; }
.step:hover { border-color: var(--accent); }
.step .idx { font-family: var(--display); font-size: 2.6rem; color: var(--accent); line-height: 1; font-weight: 300; }
.step h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* ---------- feature list (spotlight cards) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: clamp(24px, 3vw, 40px); position: relative; transition: background 0.3s; }
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(201,169,110,0.10), transparent 70%);
}
.feature:hover { background: var(--surface); }
.feature:hover::before { opacity: 1; }
.feature h4 { font-size: 1.4rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.feature .ico { color: var(--accent); font-size: 1.3rem; margin-bottom: 16px; display: flex; }
.feature .ico svg { width: 1.4rem; height: 1.4rem; }
@media (max-width: 900px){ .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px){ .feature-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.price-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); }
.price-card:hover::before { transform: scaleX(1); }
.price-card.popular { border-color: rgba(201,169,110,0.5); box-shadow: 0 0 40px -18px rgba(201,169,110,0.4); }
.price-card.popular::before { transform: scaleX(1); }
/* border-beam on the popular card (21st.dev-style) */
.price-card.popular::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam, 0deg), transparent 0deg, var(--accent) 40deg, transparent 80deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 5s linear infinite; opacity: 0.8;
}
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes beam { to { --beam: 360deg; } }
.price-card .tag-pop { position: absolute; top: 0; right: 24px; background: var(--accent); color: #1a1408; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 0 0 8px 8px; z-index: 2; }
.price-card .pname { font-family: var(--display); font-size: 1.9rem; }
.price-card .pheadline { color: var(--muted); font-size: 0.9rem; min-height: 2.6em; margin: 6px 0 18px; }
.price-card .amount { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--accent); font-weight: 700; }
.price-card .amount .cur { font-size: 1.1rem; color: var(--muted); vertical-align: super; margin-right: 4px; font-weight: 400; }
.price-card .once { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim); margin: 10px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.price-card li { font-size: 0.9rem; color: var(--text-2); padding-left: 26px; position: relative; }
.price-card li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.7em; }
.price-card .btn { margin-top: auto; }
@media (max-width: 900px){ .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.demo-strip { margin-top: 30px; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,0.01); }
.demo-strip h4 { font-size: 1.4rem; }
.demo-strip .tags { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }

/* ---------- video grid (YouTube embeds) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.video-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.35s var(--ease); z-index: 2; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.7); border-color: rgba(201,169,110,0.3); }
.video-card:hover::before { transform: scaleX(1); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
@media (max-width: 860px){ .video-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.35s; }
.review:hover { transform: translateY(-4px); border-color: rgba(201,169,110,0.3); }
.review .stars-row { color: var(--accent); letter-spacing: 0.16em; font-size: 0.82rem; margin-bottom: 14px; }
.review p { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--text); }
.review cite { font-style: normal; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px){ .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: 0; color: var(--text); text-align: left; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.65rem); padding: 26px 40px 26px 0; position: relative; display: flex; justify-content: space-between; gap: 20px; transition: color 0.2s; }
.faq-q:hover { color: var(--accent); }
.faq-q .pm { color: var(--accent); font-family: var(--body); font-weight: 300; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { color: var(--muted); padding-bottom: 26px; margin: 0; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 28px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding-block: 64px 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h5 { font-family: var(--body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.foot a:hover { color: var(--accent); }
.foot .blurb { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-dim); font-size: 0.8rem; }
@media (max-width: 760px){ .foot-top { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   GUEST GALLERY + DASHBOARD shared
   ========================================================================= */
.gallery-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.gallery-hero .cover { position: absolute; inset: 0; }
.gallery-hero .cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.gallery-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,0.3), var(--bg)); z-index: 1; }
.gallery-hero .gh-content { position: relative; z-index: 2; padding-block: 56px; width: 100%; }
.gallery-hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 300; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 16px; }
/* guest-gallery hero — phone fixes: tame the empty top band, keep title legible
   over busy cover art, and give the title/meta room to breathe. */
@media (max-width: 560px) {
  .gallery-hero { min-height: 0; }
  .gallery-hero .cover img { opacity: 0.62; }
  .gallery-hero::after { background: linear-gradient(180deg, rgba(12,10,8,0.30) 0%, rgba(12,10,8,0.55) 48%, rgba(12,10,8,0.95) 100%); }
  .gallery-hero .gh-content { padding-block: clamp(64px, 14vh, 110px) 30px; }
  .gallery-hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.06; }
  .gallery-hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.22em; margin-bottom: 6px; }
  .gh-meta { gap: 6px 14px; margin-top: 12px; font-size: 0.74rem; }
}

/* guest gallery: immersive (no top header). A full-width glass action bar sticks
   to the top — it spans the whole viewport (so it never looks clipped at the
   sides) with its content centered in .wrap. Carries the section jump-nav
   (Photos / Guestbook / RSVP) on the left and the tools on the right. */
.gallery-bar { position: sticky; top: 0; z-index: 30; background: var(--glass-strong); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-border); }
.gallery-bar-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 14px; }
.gallery-jump { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.gallery-jump a { position: relative; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--text-2); transition: color 0.25s var(--ease); padding-block: 4px; }
.gallery-jump a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent); transition: right 0.3s var(--ease); }
.gallery-jump a:hover { color: var(--accent); }
.gallery-jump a:hover::after { right: 0; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* guest-gallery: top-bar Home/back affordance (always reachable on mobile) */
.gallery-bar-left { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; min-width: 0; }
.gallery-home { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--text); white-space: nowrap; transition: color 0.25s var(--ease); }
.gallery-home:hover { color: var(--accent); }
@media (max-width: 560px) { .gallery-home { font-size: 0.7rem; letter-spacing: 0.06em; } }
#gallery, #guestbook, #rsvp { scroll-margin-top: 76px; }
@media (max-width: 560px) {
  .gallery-bar-in { padding-block: 11px; gap: 10px 16px; }
  .gallery-jump { gap: 16px; }
  .gallery-jump a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .toolbar-actions .btn-sm { padding: 0.5em 0.8em; font-size: 0.72rem; }
}
.albums-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border: 1px solid var(--border-strong); border-radius: 100px; font-size: 0.78rem; color: var(--muted); transition: all 0.25s; }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent); background: var(--gold-soft); }

/* masonry photo grid */
/* responsive grid that fills the full content width (no dead space on the right)
   with uniform tiles — full images open in the lightbox on click. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; padding-block: 28px; }
.photo-grid .cell { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.photo-grid .cell img, .photo-grid .cell video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; display: block; transition: transform 0.6s var(--ease); }
.photo-grid .cell:hover img { transform: scale(1.05); }
.photo-grid .cell .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; font-size: 0.76rem; opacity: 0; transition: opacity 0.3s; }
.photo-grid .cell:hover .meta { opacity: 1; }
.photo-grid .cell .vbadge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 100px; padding: 3px 10px; font-size: 0.7rem; }

.empty { text-align: center; padding: clamp(50px, 9vw, 110px) 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty .ico { color: var(--accent); font-size: 2rem; }
.empty h3 { font-size: 1.8rem; margin: 14px 0 8px; }
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 40ch; }

/* upload dock */
.upload-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 38px 20px; text-align: center; transition: all 0.25s; cursor: pointer; display: block; }
.dropzone:hover { border-color: var(--accent-dim); }
.dropzone.drag { border-color: var(--accent); background: var(--gold-soft); }
.dropzone .ico { font-size: 2rem; color: var(--accent); }
.dropzone p { margin: 12px 0 0; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, textarea.input:focus, select.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.12); }
textarea.input { resize: vertical; min-height: 96px; }
.queue { margin-top: 16px; font-size: 0.84rem; color: var(--accent); }

/* floating upload button (guest) */
.fab { position: fixed; right: 20px; bottom: calc(var(--bar-h) + var(--safe-bottom) + 18px); z-index: 40; box-shadow: 0 10px 30px -10px rgba(201,169,110,0.6); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(7,6,5,0.82); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 9500; padding: 20px; }
.modal-back.show { display: flex; animation: fadeIn 0.25s ease; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 32px; max-height: 90vh; overflow: auto; animation: popIn 0.3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal h3 { font-size: 1.8rem; margin-bottom: 6px; }
.modal .close { float: right; background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.modal .close:hover { color: var(--text); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,4,3,0.95); display: none; align-items: center; justify-content: center; z-index: 9600; }
.lightbox.show { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 2rem; background: none; border: 0; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 52px; height: 52px; color: #fff; font-size: 1.6rem; opacity: 0.8; transition: all 0.25s; }
.lightbox .lb-nav:hover { opacity: 1; background: var(--accent); color: #1a1408; border-color: var(--accent); }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfc9bd; font-size: 0.84rem; }

/* notices */
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; border: 1px solid var(--border-strong); }
.notice.ok { border-color: rgba(134,195,147,0.4); color: var(--success); background: rgba(134,195,147,0.07); }
.notice.warn { border-color: rgba(201,169,110,0.4); color: var(--accent); background: var(--gold-soft); }
.notice.err { border-color: rgba(201,138,138,0.4); color: var(--rose); background: rgba(201,138,138,0.08); }

/* toast */
.toast { position: fixed; bottom: calc(var(--bar-h) + var(--safe-bottom) + 16px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface); border: 1px solid var(--accent); color: var(--text); padding: 0.9rem 1.4rem; border-radius: var(--radius-sm); font-size: 0.88rem; z-index: 10000; opacity: 0; transition: all 0.4s var(--ease); pointer-events: none; box-shadow: 0 12px 36px rgba(0,0,0,0.5); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* click spark canvas overlay */
#spark-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9990; pointer-events: none; }

/* =========================================================================
   AUTH pages
   ========================================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--bg2); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; border-right: 1px solid var(--border); }
.auth-art .tile-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; opacity: 0.38; }
.auth-art .tile-grid img { width:100%; height:100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,10,8,0.4), rgba(12,10,8,0.85)); }
.auth-art .blurbq { position: relative; z-index: 2; font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1.25; max-width: 18ch; font-weight: 300; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px var(--gut); }
.auth-form .inner { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 2.6rem; margin-bottom: 8px; font-weight: 400; }
.auth-form .sub { color: var(--muted); margin-bottom: 30px; }
.auth-form .alt { margin-top: 22px; font-size: 0.9rem; color: var(--muted); text-align: center; }
@media (max-width: 820px){ .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; padding-block: 36px; }
.gcard { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.gcard:hover { border-color: rgba(201,169,110,0.4); transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(0,0,0,0.7); }
.gcard .thumb { aspect-ratio: 16/10; background: var(--bg2); position: relative; overflow: hidden; }
.gcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcard .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-dim); font-family: var(--display); font-size: 3rem; background: radial-gradient(circle at 50% 40%, var(--surface-hover), var(--bg2)); }
.gcard .body { padding: 22px; }
.gcard h3 { font-size: 1.5rem; }
.gcard .sub { color: var(--muted); font-size: 0.82rem; margin: 4px 0 14px; }
.gcard .nums { display: flex; gap: 18px; color: var(--muted); font-size: 0.8rem; }
.gcard .nums b { color: var(--text); font-family: var(--display); font-size: 1.1rem; }

.manage-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; padding-block: 30px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; margin-bottom: 20px; }
.panel h3 { font-size: 1.35rem; margin-bottom: 4px; }
.panel .phint { color: var(--muted); font-size: 0.84rem; margin-bottom: 16px; }
.qr-box { background: var(--text); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.qr-box img { width: 100%; max-width: 220px; margin: 0 auto; }
.share-url { display: flex; gap: 8px; margin-top: 12px; }
.share-url input { flex: 1; font-size: 0.78rem; }
.statline { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.statline .s { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 6px; }
.statline .s b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--accent); }
.statline .s span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 12px 4px; font-size: 0.84rem; color: var(--muted); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a { cursor: pointer; padding-inline: 8px; }
/* JS-driven tab panels: hide inactive. Falls back to all-visible if JS is off. */
.tab-hidden { display: none !important; }
.mod-grid { columns: 3 180px; column-gap: 10px; }
.mod-cell { break-inside: avoid; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.mod-cell.pending { outline: 2px solid var(--accent); }
.mod-cell img, .mod-cell video { width: 100%; }
.mod-cell .actions { display: flex; gap: 4px; padding: 8px; background: var(--bg2); }
.mod-cell .actions button, .mod-cell .actions a { flex: 1; font-size: 0.68rem; padding: 6px 2px; text-align: center; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--muted); background: none; transition: all 0.2s; }
.mod-cell .actions button:hover { border-color: var(--accent); color: var(--accent); }
.mod-cell .actions .del { color: var(--rose); }
.gb-entry { border-bottom: 1px solid var(--border); padding: 16px 0; }
.gb-entry .who { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.gb-entry .msg { font-family: var(--display); font-style: italic; font-size: 1.15rem; margin: 6px 0; }
.color-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (max-width: 480px){ .color-row { grid-template-columns: 1fr; } }
.color-row .field { margin: 0; }
input[type=color] { width: 100%; height: 42px; background: var(--bg2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px; cursor: pointer; }
@media (max-width: 880px){ .manage-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Motion: load reveals + scroll reveals
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* staggered hero load-in (blur-in, React-Bits "BlurText" feel) */
.load-in > * { opacity: 0; transform: translateY(18px); filter: blur(8px); animation: blurIn 0.9s var(--ease) forwards; }
.load-in > *:nth-child(1) { animation-delay: 0.05s; }
.load-in > *:nth-child(2) { animation-delay: 0.18s; }
.load-in > *:nth-child(3) { animation-delay: 0.32s; }
.load-in > *:nth-child(4) { animation-delay: 0.46s; }
.load-in > *:nth-child(5) { animation-delay: 0.6s; }
@keyframes blurIn { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .load-in > * { opacity: 1; transform: none; filter: none; }
  .aurora::before, .aurora::after { animation: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(201,169,110,0.3); color: #fff; }

/* =========================================================================
   PREMIUM LAYER — intro splash, video hero, liquid glass, photo wall,
   live ticker, page transitions. (cinematic noir + gold, full motion)
   ========================================================================= */

/* ---- cinematic intro splash (immersive pattern + Skip) ---- */
#intro {
  position: fixed; inset: 0; z-index: 12000; background: #070605;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  opacity: 1; transition: opacity 0.8s var(--ease-fluid);
}
#intro.done { opacity: 0; pointer-events: none; }
#intro.instant { transition: none; }
#intro video { width: 100%; height: 100%; object-fit: cover; }
#intro .intro-skip {
  position: absolute; bottom: calc(28px + var(--safe-bottom)); right: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.6em 1.2em; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  backdrop-filter: blur(8px); transition: all 0.3s var(--ease);
}
#intro .intro-skip:hover { color: var(--accent); border-color: var(--accent); background: rgba(201,169,110,0.08); }
body.intro-lock { overflow: hidden; }

/* ---- video hero background ---- */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: scale(1.04); }
/* directional scrim: dark on the left/bottom (keeps the headline crisp) while the
   upper-right stays open so the gold film-grain glows through. */
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.6) 38%, rgba(10,9,8,0.12) 72%, transparent 100%),
    linear-gradient(180deg, transparent 40%, rgba(10,9,8,0.55) 80%, var(--bg) 100%);
}

/* ---- liquid glass surfaces ---- */
.topbar {
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}
.bottom-nav {
  background: var(--glass-strong); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
}
.glass {
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
}

/* give marquee buttons a slightly slower, more luxurious feel */
.btn { transition: transform 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid), background 0.4s, color 0.3s, border-color 0.3s; }

/* ---- interactive 3D photo wall ---- */
.photo-grid .cell { transform-style: preserve-3d; transition: transform 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid); will-change: transform; }
.photo-grid .cell:hover { box-shadow: 0 26px 60px -28px rgba(0,0,0,0.85), 0 0 0 1px rgba(201,169,110,0.25); z-index: 5; }
.photo-grid .cell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx,50%) var(--gy,50%), rgba(255,247,232,0.16), transparent 60%);
  mix-blend-mode: screen;
}
.photo-grid .cell:hover::after { opacity: 1; }

/* ---- live activity ticker ---- */
.live-ticker {
  display: flex; align-items: center; gap: 14px; overflow: hidden;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--glass); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border);
}
.live-ticker .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0533f; box-shadow: 0 0 10px #e0533f; flex-shrink: 0; animation: blink 1.6s infinite; }
.live-ticker .live-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); flex-shrink: 0; }
.live-ticker .live-track { position: relative; flex: 1; height: 1.4em; overflow: hidden; }
.live-ticker .live-item { position: absolute; inset: 0; display: flex; align-items: center; font-size: 0.86rem; color: var(--text-2); opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.live-ticker .live-item.show { opacity: 1; transform: none; }
.live-ticker .live-item b { color: var(--text); font-weight: 700; margin-right: 0.35em; }

/* ---- premium page transition (fade veil) ---- */
#page-veil { position: fixed; inset: 0; z-index: 11000; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease-fluid); }
#page-veil.in { opacity: 1; }

/* gold hairline that draws across section dividers on reveal */
.rule.reveal { transform: scaleX(0); transform-origin: center; transition: transform 0.9s var(--ease-fluid); }
.rule.reveal.in { transform: scaleX(1); }

/* refined glass panels in dashboard/manage on hover */
.panel { transition: border-color 0.4s var(--ease-fluid), transform 0.4s var(--ease-fluid); }
.gcard, .price-card, .review, .video-card { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none !important; }
  .hero-video video { display: none; }
  .rule.reveal { transform: none; }
}

/* =========================================================================
   ADMIN PANEL
   ========================================================================= */
.admin { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; align-items: start; }
.admin-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border); padding: 26px 18px; z-index: 2;
}
.admin-side .brand { font-size: 1.3rem; padding: 0 8px 4px; }
.admin-side .a-tag { display: inline-block; margin: 6px 8px 22px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 3px 9px; border-radius: 100px; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; }
.admin-side nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: all 0.25s var(--ease);
}
.admin-side nav a svg { width: 19px; height: 19px; opacity: 0.85; }
.admin-side nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.admin-side nav a.active { background: var(--gold-soft); color: var(--accent); }
.admin-side nav a.active svg { opacity: 1; }
.admin-side .a-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.admin-main { padding: 30px clamp(20px, 4vw, 48px) 80px; min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; }
.admin-head .eyebrow { margin-bottom: 8px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.astat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.astat:hover { border-color: rgba(201,169,110,0.35); transform: translateY(-2px); }
.astat .v { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent); font-weight: 300; }
.astat .k { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.astat.alert .v { color: var(--rose); }

.acard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.acard h2 { font-size: 1.4rem; margin-bottom: 4px; }
.acard .hint { color: var(--muted); font-size: 0.84rem; margin-bottom: 16px; }

.atable { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.atable th { text-align: left; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 14px 10px; border-bottom: 1px solid var(--border); }
.atable td { padding: 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.atable tr:hover td { background: rgba(255,255,255,0.015); }
.atable .em { color: var(--text); font-weight: 600; }
.atable .sub { color: var(--muted); font-size: 0.76rem; }
.atable-wrap { overflow-x: auto; }

/* NOTE: `.badge.admin` shares the `admin` class with the admin-panel layout
   container (.admin { min-height:100vh }). Explicitly reset layout props the
   badge must never inherit, so the role pill can't blow up to full height. */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; width: fit-content; min-height: 0; height: auto; grid-template-columns: none; vertical-align: middle; }
.badge.pending { color: var(--accent); background: var(--gold-soft); border-color: rgba(201,169,110,0.3); }
.badge.paid { color: var(--success); background: rgba(134,195,147,0.1); border-color: rgba(134,195,147,0.3); }
.badge.rejected { color: var(--rose); background: rgba(201,138,138,0.1); border-color: rgba(201,138,138,0.3); }
.badge.admin { color: var(--bg); background: var(--accent); }
.badge.muted { color: var(--muted); border-color: var(--border); }

.ainline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ainline input, .ainline select { padding: 7px 9px; font-size: 0.82rem; background: var(--bg2); border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; }
.ainline input[type=number] { width: 64px; }
.ainline input[type=text], .ainline input[type=password] { width: 130px; }
.atable td .badge { display: inline-flex; }
.btn-xs { padding: 6px 11px; font-size: 0.72rem; border-radius: 8px; }
.btn-danger { border: 1px solid rgba(201,138,138,0.4); color: var(--rose); background: none; }
.btn-danger:hover { background: rgba(201,138,138,0.1); border-color: var(--rose); }
.btn-ok { border: 1px solid rgba(134,195,147,0.4); color: var(--success); background: none; }
.btn-ok:hover { background: rgba(134,195,147,0.1); border-color: var(--success); }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs a { padding: 7px 14px; border-radius: 100px; font-size: 0.8rem; border: 1px solid var(--border-strong); color: var(--muted); }
.admin-tabs a.active, .admin-tabs a:hover { border-color: var(--accent); color: var(--accent); }

.amod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.amod-cell { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg2); }
.amod-cell img, .amod-cell video { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.amod-cell .amod-meta { padding: 8px 10px; font-size: 0.72rem; color: var(--muted); }
.amod-cell .amod-acts { display: flex; gap: 4px; padding: 8px; }
.amod-cell .amod-acts button { flex: 1; }

@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 14px; }
  .admin-side .brand, .admin-side .a-tag { margin: 0 10px 0 0; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .admin-side nav a { padding: 8px 10px; font-size: 0.82rem; }
  .admin-side nav a span.lbl { display: none; }
  .admin-side .a-foot { flex-direction: row; margin: 0 0 0 auto; padding: 0; border: 0; }
}

/* =========================================================================
   REFINEMENT LAYER — elevates the noir+gold system site-wide. Layered last so
   it tunes the base components: depth on surfaces, premium input focus, calmer
   vertical rhythm, richer accents. No structural/markup changes.
   ========================================================================= */

/* Calmer section rhythm — the old max (124px) left big black voids. */
section { padding-block: clamp(52px, 7vw, 96px); }

/* Raised surfaces: a subtle top-lit gradient, a hairline highlight along the
   top edge, and a soft depth shadow. Makes cards/panels feel crafted, not flat. */
.panel,
.acard,
.upload-card,
.gcard,
.video-card,
.price-card,
.astat,
.order-card,
.modal {
  background-image: linear-gradient(180deg, rgba(245,239,230,0.025), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(245,239,230,0.05), 0 22px 48px -34px rgba(0,0,0,0.95);
}
.panel:hover,
.acard:hover { border-color: var(--border-strong); }

/* Premium inputs: deeper field + a soft gold focus ring (replaces the default
   browser outline) so forms feel considered. */
.input,
.ainline input,
.ainline select,
textarea.input {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.input:focus,
.input:focus-visible,
.ainline input:focus,
.ainline select:focus,
textarea.input:focus {
  outline: none;
  border-color: var(--accent-dim);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.16);
}

/* Stats band: warm up on hover for a touch of life. */
.stat { transition: background 0.4s var(--ease); }
.stat:hover { background: var(--bg2); }
.stat:hover .num { color: var(--accent-light); transition: color 0.4s var(--ease); }

/* Section dividers a touch more refined. */
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent); }

/* Pricing: lift the highlighted plan a little more for clear hierarchy. */
.price-card.popular { transform: translateY(-6px); }
.price-card.popular:hover { transform: translateY(-10px); }

/* Eyebrow labels: consistent gold, slightly tighter tracking for elegance. */
.eyebrow { color: var(--accent); }

/* Buttons: a hair more presence at rest. */
.btn-gold { box-shadow: 0 6px 20px -10px rgba(201,169,110,0.7); }

/* Native file inputs: the default "Choose File / No file chosen" control looks
   unstyled and off-theme (e.g. the guestbook video field). Style the field and
   its button to match — a ghost-button picker with muted helper text. */
input[type="file"] {
  display: block; width: 100%; cursor: pointer;
  padding: 9px 12px; font-size: 0.85rem; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
input[type="file"]::file-selector-button {
  font-family: inherit; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.04em;
  margin-right: 14px; padding: 0.55em 1.15em; border-radius: 9px;
  border: 1px solid var(--border-strong); background: rgba(245,239,230,0.02); color: var(--text);
  cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); background: var(--gold-soft); }
input[type="file"]:focus, input[type="file"]:focus-visible { outline: none; border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(201,169,110,0.16); }
