
/* Layout idea: a night-sky hero where the stupa itself is the progress bar (it fills with lime-white as donations arrive),
   then lime-washed (chunam) sections in saffron and deep indigo, like a vihara wall at dusk. */
:root{
  --night:#141833;
  --night-2:#1f2550;
  --chunam:#f5f4f0;
  --wall:#e9e6dd;
  --ink:#1c1d29;
  --muted:#5b5d6b;
  --kasaya:#c96a1b;
  --kasaya-soft:#f4dcc2;
  --gold:#e9b850;
  --line:#d8d4c8;
  --ok:#2f7a4f;
  --display-si:"Noto Serif Sinhala", "Iskoola Pota", serif;
  --body-si:"Noto Sans Sinhala", "Iskoola Pota", sans-serif;
  --display-en:"Marcellus", "Georgia", serif;
  --body-en:"Figtree", "Segoe UI", system-ui, sans-serif;
  --display:var(--display-si);
  --body:var(--body-si);
  --radius:14px;
  color-scheme: light;
}
html[lang="en"]{ --display:var(--display-en); --body:var(--body-en); }
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:72px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation:none !important; transition:none !important; } }
body{ margin:0; background:var(--chunam); color:var(--ink); font-family:var(--body); font-size:17px; line-height:1.7; }
html[lang="si"] body{ font-size:16.5px; line-height:1.85; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ font-family:var(--display); line-height:1.3; text-wrap:balance; margin:0; font-weight:600; }
:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:6px; }
.wrap{ width:min(1160px, 100% - 40px); margin-inline:auto; }
.num{ font-variant-numeric: tabular-nums; }

