/* ==========================================================
   Merried — bản mẫu nền tảng đám cưới online
   Ngôn ngữ thiết kế: sơn mài Việt (son đỏ, then, vàng lá, ngà)
   và sợi chỉ hồng của ông Tơ bà Nguyệt.
   ========================================================== */

:root {
  --son: #9b1a1e;          /* son đỏ sơn mài */
  --son-2: #c8312a;        /* đỏ hành động */
  --son-3: #6f0f14;        /* son sẫm */
  --then: #24110d;         /* then — đen nâu sơn mài */
  --then-2: #3a1d17;
  --vang: #cfa052;         /* vàng lá */
  --vang-2: #ecca84;
  --vang-3: #8a6524;
  --dao: #f2b3a0;          /* hồng đào — sợi chỉ */
  --nga: #fbf3ec;          /* ngà */
  --nga-2: #f4e6da;
  --giay: #fffaf6;
  --muc: #2b1814;          /* mực chữ */
  --muc-2: #6c534d;
  --muc-3: #9a827b;
  --ke: rgba(43, 24, 20, .12);
  --ke-2: rgba(43, 24, 20, .07);
  --ok: #2f7d55;
  --warn: #b76e12;

  --serif: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(36, 17, 13, .06), 0 6px 18px -8px rgba(36, 17, 13, .18);
  --shadow-2: 0 2px 6px rgba(36, 17, 13, .08), 0 24px 60px -24px rgba(36, 17, 13, .35);
  --shadow-gold: 0 10px 30px -10px rgba(207, 160, 82, .55);

  --wrap: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muc);
  background: var(--nga);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--dao); color: var(--then); }

:focus-visible {
  outline: 2px solid var(--vang);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
.muted { color: var(--muc-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- Texture sơn mài ---------- */
.lacquer {
  position: relative;
  color: var(--nga);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 120, 90, .22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(40, 0, 0, .55), transparent 60%),
    linear-gradient(160deg, #a81d21 0%, #8a1519 45%, #5f0d11 100%);
  isolation: isolate;
}
.lacquer::before { /* vụn vỏ trứng & vàng lá rất nhẹ */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}
.lacquer--then {
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(207, 160, 82, .14), transparent 55%),
    linear-gradient(170deg, #2e1611 0%, #1b0c09 100%);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .2px; white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251, 243, 236, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ke-2);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 6px; margin-left: 12px; }
.nav__links a {
  text-decoration: none; font-size: 15px; color: var(--muc-2);
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--ke-2); color: var(--muc); }
.nav__links a[aria-current="page"] { color: var(--son); background: rgba(155, 26, 30, .07); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .nav__menu { display: none; }
.nav--dark { background: rgba(36, 17, 13, .55); border-bottom-color: rgba(255, 255, 255, .08); color: var(--nga); }
.nav--dark .nav__links a { color: rgba(251, 243, 236, .75); }
.nav--dark .nav__links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav--dark .nav__links a[aria-current="page"] { color: var(--vang-2); background: rgba(207, 160, 82, .12); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav .nav__menu { display: inline-grid; }
  .nav .btn--ghost-sm { display: none; }
}
.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(36, 17, 13, .45);
}
.drawer.open { display: block; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--giay); padding: 22px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-2); animation: slideL .35s var(--ease);
}
.drawer__panel a { text-decoration: none; padding: 14px 12px; border-radius: 12px; font-size: 17px; }
.drawer__panel a:hover { background: var(--nga-2); }
@keyframes slideL { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--muc); --fg: var(--nga);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: .1px;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .25s, background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--son { --bg: var(--son-2); --fg: #fff; box-shadow: 0 10px 26px -12px rgba(200, 49, 42, .8); }
.btn--son:hover { --bg: #d63a32; }
.btn--vang {
  --fg: var(--then);
  background: linear-gradient(180deg, #f3d792 0%, #d7a955 55%, #b9863a 100%);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--nga { --bg: var(--nga); --fg: var(--son-3); }
.btn--line { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--glass { --bg: rgba(255, 255, 255, .12); --fg: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost-sm { --bg: transparent; --fg: var(--muc); min-height: 40px; padding: 0 14px; font-weight: 500; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center;
  background: var(--ke-2); color: inherit; transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--ke); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Live pill ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: #e1262b; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .6px;
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--nga-2); color: var(--muc-2);
}
.chip--ok { background: rgba(47, 125, 85, .12); color: var(--ok); }
.chip--warn { background: rgba(183, 110, 18, .12); color: var(--warn); }
.chip--son { background: rgba(200, 49, 42, .1); color: var(--son-2); }
.chip--gold { background: rgba(207, 160, 82, .18); color: var(--vang-3); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muc-2); }
.field small { color: var(--muc-3); font-size: 12.5px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--ke); border-radius: 12px;
  background: var(--giay); color: var(--muc);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--vang); box-shadow: 0 0 0 4px rgba(207, 160, 82, .18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c534d' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.seg { display: inline-flex; padding: 4px; background: var(--nga-2); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muc-2); }
.seg button[aria-pressed="true"] { background: var(--giay); color: var(--muc); box-shadow: var(--shadow-1); }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--ke); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--vang); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -.5px; }
.h-1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.3px; }
.h-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.h-3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muc-2); max-width: 60ch; }
.lacquer .lead { color: rgba(251, 243, 236, .82); }

/* ---------- Sợi chỉ hồng ---------- */
.thread path { fill: none; stroke: var(--dao); stroke-width: 2.2; stroke-linecap: round; }
.thread--draw path { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); animation: draw 2.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Landing hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--nav-h) - 56px); padding-bottom: 64px; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 22px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(251, 243, 236, .7); }
.hero__note svg { width: 18px; height: 18px; color: var(--vang-2); }
.hero__stage { position: relative; height: 640px; }
.hero__thread { position: absolute; inset: -40px -6% -40px -24%; pointer-events: none; z-index: 1; }
@media (max-width: 980px) { .hero__thread { inset: -30px -5% -30px -5%; } }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero h1 { max-width: 14ch; }
  .hero__stage { height: 600px; }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: absolute; width: 300px; height: 620px; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #3b2a26, #120806);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  z-index: 2;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.phone--live { right: 6%; top: 0; transform: rotate(3deg); }
.phone--qr { left: 0; top: 150px; width: 250px; height: 500px; transform: rotate(-6deg); z-index: 1; }
.phone--qr .phone__screen { background: var(--nga); }
@media (max-width: 980px) {
  .phone--live { right: 50%; transform: translateX(76%) rotate(3deg) scale(.92); top: 0; }
  .phone--qr { left: 50%; transform: translateX(-104%) rotate(-6deg) scale(.86); top: 110px; }
}
@media (max-width: 420px) {
  .phone--live { transform: translateX(58%) rotate(3deg) scale(.8); top: -20px; }
  .phone--qr { transform: translateX(-90%) rotate(-6deg) scale(.74); top: 80px; }
  .hero__stage { height: 520px; }
}

/* mini live screen inside phone */
.mini-live { position: absolute; inset: 0; color: #fff; }
.mini-live__bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 18s ease-in-out infinite alternate; }
.mini-live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 25%, transparent 50%, rgba(0, 0, 0, .75) 100%); }
.mini-live__top { position: absolute; top: 46px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; z-index: 3; font-size: 12px; }
.mini-live__top .viewers { background: rgba(0, 0, 0, .35); padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(6px); }
.mini-live__chat { position: absolute; left: 12px; right: 64px; bottom: 70px; z-index: 3; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.35; }
.mini-live__chat div { background: rgba(0, 0, 0, .28); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 14px; width: fit-content; max-width: 100%; animation: chatIn .5s var(--ease) both; }
.mini-live__chat b { color: var(--vang-2); font-weight: 600; margin-right: 4px; }
.mini-live__bar { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.mini-live__bar .fake-input { flex: 1; height: 38px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 12px; display: flex; align-items: center; padding: 0 14px; color: rgba(255, 255, 255, .7); }
.mini-live__bar .gift { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #f3d792, #c48f3f); color: var(--son-3); }
.mini-live__bar .gift svg { width: 20px; height: 20px; }
.mini-live__names { position: absolute; z-index: 3; left: 14px; bottom: 236px; font-family: var(--serif); font-size: 24px; line-height: 1.05; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.mini-live__names small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .3px; opacity: .85; margin-top: 4px; }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } }

/* floating hearts */
.hearts { position: absolute; right: 8px; bottom: 60px; width: 60px; height: 70%; pointer-events: none; z-index: 4; overflow: visible; }
.heart {
  position: absolute; bottom: 0; left: 50%; font-size: 26px; line-height: 1;
  animation: floatUp var(--dur, 2.8s) cubic-bezier(.3, .6, .4, 1) forwards;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}
@keyframes floatUp {
  0% { transform: translate(-50%, 0) scale(.4); opacity: 0; }
  12% { opacity: 1; transform: translate(-50%, -20px) scale(1.05); }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -360px) scale(.9) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* gift toast (lì xì) */
