/* ==========================================================================
   PartyVilla — main stylesheet
   1 Tokens · 2 Base · 3 Background layers · 4 Building blocks · 5 Header
   6 Home sections · 7 Builder · 8 Footer + floating actions · 9 Inner pages
   10 Login / staff menu · 11 Admin panel · 12 Motion · 13 Small screens
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* The original PartyVilla party palette */
  --bg: #1a0640;
  --bg-rgb: 26, 6, 64;
  --surface: #2a1068;
  --surface-2: #371a85;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #fff7ff;
  --muted: #d3c8f0;
  --pink: #f72585;
  --orange: #ff8500;
  --gold: #ffd60a;
  --cyan: #4cc9f0;
  --mint: #06ffa5;
  --violet: #7209b7;
  --ok: #06ffa5;
  --danger: #ff9db4;
  --grad: linear-gradient(90deg, #f72585, #ff8500);
  --grad-cool: linear-gradient(90deg, #4cc9f0, #06ffa5);
  --grad-rainbow: linear-gradient(90deg, #ffd60a, #f72585, #4cc9f0, #06ffa5);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 18px 44px rgba(6, 2, 20, .45);
  --shadow-sm: 0 8px 22px rgba(6, 2, 20, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: #1a1033; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Balloon cursor: replaces the pointer, but only once the script is running,
   so a failed script never leaves the visitor without a cursor. */
#balloon-cursor { position: fixed; top: 0; left: 0; width: 44px; height: 58px; z-index: 9999; pointer-events: none; display: none; will-change: transform; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor #balloon-cursor { display: block; }
#balloon-cursor .bc-in { transform-origin: 22px 26px; transition: transform .22s var(--ease); }
#balloon-cursor.is-hover .bc-in { transform: scale(1.2) rotate(-8deg); }
#balloon-cursor.is-down .bc-in { transform: scale(.86); }
#balloon-cursor.is-out { opacity: 0; }

/* ---------- 3. Background layers ---------- */
/* colour wash (0) → 3D balloons (1) → page content (3) */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, #4b0d8f 0, transparent 45%),
    radial-gradient(circle at 85% 20%, #b5179e 0, transparent 40%),
    radial-gradient(circle at 50% 80%, #1a0640 0, transparent 55%),
    linear-gradient(160deg, #1a0640 0, #3a0ca3 50%, #12002e 100%); }
/* The balloons are full strength at the screen edges and faded where the text
   column sits — big balloons, readable words, and the colours behind stay true. */
#bg3d { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .42; }
@media (min-width: 1280px) {
  #bg3d { opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, .36) 20%, rgba(0, 0, 0, .36) 80%, #000 100%);
            mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, .36) 20%, rgba(0, 0, 0, .36) 80%, #000 100%); }
}
main, .ftr { position: relative; z-index: 3; }

/* ---------- 4. Building blocks ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
section { padding: 88px 0; }
.band { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .035) 18%, rgba(255, 255, 255, .035) 82%, transparent); }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-cool); }
.lead { font-size: 1.1rem; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap; color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(247, 37, 133, .32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(247, 37, 133, .45); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .09); }
.btn-soft { background: rgba(247, 37, 133, .14); color: #ffd3e3; border-color: rgba(247, 37, 133, .35); }
.btn-soft:hover { background: var(--pink); color: #fff; border-color: transparent; }
.btn-shop { background: var(--grad-cool); color: #12002e; box-shadow: 0 8px 22px rgba(76, 201, 240, .28); }
.btn-shop:hover { box-shadow: 0 12px 28px rgba(76, 201, 240, .42); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg, .btn.big { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .4; pointer-events: none; }

.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.sec-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head-split > p { max-width: 320px; margin: 0 0 6px; text-align: right; }
.sec-more { margin-top: 34px; text-align: center; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.field small { color: var(--muted); font-size: .82rem; }
.form input, .form select, .form textarea, .fld input, .fld textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06); color: var(--text); font-size: 1rem; outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form textarea, .fld textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdb1d9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.form select option { background: var(--surface); color: var(--text); }
.form ::placeholder, .fld ::placeholder { color: #9486b8; opacity: 1; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(255, 255, 255, .35); }
.form input:focus, .form select:focus, .form textarea:focus, .fld input:focus, .fld textarea:focus {
  border-color: var(--pink); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(247, 37, 133, .2); }
.form .was-checked:invalid { border-color: var(--danger); }
.form-msg { background: rgba(255, 143, 168, .12); border: 1px solid rgba(255, 143, 168, .45); color: #ffd5de; padding: 12px 16px; border-radius: var(--r-sm); font-size: .94rem; }
.form-note { color: var(--muted); font-size: .84rem; text-align: center; }

/* ---------- 5. Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(var(--bg-rgb), .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.hdr.scrolled { background: rgba(var(--bg-rgb), .9); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(6, 2, 20, .35); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); transition: height .3s var(--ease); }
.hdr.scrolled .nav { height: 62px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; flex-shrink: 0; }
.logo-mark { width: 26px; height: 34px; transition: transform .4s var(--ease); transform-origin: 50% 90%; }
.logo:hover .logo-mark { transform: rotate(-10deg) translateY(-2px); }
.logo-img { height: 38px; width: auto; }
.logo-emoji { font-size: 1.5rem; }
.logo-text { background: linear-gradient(90deg, #ffd60a, #f72585, #4cc9f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: 0; color: #12002e; background: var(--mint); padding: 3px 10px; border-radius: 12px; }
.staff-nav { margin-left: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav-links a { position: relative; padding: 8px 13px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-links a[data-spy]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a.current { color: var(--text); }
.nav-links a.current::after { transform: scaleX(1); }
.nav-login { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; border: 1px solid var(--line-strong); color: var(--text) !important; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Home sections ---------- */
/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-solo .hero-grid { grid-template-columns: 1fr; max-width: 820px; }
.hero h1 em { font-style: italic; background: var(--grad-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero .lead { margin-top: 22px; max-width: 520px; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; color: var(--muted); font-size: .93rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--ok); }

/* Carousel */
.carousel { position: relative; aspect-ratio: 5 / 5.3; max-height: 540px; width: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.2s var(--ease), visibility 0s .8s; }
.slide.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12, 5, 30, .78)); }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 30px 74px; }
.slide-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.slide-text p { margin-top: 8px; color: rgba(255, 255, 255, .88); }
.car-ui { position: absolute; left: 30px; right: 22px; bottom: 20px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 2px; }
.dot { width: 28px; height: 28px; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background-color .3s; }
.dot.on::before { width: 24px; background: #fff; }
.car-arrows { display: flex; gap: 8px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 5, 30, .45); border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, transform .2s var(--ease); }
.car-btn:hover { background: rgba(12, 5, 30, .8); transform: scale(1.06); }

/* Perks strip */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(30, 19, 66, .88); }
.perks li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px; border-right: 1px solid var(--line); }
.perks li:last-child { border-right: 0; }
.perk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(76, 201, 240, .14); color: var(--cyan); flex-shrink: 0; font-size: 1.1rem; }
.perks b { display: block; font-size: .98rem; line-height: 1.3; }
.perks span:not(.perk-ic) { color: var(--muted); font-size: .86rem; line-height: 1.4; display: block; margin-top: 3px; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pkg-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.pkg-emoji { font-size: 3.4rem; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); transition: transform .4s var(--ease); }
.pkg:hover .pkg-emoji { transform: scale(1.12) rotate(-6deg); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--gold); color: #2a1a05; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.pkg-body > p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.ticks { margin-top: 16px; display: grid; gap: 7px; font-size: .92rem; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; }
.ticks .ic { color: var(--ok); margin-top: .25em; }
.pkg-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.pkg-price span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pkg-price b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--gold); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--gold)); opacity: .35; }
.steps li { position: relative; }
.step-n { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--pink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: .97rem; max-width: 320px; }

