/* ============ Tokens ============ */
:root {
  --red: #b3121d;
  --red-deep: #7c0a13;
  --red-dark: #8a0d16;
  --red-soft: #fdeceb;
  --green: #1f6b3a;
  --green-soft: #eaf5ee;
  --gold: #f2c94c;
  --gold-deep: #c9971f;
  --cream: #fff8f2;
  --white: #ffffff;
  --ink: #241414;
  --muted: #6e5a5a;
  --line: #efe1d9;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(60, 10, 10, .06), 0 12px 32px -12px rgba(60, 10, 10, .18);
  --shadow-lg: 0 2px 4px rgba(60, 10, 10, .06), 0 24px 60px -20px rgba(60, 10, 10, .28);
  --display: "Playfair Display", Georgia, serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); color: var(--red); letter-spacing: -.01em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffd9d6; margin: 0 0 12px; }
.eyebrow.dark { color: var(--green); }
.hint { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(255, 196, 120, .28), transparent 70%),
    radial-gradient(45% 40% at 10% 10%, rgba(255, 255, 255, .10), transparent 70%),
    radial-gradient(50% 45% at 95% 20%, rgba(255, 120, 120, .18), transparent 70%),
    linear-gradient(180deg, var(--red-deep) 0%, var(--red) 55%, #c4161f 100%);
}
.hero::before { /* lớp hạt mịn */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { /* viền ren trắng */
  content: ""; display: block; height: 26px; margin-top: -1px;
  background: radial-gradient(circle at 13px 0, var(--cream) 12px, transparent 13px) 0 100% / 26px 26px repeat-x;
  transform: rotate(180deg);
}
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.snow span {
  position: absolute; top: -40px;
  width: var(--s, 18px); height: var(--s, 18px);
  background: url("/img/snowflake.svg") center / contain no-repeat;
  opacity: .7;
  animation: fall var(--d, 12s) linear var(--delay, 0s) infinite;
}
@keyframes fall { to { transform: translate(var(--drift, 30px), 110vh) rotate(360deg); } }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand-logo img { height: 56px; width: auto; }
.topbar-name { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.05rem; opacity: .9; }
.hero-logo { width: auto; height: clamp(96px, 16vw, 132px); margin: 0 auto 14px; filter: drop-shadow(0 6px 18px rgba(60, 0, 0, .35)); }
.topbar-links { display: flex; align-items: center; gap: 6px; }
.topbar-links a { color: var(--white); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s var(--ease); }
.topbar-links a:hover { background: rgba(255, 255, 255, .12); }
.topbar-links .pill-link { background: var(--white); color: var(--red); font-weight: 600; }
.topbar-links .pill-link:hover { background: #ffe9e6; }

.hero-body { padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2.6rem, 9.5vw, 5.6rem); margin: 0 0 .25em; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(60, 0, 0, .35); }
.hero h1 em { display: block; font-style: italic; font-size: .5em; color: var(--gold); letter-spacing: .02em; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem;
}
a.chip:hover { background: rgba(255, 255, 255, .2); }

.countdown { display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 auto 24px; }
.countdown div {
  min-width: 70px; padding: 10px 8px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.countdown b { display: block; font: 700 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-scene { width: min(680px, 100%); margin: 18px auto -6px; padding-inline: 8px; height: auto; }

/* ============ Nút ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 600 1rem var(--body);
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .step:focus-visible, .chip:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-light { background: var(--white); color: var(--red); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 12px 28px -12px rgba(179, 18, 29, .7); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn-outline:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ============ Thẻ chung ============ */
section { padding: 36px 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }

/* ============ Bento thông tin ============ */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -4px; }
.fact {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fact-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 1.15rem; margin-bottom: 10px; }
.fact .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.fact .value { font: 700 1.3rem var(--display); color: var(--ink); margin: 2px 0 0; }
.fact .value small { font: 500 .85rem var(--body); color: var(--muted); }
.fact-price { background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%); border-color: transparent; color: var(--white); }
.fact-price .fact-icon { background: rgba(255, 255, 255, .15); color: var(--gold); }
.fact-price .label, .fact-price .hint, .fact-price .value small { color: #ffd9d6; }
.fact-price .value { color: var(--white); font-size: 1.6rem; }

/* ============ Thực đơn và chương trình: kiểu tờ chương trình hoà nhạc ============ */
.programme-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 0 80px; margin: 24px 0 0;
  color: var(--white);
  background:
    radial-gradient(55% 45% at 15% 10%, rgba(242, 201, 76, .14), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(255, 120, 120, .14), transparent 70%),
    linear-gradient(180deg, #5c0710 0%, var(--red-deep) 45%, #5c0710 100%);
}
.programme-band::before { /* lớp hạt mịn giống hero */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band-head { text-align: center; margin-bottom: 36px; }
.band-head .eyebrow { color: var(--gold); }
.band-head h2 { color: var(--white); font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0; }
.band-head h2 em { color: var(--gold); font-style: italic; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; align-items: stretch; }
.paper {
  position: relative; color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #fffdf8 0%, #fbf3e6 70%, #f6ead6 100%);
  border-radius: 20px; padding: 10px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.paper-inner {
  height: 100%; padding: 30px 28px 24px; border-radius: 14px;
  border: 1.5px solid var(--gold-deep);
  outline: 1px solid rgba(201, 151, 31, .45); outline-offset: -7px;
  text-align: center;
}
.paper-kicker { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.paper-title { font-size: clamp(1.7rem, 4.4vw, 2.2rem); color: var(--red); margin: 6px 0 4px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-deep); margin: 4px auto 14px; max-width: 260px; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.ornament svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.menu-note {
  display: inline-block; margin: 0 0 6px; padding: 7px 16px; border-radius: 999px;
  background: var(--red); color: var(--white); font-weight: 600; font-size: .9rem;
  box-shadow: 0 8px 18px -10px rgba(179, 18, 29, .8);
}
.menu-cat {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 10px;
  font: 600 .78rem var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--green);
}
.menu-cat::before, .menu-cat::after { content: ""; flex: 1; height: 1px; background: #e6d6bd; }
.menu-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.menu-list.cols { columns: 2; column-gap: 28px; }
.menu-list li {
  break-inside: avoid; display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; font-family: var(--display); font-size: 1.08rem; color: var(--ink);
  border-bottom: 1px dotted #e6d6bd;
}
.menu-list li::before { content: ""; flex: none; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); background: var(--gold-deep); }
.menu-list li small { font-family: var(--body); font-size: .8rem; color: var(--muted); }
/* Kem 2 viên: thẻ riêng trong Menu đồ ăn, mỗi vị có chấm màu */
.menu-list li.icecream {
  display: block; margin-top: 12px; padding: 16px 16px 14px;
  border: 1px solid #ead9bf; border-radius: 16px;
  background: linear-gradient(160deg, #fffdf9 0%, #fbf1e2 100%);
}
.menu-list li.icecream::before { display: none; }
.icecream-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.icecream-head .dish { display: inline-flex; align-items: baseline; gap: 10px; font-size: 1.2rem; color: var(--red); }
.icecream-head .dish::before { content: ""; width: 6px; height: 6px; transform: translateY(-3px) rotate(45deg); background: var(--gold-deep); }
.icecream-note { font: 600 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.flavors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px 14px; }
.flavors li {
  display: flex; align-items: center; gap: 9px; padding: 0; border: 0;
  font: 500 .92rem var(--body); color: var(--ink);
}
.flavors li::before { display: none; }
.flavors i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), transparent 45%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(60, 20, 10, .25);
}
.paper-foot { margin: 20px 0 0; font-size: .82rem; font-style: italic; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; text-align: left; }
.timeline li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid #efe3cf; }
.timeline li:last-child { border-bottom: 0; }
.timeline time {
  font: 700 1.25rem var(--display); font-variant-numeric: lining-nums tabular-nums; color: var(--red);
  min-width: 3.4em;
}
.timeline .dots { width: 18px; border-bottom: 2px dotted var(--gold-deep); transform: translateY(-4px); }
.timeline .item { font-size: 1rem; line-height: 1.45; }
.timeline li.highlight .item { font-weight: 600; color: var(--red-dark); }
.timeline li.highlight time::after { content: "★"; margin-left: 4px; font-size: .7em; color: var(--gold-deep); vertical-align: super; }

/* ============ Đăng ký ============ */
.booking { background: linear-gradient(180deg, var(--cream) 0%, #fdf0e8 100%); padding: 56px 0 64px; }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.booking-intro h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { display: block; font-size: 1.02rem; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--red); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.2rem; flex: none; }

.form-card { display: grid; gap: 16px; padding: 28px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: 1rem var(--body); color: var(--ink); background: var(--cream);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: #e2c9bf; }
.field input:focus, .field textarea:focus { border-color: var(--red); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(179, 18, 29, .12); }
.field textarea { min-height: 84px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.field .err { color: var(--red); font-size: .85rem; margin: 0; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; }
.stepper input { text-align: center; font-weight: 700; font-size: 1.2rem; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step { min-height: 50px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--red); font: 600 1.5rem var(--body); cursor: pointer; transition: background .15s var(--ease); }
.step:hover { background: var(--red-soft); }
.step:active { background: var(--red); color: var(--white); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.method-body {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--cream);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.method-body .ic { grid-row: span 2; font-size: 1.4rem; color: var(--red); }
.method-body b { font-size: .95rem; }
.method-body small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.method input:checked + .method-body { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(179, 18, 29, .12); }
.method input:focus-visible + .method-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.cash-box { background: var(--cream); border: 1.5px dashed var(--gold-deep); border-radius: 16px; padding: 16px 18px; text-align: left; margin: 14px 0 0; }
.cash-box p { margin: 6px 0; }
.cash-amount b { font: 700 1.4rem var(--display); color: var(--red); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-radius: var(--radius); background: var(--red-soft); }
.total strong { font: 700 1.6rem var(--display); color: var(--red); }
.form-error { color: var(--red); font-weight: 600; text-align: center; margin: 0; }
.form-error:empty { display: none; }
.closed-box { text-align: center; }
.saved-order { text-align: center; margin: 0 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }

/* ============ Thanh toán / vé ============ */
.pay { text-align: center; }
.pay-success { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 600; padding: 4px 14px; border-radius: 999px; margin: 0 0 8px; }
.pay h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 500; }
.pay .qr { width: min(270px, 82%); margin: 14px auto; padding: 12px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pay .qr svg, .pay .qr img { width: 100%; height: auto; display: block; -webkit-touch-callout: default; }
.qr-caption { margin: 6px 0 0; font-weight: 700; color: var(--red); font-size: .95rem; }
.save-qr { min-height: 52px; }
.qr-modal .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0 4px; }
.qr-modal .or::before, .qr-modal .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qr-modal .hint { text-align: left; }
.kv { display: grid; gap: 8px; text-align: left; margin: 16px 0; }
.kv div { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--cream); border-radius: 12px; }
.kv span { color: var(--muted); font-size: .9rem; }
.kv b { font-size: 1.02rem; word-break: break-all; margin-left: auto; text-align: right; }
.copy { border: 0; background: none; color: var(--red); font: 600 .85rem var(--body); cursor: pointer; padding: 6px; white-space: nowrap; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; }
.badge.pending { background: #fff2cc; color: #7a5a00; }
.badge.paid { background: #def3e5; color: var(--green); }
.badge.checked { background: var(--green); color: var(--white); }
.badge.cancelled { background: #eee; color: #555; }
.notice { background: var(--red-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; text-align: left; }

/* Hướng dẫn quét QR */
.guide { text-align: left; }
.save-qr { display: flex; width: fit-content; margin: 0 auto 12px; }
.qr-guide { background: var(--green-soft); border: 1.5px solid #cfe5d6; border-radius: 16px; padding: 4px 16px; margin: 0 0 8px; }
.qr-guide summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 12px 0; }
.guide-case { border-top: 1px dashed #cfe5d6; padding-top: 6px; }
.guide-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 8px 0 2px; }
.guide-title .ic { color: var(--green); font-size: 1.2rem; }
.qr-guide ol { margin: 0 0 8px; padding-left: 22px; }
.qr-guide li { margin: 4px 0; font-size: .95rem; }
.qr-guide .hint { margin: 4px 0 12px; }

/* Cửa sổ lưu ảnh QR */
.qr-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20, 6, 6, .72); backdrop-filter: blur(4px); }
.qr-modal-box { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-lg); }
.qr-modal-box img { width: min(300px, 100%); margin: 8px auto 12px; border-radius: 12px; border: 1px solid var(--line); -webkit-touch-callout: default; user-select: auto; }
.qr-modal-box h3 { font-family: var(--body); font-size: 1.1rem; margin-bottom: 4px; }
.qr-modal-box ol { text-align: left; padding-left: 22px; margin: 0 0 12px; }
.qr-modal-box li { margin: 6px 0; }

/* ============ Footer ============ */
.site-footer { text-align: center; padding: 40px 16px calc(48px + env(safe-area-inset-bottom)); color: #ffd9d6; background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%); font-size: .9rem; }
.site-footer img { width: 120px; height: auto; margin: 0 auto 10px; }
.site-footer p { margin: 0; }

/* ============ Nút đăng ký nổi trên điện thoại ============ */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(36, 8, 8, .86); color: var(--white); text-decoration: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta b { display: block; font-size: .92rem; }
.sticky-cta small { color: #ffd9d6; font-size: .8rem; }
.sticky-btn { background: var(--white); color: var(--red); font-weight: 700; padding: 10px 20px; border-radius: 999px; }

/* ============ Hiệu ứng xuất hiện khi cuộn ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow span { animation: none; top: var(--y, 20%); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .fact, .sticky-cta { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .topbar-links a:not(.pill-link) { display: none; }
  .brand-logo img { height: 46px; }
  .topbar-name { font-size: .95rem; }
  .countdown div { min-width: 62px; }
  .countdown b { font-size: 1.45rem; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .card { padding: 20px; }
  .sticky-cta { display: flex; }
  .programme-band { padding: 56px 0 60px; }
  .paper-inner { padding: 24px 18px 20px; }
  .menu-list.cols { column-gap: 18px; }
  .menu-list li { font-size: 1rem; }
  .timeline li { grid-template-columns: auto 1fr; gap: 12px; }
  .timeline .dots { display: none; }
}
@media (max-width: 380px) {
  .facts { grid-template-columns: 1fr; }
  .countdown div { min-width: 56px; }
}

/* ============ Trang vé điện tử của khách (giống ảnh vé gửi qua Zalo) ============ */
body.ticket-page { background: #f3e3d6; }
.eticket-wrap { width: min(540px, 100% - 24px); margin: 0 auto; padding: 24px 0 calc(40px + env(safe-area-inset-bottom)); }
.eticket-loading { text-align: center; color: var(--muted); padding: 60px 0; }
.eticket {
  --tbg: #f3e3d6;
  position: relative; background: var(--white); border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(90, 10, 10, .35);
}
.eticket-head {
  position: relative; text-align: center; color: var(--white); padding: 34px 22px 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .5) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .5) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 62%, rgba(255, 255, 255, .45) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .4) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 9%, rgba(255, 255, 255, .4) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 86%, rgba(255, 255, 255, .4) 0 3px, transparent 4px),
    radial-gradient(70% 55% at 50% 78%, rgba(255, 196, 120, .30), transparent 70%),
    linear-gradient(180deg, var(--red-deep) 0%, var(--red) 100%);
}
.eticket-logo { height: 72px; width: auto; margin: 0 auto 12px; }
.eticket-org { margin: 0 0 6px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #ffd9d6; }
.eticket-head h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); margin: 0; color: var(--white); letter-spacing: -.01em; }
.eticket-year { margin: 2px 0 12px; font: italic 700 1.7rem var(--display); color: var(--gold); }
.eticket-meta { margin: 0; font-size: .9rem; color: #ffe9e6; }
.eticket-meta a { color: inherit; white-space: nowrap; }

.eticket-cut { position: relative; height: 0; border-top: 2px dashed #e6cfc2; margin: 0 22px; }
.eticket-cut::before, .eticket-cut::after {
  content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--tbg);
}
.eticket-cut::before { left: -36px; }
.eticket-cut::after { right: -36px; }

.eticket-body { padding: 26px 22px 24px; text-align: center; }
.eticket-kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.eticket-name { margin: 0; font-size: clamp(1.9rem, 8vw, 2.5rem); color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.eticket-student { margin: 6px 0 18px; color: var(--muted); font-size: .95rem; }
.eticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.eticket-grid div { background: var(--cream); border: 1px solid #efe1d9; border-radius: 14px; padding: 10px 12px 12px; min-width: 0; }
.eticket-grid span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.eticket-grid b { display: block; margin-top: 2px; font-size: clamp(.9rem, 3.9vw, 1.05rem); color: var(--ink); overflow-wrap: anywhere; }

.eticket-pill {
  display: inline-block; margin: 18px 0 4px; padding: 8px 18px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
}
#t-status { text-transform: uppercase; }
.eticket-pill.paid { background: #e3f3e8; color: var(--green); }
.eticket-pill.checked { background: var(--green); color: var(--white); }
.eticket-pill.pending { background: #fff2cc; color: #7a5a00; }
.eticket-pill.cancelled { background: #eee; color: #555; }

.eticket-entry { margin-top: 14px; }
.eticket-qr { width: min(210px, 70%); margin: 0 auto; padding: 12px; background: var(--white); border: 1px solid #efe1d9; border-radius: 16px; }
.eticket-qr img { width: 100%; height: auto; display: block; }
.eticket-instr { margin: 12px 0 0; font-weight: 600; font-size: .95rem; }
.eticket-foot { margin: 8px 0 0; color: var(--red); font-style: italic; font-weight: 600; font-size: .9rem; }
.eticket #staff-actions:not(:empty) { margin-top: 16px; text-align: left; }

.eticket-pay { margin-top: 18px; background: var(--white); border-radius: 24px; padding: 22px 20px; box-shadow: var(--shadow); }
.eticket-pay h3 { font-family: var(--body); font-size: 1.05rem; margin: 0 0 6px; color: var(--red); }
.eticket-pay > p { margin: 6px 0; color: var(--ink); }
.eticket-pay.pay { text-align: left; }
.eticket-pay .qr { margin: 14px auto; }
.eticket-home { text-align: center; margin: 20px 0 0; font-size: .92rem; }