.gift-toast {
  position: absolute; z-index: 6; left: 12px; top: 80px; right: 12px;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px;
  border-radius: 16px; color: var(--then);
  background: linear-gradient(100deg, #fbe3a4, #e6b866 60%, #d9a24d);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  animation: toastIn .6s var(--ease) both, toastOut .5s ease 4.2s forwards;
  font-size: 12.5px; line-height: 1.3;
}
.gift-toast .env-ico { width: 34px; height: 34px; flex: none; }
.gift-toast b { font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-30px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* mini QR screen */
.mini-qr { padding: 50px 18px 18px; text-align: center; color: var(--muc); height: 100%; display: flex; flex-direction: column; }
.mini-qr h4 { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.mini-qr p { font-size: 11.5px; color: var(--muc-2); margin-top: 4px; }
.mini-qr .qrbox { margin: 16px auto 12px; width: 168px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-1); }
.mini-qr .amts { display: flex; gap: 4px; justify-content: center; flex-wrap: nowrap; }
.mini-qr .amts span { font-size: 10px; padding: 4px 7px; white-space: nowrap; border-radius: 99px; background: var(--nga-2); font-weight: 600; }
.mini-qr .amts span.on { background: var(--son-2); color: #fff; }
.mini-qr .acct { margin-top: auto; font-size: 11px; color: var(--muc-2); border-top: 1px dashed var(--ke); padding-top: 10px; }

/* ---------- Strip đang live ---------- */
.strip-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
.wcard { position: relative; display: block; text-decoration: none; border-radius: var(--r-l); overflow: hidden; background: var(--then); color: #fff; aspect-ratio: 3/4; box-shadow: var(--shadow-1); }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wcard:hover img { transform: scale(1.05); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 35%, rgba(20, 6, 4, .85)); }
.wcard__top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.wcard__top .v { background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 99px; }
.wcard__btm { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.wcard__btm h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; }
.wcard__btm p { font-size: 13.5px; opacity: .85; margin-top: 6px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ke); }
.step { padding: 34px 30px 10px 0; border-right: 1px solid var(--ke); }
.step + .step { padding-left: 30px; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--son); }
.step h3 { margin-top: 18px; font-size: 21px; font-weight: 600; }
.step p { margin-top: 10px; color: var(--muc-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--ke); } }

/* ---------- Feature rows ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feat + .feat { margin-top: clamp(70px, 10vw, 130px); }
.feat--flip .feat__media { order: 2; }
.feat__text h2 { max-width: 16ch; }
.feat__text .lead { margin-top: 18px; }
.feat__list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat__list li { display: flex; gap: 12px; align-items: flex-start; }
.feat__list li svg { width: 22px; height: 22px; flex: none; color: var(--son); margin-top: 1px; }
.feat__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-2); background: var(--then); }
.feat__media > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } .feat--flip .feat__media { order: 0; } }

/* ---------- Promise band ---------- */
.promise { text-align: center; }
.promise .h-1 { max-width: 18ch; margin: 0 auto; }
.promise .lead { margin: 20px auto 0; }
.banks { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.banks span { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(251, 243, 236, .22); font-size: 14px; color: rgba(251, 243, 236, .85); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--ke); background: var(--nga); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer a { display: block; text-decoration: none; color: var(--muc-2); font-size: 14.5px; padding: 4px 0; }
.footer a:hover { color: var(--son); }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ke-2); font-size: 13px; color: var(--muc-3); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   Trang cưới (khách xem) — hỗ trợ nhiều mẫu thiệp qua data-theme
   ========================================================== */
.wp {
  --t-bg: var(--nga);
  --t-ink: var(--muc);
  --t-ink-2: var(--muc-2);
  --t-accent: var(--son);
  --t-accent-2: var(--son-2);
  --t-gold: var(--vang);
  --t-hero-ink: #fff;
  --t-card: var(--giay);
  background: var(--t-bg); color: var(--t-ink);
}
.wp[data-theme="nga"] { --t-bg: #fbf6ef; --t-accent: #8a6524; --t-accent-2: #a8803a; --t-gold: #b88f45; }
.wp[data-theme="luc"] { --t-bg: #f3f5f0; --t-ink: #16241f; --t-ink-2: #4d5e57; --t-accent: #1f4d3f; --t-accent-2: #2b6a55; --t-gold: #b8934a; --t-card: #fbfcf9; }
.wp[data-theme="dao"] { --t-bg: #fdf1ee; --t-ink: #3a1f22; --t-ink-2: #7a5458; --t-accent: #b4566a; --t-accent-2: #c96a7e; --t-gold: #c99a5b; --t-card: #fffafa; }

.wp-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.wp-head.solid { background: color-mix(in srgb, var(--t-bg) 92%, transparent); color: var(--t-ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ke-2); }
.monogram { font-family: var(--serif); font-size: 22px; letter-spacing: 1px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.monogram i { font-style: normal; color: var(--t-gold); font-size: 16px; }
.wp-head nav { display: flex; gap: 4px; }
.wp-head nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-size: 14.5px; opacity: .85; }
.wp-head nav a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
@media (max-width: 860px) { .wp-head nav { display: none; } }

.wp-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: var(--t-hero-ink); overflow: hidden; display: grid; align-items: end; }
.wp-hero__img { position: absolute; inset: 0; background-size: cover; background-position: var(--pos, center 35%); transform: scale(1.04); animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.14); filter: brightness(.6); } }
.wp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .1) 55%, rgba(12, 4, 3, .82) 100%); }
.wp-hero__inner { position: relative; z-index: 2; padding: 0 clamp(20px, 5vw, 64px) clamp(34px, 6vh, 64px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.wp-hero__names { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 9vw, 132px); line-height: .95; letter-spacing: -1px; }
.wp-hero__names .amp { display: block; font-size: .42em; line-height: 1.2; color: var(--vang-2); font-style: italic; margin: .05em 0 .02em .1em; }
.wp-hero__date { margin-top: 20px; font-size: clamp(15px, 1.5vw, 18px); opacity: .92; }
.wp-hero__date b { font-weight: 600; }
.wp-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.countdown { display: grid; grid-auto-flow: column; gap: 8px; }
.countdown div { min-width: 74px; text-align: center; padding: 12px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.countdown b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; opacity: .8; }
.live-banner { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 18px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); text-decoration: none; }
@media (max-width: 760px) {
  .wp-hero__inner { grid-template-columns: 1fr; }
  .countdown div { min-width: 62px; padding: 10px 6px 8px; }
  .countdown b { font-size: 28px; }
}

.wp-sec { padding: clamp(70px, 10vw, 130px) 0; }
.wp-sec + .wp-sec { padding-top: 0; }
.wp-title { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.wp-title .h-1 { color: var(--t-ink); }
.wp-title p { margin-top: 12px; color: var(--t-ink-2); }
.ornament { width: 120px; height: 18px; margin: 0 auto 18px; color: var(--t-gold); }

/* lời mời */
.invite { max-width: 760px; margin: 0 auto; text-align: center; }
.invite__to { font-size: 15px; color: var(--t-ink-2); }
.invite__guest { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); color: var(--t-accent); margin-top: 8px; }
.invite__body { margin-top: 22px; font-size: 18px; line-height: 1.75; color: var(--t-ink-2); }
.parents { margin-top: 44px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.parents__side h4 { font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--t-accent); }
.parents__side p { margin-top: 8px; line-height: 1.7; }
.parents__side small { display: block; color: var(--t-ink-2); margin-top: 6px; }
.parents__hy { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--t-accent); }
.couple-cards { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ccard { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--then); }
.ccard img { width: 100%; height: 100%; object-fit: cover; }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 3, 2, .75)); }
.ccard div { position: absolute; z-index: 2; left: 24px; bottom: 22px; color: #fff; text-align: left; }
.ccard small { font-size: 13px; opacity: .85; }
.ccard h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-top: 2px; }
@media (max-width: 640px) { .parents { grid-template-columns: 1fr; } .parents__hy { order: -1; } .couple-cards { grid-template-columns: 1fr 1fr; gap: 12px; } .ccard h3 { font-size: 22px; } .ccard div { left: 14px; bottom: 14px; } }

/* câu chuyện */
.story { position: relative; max-width: 880px; margin: 0 auto; }
.story::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--dao), var(--t-accent-2)); opacity: .5; transform: translateX(-1px); }
.story__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story__item + .story__item { margin-top: 54px; }
.story__item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--t-bg); border: 2.5px solid var(--t-accent-2); transform: translate(-50%, -50%); }
.story__item:nth-child(even) .story__text { order: 2; }
.story__text time { font-family: var(--serif); font-size: 40px; color: var(--t-accent); line-height: 1; }
.story__text h3 { margin-top: 10px; font-size: 20px; font-weight: 600; }
.story__text p { margin-top: 8px; color: var(--t-ink-2); }
.story__img { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-1); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__item:nth-child(odd) .story__text { text-align: right; }
@media (max-width: 720px) {
  .story::before { left: 9px; }
  .story__item { grid-template-columns: 1fr; gap: 14px; padding-left: 36px; }
  .story__item::after { left: 10px; top: 22px; }
  .story__item:nth-child(even) .story__text { order: 0; }
  .story__item:nth-child(odd) .story__text { text-align: left; }
}

/* sự kiện */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event { position: relative; padding: 30px 26px 26px; border-radius: var(--r-l); background: var(--t-card); box-shadow: inset 0 0 0 1px var(--ke-2), var(--shadow-1); display: flex; flex-direction: column; }
.event--live { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t-accent-2) 60%, transparent), var(--shadow-1); }
.event time { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--t-accent); }
.event h3 { margin-top: 14px; font-size: 20px; font-weight: 600; }
.event p { margin-top: 6px; color: var(--t-ink-2); font-size: 15px; }
.event .actions { margin-top: auto; padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.event .tag { position: absolute; top: 18px; right: 18px; }
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }

/* album */
.album { columns: 3 260px; column-gap: 14px; }
.album button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px; border-radius: 16px; overflow: hidden; break-inside: avoid; background: var(--then); }
.album img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.album button:hover img { transform: scale(1.04); }

/* lưu bút */
.wishes { columns: 3 280px; column-gap: 16px; }
.wish { break-inside: avoid; margin: 0 0 16px; padding: 20px 20px 16px; border-radius: 18px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--ke-2); }
.wish p { font-size: 16px; line-height: 1.6; }
.wish footer { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--t-ink-2); }
.wish footer b { color: var(--t-ink); font-weight: 600; }
.wish .gift-mark { margin-left: auto; color: var(--t-gold); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12.5px; }
.wish.new { animation: wishIn .8s var(--ease) both; box-shadow: inset 0 0 0 1.5px var(--t-gold); }
@keyframes wishIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--av, var(--son)); }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }

/* forms trang cưới */
.panel { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: var(--t-card); box-shadow: inset 0 0 0 1px var(--ke-2), var(--shadow-2); }
.panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel .stack { display: grid; gap: 16px; }
@media (max-width: 600px) { .panel .grid2 { grid-template-columns: 1fr; } }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--ke); font-weight: 600; font-size: 14.5px; transition: all .2s; }
.choice input:checked + span { border-color: var(--t-accent-2); background: color-mix(in srgb, var(--t-accent-2) 8%, transparent); color: var(--t-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--vang); outline-offset: 2px; }

/* mừng cưới block trên trang */
.gift-band { border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; }
.gift-band__text { padding: clamp(30px, 5vw, 60px); }
.gift-band__text .h-1 { color: #fff; }
.gift-band__art { position: relative; min-height: 320px; display: grid; place-items: center; }
@media (max-width: 820px) { .gift-band { grid-template-columns: 1fr; } .gift-band__art { min-height: 260px; } }

.wp-foot { text-align: center; padding: 80px 20px 60px; }
.wp-foot .h-1 { color: var(--t-accent); }
.made-with { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--t-ink-2); text-decoration: none; padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--ke); }
.made-with svg { width: 22px; height: 22px; }