/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 16px; }
.gitem { position: relative; display: grid; place-items: center; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gitem.tall { grid-row: span 2; }
.gitem.wide { grid-column: span 2; }
.gemoji { font-size: 2.8rem; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); transition: transform .4s var(--ease); }
.gitem:hover .gemoji { transform: scale(1.15) rotate(6deg); }
.gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 13px; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(12, 5, 30, .82)); }

/* Rotating photos. The tile's own colour (and emoji) is always the back layer;
   photos fade in and out over it at random — see static/js/home.js */
.rot { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.rot img.on { opacity: 1; }
.pkg:hover .rot, .gitem:hover .rot { transform: scale(1.05); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; margin: auto; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 3, 22, .9); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--r); margin: 0 auto; }
.lightbox p { text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }

/* Testimonials */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .ic { fill: currentColor; stroke: none; }
.review blockquote { font-size: 1.02rem; }
.review figcaption { margin-top: auto; font-size: .92rem; }
.review figcaption span { display: block; color: var(--muted); font-size: .85rem; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pimg { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 3.6rem; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { padding: 18px 20px 20px; }
.pinfo h3 { font-size: 1.15rem; }
.prow { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--gold); }
.buy { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: #12002e; background: var(--grad-cool); padding: 8px 15px; border-radius: 999px; }
.buy .ic { transition: transform .2s var(--ease); }
.product:hover .buy .ic { transform: translateX(4px); }

/* Enquiry */
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.book-copy .lead { margin: 16px 0 28px; }
.book-grid .form { padding: 32px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list .ic { color: var(--cyan); font-size: 1.05rem; }
.contact-list a { color: var(--text); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-list a:hover { color: var(--gold); border-bottom-color: currentColor; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--hdr-h) + 24px); }
.faq-intro > p:not(.eyebrow) { color: var(--muted); margin: 14px 0 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s; }
.faq-item.open { border-color: rgba(247, 37, 133, .45); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; line-height: 1.4; }
.faq-ic { color: var(--mint); font-size: 1.1rem; transition: transform .35s var(--ease); }
.faq-item.open .faq-ic { transform: rotate(135deg); }
/* 0fr → 1fr animates to the answer's real height, however long it is */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- 7. Builder (Explore Decorations) ---------- */
.explore-box { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.steps-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.stepdot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); transition: background-color .3s, color .3s; }
.stepdot.done { background: var(--grad); border-color: transparent; color: #fff; }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; text-align: center; }
.step-hint { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chip { padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); font-weight: 500; font-size: .92rem; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.chip.sel { background: linear-gradient(135deg, #4cc9f0, #06ffa5); color: #12002e; border-color: transparent; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 2px solid var(--line); font-weight: 500; font-size: .9rem; text-align: left; transition: border-color .2s, background-color .2s, opacity .2s; }
.swatch:hover { border-color: var(--line-strong); }
.swatch.sel { border-color: var(--mint); background: rgba(6, 255, 165, .12); }
.swatch.dim { opacity: .4; }
.sw-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); flex-shrink: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.photo { text-align: center; }
.photo-img { height: 110px; border-radius: 14px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; position: relative; border: 3px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.photo:hover .photo-img { transform: translateY(-3px); }
.photo.sel .photo-img { border-color: var(--mint); }
.photo-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; background: var(--mint); color: #12002e; border-radius: 50%; display: none; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.photo.sel .photo-check { display: flex; }
.photo-name { display: block; margin-top: 8px; font-size: .86rem; font-weight: 500; }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.fld { display: block; text-align: left; margin-bottom: 16px; }
.fld span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.ai-loading { text-align: center; padding: 30px; font-size: 1.1rem; }
.ai-err { text-align: center; color: var(--danger); padding: 16px; }
.ai-result { white-space: pre-wrap; line-height: 1.7; background: rgba(0, 0, 0, .25); padding: 22px; border-radius: 14px; }
.ai-result:empty { display: none; }
.prompt-view { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.prompt-view pre { white-space: pre-wrap; background: rgba(0, 0, 0, .3); padding: 14px; border-radius: 12px; margin-top: 8px; font-size: .8rem; line-height: 1.5; }
.ai-note { color: var(--muted); font-size: .9rem; margin: 14px 0; text-align: center; }

/* ---------- 8. Footer + floating actions ---------- */
.ftr { background: rgba(10, 2, 30, .86); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: .95rem; }
.foot-grid h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.foot-grid > div > a:not(.logo) { display: block; width: fit-content; padding: 5px 0; color: var(--text); opacity: .85; transition: opacity .2s, color .2s, transform .2s var(--ease); }
.foot-grid > div > a:not(.logo):hover { opacity: 1; color: var(--gold); transform: translateX(3px); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--pink); border-color: transparent; transform: translateY(-2px); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 17px; border-radius: 999px; background: #1fb85a; color: #fff; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); transition: transform .25s var(--ease), box-shadow .25s; }
.wa-fab .ic { font-size: 1.35rem; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.mbar { display: none; }

/* ---------- 9. Inner pages ---------- */
.page-top { padding-top: 64px; min-height: 60vh; }
.page-top h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.page-body { margin-top: 26px; color: #ddd4f2; font-size: 1.05rem; line-height: 1.8; }
.page-body p + p { margin-top: 18px; }
.page-contact { margin-top: 36px; padding: 28px; display: grid; gap: 20px; justify-items: start; }
.page-contact h2 { font-size: 1.4rem; }
.page-cta { margin-top: 36px; }

.thanks { padding: 44px 36px; text-align: center; }
.thanks h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.thanks .lead { margin: 14px auto 0; max-width: 480px; }
.thanks-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(6, 255, 165, .14); color: var(--ok); font-size: 1.7rem; margin-bottom: 18px; }
.err-code { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.next-steps { counter-reset: s; display: grid; gap: 10px; text-align: left; max-width: 460px; margin: 28px auto 0; }
.next-steps li { counter-increment: s; position: relative; padding-left: 42px; color: var(--muted); }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 214, 10, .5); }
.next-steps b { color: var(--text); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 44px; }
.acct-action { display: flex; gap: 14px; align-items: center; padding: 20px; transition: transform .3s var(--ease), border-color .3s; }
.acct-action:hover { transform: translateY(-4px); border-color: rgba(247, 37, 133, .5); }
.acct-action .ic { font-size: 1.3rem; color: var(--gold); }
.acct-action span { display: block; color: var(--muted); font-size: .88rem; }
.acct-h2 { font-size: 1.5rem; margin-bottom: 16px; }
.inq-card { padding: 20px 22px; margin-bottom: 12px; }
.inq-top { display: flex; justify-content: space-between; gap: 12px; }
.inq-top span, .inq-meta { color: var(--muted); font-size: .88rem; }
.inq-card p:not(.inq-meta) { margin-top: 8px; }
.empty { padding: 32px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); margin-bottom: 14px; }

/* ---------- 10. Login / staff menu ---------- */
.portal { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.portal-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.portal-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; font-weight: 500; margin-bottom: 22px; transition: color .2s; }
.portal-back:hover { color: var(--text); }
.portal-logo { display: flex; justify-content: center; }
.portal-title { text-align: center; font-size: 1.7rem; margin-top: 14px; }
.portal-sub { text-align: center; color: var(--muted); margin-top: 6px; }
.portal-card .form, .portal-card .form-msg { margin-top: 22px; }
.portal-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.portal-foot a { color: var(--cyan); font-weight: 600; }
.portal-foot a:hover { text-decoration: underline; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 22px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.seg-btn { text-align: center; padding: 10px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); transition: background-color .25s, color .25s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(247, 37, 133, .3); }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 16px; }
.role-tab { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); transition: transform .2s var(--ease), border-color .2s, background-color .2s; }
.role-tab:hover { background: rgba(247, 37, 133, .14); border-color: var(--pink); transform: translateY(-2px); }
.role-icon { font-size: 1.5rem; }
.role-label { font-weight: 600; }
.role-note { font-size: .76rem; color: var(--muted); }

/* ---------- 11. Admin panel ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: rgba(12, 2, 36, .96); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; line-height: 1.2; }
.admin-brand small { font-family: var(--font-body); font-size: .7rem; color: var(--muted); font-weight: 400; }
.admin-side a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: background-color .2s, color .2s; }
.admin-side a:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.admin-side-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #8a7cae; margin: 14px 12px 4px; }
.admin-main { padding: 28px 32px; background: var(--bg); }
.admin-flash { background: rgba(6, 255, 165, .12); border: 1px solid rgba(6, 255, 165, .4); padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-head h2 { font-size: 1.6rem; }
.add { background: linear-gradient(90deg, #06ffa5, #4cc9f0); color: #12002e; padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ac-thumb { height: 120px; background-size: cover; background-position: center; }
.ac-body { padding: 12px 14px; }
.ac-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.mini { background: rgba(255, 255, 255, .1); border: 1px solid var(--line-strong); color: var(--text); padding: 7px 14px; border-radius: 9px; font-size: .82rem; font-weight: 500; }
.mini.del { background: rgba(255, 143, 168, .14); border-color: rgba(255, 143, 168, .4); color: #ffc2cf; }
.admin-form { max-width: 640px; }
.admin-form p { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.admin-form label { font-size: .85rem; color: var(--muted); }
.admin-form .helptext { font-size: .78rem; color: #8a7cae; }
.admin-form input, .admin-form textarea, .admin-form select,
.page-edit input, .page-edit textarea { padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .07); color: var(--text); outline: none; width: 100%; }
.admin-form input[type="checkbox"] { width: auto; align-self: flex-start; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus,
.page-edit input:focus, .page-edit textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(247, 37, 133, .2); }
.form-actions { display: flex; gap: 12px; margin-top: 18px; }
.page-edit { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.page-edit legend { padding: 0 8px; font-weight: 600; color: var(--cyan); }
.page-edit label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: .85rem; }
.inq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.inq .muted { margin-top: 4px; font-size: .9rem; }
.inq .tiny { color: #8a7cae; font-size: .75rem; margin-top: 6px; }
.muted { color: var(--muted); }

/* ---------- 12. Motion ---------- */
/* Sections ease in as they enter the screen. Only when scripts run, so the
   page is never left blank without them. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. Small screens ---------- */
@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .hero-grid { gap: 36px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perks li:nth-child(2) { border-right: 0; }
  .perks li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pkg-grid, .shop-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  section { padding: 64px 0; }

  /* Mobile menu */
  .nav { gap: 12px; }
  .nav-end { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px;
    background: rgba(var(--bg-rgb), .98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(6, 2, 20, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 13px 14px; border-radius: 12px; font-size: 1.02rem; color: var(--text); }
  .nav-links a[data-spy]::after { display: none; }
  .nav-links a.current { background: rgba(255, 255, 255, .07); }
  .nav-login { margin: 8px 0 0; justify-content: center; }

  .hero { padding-top: 40px; }
  .hero-grid, .book-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .carousel { aspect-ratio: 16 / 11; max-height: none; }
  .faq-intro { position: static; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 24px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--pink), var(--orange), var(--gold)); }
  .steps li { padding-left: 72px; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .sec-head-split { display: block; }
  .sec-head-split > p { text-align: left; margin-top: 14px; max-width: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .logo { font-size: 1.3rem; }
  .logo-mark { width: 22px; height: 29px; }
  .nav-cta { display: none; }           /* the bottom bar carries "Get a quote" on phones */
  .nav-shop { padding: 8px 13px; font-size: .84rem; gap: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .perks { margin-top: 44px; }
  .perks li { padding: 16px; gap: 10px; flex-direction: column; }

  /* Swipeable rows instead of very long stacks */
  .pkg-grid, .shop-grid, .review-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 18px; scrollbar-width: none; }
  .pkg-grid::-webkit-scrollbar, .shop-grid::-webkit-scrollbar, .review-grid::-webkit-scrollbar { display: none; }
  .pkg, .product, .review { flex: 0 0 82%; scroll-snap-align: center; }
  .js .pkg.reveal, .js .product.reveal, .js .review.reveal { opacity: 1; transform: none; }

  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .book-grid .form { padding: 22px; }
  .explore-box { padding: 24px 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-brand, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .acct-actions { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }

  /* Bottom action bar */
  .wa-fab { display: none; }
  .ftr { padding-bottom: 96px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(var(--bg-rgb), .96); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
  .mbar.away { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--line-strong); }
  .mbar .mbar-main { background: var(--grad); border-color: transparent; color: #fff; }
}