/* sample note */
.sample-note{ background:var(--kasaya); color:#fff; font-size:13px; text-align:center; padding:6px 16px; }
.sample-note b{ font-weight:700; }

/* NAV */
.nav{ position:sticky; top:0; z-index:40; background:rgba(20,24,51,.92); backdrop-filter:blur(10px); color:#fff; border-bottom:1px solid rgba(255,255,255,.08); }
.nav .wrap{ display:flex; align-items:center; gap:20px; height:64px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-family:var(--display); font-size:18px; white-space:nowrap; }
.brand svg{ width:34px; height:34px; flex:none; }
.nav ul{ display:flex; gap:4px; list-style:none; margin:0 0 0 auto; padding:0; }
.nav ul a{ display:block; padding:8px 12px; text-decoration:none; font-size:14.5px; opacity:.85; border-radius:8px; }
.nav ul a:hover{ opacity:1; background:rgba(255,255,255,.08); }
.lang{ display:flex; border:1px solid rgba(255,255,255,.3); border-radius:999px; padding:3px; flex:none; }
.lang button{ background:none; border:0; color:#fff; font:inherit; font-size:13px; padding:4px 11px; border-radius:999px; cursor:pointer; }
.lang button[aria-pressed="true"]{ background:var(--gold); color:var(--night); font-weight:700; }
.btn{ display:inline-flex; align-items:center; gap:8px; border:0; cursor:pointer; text-decoration:none; font:inherit; font-weight:700; font-size:15px; padding:12px 22px; border-radius:999px; transition:transform .15s, background .15s, box-shadow .15s; }
.btn:hover{ transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:var(--night); box-shadow:0 6px 24px -8px rgba(233,184,80,.7); }
.btn-gold:hover{ background:#f3c867; }
.btn-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.4); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); }
.btn-dark{ background:var(--night); color:#fff; }
.btn-dark:hover{ background:var(--night-2); }
.nav .btn{ padding:9px 18px; font-size:14px; flex:none; }
.menu-btn{ display:none; background:none; border:0; color:#fff; cursor:pointer; padding:6px; margin-left:auto; }
@media (max-width: 980px){
  .nav ul{ display:none; position:absolute; top:64px; left:0; right:0; flex-direction:column; background:var(--night); padding:10px 20px 18px; }
  .nav ul.open{ display:flex; }
  .menu-btn{ display:block; }
  .nav .btn-donate-nav{ display:none; }
}

/* HERO */
.hero{ position:relative; background:radial-gradient(120% 90% at 70% 10%, #2c3470 0%, var(--night) 55%, #0d1024 100%); color:#fff; overflow:hidden; }
.hero canvas{ position:absolute; inset:0; width:100%; height:100%; }
.hero .wrap{ position:relative; display:grid; grid-template-columns: 1.1fr .9fr; gap:40px; align-items:center; padding:64px 0 72px; }
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-size:13.5px; letter-spacing:.08em; color:var(--gold); text-transform:uppercase; }
html[lang="si"] .eyebrow{ letter-spacing:0; text-transform:none; font-size:15px; }
.eyebrow::before{ content:""; width:28px; height:1px; background:var(--gold); }
.hero h1{ font-size:clamp(34px, 5.2vw, 62px); font-weight:800; margin:16px 0 18px; }
html[lang="en"] .hero h1{ font-weight:400; letter-spacing:.01em; }
.hero h1 em{ font-style:normal; color:var(--gold); }
.hero p.lead{ font-size:18.5px; color:#d6d8ea; max-width:34em; margin:0 0 28px; }
.hero .ctas{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(255,255,255,.12); border-radius:var(--radius); overflow:hidden; margin-top:40px; max-width:560px; }
.hero-stats div{ background:rgba(20,24,51,.75); padding:14px 16px; }
.hero-stats b{ display:block; font-size:22px; font-family:var(--display-en); font-weight:400; color:#fff; }
.hero-stats span{ font-size:13px; color:#aeb1cc; }
.stupa-box{ position:relative; display:grid; justify-items:center; }
.stupa-box svg{ width:min(400px, 100%); height:auto; overflow:visible; }
.stupa-legend{ display:flex; gap:18px; font-size:13px; color:#c3c6de; margin-top:6px; flex-wrap:wrap; justify-content:center; }
.stupa-legend i{ display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.pct-badge{ position:absolute; top:14%; right:4%; background:var(--gold); color:var(--night); border-radius:999px; padding:8px 14px; font-weight:700; font-size:14px; box-shadow:0 8px 30px -10px rgba(233,184,80,.8); }
.fill-edge{ animation: shimmer 3.2s ease-in-out infinite; }
@keyframes shimmer{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }
.halo{ animation: breathe 6s ease-in-out infinite; transform-origin:200px 230px; }
@keyframes breathe{ 0%,100%{ opacity:.55; transform:scale(1);} 50%{ opacity:.9; transform:scale(1.04);} }
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns:1fr; padding:44px 0 56px; }
  .stupa-box{ order:-1; }
  .stupa-box svg{ width:min(300px, 80%); }
}

/* SECTIONS */
section{ padding:88px 0; }
.sec-head{ display:grid; gap:12px; max-width:720px; margin-bottom:44px; }
.sec-head .eyebrow{ color:var(--kasaya); }
.sec-head .eyebrow::before{ background:var(--kasaya); }
.sec-head h2{ font-size:clamp(28px, 3.6vw, 42px); }
html[lang="en"] .sec-head h2{ font-weight:400; }
.sec-head p{ color:var(--muted); margin:0; max-width:62ch; }
.lotus-div{ display:flex; justify-content:center; padding:0; color:var(--kasaya); }
.lotus-div svg{ width:120px; height:28px; }

/* ABOUT */
.about{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.about .text p{ margin:0 0 16px; max-width:60ch; }
.about blockquote{ margin:24px 0 0; padding:18px 22px; border-left:3px solid var(--kasaya); background:#fff; border-radius:0 var(--radius) var(--radius) 0; font-family:var(--display); font-size:18px; }
.about blockquote cite{ display:block; font-style:normal; font-family:var(--body); font-size:14px; color:var(--muted); margin-top:8px; }
.about-figure{ position:relative; border-radius:20px; overflow:hidden; aspect-ratio: 4/3.2; box-shadow:0 30px 60px -30px rgba(20,24,51,.5); }
.about-figure img{ width:100%; height:100%; object-fit:cover; }
.about-figure figcaption{ position:absolute; left:14px; bottom:14px; background:rgba(20,24,51,.8); color:#fff; font-size:13px; padding:6px 12px; border-radius:999px; }
.facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:28px; }
.facts div{ background:var(--wall); border-radius:12px; padding:14px; }
.facts b{ display:block; font-family:var(--display-en); font-size:22px; font-weight:400; color:var(--kasaya); }
.facts span{ font-size:13.5px; color:var(--muted); }
@media (max-width: 860px){ .about{ grid-template-columns:1fr; gap:32px; } }

/* PROJECTS */
.projects-bg{ background:var(--wall); }
.projects{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.proj{ background:#fff; border-radius:20px; padding:30px; display:grid; gap:18px; align-content:start; border:1px solid var(--line); }
.proj-top{ display:flex; gap:16px; align-items:center; }
.proj-ico{ width:58px; height:58px; border-radius:16px; background:var(--night); display:grid; place-items:center; flex:none; }
.proj-ico svg{ width:36px; height:36px; }
.proj h3{ font-size:24px; }
.proj p{ margin:0; color:var(--muted); }
.money{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.money b{ font-family:var(--display-en); font-weight:400; font-size:28px; }
.money span{ color:var(--muted); font-size:14px; }
.bar{ height:12px; border-radius:999px; background:var(--wall); overflow:hidden; }
.bar i{ display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, var(--kasaya), var(--gold)); }
.phases{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.phases li{ display:grid; grid-template-columns:22px 1fr auto; gap:10px; align-items:center; padding:9px 0; border-top:1px dashed var(--line); font-size:15px; }
.phases li .dot{ width:14px; height:14px; border-radius:50%; border:2px solid var(--line); }
.phases li.done .dot{ background:var(--ok); border-color:var(--ok); }
.phases li.now .dot{ background:var(--gold); border-color:var(--kasaya); box-shadow:0 0 0 4px var(--kasaya-soft); }
.phases li .st{ font-size:12.5px; padding:2px 10px; border-radius:999px; background:var(--wall); color:var(--muted); white-space:nowrap; }
.phases li.done .st{ background:#dcefe3; color:var(--ok); }
.phases li.now .st{ background:var(--kasaya-soft); color:#8a4510; font-weight:700; }
@media (max-width: 860px){ .projects{ grid-template-columns:1fr; } .proj{ padding:22px; } }

/* OFFERINGS */
.offer-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
.offer{ position:relative; text-align:left; background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; cursor:pointer; font:inherit; color:inherit; display:grid; gap:8px; transition:border-color .15s, transform .15s, box-shadow .15s; }
.offer:hover{ border-color:var(--kasaya); transform:translateY(-2px); box-shadow:0 16px 40px -24px rgba(201,106,27,.6); }
.offer[aria-pressed="true"]{ border-color:var(--kasaya); box-shadow:0 0 0 3px var(--kasaya-soft); }
.offer svg{ width:44px; height:44px; }
.offer h3{ font-size:18px; }
.offer .price{ font-family:var(--display-en); font-size:24px; color:var(--kasaya); }
.offer .usd{ font-size:13px; color:var(--muted); }
.offer small{ color:var(--muted); font-size:13.5px; line-height:1.5; }

/* GALLERY */
.gal-bar{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.chip{ border:1px solid var(--line); background:#fff; font:inherit; font-size:14px; padding:7px 16px; border-radius:999px; cursor:pointer; color:var(--ink); }
.chip[aria-pressed="true"]{ background:var(--night); border-color:var(--night); color:#fff; }
.gallery{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:210px; gap:12px; }
.gallery button{ position:relative; padding:0; border:0; border-radius:14px; overflow:hidden; cursor:zoom-in; background:var(--wall); }
.gallery button.big{ grid-column:span 2; grid-row:span 2; }
.gallery button.wide{ grid-column:span 2; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.gallery button:hover img{ transform:scale(1.04); }
.gallery .cap{ position:absolute; left:0; right:0; bottom:0; padding:28px 14px 12px; background:linear-gradient(transparent, rgba(13,16,36,.85)); color:#fff; text-align:left; font-size:14px; line-height:1.45; }
.gallery .cap small{ display:block; opacity:.75; font-size:12px; }
.gallery .tag{ position:absolute; top:10px; left:10px; background:rgba(255,255,255,.9); color:var(--ink); font-size:11.5px; padding:2px 9px; border-radius:999px; }
@media (max-width: 860px){ .gallery{ grid-template-columns:repeat(2,1fr); grid-auto-rows:170px; } }
@media (max-width: 460px){ .gallery{ grid-template-columns:1fr; grid-auto-rows:220px; } .gallery button.big, .gallery button.wide{ grid-column:auto; grid-row:auto; } }
.gal-help{ margin-top:18px; font-size:13.5px; color:var(--muted); }

/* lightbox */
dialog.lb{ border:0; padding:0; background:transparent; max-width:min(1100px, 94vw); width:100%; }
dialog.lb::backdrop{ background:rgba(10,12,28,.9); }
.lb-inner{ position:relative; display:grid; gap:10px; }
.lb-inner img{ width:100%; max-height:78vh; object-fit:contain; border-radius:12px; background:#000; }
.lb-cap{ color:#fff; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.lb-cap small{ color:#aeb1cc; }
.lb-btn{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:0; background:rgba(255,255,255,.9); cursor:pointer; font-size:22px; display:grid; place-items:center; }
.lb-prev{ left:10px; } .lb-next{ right:10px; }
.lb-close{ position:absolute; top:-6px; right:-6px; transform:none; width:40px; height:40px; background:var(--gold); }

/* TIMELINE */
.timeline-bg{ background:var(--night); color:#fff; }
.timeline-bg .sec-head p{ color:#c3c6de; }
.timeline-bg .sec-head .eyebrow{ color:var(--gold); }
.timeline-bg .sec-head .eyebrow::before{ background:var(--gold); }
.tl{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative; }
.tl::before{ content:""; position:absolute; top:11px; left:0; right:0; height:2px; background:rgba(255,255,255,.18); }
.tl li{ position:relative; padding:36px 18px 0 0; }
.tl li::before{ content:""; position:absolute; top:3px; left:0; width:18px; height:18px; border-radius:50%; background:var(--night); border:2px solid rgba(255,255,255,.4); }
.tl li.done::before{ background:var(--gold); border-color:var(--gold); }
.tl li.next::before{ border-style:dashed; border-color:var(--gold); }
.tl time{ font-family:var(--display-en); color:var(--gold); font-size:15px; }
.tl h3{ font-size:17px; margin:4px 0 6px; }
.tl p{ margin:0; font-size:14.5px; color:#c3c6de; line-height:1.6; }
@media (max-width: 860px){
  .tl{ grid-template-columns:1fr; gap:22px; padding-left:30px; }
  .tl::before{ top:0; bottom:0; left:8px; right:auto; width:2px; height:auto; }
  .tl li{ padding:0; }
  .tl li::before{ left:-30px; top:4px; }
}

/* DONATE */
.donate{ display:grid; grid-template-columns: 1.05fr .95fr; gap:28px; align-items:start; }
.tabs{ display:flex; gap:6px; background:var(--wall); padding:5px; border-radius:999px; width:max-content; max-width:100%; margin-bottom:18px; }
.tabs button{ border:0; background:none; font:inherit; font-size:14.5px; padding:8px 18px; border-radius:999px; cursor:pointer; color:var(--muted); }
.tabs button[aria-selected="true"]{ background:#fff; color:var(--ink); font-weight:700; box-shadow:0 2px 8px -4px rgba(0,0,0,.2); }
.bank{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px; }
.bank h3{ font-size:20px; margin-bottom:14px; }
.bank dl{ margin:0; display:grid; gap:0; }
.bank .row{ display:grid; grid-template-columns: 150px 1fr auto; gap:12px; align-items:center; padding:11px 0; border-top:1px solid var(--wall); }
.bank dt{ color:var(--muted); font-size:14px; }
.bank dd{ margin:0; font-weight:500; word-break:break-word; }
.copy{ border:1px solid var(--line); background:var(--chunam); border-radius:8px; font:inherit; font-size:12.5px; padding:4px 10px; cursor:pointer; color:var(--ink); }
.copy.ok{ background:#dcefe3; border-color:#b7dcc4; color:var(--ok); }
.bank .note{ margin:16px 0 0; font-size:14px; color:var(--muted); background:var(--chunam); padding:12px 14px; border-radius:12px; }
@media (max-width: 560px){ .bank .row{ grid-template-columns:1fr auto; } .bank dt{ grid-column:1 / -1; } }

.pledge{ background:var(--night); color:#fff; border-radius:20px; padding:28px; display:grid; gap:14px; }
.pledge h3{ font-size:22px; }
.pledge p.sub{ margin:0; color:#c3c6de; font-size:14.5px; }
.field{ display:grid; gap:6px; }
.field label{ font-size:13.5px; color:#c3c6de; }
.field input, .field select, .field textarea{ font:inherit; font-size:15px; padding:11px 13px; border-radius:10px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; width:100%; }
.field select option{ color:var(--ink); }
.field textarea{ min-height:80px; resize:vertical; }
.two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.amts{ display:flex; flex-wrap:wrap; gap:8px; }
.amts button{ border:1px solid rgba(255,255,255,.25); background:transparent; color:#fff; font:inherit; font-size:14px; padding:6px 14px; border-radius:999px; cursor:pointer; }
.amts button:hover{ border-color:var(--gold); color:var(--gold); }
.pledge .out{ display:none; background:rgba(255,255,255,.06); border:1px dashed rgba(233,184,80,.6); border-radius:14px; padding:16px; gap:12px; }
.pledge .out.show{ display:grid; }
.pledge .out pre{ margin:0; white-space:pre-wrap; font-family:var(--body); font-size:14px; color:#e8e9f4; }
.pledge .out .acts{ display:flex; flex-wrap:wrap; gap:10px; }
.pledge .err{ color:#ffb4a0; font-size:14px; min-height:1em; margin:0; }
@media (max-width: 960px){ .donate{ grid-template-columns:1fr; } }
@media (max-width: 460px){ .two{ grid-template-columns:1fr; } }

/* MERIT strip */
.merit{ background:linear-gradient(90deg, var(--kasaya), #d98b2f); color:#fff; padding:44px 0; text-align:center; }
.merit p{ margin:0 auto; font-family:var(--display); font-size:clamp(20px, 2.6vw, 28px); max-width:30em; }
.merit small{ display:block; margin-top:8px; opacity:.85; font-size:14px; font-family:var(--body); }

/* CONTACT / FOOTER */
.contact{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ccard{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; display:grid; gap:6px; align-content:start; }
.ccard h3{ font-size:17px; }
.ccard p{ margin:0; color:var(--muted); font-size:15px; }
.ccard a{ color:var(--kasaya); font-weight:500; }
@media (max-width: 860px){ .contact{ grid-template-columns:1fr; } }
footer{ background:#0d1024; color:#aeb1cc; padding:36px 0; font-size:14px; }
footer .wrap{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; }
footer .brand{ color:#fff; }

/* ---- additions for Thilakarathnarama ---- */
.hero-figure{ margin:0; }
.about-figure{ aspect-ratio:auto; }
.about-figure img{ height:auto; }
.poster-link{ display:inline-flex; gap:8px; align-items:center; margin-top:14px; font-size:14.5px; color:var(--kasaya); font-weight:500; cursor:pointer; background:none; border:0; padding:0; font-family:inherit; }
.facts b{ font-size:20px; }

.phase-grid{ display:grid; grid-template-columns:1.25fr 1fr; gap:24px; }
.phase-side{ display:grid; gap:24px; align-content:start; }
.proj.main{ border:2px solid var(--kasaya); }
.badge{ display:inline-block; font-size:12.5px; font-weight:700; padding:3px 12px; border-radius:999px; background:var(--kasaya-soft); color:#8a4510; }
.badge.later{ background:var(--wall); color:var(--muted); font-weight:500; }
.devalas{ display:flex; flex-wrap:wrap; gap:8px; }
.devalas span{ background:var(--chunam); border:1px solid var(--line); border-radius:999px; padding:3px 12px; font-size:14px; }
.spec{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.spec div{ background:var(--chunam); border-radius:12px; padding:12px; }
.spec b{ display:block; font-family:var(--display-en); font-weight:400; font-size:19px; }
.spec span{ font-size:13px; color:var(--muted); }
@media (max-width: 860px){ .phase-grid{ grid-template-columns:1fr; } .spec{ grid-template-columns:1fr 1fr; } }

/* materials ledger */
.ledger-bg{ background:var(--night); color:#fff; }
.ledger-bg .sec-head p{ color:#c3c6de; }
.ledger-bg .sec-head .eyebrow{ color:var(--gold); }
.ledger-bg .sec-head .eyebrow::before{ background:var(--gold); }
.ledger-bg .sec-head h2{ color:#fff; }
.mats{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:14px; }
.mat{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:18px; display:grid; gap:10px; transition:border-color .15s, background .15s; }
.mat.sel{ border-color:var(--gold); background:rgba(233,184,80,.09); }
.mat-top{ display:grid; grid-template-columns:44px 1fr; gap:12px; align-items:start; }
.mat-top svg{ width:44px; height:44px; }
.mat h3{ font-size:17px; color:#fff; }
.mat h3 small{ display:block; font-family:var(--body-en); font-size:12.5px; color:#9ea2c2; font-weight:400; margin-top:2px; }
.mat-nums{ display:flex; justify-content:space-between; gap:10px; font-size:13.5px; color:#c3c6de; flex-wrap:wrap; }
.mat-nums b{ color:#fff; font-weight:500; }
.mbar{ height:6px; border-radius:999px; background:rgba(255,255,255,.1); overflow:hidden; }
.mbar i{ display:block; height:100%; background:var(--gold); border-radius:inherit; }
.mat-ctl{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.step{ display:flex; align-items:center; border:1px solid rgba(255,255,255,.25); border-radius:999px; overflow:hidden; }
.step button{ width:34px; height:34px; border:0; background:transparent; color:#fff; font-size:18px; cursor:pointer; }
.step button:hover{ background:rgba(255,255,255,.1); }
.step input{ width:58px; text-align:center; border:0; background:transparent; color:#fff; font:inherit; font-size:15px; padding:0; -moz-appearance:textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.mat-ctl .unit{ font-size:13px; color:#9ea2c2; }
.mat-ctl .full{ margin-left:auto; border:1px solid rgba(233,184,80,.6); background:transparent; color:var(--gold); font:inherit; font-size:13px; padding:6px 12px; border-radius:999px; cursor:pointer; }
.mat-ctl .full:hover{ background:rgba(233,184,80,.12); }
.mat .sub{ font-size:14px; color:var(--gold); min-height:1.4em; }
.ledger-total{ margin-top:22px; display:flex; flex-wrap:wrap; gap:16px 28px; align-items:center; justify-content:space-between; background:linear-gradient(90deg, #7a1f12, #9b2f17); border-radius:18px; padding:18px 24px; }
.ledger-total .lt{ font-size:14px; color:#f3d7c8; }
.ledger-total .lt b{ display:block; font-family:var(--display-en); font-weight:400; font-size:26px; color:#fff; }
.cart{ position:sticky; bottom:14px; z-index:30; margin-top:18px; display:none; align-items:center; gap:14px 22px; flex-wrap:wrap; background:var(--gold); color:var(--night); border-radius:18px; padding:14px 20px; box-shadow:0 18px 40px -16px rgba(0,0,0,.6); }
.cart.show{ display:flex; }
.cart .ct{ font-weight:700; font-size:18px; }
.cart .cs{ font-size:13.5px; }
.cart .btn{ margin-left:auto; }
.cart .clear{ background:none; border:0; font:inherit; font-size:13.5px; text-decoration:underline; cursor:pointer; color:var(--night); }

.cart-list{ display:grid; gap:6px; background:rgba(255,255,255,.06); border-radius:12px; padding:12px 14px; font-size:14px; }
.cart-list div{ display:flex; justify-content:space-between; gap:10px; }
.cart-list .tot{ border-top:1px dashed rgba(255,255,255,.25); padding-top:6px; font-weight:700; color:var(--gold); }
.cart-list:empty{ display:none; }
.or-amt{ font-size:13.5px; color:#c3c6de; margin:0; }

/* gallery: video & YouTube support */
.gallery video{ width:100%; height:100%; object-fit:cover; display:block; background:var(--night); }
.gallery .play{ position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.gallery .play i{ width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.92); display:grid; place-items:center; box-shadow:0 8px 24px -8px rgba(0,0,0,.5); transition:transform .2s; }
.gallery button:hover .play i{ transform:scale(1.08); }
.gal-empty{ grid-column:1/-1; text-align:center; color:var(--muted); padding:40px 0; }
.lb-media img, .lb-media video{ width:100%; max-height:78vh; object-fit:contain; border-radius:12px; background:#000; display:block; }
.lb-media .yt{ position:relative; aspect-ratio:16/9; width:100%; max-height:78vh; }
.lb-media .yt iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:12px; background:#000; }
.lb-btn{ z-index:2; }