/* phong bì mở thiệp */
.envelope-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.envelope-intro.closing { animation: fadeOut .9s ease .5s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.env-wrap { text-align: center; }
.env { position: relative; width: min(84vw, 420px); aspect-ratio: 1.5; margin: 0 auto; perspective: 1200px; cursor: pointer; border: 0; padding: 0; background: none; }
.env__back, .env__front, .env__flap { position: absolute; inset: 0; border-radius: 10px; }
.env__back { background: linear-gradient(160deg, #82141a, #5c0c10); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.env__card {
  position: absolute; left: 6%; right: 6%; top: 8%; height: 84%; border-radius: 8px;
  background: var(--giay); color: var(--muc); padding: 9% 18px 18px; text-align: center;
  transition: transform 1.1s var(--ease) .45s; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(207, 160, 82, .35);
}
.env__card small { font-size: 12px; color: var(--muc-2); }
.env__card h3 { font-family: var(--serif); font-size: clamp(22px, 5.4vw, 30px); font-weight: 400; color: var(--son); margin-top: 6px; line-height: 1.1; }
.env__front { z-index: 2; border-radius: 0 0 10px 10px;
  background: linear-gradient(170deg, #b8242b 0%, #9a1a20 60%, #86151a 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none; }
.env__front::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top right, transparent calc(50% - .6px), rgba(0, 0, 0, .14) 50%, transparent calc(50% + .6px)) left bottom / 50% 100% no-repeat,
  linear-gradient(to top left, transparent calc(50% - .6px), rgba(0, 0, 0, .14) 50%, transparent calc(50% + .6px)) right bottom / 50% 100% no-repeat; }
.env__flap { z-index: 3; transform-origin: top center; transition: transform .8s var(--ease), z-index 0s .4s;
  background: linear-gradient(to bottom, #cb2d34, #a01c22);
  clip-path: polygon(0 0, 100% 0, 50% 57%);
}
.env__seal { position: absolute; z-index: 4; left: 50%; top: 57%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dc9b, #cf9e4c 55%, #8a6223 100%);
  display: grid; place-items: center; color: #7a1116; font-family: var(--serif); font-size: 34px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .2);
  transition: transform .5s var(--ease), opacity .4s;
}
.env.open .env__seal { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
.env.open .env__flap { transform: rotateX(180deg); z-index: 0; }
.env.open .env__card { transform: translateY(-64%); }
.env-wrap .env-to, .env-wrap .env-hint { transition: opacity .5s; }
.env-wrap.opened .env-to, .env-wrap.opened .env-hint { opacity: 0; animation: none; }
.env-hint { margin-top: 30px; color: rgba(251, 243, 236, .85); font-size: 15px; animation: breathe 2.4s ease-in-out infinite; }
.env-to { color: rgba(251, 243, 236, .75); font-size: 15px; margin-bottom: 26px; }
.env-to b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7vw, 44px); color: var(--vang-2); margin-top: 6px; }
@keyframes breathe { 50% { opacity: .5; } }

/* ==========================================================
   Sheet / modal / toast / lightbox
   ========================================================== */
.overlay { position: fixed; inset: 0; z-index: 120; background: rgba(24, 10, 8, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: relative; width: min(100%, 520px); max-height: min(92vh, 860px); overflow: auto; background: var(--giay); color: var(--muc); border-radius: 28px; box-shadow: var(--shadow-2); animation: sheetIn .45s var(--ease); overscroll-behavior: contain; }
.sheet--wide { width: min(100%, 860px); }
@keyframes sheetIn { from { transform: translateY(26px) scale(.98); opacity: 0; } }
.sheet__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; background: color-mix(in srgb, var(--giay) 94%, transparent); backdrop-filter: blur(8px); }
.sheet__head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.sheet__body { padding: 4px 24px 26px; }
@media (max-width: 600px) {
  .overlay { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 26px 26px 0 0; max-height: 94vh; animation: sheetUp .45s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(60px); opacity: .4; } }
}

.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: var(--then); color: var(--nga); box-shadow: var(--shadow-2); font-size: 14.5px; animation: toastUp .4s var(--ease); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--vang-2); }
@keyframes toastUp { from { transform: translateY(14px); opacity: 0; } }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10, 4, 3, .94); display: grid; place-items: center; animation: fadeIn .25s; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: zoomIn .4s var(--ease); }
@keyframes zoomIn { from { transform: scale(.94); opacity: 0; } }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- Gift sheet (mừng cưới) ---------- */
.gift-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gift-who button { border: 1.5px solid var(--ke); background: transparent; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; transition: all .2s; }
.gift-who button[aria-pressed="true"] { border-color: var(--son-2); background: rgba(200, 49, 42, .05); }
.gift-who button small { display: block; color: var(--muc-2); font-size: 12.5px; }
.gift-who button b { font-weight: 600; font-size: 15px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts button { border: 1.5px solid var(--ke); background: transparent; border-radius: 14px; padding: 11px 4px; font-weight: 700; font-size: 14.5px; transition: all .2s; }
.amounts button[aria-pressed="true"] { border-color: var(--son-2); background: var(--son-2); color: #fff; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.qr-card { margin-top: 8px; border-radius: 24px; padding: 22px; background: linear-gradient(170deg, #fff 0%, #fbf3ec 100%); box-shadow: inset 0 0 0 1px var(--ke-2); text-align: center; }
.qr-card .qr { width: min(100%, 240px); margin: 0 auto; background: #fff; padding: 12px; border-radius: 20px; box-shadow: var(--shadow-1); }
.qr-card .qr svg { width: 100%; height: auto; }
.acct-rows { margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--nga); font-size: 14px; }
.acct-row span { color: var(--muc-2); }
.acct-row b { font-weight: 600; text-align: right; }
.acct-row button { border: 0; background: transparent; color: var(--son-2); font-weight: 600; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.demo-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(183, 110, 18, .1); color: #7d4a07; font-size: 13.5px; line-height: 1.45; }
.demo-warn svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.gift-success { text-align: center; padding: 26px 10px 10px; }
.gift-success .big-env { width: 150px; height: 150px; margin: 0 auto; animation: envBounce 1s var(--ease); }
@keyframes envBounce { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ==========================================================
   Trang xem live
   ========================================================== */
.live-page { background: #0d0605; color: #fff; min-height: 100vh; min-height: 100dvh; }
.live-layout { display: grid; grid-template-columns: 1fr 380px; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); }
.stage { position: relative; background: #000; overflow: hidden; display: grid; place-items: center; }
.stage video, .stage .slides { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage video.mirror { transform: scaleX(-1); }
.slides div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.slides div.on { opacity: 1; animation: kenburns 9s ease-in-out forwards; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 22%, transparent 60%, rgba(0, 0, 0, .7) 100%); z-index: 1; }
.stage__top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.stage__top .viewers { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(8px); font-size: 13px; font-variant-numeric: tabular-nums; }
.stage__top .viewers svg { width: 15px; height: 15px; }
.stage__top .spacer { flex: 1; }
.lower-third { position: absolute; left: clamp(18px, 3vw, 34px); bottom: clamp(90px, 12vh, 110px); z-index: 5; max-width: 70%; }
.lower-third h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.lower-third p { margin-top: 10px; font-size: 14.5px; opacity: .9; display: flex; align-items: center; gap: 8px; }
.lower-third p i { width: 22px; height: 1.5px; background: var(--vang-2); display: inline-block; }
.stage__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 16px clamp(14px, 3vw, 30px); }
.react { display: flex; gap: 6px; }
.react button { width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 22px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); transition: transform .15s, background .2s; }
.react button:hover { background: rgba(255, 255, 255, .24); }
.react button:active { transform: scale(.88); }
.stage__bar .grow { flex: 1; }
.stage .hearts { right: 22px; bottom: 90px; height: 60%; width: 80px; }
.stage .gift-toast { left: 18px; top: 66px; right: auto; max-width: 360px; font-size: 14px; padding: 11px 16px 11px 11px; }
.stage .gift-toast .env-ico { width: 40px; height: 40px; }
.pin { position: absolute; z-index: 5; top: 66px; right: 18px; max-width: 300px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); font-size: 13.5px; line-height: 1.45; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pin small { display: flex; align-items: center; gap: 6px; color: var(--vang-2); font-weight: 600; margin-bottom: 4px; }
.pin small svg { width: 14px; height: 14px; }
.prelive { position: relative; z-index: 4; text-align: center; padding: 20px; }
.prelive .countdown { justify-content: center; margin: 26px 0 30px; }

.side { display: flex; flex-direction: column; background: #170b09; border-left: 1px solid rgba(255, 255, 255, .06); min-height: 0; }
.side__tabs { display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side__tabs button { flex: 1; border: 0; background: transparent; color: rgba(255, 255, 255, .6); padding: 9px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.side__tabs button[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.side__body { flex: 1; overflow-y: auto; padding: 14px 16px; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.msg { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; line-height: 1.45; animation: chatIn .35s var(--ease) both; }
.msg .avatar { width: 30px; height: 30px; font-size: 12px; }
.msg b { font-weight: 600; color: var(--vang-2); margin-right: 6px; }
.msg--gift { margin: 6px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(100deg, rgba(236, 202, 132, .2), rgba(207, 160, 82, .08)); box-shadow: inset 0 0 0 1px rgba(236, 202, 132, .3); }
.msg--sys { color: rgba(255, 255, 255, .55); font-size: 13px; justify-content: center; }
.side__input { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; gap: 8px; }
.side__input input { flex: 1; min-height: 46px; border-radius: 99px; border: 0; padding: 0 18px; background: rgba(255, 255, 255, .08); color: #fff; }
.side__input input::placeholder { color: rgba(255, 255, 255, .45); }
.side__input input:focus { outline: none; box-shadow: 0 0 0 2px rgba(236, 202, 132, .5); }
.agenda { display: grid; gap: 4px; }
.agenda div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 12px; border-radius: 12px; }
.agenda div.now { background: rgba(225, 38, 43, .14); box-shadow: inset 0 0 0 1px rgba(225, 38, 43, .35); }
.agenda div.done { opacity: .5; }
.agenda time { font-variant-numeric: tabular-nums; color: var(--vang-2); font-weight: 600; }
.agenda b { font-weight: 600; display: block; }
.agenda small { color: rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
  .live-page .nav { display: none; }
  .live-layout { grid-template-columns: 1fr; height: 100vh; height: 100dvh; }
  .side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: transparent; border: 0; pointer-events: none; height: 46%; }
  .side__tabs { display: none; }
  .side__body { pointer-events: auto; padding: 0 76px 6px 14px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
  .side__input { pointer-events: auto; border: 0; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
  .side__input input { background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
  .msg { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); font-size: 14px; }
  .stage__bar { flex-direction: column; align-items: flex-end; right: 10px; left: auto; bottom: calc(46% - 10px); padding: 0; gap: 10px; }
  .stage__bar .react { flex-direction: column; }
  .stage__bar .grow { display: none; }
  .stage__bar .btn { width: 50px; height: 50px; min-height: 0; padding: 0; border-radius: 50%; }
  .stage__bar .btn span { display: none; }
  .stage .hearts { right: 10px; bottom: calc(46% + 260px); height: 32%; }
  .lower-third { bottom: calc(46% + 14px); max-width: 74%; }
  .pin { left: 12px; right: 12px; max-width: none; top: 62px; bottom: auto; padding: 8px 12px; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; z-index: 5; }
  .stage .gift-toast { z-index: 8; }
  .stage::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 20%, transparent 34%, rgba(0,0,0,.5) 54%, rgba(0,0,0,.86) 100%); }
  .lower-third h2 { font-size: 28px; }
  .lower-third p { font-size: 13px; margin-top: 6px; }
  .stage .gift-toast { top: 62px; left: 12px; right: 12px; max-width: none; }
  .agenda-mobile { display: none; }
}
.live-back { display: none; }
@media (max-width: 900px) { .live-back { display: inline-grid; } }

/* ==========================================================
   Studio phát live
   ========================================================== */
.studio { background: #120807; color: #fff; min-height: calc(100vh - var(--nav-h)); }
.studio__grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; padding: 20px; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); }
.studio__main { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.monitor { position: relative; flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 60%, rgba(0,0,0,.62)); }
.monitor video.mirror { transform: scaleX(-1); }
.monitor .frame-overlay { position: absolute; inset: 14px; border-radius: 14px; pointer-events: none; z-index: 3; box-shadow: inset 0 0 0 1.5px rgba(236, 202, 132, .7); }
.monitor .frame-overlay::after { content: "囍"; position: absolute; font-family: var(--serif); color: var(--vang-2); font-size: 26px; padding: 6px 10px; bottom: 0; right: 0; }
.monitor__empty { position: relative; z-index: 2; text-align: center; max-width: 440px; padding: 24px; }
.monitor__empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--vang-2); }
.monitor__hud { position: absolute; z-index: 4; top: 28px; left: 28px; right: 28px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hud-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); font-size: 13px; font-variant-numeric: tabular-nums; }
.hud-chip svg { width: 15px; height: 15px; }
.monitor .lower-third { bottom: 26px; }
.count-in { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .4); font-family: var(--serif); font-size: 160px; color: #fff; }
.count-in span { animation: countPop 1s var(--ease); }
@keyframes countPop { from { transform: scale(1.6); opacity: 0; } }
.controls { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; background: #1d0f0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); flex-wrap: wrap; }
.controls .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; width: 46px; height: 46px; }
.controls .icon-btn[aria-pressed="false"] { background: rgba(225, 38, 43, .2); color: #ff8a80; }
.controls .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.controls .sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .1); }
.controls .grow { flex: 1; }
.controls select { min-height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; padding: 0 34px 0 12px; max-width: 220px; }
.controls select option { color: #000; }
.studio__side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.studio__side .s-card { flex: none; }
.studio__side .s-card--grow { flex: 1 0 300px; }
.s-card { border-radius: 20px; background: #1d0f0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); padding: 16px; }
.s-card h4 { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .75); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.s-card--grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.s-card--grow .side__body { padding: 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat3 div { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.stat3 b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat3 small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.mod-actions { display: flex; gap: 4px; margin-left: auto; opacity: 0; transition: opacity .2s; }
.msg:hover .mod-actions { opacity: 1; }
.mod-actions button { border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
@media (max-width: 1000px) {
  .studio__grid { grid-template-columns: 1fr; height: auto; }
  .monitor { min-height: 62vh; flex: none; }
  .studio__side .s-card--grow { min-height: 340px; }
}

/* ==========================================================
   Quản trị cặp đôi
   ========================================================== */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--nav-h)); }
.dash__nav { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); padding: 22px 14px; border-right: 1px solid var(--ke-2); display: flex; flex-direction: column; gap: 2px; }
.dash__couple { display: flex; align-items: center; gap: 12px; padding: 6px 10px 20px; }
.dash__couple img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.dash__couple b { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.2; }
.dash__couple small { display: block; color: var(--muc-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.dash__couple span { min-width: 0; }
.dash__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--muc-2); font-weight: 500; font-size: 15px; }
.dash__nav a svg { width: 20px; height: 20px; }
.dash__nav a:hover { background: var(--ke-2); color: var(--muc); }
.dash__nav a[aria-current="page"] { background: var(--giay); color: var(--son); box-shadow: var(--shadow-1); font-weight: 600; }
.dash__nav .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--son-2); color: #fff; border-radius: 99px; padding: 1px 7px; }
.dash__main { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dash__head .h-2 { line-height: 1.1; }
.dash__head p { color: var(--muc-2); margin-top: 6px; }
.dash__head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash__nav { position: sticky; top: var(--nav-h); z-index: 20; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--ke-2); background: var(--nga); scrollbar-width: none; }
  .dash__nav::-webkit-scrollbar { display: none; }
  .dash__couple { display: none; }
  .dash__nav a { flex: none; padding: 9px 12px; font-size: 14px; }
  .dash__nav a svg { display: none; }
}

.countdown-card { border-radius: var(--r-xl); padding: clamp(26px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; }
.countdown-card .big { font-family: var(--serif); font-size: clamp(64px, 9vw, 112px); line-height: 1.05; color: var(--vang-2); }
.countdown-card p { color: rgba(251, 243, 236, .82); }
@media (max-width: 700px) { .countdown-card { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.tile { padding: 20px; border-radius: 20px; background: var(--giay); box-shadow: inset 0 0 0 1px var(--ke-2); }
.tile small { color: var(--muc-2); font-size: 13.5px; font-weight: 500; }
.tile b { display: block; margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile span { display: block; margin-top: 6px; font-size: 13px; color: var(--muc-3); }
.tile .bar { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--nga-2); overflow: hidden; }
.tile .bar i { display: block; height: 100%; border-radius: 99px; background: var(--son-2); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.cols2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 1000px) { .cols2 { grid-template-columns: 1fr; } }
.card { border-radius: 22px; background: var(--giay); box-shadow: inset 0 0 0 1px var(--ke-2); padding: 22px; min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__head h3 { font-size: 17px; font-weight: 600; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; }
.todo li:hover { background: var(--nga); }
.todo .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ke); flex: none; display: grid; place-items: center; }
.todo li.done .check { background: var(--ok) !important; border-color: var(--ok); color: #fff; }
.todo li:not(.done) .check svg { opacity: 0; }
.todo li.done .t { text-decoration: line-through; color: var(--muc-3); }
.todo .check svg { width: 13px; height: 13px; }
.todo .t { flex: 1; font-size: 15px; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; }
.activity li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ke-2); font-size: 14.5px; align-items: flex-start; }
.activity li:last-child { border-bottom: 0; }
.activity time { margin-left: auto; color: var(--muc-3); font-size: 12.5px; white-space: nowrap; }
.split-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--nga-2); margin: 10px 0 8px; }
.split-bar i:nth-child(1) { background: var(--son-2); }
.split-bar i:nth-child(2) { background: var(--vang); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muc-2); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { max-width: 320px; min-height: 42px; }
.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ke-2); background: var(--giay); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muc-2); font-size: 13px; padding: 14px 16px; border-bottom: 1px solid var(--ke-2); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--ke-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(251, 243, 236, .7); }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.tbl .who small { display: block; color: var(--muc-3); font-size: 12.5px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tbl .row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.tbl .row-acts .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muc-2); }

.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .bank-grid { grid-template-columns: 1fr; } }
.bank-card { display: grid; grid-template-columns: 1fr 170px; gap: 18px; align-items: start; }
.bank-card .qr { background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-1); }
@media (max-width: 520px) { .bank-card { grid-template-columns: 1fr; } .bank-card .qr { width: 180px; } }

/* ==========================================================
   Tạo trang cưới (wizard)
   ========================================================== */
.wizard { display: grid; grid-template-columns: 1fr 440px; min-height: calc(100vh - var(--nav-h)); }
.wizard__form { padding: clamp(24px, 4vw, 56px); max-width: 720px; width: 100%; margin: 0 auto; }
.wizard__preview { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: grid; place-items: center; overflow: hidden; }
.wizard__preview .phone { position: relative; transform: scale(.92); }
.progress { display: flex; gap: 6px; margin: 22px 0 30px; }
.progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--ke); transition: background .3s; }
.progress i.on { background: var(--son-2); }
.wstep { display: grid; gap: 18px; animation: chatIn .4s var(--ease); }
.wstep h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); }
.wnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; }
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.theme-opt { position: relative; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt .sw { display: block; border-radius: 18px; padding: 14px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--ke); transition: all .2s; }
.theme-opt input:checked + .sw { border-color: var(--son-2); box-shadow: none; }
.theme-opt input:focus-visible + .sw { outline: 2px solid var(--vang); outline-offset: 2px; }
.theme-opt .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.theme-opt .dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.theme-opt b { display: block; font-weight: 600; }
.theme-opt small { color: var(--muc-2); }
.upload { display: grid; place-items: center; text-align: center; gap: 8px; padding: 30px; border: 2px dashed var(--ke); border-radius: 20px; cursor: pointer; transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--vang); background: rgba(207, 160, 82, .05); }
.upload svg { width: 34px; height: 34px; color: var(--vang-3); }
.slug { display: flex; align-items: center; border: 1.5px solid var(--ke); border-radius: 12px; overflow: hidden; background: var(--giay); }
.slug span { padding: 0 4px 0 14px; color: var(--muc-3); white-space: nowrap; }
.slug input { border: 0; min-height: 46px; flex: 1; padding: 0 12px 0 0; background: transparent; min-width: 0; }
.slug:focus-within { border-color: var(--vang); box-shadow: 0 0 0 4px rgba(207, 160, 82, .18); }
.slug input:focus { outline: none; }
@media (max-width: 1050px) { .wizard { grid-template-columns: 1fr; } .wizard__preview { position: relative; top: 0; height: 720px; } }

/* phone preview của trang cưới */
.pv { position: absolute; inset: 0; overflow: hidden; }
.pv__hero { position: absolute; inset: 0 0 34% 0; background-size: cover; background-position: var(--pos, center); }
.pv__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, rgba(0, 0, 0, .7)); }
.pv__names { position: absolute; left: 20px; right: 20px; bottom: 37%; z-index: 2; color: #fff; font-family: var(--serif); font-size: 34px; line-height: 1; }
.pv__names em { display: block; font-size: 16px; color: var(--vang-2); margin: 4px 0; }
.pv__names small { display: block; font-family: var(--sans); font-size: 12px; margin-top: 10px; opacity: .9; }
.pv__body { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; padding: 18px; text-align: center; }
.pv__body p { font-size: 11.5px; color: var(--t-ink-2); }
.pv__body h5 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--t-accent); margin-top: 4px; }
.pv__btns { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.pv__btns span { font-size: 11px; padding: 7px 11px; border-radius: 99px; background: var(--t-accent-2); color: #fff; font-weight: 600; }
.pv__btns span + span { background: transparent; color: var(--t-accent); box-shadow: inset 0 0 0 1px var(--t-accent); }

/* ==========================================================
   Cộng đồng
   ========================================================== */
.comm { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.comm__head { padding: 40px 0 26px; }
.comm__search { margin-top: 20px; display: flex; gap: 10px; max-width: 560px; }
.comm__search .input { border-radius: 99px; padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239a827b' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px center; }
.feed { display: grid; gap: 20px; }
.post { border-radius: 26px; background: var(--giay); box-shadow: inset 0 0 0 1px var(--ke-2), var(--shadow-1); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.post__head b { font-weight: 600; }
.post__head small { display: block; color: var(--muc-3); font-size: 13px; }
.post__media { position: relative; aspect-ratio: 16/10; background: var(--then); overflow: hidden; display: block; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media .over { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 5, 3, .8)); display: flex; align-items: flex-end; padding: 22px; color: #fff; }
.post__media h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
.post__media p { margin-top: 6px; opacity: .9; font-size: 14.5px; }
.post__media .live-pill { position: absolute; top: 16px; left: 16px; }
.post__text { padding: 16px 18px 0; }
.post__acts { display: flex; gap: 4px; padding: 10px 10px 12px; flex-wrap: wrap; }
.post__acts button, .post__acts a { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muc-2); text-decoration: none; }
.post__acts button:hover, .post__acts a:hover { background: var(--nga); color: var(--muc); }
.post__acts svg { width: 19px; height: 19px; }
.post__acts .liked { color: var(--son-2); }
.post__acts .spacer { flex: 1; }
.side-list { display: grid; gap: 2px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; }
.side-list a:hover { background: var(--nga); }
.side-list img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.side-list b { display: block; font-weight: 600; font-size: 14.5px; }
.side-list small { color: var(--muc-3); font-size: 12.5px; }
.cal-day { width: 48px; height: 48px; border-radius: 14px; background: var(--nga-2); display: grid; place-items: center; text-align: center; line-height: 1; flex: none; }
.cal-day b { font-size: 18px; font-weight: 700; color: var(--son); }
.cal-day small { font-size: 10.5px; color: var(--muc-2); }
@media (max-width: 980px) { .comm { grid-template-columns: 1fr; } .comm aside { order: -1; } .comm aside .card:not(:first-child) { display: none; } }

/* ==========================================================
   Bảng điều khiển bản mẫu
   ========================================================== */
.proto { position: fixed; left: 16px; bottom: 16px; z-index: 180; font-size: 14px; }
.proto__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; border: 0; background: var(--then); color: var(--nga); box-shadow: var(--shadow-2); font-weight: 600; font-size: 13px; }
.proto__btn i { width: 22px; height: 22px; border-radius: 50%; background: var(--vang); color: var(--then); display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-size: 13px; }
.proto__panel { position: absolute; left: 0; bottom: 52px; width: min(92vw, 340px); max-height: 70vh; overflow: auto; padding: 18px; border-radius: 22px; background: var(--giay); color: var(--muc); box-shadow: var(--shadow-2); animation: sheetIn .3s var(--ease); }
.proto__panel h4 { font-size: 13px; font-weight: 700; color: var(--muc-2); margin: 16px 0 8px; }
.proto__panel h4:first-child { margin-top: 0; }
.proto__panel .links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.proto__panel .links a { text-decoration: none; padding: 9px 10px; border-radius: 10px; background: var(--nga); font-size: 13.5px; font-weight: 500; }
.proto__panel .links a:hover { background: var(--nga-2); }
.proto__panel .seg { width: 100%; }
.proto__panel .seg button { flex: 1; padding: 7px 8px; font-size: 13px; }
.proto__panel p { font-size: 12.5px; color: var(--muc-3); margin-top: 10px; line-height: 1.5; }
.live-page ~ .proto, .studio ~ .proto { }
@media (max-width: 900px) { body.is-live .proto { display: none; } }
@media (max-width: 600px) { .proto { left: 10px; bottom: 10px; } .proto__btn { padding: 8px; font-size: 0; gap: 0; } .proto__btn i { width: 26px; height: 26px; font-size: 15px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.prelive-back { position: absolute; top: 16px; left: 16px; z-index: 6; display: none; background: rgba(0,0,0,.35); color: #fff; }
@media (max-width: 900px) { .prelive-back { display: inline-grid; } }

/* nút bản mẫu nằm trên thanh menu */
.proto--nav { position: relative; left: auto; bottom: auto; z-index: 60; }
.proto--nav .proto__btn { box-shadow: none; background: var(--nga-2); color: var(--muc); }
.nav--dark .proto--nav .proto__btn { background: rgba(255, 255, 255, .1); color: #fff; }
.proto--nav .proto__panel { position: fixed; top: calc(var(--nav-h) + 6px); right: 16px; left: auto; bottom: auto; }
@media (max-width: 600px) { .proto--nav .proto__btn { padding: 8px; font-size: 0; gap: 0; } .proto--nav .proto__btn i { width: 26px; height: 26px; font-size: 15px; } }
@media (max-width: 440px) { .nav .nav__right > .btn--son { display: none; } }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .g2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .monitor .lower-third h2 { font-size: 26px; } .monitor .lower-third { bottom: 18px; left: 26px; max-width: 80%; } }

/* video YouTube làm nguồn hình live thử */
.yt { position: absolute; inset: 0; overflow: hidden; background: #000; container-type: size; }
.yt iframe { position: absolute; top: 50%; left: 50%; border: 0; width: max(100cqw, calc(100cqh * 16 / 9)); height: max(100cqh, calc(100cqw * 9 / 16)); transform: translate(-50%, -50%); pointer-events: none; }
.yt__shield { position: absolute; inset: 0; pointer-events: none; }
.yt.playing .yt__shield { pointer-events: auto; }
.yt__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 90px); padding: 8px 14px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 13.5px; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 1; }
.yt.waited:not(.playing) .yt__hint { opacity: 1; }
.yt--cover iframe { width: max(100cqw, calc(100cqh * 16 / 9)) !important; height: max(100cqh, calc(100cqw * 9 / 16)) !important; top: 50% !important; }
.mini-live .yt { z-index: 0; }
.mini-live .yt__hint { display: none; }
.yt--controls iframe { pointer-events: auto; width: 100cqw; height: 100cqh; }
@container (max-aspect-ratio: 1/1) { .yt:not(.yt--controls) iframe { width: 100cqw; height: calc(100cqw * 9 / 16); top: 38%; } }
.yt-row { display: flex; gap: 8px; margin-top: 14px; }
.yt-row .input { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); min-width: 0; }
.monitor .yt { z-index: 0; }
.stage .yt--controls ~ .stage__bar, .stage .yt--controls ~ .lower-third { pointer-events: none; }

/* ---------- chọn ngôn ngữ ---------- */
.langp { position: relative; }
.langp__btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--ke-2); color: inherit; font-weight: 600; font-size: 13.5px; }
.langp__btn svg { width: 17px; height: 17px; }
.langp__btn:hover { background: var(--ke); }
.langp__code { display: none; }
.langp__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 168px; padding: 6px; border-radius: 16px; background: var(--giay); color: var(--muc); box-shadow: var(--shadow-2); display: grid; gap: 2px; animation: sheetIn .2s var(--ease); }
.langp__menu[hidden] { display: none; }
.langp__menu button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.langp__menu button:hover, .langp__menu button:focus-visible { background: var(--nga); outline: none; }
.langp__menu button[aria-checked="true"] { color: var(--son-2); font-weight: 700; }
.langp__menu button[aria-checked="true"]::after { content: "✓"; }
.langp--dark .langp__btn, .langp--wp .langp__btn { background: rgba(255, 255, 255, .12); color: #fff; }
.wp-head.solid .langp--wp .langp__btn { background: var(--ke-2); color: var(--t-ink); }
.langp--compact .langp__full { display: none; }
.langp--compact .langp__code { display: inline; }
.langp--compact .langp__btn { background: rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .langp__full { display: none; } .langp__code { display: inline; } .langp__btn { padding: 0 10px; } }
@media (max-width: 440px) { .nav .wrap { gap: 12px; } .nav__right { gap: 6px; } }

/* chữ Nhật, Trung, Hàn */
html[lang="ja"] { --sans: "Be Vietnam Pro", "Noto Sans JP", system-ui, sans-serif; --serif: "Noto Serif Display", "Noto Serif JP", serif; }
html[lang="zh-Hans"] { --sans: "Be Vietnam Pro", "Noto Sans SC", system-ui, sans-serif; --serif: "Noto Serif Display", "Noto Serif SC", serif; }
html[lang="ko"] { --sans: "Be Vietnam Pro", "Noto Sans KR", system-ui, sans-serif; --serif: "Noto Serif Display", "Noto Serif KR", serif; }
html[lang="ja"] .h-display, html[lang="zh-Hans"] .h-display, html[lang="ko"] .h-display,
html[lang="ja"] .h-1, html[lang="zh-Hans"] .h-1, html[lang="ko"] .h-1 { letter-spacing: 0; line-height: 1.25; }
html[lang="ja"] .hero h1, html[lang="zh-Hans"] .hero h1, html[lang="ko"] .hero h1 { max-width: 9.5em; font-size: clamp(36px, 5.2vw, 70px); }
html[lang="ja"] body, html[lang="zh-Hans"] body, html[lang="ko"] body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html[lang="ko"] body { word-break: keep-all; }

/* =========================================================
   Tiệc cưới online: cổng hoa → sảnh ngoài → bố mẹ đón → sảnh tiệc
   ========================================================= */
body.is-hall { overflow: hidden; background: #140608; }
body.is-hall .proto { top: 66px; bottom: auto; left: 14px; }
body.is-hall .proto__panel { top: 46px; bottom: auto; }
@media (max-width: 900px) { body.is-hall .proto { display: none; } }

.hall { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: radial-gradient(120% 80% at 50% 0%, #3a0f14, #140608 70%); color: var(--nga); }
.hall-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(#1b0709f2, #1b070900); position: relative; z-index: 30; grid-column: 1 / -1; }
.hall-top .icon-btn { background: rgba(255,255,255,.1); color: #fff; flex: none; }
.hall-title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hall-title b { font-family: var(--serif); font-weight: 400; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 12px; overflow: hidden; }
.hall-steps li { padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.07); color: rgba(251,243,236,.55); white-space: nowrap; }
.hall-steps li.done { color: var(--vang-2); }
.hall-steps li.done::before { content: "✓ "; }
.hall-steps li.on { background: var(--vang); color: var(--then); font-weight: 700; }
.hall-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.hall-count svg { width: 16px; height: 16px; }

.hall-vp { position: relative; overflow: auto; display: flex; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; animation: sceneIn .7s var(--ease) both; touch-action: pan-x pan-y; }
.hall-vp::-webkit-scrollbar { display: none; }
.hall.leaving .hall-vp { opacity: 0; transform: scale(1.06); filter: blur(4px); transition: .42s var(--ease); }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.04); filter: blur(6px); } }
.hall-sizer { position: relative; margin: auto; flex: none; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; --ui: 1; user-select: none; -webkit-user-select: none; }
.world-bg { position: absolute; inset: 0; display: block; }
.world-bg .tw { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.world-layer { position: absolute; inset: 0; }

/* nhân vật */
.ent { position: absolute; width: 100px; height: 150px; margin: -146px 0 0 -50px; transform: scale(var(--d, 1)); transform-origin: 50% 97%; cursor: pointer; will-change: left, top; }
.ent__av { width: 100%; height: 100%; }
.ent__av svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ent.flip .ent__av { transform: scaleX(-1); }
.ent--me::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 84px; height: 22px; margin-left: -42px; border-radius: 50%; border: 3px solid var(--vang-2); box-shadow: 0 0 18px var(--vang-2); animation: meRing 1.8s ease-in-out infinite; }
@keyframes meRing { 50% { transform: scale(1.15); opacity: .55; } }
.ent__name { position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%) scale(calc(1 / var(--d, 1))); transform-origin: 50% 100%; font-size: calc(12px * var(--ui)); line-height: 1.2; font-weight: 600; white-space: nowrap; padding: calc(2px * var(--ui)) calc(8px * var(--ui)); border-radius: 99px; background: rgba(27, 7, 9, .72); color: #fff; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ent--me .ent__name { background: var(--vang); color: var(--then); opacity: 1; }
.ent--star .ent__name { background: var(--son-2); opacity: 1; font-family: var(--serif); font-weight: 400; font-size: calc(14px * var(--ui)); }
.names-all .ent__name, .ent:hover .ent__name, .ent--mt .ent__name { opacity: 1; }
.ent--mt .ent__name { background: rgba(155, 26, 30, .85); }
.ent.speaking .ent__name { opacity: 0 !important; }
.ent:hover { filter: drop-shadow(0 0 6px rgba(255, 226, 160, .9)); }

.bubble { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%) scale(calc(1 / var(--d, 1))); transform-origin: 50% 100%; width: max-content; max-width: calc(230px * var(--ui)); padding: calc(7px * var(--ui)) calc(12px * var(--ui)); border-radius: calc(14px * var(--ui)); background: #fffaf6; color: var(--muc); font-size: calc(13.5px * var(--ui)); line-height: 1.35; font-weight: 500; box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); z-index: 2; pointer-events: none; animation: bubIn .32s var(--ease) both; text-align: center; }
.bubble::after { content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); top: 100%; margin-left: calc(-6px * var(--ui)); border: calc(6px * var(--ui)) solid transparent; border-top-color: #fffaf6; }
.bubble.out { animation: bubOut .4s ease both; }
.ent--me .bubble { background: var(--vang-2); }
.ent--me .bubble::after { border-top-color: var(--vang-2); }
@keyframes bubIn { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(calc(.7 / var(--d, 1))); } }
@keyframes bubOut { to { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(calc(1 / var(--d, 1))); } }
.float-em { position: absolute; font-size: calc(30px * var(--ui)); pointer-events: none; animation: floatEm 1.8s ease-out forwards; }
@keyframes floatEm { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; transform: translateY(-20px) scale(1.1); } 100% { opacity: 0; transform: translateY(calc(-160px * var(--ui))) scale(1); } }
.flash { position: fixed; inset: 0; background: #fff; z-index: 500; pointer-events: none; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }

/* điểm chạm trong cảnh */
.hot { position: absolute; z-index: 4000; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: calc(7px * var(--ui)); padding: calc(8px * var(--ui)) calc(14px * var(--ui)) calc(8px * var(--ui)) calc(9px * var(--ui)); border: 0; border-radius: 99px; background: rgba(27, 7, 9, .82); color: #fff; font: 600 calc(13px * var(--ui))/1.2 var(--sans); white-space: nowrap; box-shadow: 0 0 0 calc(2px * var(--ui)) rgba(236, 202, 132, .7), 0 8px 24px -8px #000; cursor: pointer; animation: hotBob 2.4s ease-in-out infinite; }
.hot svg { width: calc(18px * var(--ui)); height: calc(18px * var(--ui)); padding: calc(4px * var(--ui)); box-sizing: content-box; border-radius: 50%; background: var(--vang); color: var(--then); }
.hot:hover, .hot:focus-visible { background: var(--son-2); }
@keyframes hotBob { 50% { transform: translate(-50%, calc(-100% - 6px * var(--ui))); } }
.pair-tag { position: absolute; z-index: 4000; transform: translateX(-50%); padding: calc(4px * var(--ui)) calc(12px * var(--ui)); border-radius: 99px; background: rgba(27,7,9,.78); color: var(--vang-2); font-size: calc(12.5px * var(--ui)); font-weight: 600; white-space: nowrap; pointer-events: none; }

/* sảnh tiệc */
.scr { position: absolute; left: 380px; top: 46px; width: 840px; height: 480px; border-radius: 8px; overflow: hidden; background: #000; z-index: 2; box-shadow: 0 0 140px 10px rgba(255, 214, 150, .22); }
.scr__media, .scr__media > *, .scr .slides, .scr .slides > div, .hall-mini .slides, .hall-mini .slides > div, .hall-tv .slides, .hall-tv .slides > div { position: absolute; inset: 0; }
.scr__media .yt { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.scr__media video { width: 100%; height: 100%; object-fit: cover; }
.scr .slides > div, .hall-mini .slides > div, .hall-tv .slides > div { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.scr .slides > div.on, .hall-mini .slides > div.on, .hall-tv .slides > div.on { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.scr__wait { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: radial-gradient(70% 70% at 50% 45%, rgba(20,6,8,.25), rgba(20,6,8,.78)); color: #fff; pointer-events: none; }
.scr__wait small { font-size: 22px; letter-spacing: 6px; text-transform: uppercase; color: var(--vang-2); }
.scr__wait b { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1.1; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.scr__wait span { font-size: 22px; opacity: .85; }
.scr__pill { position: absolute; left: 18px; top: 16px; font-size: 18px; padding: 6px 14px; }
.scr__count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); z-index: 3; }
.scr__count span { font-family: var(--serif); font-size: 220px; color: var(--vang-2); animation: countPop .8s ease both; }
@keyframes countPop { from { transform: scale(1.8); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); opacity: 0; } }
.htbl { position: absolute; width: 300px; height: 160px; margin: -80px 0 0 -150px; pointer-events: none; }
.htbl svg { display: block; }
.htbl__name { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; padding: calc(4px * var(--ui)) calc(12px * var(--ui)); border-radius: calc(10px * var(--ui)); background: rgba(27,7,9,.72); color: var(--vang-2); font: 700 calc(12.5px * var(--ui))/1.2 var(--sans); white-space: nowrap; }
.htbl__name small { font-weight: 500; color: rgba(251,243,236,.75); font-size: calc(11px * var(--ui)); }
.seat { position: absolute; z-index: 3000; width: calc(30px * var(--ui)); height: calc(30px * var(--ui)); transform: translate(-50%, -50%); border-radius: 50%; border: calc(2px * var(--ui)) dashed rgba(255,255,255,.35); background: rgba(255,255,255,.06); cursor: pointer; padding: 0; }
.seat--mine { border-color: var(--vang-2); background: rgba(236, 202, 132, .22); animation: seatPulse 1.6s ease-in-out infinite; }
.seat:hover, .seat:focus-visible { background: var(--vang); border-style: solid; }
.seat::after { content: "+"; color: #fff; font: 700 calc(16px * var(--ui))/1 var(--sans); }
@keyframes seatPulse { 50% { box-shadow: 0 0 0 calc(7px * var(--ui)) rgba(236, 202, 132, .18); } }
.world.seated .seat { display: none; }

/* thanh dưới & khung trò chuyện của bàn */
.hall-dock { position: relative; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(#1b070900, #1b0709 30%); text-align: center; flex-wrap: wrap; }
.hall-dock > p { margin: 0; font-size: 15px; color: rgba(251,243,236,.85); max-width: 46ch; }
.hall[data-scene="tiec"] .hall-dock { display: block; padding: 0; min-width: 0; overflow: hidden; text-align: left; background: #1b0709; border-top: 1px solid rgba(236, 202, 132, .18); }
.hall[data-scene="tiec"] .hall-dock > p { padding: 14px 18px 0; margin: 0 auto; text-align: center; }
.hall[data-scene="tiec"] .hall-dock > .btn { display: flex; margin: 10px auto 16px; }
.tchat { display: flex; flex-direction: column; height: 100%; min-height: 0; width: 100%; min-width: 0; }
.tchat__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tchat__head b { flex: none; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--vang-2); }
.tchat__head span { min-width: 0; font-size: 13px; color: rgba(251,243,236,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchat__n { margin-left: auto; flex: none; font-variant-numeric: tabular-nums; }
.tchat__head .icon-btn { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: #fff; flex: none; }
.tchat__log { flex: 1; min-height: 0; overflow: auto; padding: 10px 14px; display: grid; align-content: start; gap: 8px; max-height: 22vh; scrollbar-width: thin; }
.tchat__log .msg { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; animation: bubIn2 .3s var(--ease) both; }
.tchat__log .msg .avatar { width: 26px; height: 26px; font-size: 10px; flex: none; }
.tchat__log .msg span { background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 4px 14px 14px 14px; line-height: 1.35; }
.tchat__log .msg b { display: block; font-size: 11.5px; color: var(--vang-2); }
.tchat__log .msg--me { flex-direction: row-reverse; }
.tchat__log .msg--me span { background: rgba(236, 202, 132, .2); border-radius: 14px 4px 14px 14px; }
@keyframes bubIn2 { from { opacity: 0; transform: translateY(6px); } }
.tchat__acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; }
.tchat__acts .btn { flex: none; min-height: 36px; padding: 0 12px; gap: 6px; }
.tchat__acts .btn svg { width: 16px; height: 16px; }
.tchat__in { display: flex; gap: 8px; padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); }
.tchat__in input { flex: 1; min-width: 0; height: 42px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px; font: inherit; font-size: 15px; }
.tchat__in input::placeholder { color: rgba(251,243,236,.5); }
.tchat__in .icon-btn { width: 42px; height: 42px; flex: none; }

@media (min-width: 1000px) {
  .hall[data-scene="tiec"] { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto minmax(0, 1fr); }
  .hall[data-scene="tiec"] .hall-dock { grid-row: 2; grid-column: 2; border-top: 0; border-left: 1px solid rgba(236, 202, 132, .18); display: flex; flex-direction: column; justify-content: center; }
  .hall[data-scene="tiec"] .tchat__log { max-height: none; }
  .hall[data-scene="tiec"] .hall-dock > .tchat { flex: 1; }
}

/* điều khiển của người quản lý tiệc */
.hall-admin { position: absolute; right: 14px; top: 66px; z-index: 40; display: grid; justify-items: end; gap: 8px; }
@media (min-width: 1000px) { .hall[data-scene="tiec"] .hall-admin { right: 374px; } }
.hall-admin__btn { box-shadow: 0 8px 24px -8px #000; }
.hall-admin__btn svg { width: 16px; height: 16px; }
.hall-admin__panel { width: min(320px, calc(100vw - 28px)); padding: 16px; border-radius: 18px; background: rgba(27, 7, 9, .94); border: 1px solid rgba(236, 202, 132, .3); box-shadow: 0 24px 60px -20px #000; backdrop-filter: blur(12px); animation: sheetIn .3s var(--ease); }
.hall-admin__panel h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .4px; color: var(--vang-2); }
.hall-admin__panel .seg { width: 100%; background: rgba(255,255,255,.08); }
.hall-admin__panel .seg button { flex: 1; color: rgba(251,243,236,.8); }
.hall-admin__panel .seg button[aria-pressed="true"] { background: var(--vang); color: var(--then); }
.hall-ann { position: fixed; left: 50%; top: 74px; z-index: 300; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 16px; background: linear-gradient(135deg, #9b1a1e, #6f0f14); border: 1px solid var(--vang); color: #fff; font-family: var(--serif); font-size: 19px; text-align: center; box-shadow: 0 20px 50px -16px #000; animation: annIn 4.2s var(--ease) both; }
@keyframes annIn { 0% { opacity: 0; transform: translate(-50%, -16px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

/* chọn nhân vật */
.hall-pick { min-height: 100vh; min-height: 100dvh; color: var(--nga); }
.hall-pick__in { max-width: 1120px; margin: 0 auto; padding: 18px 20px 40px; position: relative; z-index: 1; }
.hall-pick__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 8px; }
.hall-pick__stage { position: sticky; top: 20px; display: grid; justify-items: center; gap: 14px; }
.hall-pick__spot { width: min(100%, 360px); aspect-ratio: 4 / 5; display: grid; place-items: end center; padding-bottom: 6%; border-radius: 50% 50% 22px 22px; background: radial-gradient(60% 40% at 50% 92%, rgba(236, 202, 132, .45), transparent 70%), radial-gradient(80% 70% at 50% 30%, rgba(255, 233, 184, .18), transparent 70%); border: 1px solid rgba(236, 202, 132, .35); }
.hall-pick__spot svg { width: 72%; height: auto; animation: pickIn .5s var(--ease) both; }
@keyframes pickIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.hall-pick__hint { margin: 0; max-width: 34ch; text-align: center; font-size: 14px; opacity: .78; }
.hall-pick__form { display: grid; gap: 18px; padding: 26px; border-radius: 26px; background: rgba(255, 250, 246, .06); border: 1px solid rgba(236, 202, 132, .22); backdrop-filter: blur(10px); }
.hall-pick__form .h-1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0; }
.hall-pick .field > span { color: var(--vang-2); }
.hall-pick .seg { background: rgba(255,255,255,.08); }
.hall-pick .seg button { color: rgba(251,243,236,.8); }
.hall-pick .seg button[aria-pressed="true"] { background: var(--vang); color: var(--then); }
.pick-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-types button { display: grid; justify-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; cursor: pointer; transition: .2s; }
.pick-types button[aria-checked="true"] { background: rgba(236, 202, 132, .18); border-color: var(--vang); box-shadow: 0 0 0 2px var(--vang) inset; }
.pick-types button:hover { background: rgba(255,255,255,.1); }
.pick-types b { font-size: 14px; }
.pick-types small { font-size: 11.5px; opacity: .65; }
.pt-av { width: 58px; height: 78px; display: block; }
.pt-av svg, .po-av svg { width: 100%; height: 100%; display: block; }
.pick-outfits { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pick-outfits button { flex: none; display: grid; justify-items: center; gap: 4px; width: 88px; padding: 8px 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; cursor: pointer; }
.pick-outfits button[aria-pressed="true"] { border-color: var(--vang); box-shadow: 0 0 0 2px var(--vang) inset; background: rgba(236, 202, 132, .14); }
.pick-outfits small { font-size: 11.5px; line-height: 1.2; text-align: center; }
.po-av { width: 50px; height: 70px; display: block; }
.pick-skins { display: flex; gap: 10px; }
.pick-skins button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--sk); cursor: pointer; }
.pick-skins button[aria-pressed="true"] { border-color: var(--vang); box-shadow: 0 0 0 3px rgba(236, 202, 132, .4); }

@media (max-width: 760px) {
  .hall-pick__grid { grid-template-columns: 1fr; gap: 14px; }
  .hall-pick__stage { position: static; }
  .hall-pick__spot { width: 190px; }
  .hall-pick__hint { display: none; }
  .hall-pick__form { padding: 18px; }
  .hall-title b { font-size: 16px; }
  .hall-steps li:not(.on) { display: none; }
  .hall-dock { gap: 10px; padding-top: 10px; }
  .hall-dock > p { font-size: 14px; }
  .hall-ann { font-size: 16px; top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hot, .seat--mine, .ent--me::before, .world-bg .tw, .slides > div.on { animation: none; }
}

/* giới thiệu tiệc cưới online */
.hteaser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-top: 28px; padding: 30px 32px 0; border-radius: var(--r-xl); overflow: hidden; color: var(--nga); }
.hteaser__text { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; padding-bottom: 32px; }
.hteaser__text p { margin: 0; color: rgba(251,243,236,.85); max-width: 52ch; }
.hteaser__crowd { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 190px; }
.hteaser__crowd span { width: 74px; height: 111px; margin: 0 -9px; flex: none; animation: crowdIn .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.hteaser__crowd span:nth-child(4), .hteaser__crowd span:nth-child(5) { width: 96px; height: 144px; z-index: 1; }
.hteaser__crowd svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hteaser::after { content: ""; position: absolute; left: 50%; right: -10%; bottom: -40%; height: 80%; background: radial-gradient(closest-side, rgba(236,202,132,.35), transparent); pointer-events: none; }
@keyframes crowdIn { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 760px) { .hteaser { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 0; } .hteaser__text { padding-bottom: 0; } .hteaser__crowd { min-height: 110px; overflow: hidden; } .hteaser__crowd span { width: 44px; height: 66px; margin: 0 -4px; } .hteaser__crowd span:nth-child(4), .hteaser__crowd span:nth-child(5) { width: 58px; height: 87px; } }
.hteaser .chip--gold { color: var(--vang-2); background: rgba(236,202,132,.16); }
.hall-zoom { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(236,202,132,.4); background: rgba(255,255,255,.06); color: var(--vang-2); font: 600 13px/1 var(--sans); cursor: pointer; flex: none; }
.hall-zoom svg { width: 16px; height: 16px; }
.hall-zoom[aria-pressed="true"] { background: var(--vang); color: var(--then); }
.hall-vp.zooming { animation: zoomFade .35s ease; }
@keyframes zoomFade { from { opacity: .35; } }
@media (max-width: 760px) {
  .hall-zoom span { display: none; }
  .hall-zoom { width: 34px; padding: 0; justify-content: center; }
  .hall[data-scene="tiec"] .tchat__log { max-height: 84px; }
  .hall[data-scene="tiec"] .tchat__acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hall[data-scene="tiec"] .tchat__head { padding: 8px 14px; }
  .hall-count { padding: 6px 10px; }
}
/* khách ngồi yên ở bàn khác: dừng nhịp thở để máy yếu vẫn mượt */
.world[data-calm] .ent[data-pose="sit"]:not(.ent--mt):not(.ent--me):not(.speaking) .av,
.world[data-calm] .ent[data-pose="sit"]:not(.ent--mt):not(.ent--me):not(.speaking) .av * { animation-play-state: paused !important; }
body:has(.sheet) .proto { display: none; }
.hall-steps li[data-goscene] { cursor: pointer; } .hall-steps li[data-goscene]:hover { background: rgba(236,202,132,.18); }

/* =========================================================
   Màn hình sân khấu: nút trên sân khấu, cửa sổ nhỏ, toàn màn hình kiểu TikTok
   ========================================================= */
.scr__btns { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: flex; gap: 10px; }
.scr__btns button { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 99px; border: 0; cursor: pointer; color: #fff; font: 600 20px/1 var(--sans); background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06)), rgba(20, 8, 8, .42); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 0 0 1.5px rgba(255,255,255,.22), 0 10px 26px -8px rgba(0,0,0,.6); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); }
.scr__btns button svg { width: 24px; height: 24px; }
.scr__btns button:hover { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.1)), rgba(200, 49, 42, .6); }
.scr__away { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px; background: rgba(12, 4, 6, .55); color: #fff; font-size: 26px; text-align: center; }
.scr__away span { display: inline-flex; align-items: center; gap: 12px; }
.scr__away svg { width: 30px; height: 30px; }
.scr__away .btn { font-size: 20px; min-height: 52px; padding: 0 24px; }
.hall-tvbtn.is-live { background: #e1262b; color: #fff; border-color: rgba(255,255,255,.5); animation: tvPulse 1.6s ease-in-out infinite; }
@keyframes tvPulse { 50% { box-shadow: 0 0 0 6px rgba(225, 38, 43, .25); } }

.hall-mini { grid-row: 2; grid-column: 1; align-self: end; justify-self: start; position: relative; z-index: 26; margin: 0 0 14px 14px; width: clamp(170px, 24vw, 300px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; cursor: pointer; animation: miniIn .35s var(--ease) both; }
.hall-mini__media { position: absolute; inset: 0; }
.hall-mini__media .slides, .hall-mini__media .slides > div, .hall-mini__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall-mini [data-minipill] .live-pill { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 11px; }
.hall-mini__bar { position: absolute; right: 6px; top: 6px; z-index: 3; display: flex; gap: 6px; }
.hall-mini__bar button { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.2); cursor: pointer; }
.hall-mini__bar svg { width: 15px; height: 15px; }
@keyframes miniIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@media (min-width: 1000px) { .hall[data-scene="tiec"] .hall-mini { grid-row: 2; } }
@media (max-width: 999px) { .hall[data-scene="tiec"] .hall-mini { grid-row: 2; margin: 0 0 10px 10px; } }

.hall-tv { position: fixed; inset: 0; z-index: 250; background: #000; color: #fff; overflow: hidden; animation: tvIn .4s var(--ease) both; }
@keyframes tvIn { from { opacity: 0; transform: scale(.96); } }
.tv__media { position: absolute; inset: 0; }
.tv__media .slides > div { background-size: cover; }
.tv__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall-tv.is-fit .tv__media .slides > div { background-size: contain; background-repeat: no-repeat; }
.hall-tv.is-fit .tv__media video { object-fit: contain; }
.hall-tv.is-fit .tv__media .yt iframe { width: min(100cqw, calc(100cqh * 16 / 9)) !important; height: min(100cqh, calc(100cqw * 9 / 16)) !important; }
.tv__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 52%, rgba(0,0,0,.62)); }
.tv__top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
.tv__top .spacer { flex: 1; }
.tv__icon { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; flex: none; }
.tv__icon svg { width: 20px; height: 20px; }
.tv__who { display: grid; padding: 6px 16px 7px; border-radius: 22px; min-width: 0; }
.tv__who b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv__who span { font-size: 12px; opacity: .8; white-space: nowrap; }
.tv__chip { display: inline-flex; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 700; letter-spacing: .3px; }
.tv__viewers { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv__viewers svg { width: 15px; height: 15px; }
.tv__rail { position: absolute; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 16px; justify-items: center; }
.tv__rail button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: #fff; cursor: pointer; font: 600 11.5px/1.1 var(--sans); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tv__rail i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; font-style: normal; transition: transform .15s; }
.tv__rail i svg { width: 22px; height: 22px; }
.tv__rail button:active i { transform: scale(.88); }
.tv__hearts { position: absolute; right: 18px; bottom: calc(120px + env(safe-area-inset-bottom)); width: 60px; height: 60vh; z-index: 4; pointer-events: none; }
.tv__hearts i { position: absolute; bottom: 0; left: 50%; font-size: 30px; font-style: normal; animation: tvHeart 2.6s ease-out forwards; }
@keyframes tvHeart { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 12% { opacity: 1; transform: translate(-50%, -30px) scale(1.15); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -52vh) scale(.9) rotate(var(--r)); } }
.tv__burst { position: absolute; z-index: 6; font-size: 90px; transform: translate(-50%, -50%); pointer-events: none; animation: tvBurst .9s ease-out forwards; }
@keyframes tvBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-15deg); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(8deg); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
.tv__chat { position: absolute; left: 12px; right: 84px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; max-height: 40vh; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%); mask-image: linear-gradient(180deg, transparent, #000 28%); pointer-events: none; }
.tvmsg { display: flex; align-items: flex-start; gap: 8px; max-width: min(420px, 100%); padding: 7px 14px 8px 7px; border-radius: 20px; animation: tvMsgIn .35s var(--ease) both; }
.tvmsg .avatar { width: 28px; height: 28px; font-size: 10.5px; flex: none; }
.tvmsg p { margin: 0; font-size: 14px; line-height: 1.35; }
.tvmsg b { display: block; font-size: 12px; color: var(--vang-2); }
.tvmsg--me b { color: #fff; }
.tvmsg--me { background-color: rgba(200, 49, 42, .45) !important; }
.tvmsg--gift { background-color: rgba(207, 160, 82, .4) !important; }
.tvmsg--old { animation: none; }
@keyframes tvMsgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.tv__in { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 10px; }
.tv__in input { flex: 1; min-width: 0; height: 48px; border-radius: 99px; border: 0; padding: 0 20px; color: #fff; font-size: 15.5px; }
.tv__in input::placeholder { color: rgba(255,255,255,.7); }
.tv__in input:focus { outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1.5px rgba(236,202,132,.8); }
.tv__in button { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; flex: none; background-color: rgba(200,49,42,.75) !important; }
.tv__in button svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .tv__chat { max-width: 460px; } .tv__in { right: auto; width: 460px; } }
@media (max-width: 600px) { .tv__viewers { display: none; } .tv__who b { font-size: 15px; } }
body.tv-open .proto, body.tv-open .toasts { z-index: 260; }
body.tv-open .overlay { z-index: 270; }

/* =========================================================
   Liquid Glass: lớp kính trong như iOS mới (kính mờ, viền sáng, ánh phản chiếu)
   Giữ màu son đỏ và vàng lá của Merried làm sắc kính.
   ========================================================= */
:root {
  --lg-blur: blur(24px) saturate(180%);
  --lg-sheen: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 42%, rgba(255,255,255,0) 60%);
  --lg-light: rgba(255, 252, 248, .58);
  --lg-dark: rgba(30, 10, 10, .34);
  --lg-edge: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.4);
  --lg-edge-d: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.16);
  --lg-drop: 0 10px 30px -12px rgba(36, 17, 13, .35), 0 2px 8px rgba(36, 17, 13, .06);
}
/* nền có chiều sâu để kính có thứ để khúc xạ */
body { background: radial-gradient(55% 45% at 8% 0%, rgba(242, 179, 160, .38), transparent 62%), radial-gradient(45% 40% at 100% 18%, rgba(236, 202, 132, .3), transparent 60%), radial-gradient(60% 50% at 50% 105%, rgba(200, 49, 42, .1), transparent 60%), var(--nga); background-attachment: fixed; }
.glass { background-color: var(--lg-dark); background-image: var(--lg-sheen); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 8px 24px -10px rgba(0,0,0,.45); }

/* thanh điều hướng nổi dạng viên kính */
.nav { top: 10px; margin: 10px 12px 0; border-radius: 28px; border-bottom: 0; background: var(--lg-sheen), var(--lg-light); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge), var(--lg-drop); }
.nav--dark { background: var(--lg-sheen), rgba(36, 14, 12, .42); box-shadow: var(--lg-edge-d), 0 10px 30px -12px rgba(0,0,0,.5); }
.nav__links a[aria-current="page"] { background: var(--lg-sheen), rgba(255,255,255,.6); box-shadow: var(--lg-edge); }
.nav--dark .nav__links a[aria-current="page"] { background: var(--lg-sheen), rgba(255,255,255,.12); box-shadow: var(--lg-edge-d); }
@media (max-width: 760px) { .nav { margin: 8px 8px 0; top: 8px; border-radius: 24px; } }
.drawer__panel { background: var(--lg-sheen), rgba(255, 250, 246, .78); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge), var(--shadow-2); border-radius: 28px 0 0 28px; }

/* nút: kính có sắc màu, viền sáng và ánh phản chiếu phía trên */
.btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 22px -12px rgba(36,17,13,.55); }
.btn--son { background: var(--lg-sheen), var(--bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px -12px rgba(200, 49, 42, .85); }
.btn--vang { background: var(--lg-sheen), linear-gradient(180deg, #f3d792 0%, #d7a955 55%, #b9863a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 1px rgba(255,255,255,.25), var(--shadow-gold); }
.btn--glass { background: var(--lg-sheen), rgba(255, 255, 255, .14); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 8px 24px -12px rgba(0,0,0,.5); }
.btn--nga { background: var(--lg-sheen), rgba(255, 250, 246, .85); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge), var(--lg-drop); }
.btn--line { background: var(--lg-sheen), rgba(255,255,255,.22); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); box-shadow: inset 0 0 0 1.5px currentColor, inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost-sm { box-shadow: none; }
.icon-btn { backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); background-image: var(--lg-sheen); box-shadow: var(--lg-edge); }
.chip { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.18); }
.live-pill { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px -4px rgba(225, 38, 43, .7); background-image: var(--lg-sheen); }

/* ô nhập, nút chọn đoạn */
.input, .select, .textarea { background-color: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 2px rgba(36,17,13,.06), inset 0 0 0 1px rgba(255,255,255,.5); }
.seg { background: var(--lg-sheen), rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.35), inset 0 2px 8px rgba(36,17,13,.06); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
.seg button[aria-pressed="true"] { background: var(--lg-sheen), rgba(255,255,255,.9); box-shadow: var(--lg-edge), 0 4px 14px -6px rgba(36,17,13,.35); }

/* thẻ, ô số liệu, bảng: kính sữa nhẹ (không làm mờ nền để máy yếu vẫn mượt) */
.card, .tile, .table-wrap { background: var(--lg-sheen), rgba(255, 252, 248, .66); box-shadow: var(--lg-edge), var(--lg-drop); }
.panel { background: var(--lg-sheen), color-mix(in srgb, var(--t-card) 72%, transparent); box-shadow: var(--lg-edge), var(--shadow-2); }

/* bảng trượt, thông báo, menu ngôn ngữ, bảng bản mẫu */
.overlay { background: rgba(24, 10, 8, .32); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); }
.sheet { background: var(--lg-sheen), rgba(255, 250, 246, .8); backdrop-filter: blur(34px) saturate(190%); -webkit-backdrop-filter: blur(34px) saturate(190%); box-shadow: var(--lg-edge), 0 30px 80px -24px rgba(36,17,13,.55); border-radius: 32px; }
.sheet__head { background: linear-gradient(180deg, rgba(255,250,246,.9), rgba(255,250,246,.6)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.toast { background: var(--lg-sheen), rgba(36, 14, 12, .62); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 16px 40px -14px rgba(0,0,0,.55); border-radius: 22px; }
.langp__btn { background: var(--lg-sheen), rgba(255,255,255,.45); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); box-shadow: var(--lg-edge); }
.langp--dark .langp__btn { background: var(--lg-sheen), rgba(255,255,255,.12); box-shadow: var(--lg-edge-d); }
.langp__menu { background: var(--lg-sheen), rgba(255, 250, 246, .82); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--lg-edge), var(--shadow-2); border-radius: 20px; }
.proto__btn { background: var(--lg-sheen), rgba(36, 17, 13, .6); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), var(--shadow-2); }
.proto__panel { background: var(--lg-sheen), rgba(255, 250, 246, .82); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--lg-edge), var(--shadow-2); border-radius: 26px; }

/* trang cưới & trang live */
.wp-head.solid { background: var(--lg-sheen), color-mix(in srgb, var(--t-bg) 62%, transparent); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge), var(--lg-drop); }
.react button, .stage__top .viewers { background-image: var(--lg-sheen); box-shadow: var(--lg-edge-d); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }

/* tiệc cưới online */
.hall-top { margin: 8px 8px 0; border-radius: 26px; background: var(--lg-sheen), rgba(30, 9, 11, .42); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 12px 30px -14px rgba(0,0,0,.7); }
.hall-top .icon-btn { background-color: rgba(255,255,255,.1); box-shadow: var(--lg-edge-d); }
.hall-count, .hall-zoom { background-image: var(--lg-sheen); box-shadow: var(--lg-edge-d); }
.hall-steps li { box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.hall-steps li.on { background: var(--lg-sheen), var(--vang); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.hall-dock { background: linear-gradient(rgba(27,7,9,0), rgba(27,7,9,.55) 40%); }
.hall[data-scene="tiec"] .hall-dock { background: var(--lg-sheen), rgba(30, 9, 11, .5); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d); }
@media (min-width: 1000px) { .hall[data-scene="tiec"] .hall-dock { margin: 8px 8px 8px 0; border-radius: 26px; border-left: 0; } }
@media (max-width: 999px) { .hall[data-scene="tiec"] .hall-dock { margin: 0 6px 6px; border-radius: 24px; border-top: 0; } }
.tchat__log .msg span { background-image: var(--lg-sheen); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.06); }
.tchat__in input { background: var(--lg-sheen), rgba(255,255,255,.08); box-shadow: var(--lg-edge-d); border: 0; }
.hall-admin__panel { background: var(--lg-sheen), rgba(30, 9, 11, .62); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 24px 60px -20px #000; border: 0; border-radius: 24px; }
.hall-ann { background: var(--lg-sheen), rgba(155, 26, 30, .7); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 20px 50px -16px #000; border: 0; border-radius: 22px; }
.hall-pick__form { background: var(--lg-sheen), rgba(255, 250, 246, .08); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-edge-d), 0 30px 60px -30px rgba(0,0,0,.6); border: 0; border-radius: 30px; }
.pick-types button, .pick-outfits button { background-image: var(--lg-sheen); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.12); border: 0; }
.pick-types button[aria-checked="true"], .pick-outfits button[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 2px var(--vang); }
.hall-pick__spot { background: radial-gradient(60% 40% at 50% 92%, rgba(236, 202, 132, .45), transparent 70%), var(--lg-sheen), rgba(255,255,255,.05); box-shadow: var(--lg-edge-d); border: 0; }
/* trong sảnh có nhiều chi tiết: kính không làm mờ nền để giữ 60 khung hình/giây */
.bubble { background: linear-gradient(180deg, #fff, rgba(255,250,246,.92)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.6), 0 6px 18px -6px rgba(0,0,0,.45); }
.hot { background: var(--lg-sheen), rgba(27, 7, 9, .78); }
.hteaser { box-shadow: var(--lg-edge-d), var(--shadow-2); }

/* đặt chỗ cố định cho các khối của sảnh để cửa sổ nhỏ chồng lên được mà không đẩy bố cục */
.hall-top { grid-row: 1; }
.hall-vp { grid-row: 2; grid-column: 1; }
.hall-dock { grid-row: 3; grid-column: 1; }
@media (min-width: 1000px) { .hall[data-scene="tiec"] .hall-dock { grid-row: 2; grid-column: 2; } }
.nav { top: 0; margin: 0 12px; translate: 0 10px; }
.nav__links a, .langp__btn, .proto__btn, .nav .btn { white-space: nowrap; }
@media (max-width: 760px) { .nav { margin: 0 8px; translate: 0 8px; top: 0; } }
.tv__chip { white-space: nowrap; }
@media (max-width: 760px) { .hall-count { display: none; } .hall-top { gap: 8px; padding: 8px 10px; } }
.countdown-card > div:last-child { max-width: 440px; justify-content: flex-end; }
.countdown-card .big { white-space: nowrap; }
@media (max-width: 760px) { .countdown-card > div:last-child { max-width: none; justify-content: flex-start; } }

/* ---------- Chọn ngôn ngữ: viên kính có cờ + tên, danh sách cờ + tên gốc + mã ---------- */
.langp__btn { height: 40px; padding: 0 12px 0 9px; gap: 9px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.langp__btn .flag { width: 27px; height: 18px; }
.flag { display: block; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.18); overflow: hidden; }
.langp__chev { width: 15px !important; height: 15px !important; opacity: .7; transition: transform .25s var(--ease); }
.langp__btn[aria-expanded="true"] .langp__chev { transform: rotate(180deg); }
.langp__menu { min-width: 250px; padding: 8px; border-radius: 26px; gap: 2px; }
.langp__menu button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 16px; font-size: 16px; color: var(--muc); cursor: pointer; }
.langp__menu button .flag { width: 30px; height: 20px; }
.langp__menu button small { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; color: var(--muc-3); }
.langp__menu button:hover, .langp__menu button:focus-visible { background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff; }
.langp__menu button[aria-checked="true"] { color: var(--son-2); font-weight: 700; background: linear-gradient(90deg, rgba(242,179,160,.28), rgba(255,255,255,.3)); }
.langp__menu button[aria-checked="true"] small { color: var(--son-2); }
.langp__menu button[aria-checked="true"]::after { content: none; }
.langp--compact .langp__full, .langp--compact .langp__code { display: none; }
@media (max-width: 760px) { .langp__full, .langp__code { display: none !important; } .langp__btn { padding: 0 9px; gap: 6px; } .langp__menu { min-width: 230px; } }
.langp--field { width: 100%; }
.langp--field .langp__btn { width: 100%; height: 52px; justify-content: flex-start; border-radius: 16px; padding: 0 16px; font-size: 16px; background: var(--lg-sheen), rgba(255,255,255,.62); color: var(--muc); }
.langp--field .langp__btn .langp__full { display: inline !important; }
.langp--field .langp__chev { margin-left: auto; }
.langp--field .langp__menu { left: 0; right: auto; width: 100%; }
.flagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.flagrow button { width: 44px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--lg-sheen), rgba(255,255,255,.5); box-shadow: var(--lg-edge); cursor: pointer; }
.flagrow button .flag { width: 27px; height: 18px; }
.flagrow button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--son-2), var(--lg-edge); background: var(--lg-sheen), rgba(242,179,160,.35); }
.langp__menu { background: var(--lg-sheen), rgba(255, 250, 246, .94); }
.logo svg { flex: none; }
.nav .wrap { gap: 18px; }
.nav__links { margin-left: 4px; gap: 2px; }
.nav__links a { padding: 8px 11px; }
@media (max-width: 1240px) { .nav .btn--ghost-sm { display: none; } }
@media (max-width: 1100px) { .nav .langp__full { display: none; } }
@media (max-width: 1200px) { .proto--nav .proto__btn span { display: none; } .proto--nav .proto__btn { padding: 9px; } }
.tv__who { flex: 0 1 auto; overflow: hidden; } .tv__who > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; } @media (max-width: 600px) { [data-tvpill] .tv__chip { display: none; } }
/* nếu trình duyệt chặn tự phát, khách chạm thẳng vào nút phát của YouTube; khi đã phát thì lớp chặn bấm mới bật */
.yt:not(.playing) iframe { pointer-events: auto; }

/* =========================================================
   Chống tràn khung (rà soát 07/11/2026): ô nhập kiểu iPhone, lưới, chữ dài, số tiền lớn
   ========================================================= */
body { overflow-wrap: break-word; }
.input, .select, .textarea { min-width: 0; max-width: 100%; }
/* Safari iPhone: ô ngày/giờ có bề rộng riêng và căn giữa, làm tràn và đè ô bên cạnh */
input[type="date"].input, input[type="time"].input, input[type="datetime-local"].input { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; text-align: left; line-height: 1.4; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { margin-left: auto; }
:where(.tiles, .cols2, .grid2, .wizard, .live-layout, .feat, .hero__grid, .dash, .events, .story__item, .couple-cards, .parents, .sc, .hall-pick__grid, .themes, .acct, .comm__grid, .wgrid, .split) > * { min-width: 0; }
.tile b { font-size: clamp(22px, 6.4vw, 30px); overflow-wrap: anywhere; }
@media (max-width: 420px) { .tiles { gap: 10px; } .tile { padding: 16px 14px; } }
.btn { max-width: 100%; }
.btn > span, .btn { text-overflow: ellipsis; }
[style*="grid-template-columns"] > * { min-width: 0; }

/* Tạo trang cưới: bố mẹ hai bên, nhận quà mừng */
.wfs { border: 0; margin: 0; padding: 16px; border-radius: 20px; display: grid; gap: 12px; background: var(--lg-sheen), rgba(255,255,255,.5); box-shadow: var(--lg-edge); }
.wfs__t { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--son); }
.wfs .g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .wfs .g2 { grid-template-columns: minmax(0, 1fr); } }
.wgift { padding: 16px; border-radius: 22px; display: grid; gap: 12px; background: var(--lg-sheen), rgba(255,255,255,.55); box-shadow: var(--lg-edge), var(--lg-drop); }
.wgift__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wgift__head b { font-size: 16px; }
.seg--sm button { padding: 7px 12px; font-size: 13px; }
.wgift__body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
.wgift__form { display: grid; gap: 12px; min-width: 0; }
.wgift__qr { display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ke-2); }
.wgift__qr svg, .wgift__qr img { width: 100%; height: auto; max-width: 130px; border-radius: 8px; }
.wgift__qr small { font-size: 11.5px; color: var(--muc-3); text-align: center; }
.wgift__empty { display: grid; justify-items: center; gap: 6px; padding: 18px 6px; color: var(--muc-3); font-size: 12.5px; text-align: center; }
.wgift__empty svg { width: 34px; height: 34px; }
@media (max-width: 520px) { .wgift__body { grid-template-columns: minmax(0, 1fr); } .wgift__qr { justify-self: center; width: 170px; } }
.upload--sm { padding: 20px 14px; }
.qr-img { display: block; width: 100%; max-width: 260px; margin: 0 auto; border-radius: 12px; }

.nav { margin-bottom: 10px; }
@media (max-width: 760px) { .nav { margin-bottom: 8px; } }
@media (max-width: 760px) { .lower-third h2 { font-size: clamp(24px, 7.4vw, 34px); } .lower-third { max-width: calc(100% - 96px); } }
.hteaser__text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn--lg { padding: 12px 22px; }
  .stage__top { gap: 6px; }
  .stage__top [data-sound] span { display: none; }
  .stage__top [data-sound] { padding: 0 12px; }
  .stage__top .viewers { padding: 4px 9px; }
}
/* chữ trên kính phải đọc rõ: bảng trượt, menu, bảng bản mẫu đặc hơn */
.sheet { background: var(--lg-sheen), rgba(255, 250, 246, .95); }
.sheet__head { background: linear-gradient(180deg, rgba(255,250,246,.98), rgba(255,250,246,.9)); }
.proto__panel, .drawer__panel { background: var(--lg-sheen), rgba(255, 250, 246, .95); }
.toast { background: var(--lg-sheen), rgba(36, 14, 12, .82); }
.hall-admin__panel { background: var(--lg-sheen), rgba(30, 9, 11, .86); }
/* số tiền lớn trong ô số liệu không xuống dòng giữa số và đ */
.tile b { font-size: clamp(19px, 5.4vw, 30px); overflow-wrap: normal; white-space: nowrap; }
/* gợi ý “Chạm vào video để phát” nằm trong vùng hình, không đè khung chat */
.stage .yt__hint { top: 34%; transform: translate(-50%, 0); }
.sheet { background: var(--lg-sheen), rgba(255, 250, 246, .985); }
