/* ===========================================================
   MB OPS · 14th Anniversary  ·  Theme
   Palette: Deep Navy (MB) + Royal Gold + Crimson accent
   =========================================================== */

:root {
  /* MB Brand — match official MB Bank colors */
  --mb-blue:        #2120C7;   /* MB primary blue (logo text) */
  --mb-blue-deep:   #14149A;
  --mb-blue-dark:   #0B0B5E;
  --mb-blue-2:      #5251E0;   /* lighter accent */
  --mb-red:         #E91E3C;   /* MB star red (pinker, more vivid) */
  --mb-red-light:   #FF5773;
  --mb-red-deep:    #B81632;

  /* Legacy aliases (kept so existing rules keep working) */
  --mb-navy:        var(--mb-blue-dark);
  --mb-navy-2:      #030836;
  --gold:           var(--mb-red);
  --gold-2:         var(--mb-red-deep);
  --crimson:        var(--mb-red);
  --rose:           var(--mb-red-light);
  --emerald:        #06d6a0;
  --violet:         #9d4edd;
  --ink:            #050C4D;
  --paper:          #f7f9fc;
  --glass-bg:       rgba(255,255,255,0.06);
  --glass-bd:       rgba(255,255,255,0.16);
  --shadow-lg:      0 30px 80px rgba(5, 12, 77, 0.55);
  --shadow-md:      0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 800px at 80% -10%, #3A5CE8 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 30%, #2745C4 0%, transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(255,77,99,.40) 0%, transparent 60%),
    linear-gradient(180deg, #0E1A6B 0%, #1A2EA0 60%, #12217A 100%);
  color: #f3f6ff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Animated background stars ===== */
.bg-stars {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(229,29,56,.85), transparent 50%),
    radial-gradient(2px 2px at 50% 70%, rgba(255,255,255,.55), transparent 50%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(76,107,224,.8), transparent 50%),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,.5), transparent 50%);
  background-size: 600px 600px, 800px 800px, 700px 700px, 900px 900px, 500px 500px, 650px 650px;
  animation: stars-drift 60s linear infinite;
  pointer-events: none;
  opacity: .65;
}
@keyframes stars-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 600px 300px, -400px 600px, 700px -500px, 200px 900px, -500px 400px, 600px -300px; }
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 450px at 50% 0%, rgba(255,77,99,.38), transparent 70%),
    radial-gradient(800px 600px at 80% 100%, rgba(76,107,224,.55), transparent 70%),
    radial-gradient(500px 400px at 10% 50%, rgba(255,77,99,.18), transparent 70%);
  mix-blend-mode: screen;
}
#confettiCanvas {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}

/* ===== Gift rain overlay (floating emojis) ===== */
.gift-rain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  overflow: hidden;
}
.gift-rain .float {
  position: absolute; bottom: -60px; font-size: 38px;
  animation: floatUp 4.2s ease-out forwards;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(.6) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translateY(-60vh) scale(1.1) rotate(20deg); opacity: 1; }
  100% { transform: translateY(-110vh) scale(.9) rotate(-15deg); opacity: 0; }
}

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(180deg, rgba(5,12,77,.88), rgba(5,12,77,.55));
  border-bottom: 1px solid rgba(229,29,56,.25);
}
.nav-left { display:flex; align-items:center; gap:14px; }
.logo-badge-full {
  height: 48px; padding: 8px 16px; border-radius: 14px;
  background: #ffffff;
  display: inline-flex; align-items: center;
  box-shadow: 0 8px 22px rgba(229,30,60,.28), 0 4px 10px rgba(33,32,199,.18);
  transition: transform .3s, box-shadow .3s;
}
.logo-badge-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229,30,60,.4), 0 6px 14px rgba(33,32,199,.25);
}
.logo-official-img {
  height: 100%; width: auto; display: block;
}
.logo-divider {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.35), transparent);
}
.logo-text .logo-bank {
  font-weight: 800; letter-spacing: .02em; color: #fff;
  font-size: 17px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.logo-text .logo-sub {
  font-size: 11px; letter-spacing: .14em;
  color: var(--mb-red-light); font-weight: 600;
  text-transform: uppercase;
}
.nav-links { display:flex; gap: 24px; }
.nav-links a {
  position: relative; padding: 6px 2px; opacity: .82; font-weight: 500;
  transition: opacity .25s;
}
.nav-links a::after {
  content:''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--mb-blue-2), var(--mb-red));
  transition: width .35s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display:flex; align-items:center; gap: 14px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(230,57,70,.15);
  border: 1px solid rgba(230,57,70,.55);
  color: #ffd6da; font-weight: 700; font-size: 12px; letter-spacing: .12em;
  opacity: .3; transition: opacity .3s, transform .3s;
}
.live-pill.on { opacity: 1; transform: scale(1.04); }
.live-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(230,57,70,.7);
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.btn-ghost {
  padding: 9px 16px; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); font-weight: 600;
  transition: all .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--mb-red); color: var(--mb-red-light); }

/* ===== COUNTDOWN BANNER ===== */
.countdown-section {
  position: relative; z-index: 2;
  padding: 28px 24px 30px;
  text-align: center;
  background:
    radial-gradient(900px 280px at 50% -40%, rgba(229,30,60,.22), transparent 70%),
    linear-gradient(180deg, rgba(33,32,199,.18) 0%, rgba(229,30,60,.08) 100%);
  border-bottom: 1px solid rgba(255,87,115,.20);
}
.countdown-inner { max-width: 1100px; margin: 0 auto; }

.cd-head {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--mb-red-light); font-weight: 700; font-size: 12px;
  letter-spacing: .35em; margin-bottom: 16px;
}
.cd-flourish {
  font-size: 16px; color: #fff;
  text-shadow: 0 0 14px rgba(255,87,115,.7);
  animation: flourish-spin 6s linear infinite;
}
.cd-head .cd-flourish:last-child { animation-direction: reverse; }

.countdown-display {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 18px;
  min-width: 96px;
  background:
    radial-gradient(120px 60px at 50% 0%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.18);
  position: relative; overflow: hidden;
}
.cd-unit::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.cd-value {
  font-size: 46px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #ffd7dd 55%, var(--mb-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(229,30,60,.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cd-value.flip {
  animation: cd-flip .55s ease-out;
}
@keyframes cd-flip {
  0%   { transform: translateY(0)     scale(1);    opacity: 1; }
  45%  { transform: translateY(-40%)  scale(.85);  opacity: 0; }
  55%  { transform: translateY(40%)   scale(.85);  opacity: 0; }
  100% { transform: translateY(0)     scale(1);    opacity: 1; }
}
.cd-label {
  font-size: 10px; letter-spacing: .28em;
  color: #ffd7dd; font-weight: 700; opacity: .85;
}
.cd-sep {
  font-size: 34px; color: var(--mb-red-light);
  font-weight: 900; opacity: .55; margin-bottom: 14px;
  animation: cd-blink 1s infinite;
}
@keyframes cd-blink { 50% { opacity: .12; } }

.cd-event {
  color: #d6deff; font-size: 14px; line-height: 1.5;
}
.cd-event b { color: #fff; }
.cd-date {
  color: var(--mb-red-light); margin-left: 4px; font-weight: 700;
}

/* When event is LIVE (countdown reached zero) */
.countdown-section.live {
  background:
    radial-gradient(900px 280px at 50% -40%, rgba(229,30,60,.45), transparent 70%),
    linear-gradient(180deg, rgba(229,30,60,.22) 0%, rgba(229,30,60,.10) 100%);
}
.countdown-section.live .cd-unit {
  border-color: var(--mb-red);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(229,30,60,.45), inset 0 1px 0 rgba(255,255,255,.2); }
  50%     { box-shadow: 0 12px 32px rgba(229,30,60,.65), inset 0 1px 0 rgba(255,255,255,.3); }
}

@media (max-width: 720px) {
  .countdown-section { padding: 22px 14px 24px; }
  .countdown-display { gap: 4px; }
  .cd-unit { min-width: 60px; padding: 8px 6px; }
  .cd-value { font-size: 28px; }
  .cd-sep { font-size: 22px; margin-bottom: 12px; }
  .cd-label { font-size: 9px; letter-spacing: .15em; }
  .cd-head { font-size: 11px; letter-spacing: .25em; gap: 10px; }
}

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  padding: 80px 24px 120px;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10%;
  background:
    conic-gradient(from 200deg at 70% 30%, rgba(229,29,56,.20), transparent 30%),
    conic-gradient(from 20deg at 20% 70%, rgba(31,64,199,.32), transparent 30%);
  filter: blur(30px); opacity: .85; z-index: -1;
  animation: bg-rotate 28s linear infinite;
}
@keyframes bg-rotate {
  to { transform: rotate(360deg); }
}
.hero-orbits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-orbits span {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; border: 1px dashed rgba(229,29,56,.22);
  transform: translate(-50%, -50%);
  animation: orbit-spin 40s linear infinite;
}
.hero-orbits span:nth-child(2) { border-color: rgba(76,107,224,.22); }
.hero-orbits span:nth-child(3) { border-color: rgba(229,29,56,.14); }
.hero-orbits span:nth-child(1) { width: 480px; height: 480px; }
.hero-orbits span:nth-child(2) { width: 760px; height: 760px; animation-duration: 60s; animation-direction: reverse; }
.hero-orbits span:nth-child(3) { width: 1080px; height: 1080px; animation-duration: 80s; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner { max-width: 1100px; text-align: center; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .25em; color: var(--mb-red-light);
  margin-bottom: 22px; opacity: 0; animation: fadeUp .8s .1s forwards;
}
.hero-eyebrow .line { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--mb-red)); }
.hero-eyebrow .line:last-child { background: linear-gradient(90deg, var(--mb-red), transparent); }

.hero-title { margin: 0; line-height: 1.05; font-family: "Be Vietnam Pro", sans-serif; }
.hero-title .title-row {
  display: block; opacity: 0; animation: fadeUp .9s forwards;
}
.hero-title .title-row:nth-child(1) {
  font-size: clamp(22px, 3vw, 34px); letter-spacing: .42em; color: #ffd7dd;
  font-weight: 600; animation-delay: .15s;
}
.hero-title .title-row.big {
  font-size: clamp(80px, 16vw, 240px); font-weight: 900;
  letter-spacing: -.02em; margin: 12px 0 10px;
  animation-delay: .3s;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 28px;
  perspective: 1400px;
}
.title-row.big .num {
  display: inline-flex; gap: 6px;
  transform-style: preserve-3d;
  animation: num-float 6s ease-in-out infinite;
}
@keyframes num-float {
  0%, 100% { transform: rotateY(-10deg) rotateX(6deg) translateY(0); }
  50%      { transform: rotateY(10deg)  rotateX(-2deg) translateY(-10px); }
}
.title-row.big .digit {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 900;
  transform-origin: center;
  animation: digit-pop 1.1s cubic-bezier(.34,1.56,.64,1) both;
  /* True 3D extrude via stacked text-shadows */
  text-shadow:
    0 1px 0  #ff7587,
    0 2px 0  #ff5d72,
    0 3px 0  #f74b62,
    0 4px 0  #ee3a53,
    0 5px 0  #e22744,
    0 6px 0  #c91d3a,
    0 7px 0  #b21833,
    0 8px 0  #9a132c,
    0 9px 0  #841025,
    0 10px 0 #6e0c1f,
    0 11px 0 #5a081a,
    0 12px 0 #460515,
    0 14px 12px rgba(0,0,0,.55),
    0 18px 30px rgba(229,29,56,.55),
    0 0 60px rgba(255,77,99,.45);
  -webkit-text-stroke: 1px rgba(255,255,255,.18);
}
.title-row.big .digit[data-d="1"] { animation-delay: .5s; }
.title-row.big .digit[data-d="4"] { animation-delay: .72s; }
@keyframes digit-pop {
  0%   { opacity: 0; transform: translateY(60px) translateZ(-100px) scale(.55) rotate(-12deg); }
  60%  { opacity: 1; transform: translateY(-6px) translateZ(20px) scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) translateZ(0) scale(1) rotate(0); }
}
.title-row.big .years {
  /* defined below — kept for cascade order */
}
.title-row.big .years {
  font-size: clamp(26px, 4vw, 56px); letter-spacing: .25em; color: #fff;
  font-weight: 700; opacity: .95;
  text-shadow:
    0 1px 0 #c9d4ff,
    0 2px 0 #a8b8f5,
    0 3px 0 #8090e5,
    0 4px 0 #5970d0,
    0 5px 0 #3a52b5,
    0 6px 10px rgba(0,0,0,.5),
    0 0 30px rgba(76,107,224,.6);
}
.hero-title .title-row.sub {
  font-size: clamp(16px, 2vw, 22px); letter-spacing: .3em; font-weight: 600;
  color: #c8d4ff; animation-delay: .5s;
}

.hero-tagline {
  max-width: 720px; margin: 28px auto 0;
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px); color: #d6e0ff; opacity: 0;
  animation: fadeUp .9s .9s forwards;
}

.hero-cta {
  display: flex; gap: 14px; justify-content: center; margin-top: 36px;
  opacity: 0; animation: fadeUp .9s 1.1s forwards;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 14px 26px; border-radius: 999px; font-weight: 700;
  cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; transition: all .25s; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mb-red) 0%, var(--mb-red-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(229,29,56,.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(229,29,56,.6); }
.btn-primary.big { padding: 18px 36px; font-size: 17px; }
.btn-primary.small { padding: 10px 18px; font-size: 13px; }
.btn-primary::before {
  content:''; position: absolute; top:0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition: left .6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-secondary {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(76,107,224,.55);
}
.btn-secondary:hover {
  background: rgba(31,64,199,.18);
  border-color: var(--mb-blue-2);
}
.b-icon { font-size: 16px; }

.hero-stats {
  margin-top: 60px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 28px;
  max-width: 900px; margin-inline: auto;
  opacity: 0; animation: fadeUp 1s 1.3s forwards;
}
.hero-stats .stat {
  padding: 18px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.hero-stats .stat .num {
  font-size: 38px; font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--mb-red-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em; line-height: 1;
}
.hero-stats .stat .lbl {
  margin-top: 8px; font-size: 13px; opacity: .8;
}

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .65;
}
.scroll-cue span {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px;
  position: relative;
}
.scroll-cue span::before {
  content:''; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 3px; height: 8px; background: #fff; border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translate(-50%, 0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}
.scroll-cue p { margin: 0; font-size: 11px; letter-spacing: .2em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Glass card ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

/* ===== Section head ===== */
.section-head { text-align: center; margin: 0 auto 36px; max-width: 720px; padding: 0 20px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; margin: 0 0 10px; letter-spacing: -.01em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd7dd 50%, var(--mb-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 .tag {
  display: inline-block; vertical-align: middle;
  background: var(--crimson); color: #fff; font-size: 12px;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .15em;
  margin-right: 8px; -webkit-text-fill-color: #fff;
  animation: tag-blink 1.6s infinite;
}
@keyframes tag-blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .5; }
}
.section-head p { color: #b8c4e6; font-size: 15px; }

/* ===== LIVE SECTION ===== */
.live-section { position: relative; z-index: 2; padding: 60px 24px 80px; }
.live-grid {
  display: grid; grid-template-columns: minmax(0,1.7fr) minmax(320px,.9fr);
  gap: 24px; max-width: 1400px; margin: 0 auto;
}
.player-card { overflow: hidden; }
.player-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.player-title { display:flex; align-items:center; gap: 10px; font-weight: 600; }
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #9aa3b8;
}
.live-dot.on {
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(230,57,70,.7);
  animation: pulse-dot 1.2s infinite;
}
.viewers { font-size: 13px; opacity: .8; }
.viewers::before { content:'👁  '; }

.video-wrap {
  position: relative; aspect-ratio: 16/9; background: #000;
}
.video-wrap video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}
.player-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(0,30,80,.4), rgba(0,5,20,.85));
  text-align: center; padding: 20px;
  transition: opacity .5s;
}
.player-overlay.hidden { opacity: 0; pointer-events: none; }
.ov-inner { max-width: 480px; }
.ov-anim {
  position: relative; width: 120px; height: 120px; margin: 0 auto 20px;
}
.ov-anim .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--mb-red); opacity: 0;
  animation: ov-ring 2.4s ease-out infinite;
}
.ov-anim .ring:nth-child(2) { animation-delay: .8s; }
.ov-anim .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ov-ring {
  0%   { transform: scale(.4); opacity: .8; }
  100% { transform: scale(1.2); opacity: 0; }
}
.player-overlay h3 { margin: 0 0 6px; font-size: 20px; color: var(--mb-red-light); }
.player-overlay p { margin: 0 0 18px; color: #cdd6f0; font-size: 14px; }
.rtmp-info {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(0,0,0,.35); padding: 14px 16px; border-radius: 12px;
  border: 1px dashed rgba(229,29,56,.45); font-size: 13px;
}
.rtmp-info div { display:flex; justify-content:space-between; gap:12px; }
.rtmp-info span { opacity:.7; }
.rtmp-info code {
  font-family: "SF Mono", Menlo, monospace;
  color: var(--mb-red-light); font-weight: 700;
}

/* Gift bar */
.gift-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.gift-label { font-size: 14px; opacity: .85; font-weight: 600; }
.gift-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.gift-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(31,64,199,.25), rgba(229,29,56,.22));
  border: 1px solid rgba(229,29,56,.45);
  color: #fff; font-weight: 700; font-size: 14px;
  transition: all .2s; position: relative; overflow: hidden;
}
.gift-btn:hover { transform: translateY(-2px) scale(1.05); border-color: var(--mb-red-light); box-shadow: 0 8px 22px rgba(229,29,56,.4); }
.gift-btn:active { transform: scale(.96); }
.gift-btn .emoji { font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.gift-btn .count {
  background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 12px;
  font-size: 12px; min-width: 28px; text-align: center;
}
.gift-btn.bump { animation: gift-bump .5s; }
@keyframes gift-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ===== Side panel (tabs) ===== */
.side-panel { display: flex; flex-direction: column; min-height: 620px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); }
.tab {
  flex: 1; padding: 14px 8px; background: transparent; border: none;
  color: #aab4d4; font-weight: 600; font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.tab:hover { color: #fff; }
.tab.active {
  color: var(--mb-red-light); border-bottom-color: var(--mb-red);
  background: linear-gradient(180deg, transparent, rgba(229,29,56,.10));
}
.tab-panel {
  display: none; flex: 1; flex-direction: column; min-height: 0;
}
.tab-panel.active { display: flex; }

/* Chat */
.chat-list {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { color: #8893b6; text-align: center; padding: 32px 12px; font-size: 14px; }
.chat-msg {
  background: rgba(255,255,255,.04);
  padding: 8px 12px 10px; border-radius: 12px;
  border-left: 3px solid var(--mb-red);
  animation: msg-in .4s ease-out;
  font-size: 14px; line-height: 1.45;
}
.chat-msg .msg-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 2px;
}
.chat-msg .u {
  color: var(--mb-red-light); font-weight: 700; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.chat-msg .time {
  color: #8da0d4; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
  font-family: "SF Mono", Menlo, monospace;
}
.chat-msg .t {
  color: #e8eeff;
  word-wrap: break-word; overflow-wrap: break-word;
}
.chat-msg .t { color: #e8eeff; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-form, .q-form {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.chat-form input, .q-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.chat-form input:focus, .q-form textarea:focus { border-color: var(--mb-red); }
.chat-form input:disabled {
  background: rgba(0,0,0,.15);
  color: #6f7da6;
  cursor: not-allowed;
  border-color: rgba(255,255,255,.06);
}
.chat-form input[readonly] {
  background: rgba(255,255,255,.04);
  color: #cdd6f0;
  border-color: rgba(255,255,255,.08);
  cursor: default;
  font-weight: 600;
}
.chat-form .row { display: flex; gap: 8px; }
.chat-form .row input { flex: 1; }
.chat-form .btn-send:disabled {
  background: linear-gradient(135deg, #6f7da6, #4d597a);
  color: #d6deff; cursor: not-allowed;
}

/* ---- Auth fields (Mã CBNV lookup) ---- */
.auth-row {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
}
.auth-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.auth-field label {
  font-size: 10px; letter-spacing: .18em; font-weight: 700;
  color: #ffd7dd; text-transform: uppercase;
  padding-left: 2px;
}
.auth-field label em {
  color: var(--mb-red); font-style: normal; margin-left: 2px;
}
.auth-field input { padding-right: 30px !important; }
.auth-field input.ok    { border-color: rgba(6,214,160,.55); background: rgba(6,214,160,.06); }
.auth-field input.err   { border-color: rgba(229,30,60,.55); background: rgba(229,30,60,.08); }
.auth-status {
  position: absolute; right: 8px; bottom: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; line-height: 1;
  pointer-events: none; transition: all .2s;
}
.auth-status.idle    { opacity: 0; }
.auth-status.loading { background: rgba(255,255,255,.1); color: #fff; opacity: 1; animation: spin 1s linear infinite; }
.auth-status.ok      { background: var(--emerald); color: #03422f; opacity: 1; }
.auth-status.err     { background: var(--mb-red); color: #fff; opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-banner {
  margin: 0 0 6px; padding: 8px 12px; border-radius: 10px;
  background: rgba(229,30,60,.14);
  border: 1px solid rgba(229,30,60,.5);
  color: #ffcbd2; font-size: 12px; font-weight: 600;
  text-align: center;
}
.auth-banner.hidden { display: none; }
.auth-hint {
  margin: 0; padding: 2px 4px;
  color: #8da0d4; font-size: 11px; line-height: 1.4;
}
.auth-hint.err { color: var(--mb-red-light); font-weight: 600; }
.btn-send {
  width: 42px; height: 42px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--mb-red), var(--mb-red-deep));
  color: #fff; font-size: 18px; font-weight: 900;
  transition: transform .2s;
}
.btn-send:hover { transform: scale(1.05); }

/* Questions */
.pinned-wrap {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(229,29,56,.10), transparent);
}
.pinned-empty { color: #8893b6; font-size: 13px; text-align: center; padding: 8px; }
.pin-card {
  position: relative; padding: 12px 14px 12px 38px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(229,29,56,.18), rgba(31,64,199,.14));
  border: 1px solid rgba(229,29,56,.45);
  margin-bottom: 8px; font-size: 14px;
  animation: pin-in .6s cubic-bezier(.34,1.56,.64,1);
}
.pin-card::before {
  content: '📌'; position: absolute; left: 12px; top: 12px; font-size: 18px;
  animation: pin-wobble 2.5s ease-in-out infinite;
}
@keyframes pin-wobble {
  0%,100% { transform: rotate(-15deg); }
  50%     { transform: rotate(15deg); }
}
@keyframes pin-in {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.pin-card .u { color: var(--mb-red-light); font-weight: 700; font-size: 12px; }
.pin-card .t { margin-top: 4px; color: #fff; }

.q-list {
  flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 8px;
}
.q-card {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  animation: msg-in .4s;
}
.q-vote {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 42px; padding: 6px 6px;
  background: rgba(0,0,0,.3); border-radius: 8px; cursor: pointer;
  transition: all .2s; user-select: none;
}
.q-vote:hover { background: rgba(229,29,56,.22); }
.q-vote.voted { background: rgba(229,29,56,.28); border: 1px solid var(--mb-red); }
.q-vote .arr { color: var(--mb-red-light); font-size: 14px; line-height: 1; }
.q-vote .cnt { font-weight: 800; font-size: 14px; }
.q-body { flex: 1; font-size: 14px; }
.q-body .u { color: var(--mb-blue-2); font-weight: 700; font-size: 12px; }
.q-body .t { margin-top: 4px; color: #e8eeff; }
.q-body .pin-btn {
  margin-top: 6px; background: transparent; border: 1px dashed rgba(255,255,255,.2);
  color: #aab4d4; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; cursor: pointer; transition: all .2s;
}
.q-body .pin-btn:hover { color: var(--mb-red-light); border-color: var(--mb-red); }

/* Gifts feed */
.leaderboard {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.leaderboard h4 {
  margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; color: #cdd6f0;
}
.gift-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.gift-board .gi {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(31,64,199,.14), rgba(229,29,56,.10));
  border: 1px solid rgba(255,255,255,.08);
}
.gift-board .gi .em { font-size: 22px; }
.gift-board .gi .n  { font-weight: 800; font-size: 14px; color: var(--mb-red-light); }
.gift-feed {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.gift-feed .gf {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: rgba(255,255,255,.04); border-radius: 12px;
  border-left: 3px solid var(--mb-red);
  animation: msg-in .4s; font-size: 14px;
}
.gift-feed .gf .em { font-size: 22px; }

/* Scrollbars */
.chat-list::-webkit-scrollbar, .q-list::-webkit-scrollbar, .gift-feed::-webkit-scrollbar {
  width: 6px;
}
.chat-list::-webkit-scrollbar-thumb, .q-list::-webkit-scrollbar-thumb, .gift-feed::-webkit-scrollbar-thumb {
  background: rgba(229,29,56,.4); border-radius: 3px;
}

/* ===== JOURNEY ===== */
.journey { padding: 80px 24px; position: relative; z-index: 2; }
.timeline {
  max-width: 980px; margin: 0 auto;
  position: relative; padding: 20px 0;
}
.timeline::before {
  content:''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--mb-blue-2) 10%, var(--mb-red) 50%, var(--mb-blue-2) 90%, transparent);
  transform: translateX(-50%);
}
.tl-item {
  position: relative; display: grid;
  grid-template-columns: 1fr 100px 1fr; align-items: center;
  margin: 32px 0;
}
.tl-item:nth-child(odd)  .tl-card { grid-column: 1; text-align: right; }
.tl-item:nth-child(odd)  .tl-year { grid-column: 2; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-item:nth-child(even) .tl-year { grid-column: 2; }
.tl-year {
  text-align: center; font-weight: 900; font-size: 22px;
  color: var(--mb-red-light); letter-spacing: .05em;
}
.tl-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mb-red);
  box-shadow: 0 0 0 6px rgba(229,29,56,.25), 0 0 0 12px rgba(229,29,56,.10);
}
.tl-card { padding: 18px 20px; }
.tl-card h3 { margin: 0 0 6px; color: var(--mb-red-light); font-size: 17px; }
.tl-card p { margin: 0; color: #d6deff; font-size: 14px; line-height: 1.55; }

/* ===== Gallery ===== */
.gallery { padding: 60px 24px 100px; position: relative; z-index: 2; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.g-card {
  position: relative; padding: 28px 22px;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, var(--gold)), var(--c2, var(--rose)));
  color: #07091a; font-weight: 700;
  transition: transform .35s, box-shadow .35s;
  box-shadow: var(--shadow-md);
}
.g-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.g-card::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 50%);
  pointer-events: none;
}
.g-emoji {
  font-size: 50px; margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  transition: transform .4s;
}
.g-card:hover .g-emoji { transform: scale(1.15) rotate(8deg); }
.g-card h3 { margin: 0 0 6px; font-size: 20px; }
.g-card p { margin: 0; font-size: 14px; opacity: .85; font-weight: 500; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== HEART WALL — collaborative photo mosaic ===== */
.heart-section {
  padding: 70px 24px 80px;
  position: relative; z-index: 2;
}

/* ----- Decorated head ----- */
.heart-head {
  max-width: 920px; margin: 0 auto 36px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  text-align: center;
}
.hh-flourish {
  font-size: 36px; color: var(--mb-red-light);
  text-shadow: 0 0 18px rgba(229,30,60,.55);
  animation: flourish-spin 8s linear infinite;
}
.hh-flourish.right { animation-direction: reverse; }
@keyframes flourish-spin {
  to { transform: rotate(360deg); }
}
.hh-eyebrow {
  font-size: 12px; letter-spacing: .35em; color: var(--mb-red-light);
  margin-bottom: 8px; font-weight: 700;
}
.hh-title h2 {
  margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  line-height: 1.15; letter-spacing: -.01em;
  background: linear-gradient(135deg, #fff 0%, #ffd7dd 50%, var(--mb-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hh-title h2 .hh-accent {
  background: linear-gradient(135deg, var(--mb-red-light), var(--mb-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hh-title h2 .heart-emoji {
  -webkit-text-fill-color: initial;
  display: inline-block;
  animation: heart-beat 1.4s ease-in-out infinite;
  margin-right: 6px;
}
@keyframes heart-beat {
  0%,100% { transform: scale(1); }
  20%     { transform: scale(1.22); }
  40%     { transform: scale(.92); }
  60%     { transform: scale(1.14); }
}
.hh-sub {
  margin: 12px auto 0; color: #d6deff;
  font-size: 15px; max-width: 620px;
}
.hh-sub b { color: var(--mb-red-light); }

.hh-extra {
  margin: 10px auto 0; padding: 8px 16px;
  display: inline-block;
  background: linear-gradient(135deg, rgba(229,30,60,.18), rgba(33,32,199,.14));
  border: 1px solid rgba(255,87,115,.4);
  border-radius: 999px;
  color: #ffd7dd; font-size: 13px;
  animation: extra-glow 2.4s ease-in-out infinite;
}
.hh-extra b { color: #fff; font-weight: 800; }
@keyframes extra-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(229,30,60,.4); }
  50%     { box-shadow: 0 0 0 10px rgba(229,30,60,0); }
}

.heart-wrap {
  position: relative;
  max-width: 920px; margin: 0 auto;
  padding: 36px 28px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

/* ----- Sparkles ----- */
.heart-sparkles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.heart-sparkles span {
  position: absolute; color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 18px rgba(229,30,60,.5);
  animation: sparkle-twinkle 2.6s ease-in-out infinite;
}
@keyframes sparkle-twinkle {
  0%,100% { opacity: .15; transform: scale(.6) rotate(0); }
  50%     { opacity: 1;   transform: scale(1.2) rotate(45deg); }
}

/* ----- Pulsing rings around heart ----- */
.heart-ring {
  position: absolute; left: 50%; top: 50%;
  width: 78%; aspect-ratio: 32/28;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255,87,115,.35);
  border-radius: 50%;
  animation: ring-spin 28s linear infinite;
  pointer-events: none; z-index: 0;
}
.heart-ring.r2 {
  width: 96%; border-style: dotted;
  border-color: rgba(76,107,224,.32);
  animation-duration: 40s; animation-direction: reverse;
}
@keyframes ring-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ----- Floating particles ----- */
.heart-floats {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 3;
}
.heart-particle {
  position: absolute; bottom: -30px;
  color: var(--mb-red-light); opacity: 0;
  filter: drop-shadow(0 0 6px rgba(229,30,60,.6));
  animation: particle-rise 7s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes particle-rise {
  0%   { transform: translateY(0) rotate(0) scale(.5);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-110%) rotate(30deg) scale(1.3); opacity: 0; }
}

/* ----- "14 NĂM" stamp ----- */
.heart-stamp {
  position: absolute; bottom: -14px; right: -14px; z-index: 4;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--mb-red) 75%, var(--mb-red-deep) 100%);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(229,30,60,.55), inset 0 0 0 3px rgba(255,255,255,.4);
  transform: rotate(-15deg);
  animation: stamp-pop 4s ease-in-out infinite;
}
.heart-stamp::before {
  content: ''; position: absolute; inset: 4px;
  border: 2px dashed rgba(255,255,255,.6); border-radius: 50%;
}
.heart-stamp .s-num {
  font-size: 32px; font-weight: 900; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.heart-stamp .s-txt {
  font-size: 10px; font-weight: 700; letter-spacing: .2em; opacity: .95;
}
@keyframes stamp-pop {
  0%,100% { transform: rotate(-15deg) scale(1); }
  50%     { transform: rotate(-12deg) scale(1.08); }
}

.heart-stage {
  position: relative;
  width: 100%; max-width: 920px;
  aspect-ratio: 52 / 50;
  z-index: 1;
}
.heart-bg-glow {
  position: absolute; inset: -12% -6% -4% -6%;
  background:
    radial-gradient(circle at 35% 38%, rgba(255,120,140,.65), transparent 55%),
    radial-gradient(circle at 65% 38%, rgba(255,120,140,.65), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(233,30,60,.45), transparent 70%);
  filter: blur(42px); z-index: 0; pointer-events: none;
  animation: glow-pulse 3.6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: scale(1); opacity: .85; }
  50%     { transform: scale(1.05); opacity: 1; }
}
.heart-grid {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  grid-template-rows: repeat(50, 1fr);
  gap: 1px;
}
/* ----- "VẬN HÀNH" text overlay inside heart ----- */
.heart-text-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 5; pointer-events: none;
  text-align: center; white-space: nowrap;
  font-family: "Be Vietnam Pro", sans-serif;
  animation: hto-float 4.5s ease-in-out infinite;
}
@keyframes hto-float {
  0%,100% { transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
  50%     { transform: translate(-50%, -52%) rotate(-2deg) scale(1.03); }
}
.heart-text-overlay.hidden { opacity: 0; }
.heart-text-overlay { transition: opacity .5s; }
.heart-text-overlay .hto-main {
  font-size: clamp(40px, 9vw, 110px);
  font-weight: 900; line-height: .95;
  letter-spacing: .04em;
  color: #ffffff;
  font-style: italic;
  -webkit-text-stroke: 2px var(--mb-red-deep);
  text-shadow:
    -3px -3px 0 var(--mb-red-deep),
     3px -3px 0 var(--mb-red-deep),
    -3px  3px 0 var(--mb-red-deep),
     3px  3px 0 var(--mb-red-deep),
    0 0 28px rgba(229,30,60,.85),
    0 8px 22px rgba(0,0,0,.55),
    0 0 50px rgba(255,87,115,.55);
}
.heart-text-overlay .hto-sub {
  margin-top: 4px;
  font-size: clamp(11px, 1.6vw, 18px);
  font-weight: 800; letter-spacing: .42em;
  color: #fff;
  text-shadow:
    0 1px 0 var(--mb-red-deep),
    0 0 10px rgba(229,30,60,.7),
    0 4px 12px rgba(0,0,0,.55);
}

.heart-empty-msg {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  pointer-events: none;
  transition: opacity .4s;
}
.heart-empty-msg.hidden { opacity: 0; pointer-events: none; }
.heart-empty-msg .hem-icon {
  font-size: 56px;
  filter: drop-shadow(0 6px 22px rgba(229,30,60,.55));
  animation: heart-beat 1.4s ease-in-out infinite;
}
.heart-empty-msg .hem-title {
  font-size: 18px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  background: linear-gradient(135deg, #fff, #ffd7dd);
  -webkit-background-clip: text; background-clip: text;
}
.heart-empty-msg .hem-sub {
  font-size: 13px; color: #d6deff; max-width: 360px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.h-cell {
  position: relative;
  border-radius: 3px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
/* Empty cells are INVISIBLE — heart only appears as photos arrive */
.h-cell.empty {
  background: transparent;
  border: none;
  pointer-events: none;
}
.h-cell.filled {
  background: #fff;
  border-color: rgba(255,255,255,.4);
}
.h-cell.filled img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.1);
}
.h-cell.filled:hover {
  transform: scale(5); z-index: 50;
  box-shadow: 0 16px 32px rgba(0,0,0,.55), 0 0 0 1.5px var(--mb-red);
  border-radius: 5px;
}
.h-cell.filled:hover img { filter: saturate(1.2) brightness(1.05); }
.h-cell .cell-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
  color: #fff; font-size: 6px; font-weight: 700;
  padding: 1px 2px; text-align: center;
  opacity: 0; transition: opacity .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h-cell.filled:hover .cell-name { font-size: 7px; padding: 2px 3px; }
.h-cell.filled:hover .cell-name { opacity: 1; }

.h-cell.just-added {
  animation: cell-pop 1s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 0 0 rgba(233,30,60,.9);
}
@keyframes cell-pop {
  0%   { transform: scale(0) rotate(-20deg); box-shadow: 0 0 0 6px rgba(233,30,60,.7); }
  60%  { transform: scale(1.4) rotate(8deg); box-shadow: 0 0 0 12px rgba(233,30,60,0); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(233,30,60,0); }
}

.h-cell.my-photo {
  animation: my-photo-pulse 2s ease-in-out infinite;
  z-index: 10;
  border: 1.5px solid var(--mb-red-light);
}
.h-cell.my-photo::after {
  content: '★';
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 8px;
  color: #ffeb3b;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
@keyframes my-photo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(233,30,60,.9); transform: scale(1); }
  50%  { box-shadow: 0 0 12px 4px rgba(233,30,60,.8); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(233,30,60,0); transform: scale(1); }
}

.heart-upload {
  text-align: center; width: 100%; max-width: 520px;
}
.heart-upload .upload-hint {
  margin-top: 12px; font-size: 13px; color: #bcc6e8;
}
.demo-toggle {
  margin-top: 14px; padding: 8px 18px; font-size: 13px;
  border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(76,107,224,.6);
  color: #cdd6f0; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s;
}
.demo-toggle:hover {
  background: rgba(76,107,224,.18);
  border-color: var(--mb-blue-2);
  color: #fff;
}
.demo-toggle.active {
  background: linear-gradient(135deg, var(--mb-blue), var(--mb-red));
  border-style: solid; border-color: transparent;
  color: #fff;
}
.demo-toggle .dt-icon { font-size: 16px; }

.demo-badge {
  margin: 20px auto 0;
  display: inline-block;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(33,32,199,.3), rgba(229,30,60,.3));
  border: 1px solid rgba(255,87,115,.55);
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  animation: demo-pulse 2s ease-in-out infinite;
}
.demo-badge[hidden] { display: none !important; }
@keyframes demo-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(229,30,60,.5); }
  50%     { box-shadow: 0 0 0 14px rgba(229,30,60,0); }
}

/* Demo cells — colorful avatars with initials */
.h-cell.demo-filled {
  background: var(--demo-bg, linear-gradient(135deg, #ff5d72, #2120c7));
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: #fff; font-size: 6px; font-weight: 900;
  text-shadow: 0 1px 1px rgba(0,0,0,.5);
  animation: demo-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.h-cell.demo-filled:hover {
  transform: scale(5); z-index: 50;
  box-shadow: 0 16px 32px rgba(0,0,0,.55), 0 0 0 1.5px var(--mb-red);
}
@keyframes demo-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.heart-upload .upload-note {
  margin-top: 8px; font-size: 13px; font-weight: 600;
  color: var(--mb-red-light);
}
.btn-primary:disabled {
  background: linear-gradient(135deg, #6f7da6, #4d597a);
  color: #d6deff; cursor: not-allowed;
  box-shadow: none; transform: none !important;
}
.btn-primary:disabled::before { display: none; }

/* ===== Floating Admin button (always visible bottom-right) ===== */
.admin-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--mb-red) 0%, var(--mb-red-deep) 100%);
  color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: .04em;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow:
    0 10px 28px rgba(229,30,60,.55),
    inset 0 1px 0 rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  animation: fab-pulse 3s ease-in-out infinite;
}
.admin-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 38px rgba(229,30,60,.75),
    inset 0 1px 0 rgba(255,255,255,.4);
}
.admin-fab:active { transform: translateY(-1px) scale(1.02); }
.admin-fab .fab-icon {
  font-size: 18px; line-height: 1;
  display: inline-block;
  animation: fab-spin 6s linear infinite;
}
@keyframes fab-spin { to { transform: rotate(360deg); } }
@keyframes fab-pulse {
  0%,100% { box-shadow: 0 10px 28px rgba(229,30,60,.45), inset 0 1px 0 rgba(255,255,255,.3); }
  50%     { box-shadow: 0 10px 28px rgba(229,30,60,.7),  inset 0 1px 0 rgba(255,255,255,.4),
                        0 0 24px rgba(229,30,60,.5); }
}
@media (max-width: 720px) {
  .admin-fab { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 12px; }
  .admin-fab .fab-label { display: none; }
  .admin-fab .fab-icon { font-size: 20px; }
}

/* ===== QUIZ — banner + leaderboard + winner highlight ===== */
.quiz-banner {
  margin: 0; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,209,102,.25);
  background:
    radial-gradient(180px 80px at 50% 0%, rgba(255,209,102,.18), transparent 70%),
    linear-gradient(180deg, rgba(229,30,60,.14), rgba(33,32,199,.10));
}
.quiz-banner[hidden] { display: none !important; }

.qz-question {
  display: flex; align-items: flex-start; gap: 10px;
}
.qz-tag {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  padding: 4px 8px; border-radius: 6px;
  background: #ffd166; color: #4d2c00;
  animation: qz-blink 1.5s ease-in-out infinite;
}
@keyframes qz-blink {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,209,102,.6); }
  50%     { box-shadow: 0 0 0 8px rgba(255,209,102,0); }
}
.qz-text {
  font-size: 14px; font-weight: 700; color: #fff;
  line-height: 1.4;
}
.qz-hint {
  margin: 8px 0 0; padding: 6px 10px;
  background: rgba(0,0,0,.25); border-radius: 8px;
  font-size: 11px; color: #cdd6f0;
}
.qz-hint code {
  background: rgba(255,209,102,.18); color: #ffe9b3;
  padding: 1px 6px; border-radius: 4px;
  font-family: "SF Mono", Menlo, monospace; font-size: 11px;
  font-weight: 700;
}

/* 4-option answer buttons */
.qz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 10px 0;
}
.qz-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: all .2s; font-family: inherit;
  line-height: 1.3;
}
.qz-opt:not(:disabled):hover {
  background: rgba(229,30,60,.18);
  border-color: var(--mb-red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229,30,60,.3);
}
.qz-opt:disabled { cursor: not-allowed; }
.qz-opt-letter {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--mb-red); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
  font-family: "Be Vietnam Pro", sans-serif;
}
.qz-opt-text { flex: 1; min-width: 0; word-wrap: break-word; }
.qz-opt.your-pick {
  box-shadow: 0 0 0 2px #ffd166, 0 6px 16px rgba(255,209,102,.4);
}
.qz-opt.correct {
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(6,214,160,.22), rgba(6,214,160,.08));
}
.qz-opt.correct .qz-opt-letter {
  background: linear-gradient(135deg, var(--emerald), #04a47a);
}
.qz-opt.correct::after { content: ' ✓'; color: var(--emerald); font-weight: 900; margin-left: auto; }
.qz-opt.wrong {
  border-color: var(--mb-red);
  background: linear-gradient(135deg, rgba(229,30,60,.22), rgba(229,30,60,.08));
  opacity: .85;
}
.qz-opt.wrong .qz-opt-letter { background: var(--mb-red-deep); }
.qz-opt.wrong::after { content: ' ✗'; color: var(--mb-red); font-weight: 900; margin-left: auto; }

.qz-result {
  margin: 8px 0; padding: 10px 14px; border-radius: 10px;
  text-align: center; font-weight: 700; font-size: 13px;
  animation: msg-in .4s;
}
.qz-result.correct {
  background: linear-gradient(135deg, rgba(6,214,160,.25), rgba(6,214,160,.10));
  color: #8df0c8;
  border: 1px solid rgba(6,214,160,.55);
}
.qz-result.wrong {
  background: linear-gradient(135deg, rgba(229,30,60,.25), rgba(229,30,60,.10));
  color: #ffcbd2;
  border: 1px solid rgba(229,30,60,.55);
}
.qz-result.info {
  background: rgba(255,255,255,.06);
  color: #cdd6f0; border: 1px solid rgba(255,255,255,.15);
  font-weight: 600;
}

.qz-leaders {
  margin-top: 10px; padding: 8px 10px;
  background: rgba(0,0,0,.28); border-radius: 10px;
  border: 1px solid rgba(255,209,102,.3);
}
.qz-leaders-title {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: #ffd166; margin-bottom: 6px;
}
.qz-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.qz-winner {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255,255,255,.04);
  font-size: 12px;
  animation: msg-in .4s;
}
.qz-winner.rank-1 { background: linear-gradient(90deg, rgba(255,215,0,.22), transparent); }
.qz-winner.rank-2 { background: linear-gradient(90deg, rgba(192,192,192,.18), transparent); }
.qz-winner.rank-3 { background: linear-gradient(90deg, rgba(205,127,50,.18), transparent); }
.qz-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mb-red); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.qz-winner.rank-1 .qz-rank { background: linear-gradient(135deg, #ffe066, #f4a300); color: #4d2c00; }
.qz-winner.rank-2 .qz-rank { background: linear-gradient(135deg, #e8e8e8, #a0a0a0); color: #2a2a2a; }
.qz-winner.rank-3 .qz-rank { background: linear-gradient(135deg, #d4915a, #8b5a2b); color: #fff; }
.qz-name {
  flex: 1; color: #fff; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.qz-time {
  color: #8da0d4; font-size: 10px;
  font-family: "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

/* Chat message: winner badge */
.chat-msg.chat-winner {
  border-left-width: 4px;
  background: rgba(255,209,102,.10);
  position: relative;
}
.chat-msg.chat-winner.rank-1 { border-left-color: #ffd166; background: linear-gradient(90deg, rgba(255,209,102,.22), rgba(255,255,255,.04)); }
.chat-msg.chat-winner.rank-2 { border-left-color: #c0c0c0; background: linear-gradient(90deg, rgba(192,192,192,.18), rgba(255,255,255,.04)); }
.chat-msg.chat-winner.rank-3 { border-left-color: #cd7f32; background: linear-gradient(90deg, rgba(205,127,50,.18), rgba(255,255,255,.04)); }
.chat-msg.chat-winner.rank-4,
.chat-msg.chat-winner.rank-5 { border-left-color: var(--mb-red); }
.winner-badge {
  display: inline-block; vertical-align: middle;
  background: linear-gradient(135deg, var(--mb-red), var(--mb-red-deep));
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  margin-right: 6px;
  animation: badge-pop .8s cubic-bezier(.34,1.56,.64,1);
}
.chat-msg.chat-winner.rank-1 .winner-badge { background: linear-gradient(135deg, #ffe066, #f4a300); color: #4d2c00; }
.chat-msg.chat-winner.rank-2 .winner-badge { background: linear-gradient(135deg, #e8e8e8, #a0a0a0); color: #2a2a2a; }
.chat-msg.chat-winner.rank-3 .winner-badge { background: linear-gradient(135deg, #d4915a, #8b5a2b); }
@keyframes badge-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); }
}

/* ===== Admin modal (extra styling) ===== */
.quiz-current {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}
.qcs-empty { color: #8da0d4; text-align: center; }
.qcs-active { color: #fff; }
.qcs-active b { color: var(--mb-red-light); }
.modal-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 14px; font-family: inherit; outline: none; resize: vertical;
  min-height: 56px;
}
.modal-form textarea:focus { border-color: var(--mb-red); box-shadow: 0 0 0 3px rgba(229,30,60,.18); }
.quiz-hint {
  margin: -4px 0 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(33,32,199,.12); border: 1px solid rgba(76,107,224,.3);
  color: #cdd6f0; font-size: 12px; line-height: 1.5;
}
.quiz-hint code, .quiz-hint b {
  background: rgba(255,255,255,.1); color: var(--mb-red-light);
  padding: 1px 6px; border-radius: 4px;
  font-family: "SF Mono", Menlo, monospace; font-size: 11px;
}

/* Admin: 4-option grid */
.opt-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.opt-row {
  display: flex; align-items: stretch; gap: 8px;
}
.opt-radio {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 6px 12px;
  cursor: pointer; min-width: 60px; justify-content: center;
  font-weight: 800;
  transition: all .2s;
}
.opt-radio:hover { border-color: var(--mb-red); }
.opt-radio input { accent-color: var(--mb-red); }
.opt-radio span {
  color: #ffd7dd; font-size: 14px;
}
.opt-radio:has(input:checked) {
  background: linear-gradient(135deg, var(--emerald) 0%, #04a47a 100%);
  border-color: var(--emerald);
}
.opt-radio:has(input:checked) span { color: #fff; }
.opt-input {
  flex: 1; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 14px; font-family: inherit; outline: none;
}
.opt-input:focus { border-color: var(--mb-red); box-shadow: 0 0 0 3px rgba(229,30,60,.18); }

/* ===== HEART UPLOAD MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(2, 8, 30, .72);
  backdrop-filter: blur(10px);
  animation: modal-fade .3s ease-out;
}
/* HTML `hidden` attribute must beat `display: grid` above */
.modal-backdrop[hidden] { display: none !important; }
.modal-step[hidden]     { display: none !important; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 36px 30px 28px;
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 50% -30%, rgba(229,30,60,.25), transparent 60%),
    linear-gradient(180deg, #1a2ea0 0%, #0e1a6b 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(229,30,60,.25);
  animation: modal-pop .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer; font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(229,30,60,.3); border-color: var(--mb-red); }

.modal-icon {
  font-size: 48px; text-align: center; margin-bottom: 6px;
  animation: heart-beat 1.4s infinite;
}
.modal-card h3 {
  margin: 0 0 6px; text-align: center; color: #fff;
  font-size: 22px; font-weight: 800;
}
.modal-desc {
  margin: 0 0 22px; text-align: center;
  color: #cdd6f0; font-size: 14px;
}

.conn-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 16px; padding: 6px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #cdd6f0;
}
.conn-chip { display: flex; justify-content: center; width: max-content; margin-left: auto; margin-right: auto; }
.conn-chip .cc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f4a300; animation: pulse-dot 1.4s infinite;
}
.conn-chip.online  { background: rgba(6,214,160,.12); border-color: rgba(6,214,160,.45); color: #8df0c8; }
.conn-chip.online  .cc-dot { background: var(--emerald); }
.conn-chip.offline { background: rgba(229,30,60,.15); border-color: rgba(229,30,60,.5); color: #ffcbd2; }
.conn-chip.offline .cc-dot { background: var(--mb-red); }

.modal-form .field { display: block; margin-bottom: 14px; }
.modal-form .field span {
  display: block; margin-bottom: 6px;
  color: #ffd7dd; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.modal-form .field em {
  color: var(--mb-red-light); font-style: normal; margin-left: 2px;
}
.modal-form input[type=text] {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 14px; font-family: inherit; outline: none;
  transition: all .2s;
}
.modal-form input[type=text]:focus {
  border-color: var(--mb-red);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(229,30,60,.18);
}

/* File drop zone */
.file-zone {
  margin-top: 14px;
  border: 2px dashed rgba(255,87,115,.45);
  border-radius: 14px;
  padding: 22px 18px; text-align: center;
  cursor: pointer; transition: all .2s;
  position: relative;
  background: rgba(0,0,0,.18);
}
.file-zone:hover {
  border-color: var(--mb-red-light);
  background: rgba(229,30,60,.08);
}
.file-zone.drag {
  border-color: var(--mb-red-light);
  background: rgba(229,30,60,.15);
  transform: scale(1.02);
}
.fz-text {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #cdd6f0; font-size: 13px;
}
.fz-icon { font-size: 28px; margin-bottom: 2px; }
.fz-text .fz-main { font-weight: 600; color: #fff; }
.fz-text small { color: #8893b6; font-size: 11px; }
.fz-preview { display: none; }
.file-zone.has-file .fz-text { display: none; }
.file-zone.has-file .fz-preview {
  display: block; width: 110px; height: 110px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 3px rgba(229,30,60,.5);
}
.fz-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fz-change {
  display: none;
  margin: 10px auto 0; padding: 6px 14px;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: #cdd6f0; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600;
}
.file-zone.has-file .fz-change { display: inline-block; }
.fz-change:hover { border-color: var(--mb-red); color: var(--mb-red-light); }

.modal-error {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(229,30,60,.15);
  border: 1px solid rgba(229,30,60,.5);
  color: #ffcbd2; font-size: 13px; text-align: center;
}

.modal-actions {
  display: flex; gap: 10px; margin-top: 22px;
}
.modal-actions button { flex: 1; padding: 12px 16px; font-size: 14px; }

/* ----- Thank you step ----- */
.modal-step[data-step="thanks"] { text-align: center; }
.thanks-burst {
  position: relative; width: 130px; height: 130px;
  margin: 0 auto 18px;
}
.tb-heart {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 72px;
  animation: heart-beat .9s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(229,30,60,.7));
}
.tb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--mb-red);
  animation: tb-ring-spread 1.6s ease-out infinite;
}
.tb-ring.r2 { animation-delay: .55s; border-color: var(--mb-red-light); }
@keyframes tb-ring-spread {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.thanks-title {
  font-size: 22px; line-height: 1.4;
  margin: 0 0 12px; color: #fff; font-weight: 800;
}
.thanks-desc {
  color: #d6deff; font-size: 14px; line-height: 1.65;
  margin: 0 0 24px;
}
.thanks-desc b { color: var(--mb-red-light); }

/* ===== WELCOME POPUP ===== */
.welcome-card { text-align: center; max-width: 440px; }
.welcome-burst { position: relative; width: 120px; height: 120px; margin: 4px auto 14px; }
.wb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--mb-red);
  animation: tb-ring-spread 1.6s ease-out infinite;
}
.wb-ring.r2 { animation-delay: .55s; border-color: var(--mb-red-light); }
.wb-logo {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.wb-logo img {
  width: 86px; height: auto;
  background: #fff; padding: 12px 14px; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.welcome-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: #ffd7dd; text-transform: uppercase; margin-bottom: 6px;
}
.welcome-title { margin: 0; font-size: 18px; font-weight: 700; color: #cdd6f0; }
.welcome-name {
  font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2;
  margin: 2px 0 8px;
  text-shadow: 0 0 24px rgba(229,30,60,.5);
}
.welcome-meta {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #ffeb8a; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.welcome-meta[hidden] { display: none; }
.welcome-desc { color: #d6deff; font-size: 14px; line-height: 1.65; margin: 0 0 22px; }
.welcome-desc b { color: var(--mb-red-light); }

@media (max-width: 520px) {
  .modal-card { padding: 28px 20px 22px; }
  .modal-card h3 { font-size: 19px; }
  .modal-actions { flex-direction: column-reverse; }
}

@media (max-width: 720px) {
  .heart-wrap { padding: 24px 8px; }
  .heart-grid { gap: .5px; }
  .h-cell.filled:hover { transform: scale(4); }
  .h-cell .cell-name { font-size: 5px; }
  .heart-stamp { width: 64px; height: 64px; bottom: -8px; right: -8px; }
  .heart-stamp .s-num { font-size: 22px; }
  .heart-stamp .s-txt { font-size: 8px; }
}

/* ===== JOIN GROUP — QR SECTION ===== */
.qr-section {
  padding: 80px 24px;
  position: relative; z-index: 2;
}
.qr-card {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
  padding: 48px 52px;
  position: relative; overflow: hidden;
}
.qr-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none; opacity: .55;
  z-index: 0;
}
.qr-blob-1 {
  width: 320px; height: 320px;
  background: var(--mb-red);
  top: -80px; right: -60px;
  animation: blob-drift 14s ease-in-out infinite;
}
.qr-blob-2 {
  width: 280px; height: 280px;
  background: var(--mb-blue-2);
  bottom: -80px; left: -40px;
  animation: blob-drift 16s ease-in-out -4s infinite reverse;
}
@keyframes blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px, -20px) scale(1.1); }
}

.qr-left { position: relative; z-index: 1; }
.qr-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #1877F2, #0a5dc2);
  color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: .2em; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(24,119,242,.45);
}
.qr-badge .fb-icon {
  font-family: Georgia, serif; font-style: italic; font-weight: 900;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: #1877F2;
  display: grid; place-items: center; font-size: 14px;
  line-height: 1;
}
.qr-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900; line-height: 1.15; margin: 0 0 16px;
  color: #fff;
}
.qr-title .hl {
  background: linear-gradient(135deg, var(--mb-red-light), var(--mb-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qr-desc {
  color: #d6deff; font-size: 15px; line-height: 1.65;
  margin: 0 0 22px; max-width: 460px;
}
.qr-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.qr-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #e3e8ff;
}
.qr-features .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(33,32,199,.3), rgba(233,30,60,.25));
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; font-size: 16px;
}

/* ---- QR right side ---- */
.qr-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.qr-frame {
  position: relative; padding: 18px;
  background: #ffffff; border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(0,0,0,.45),
    0 0 0 6px rgba(255,255,255,.1),
    0 0 60px rgba(233,30,60,.35);
  animation: qr-float 5s ease-in-out infinite;
}
@keyframes qr-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-8px) rotate(-1deg); }
}
.qr-canvas {
  display: block;
  width: 240px; height: 240px;
  background: #fff;
  border-radius: 6px;
  image-rendering: pixelated;
}
.qr-corner {
  position: absolute; width: 22px; height: 22px;
  border: 3px solid var(--mb-red);
}
.qr-corner.tl { top: 6px; left: 6px;  border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.qr-corner.tr { top: 6px; right: 6px; border-left: none;  border-bottom: none; border-radius: 0 8px 0 0; }
.qr-corner.bl { bottom: 6px; left: 6px;  border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.qr-corner.br { bottom: 6px; right: 6px; border-left: none;  border-top: none; border-radius: 0 0 8px 0; }

.qr-logo-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 40px; padding: 4px 8px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2), 0 0 0 3px #fff;
  display: grid; place-items: center;
}
.qr-logo-overlay img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}

.qr-scan-hint {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 14px; font-weight: 600;
}
.scan-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mb-red);
  box-shadow: 0 0 0 0 rgba(233,30,60,.7);
  animation: pulse-dot 1.4s infinite;
}
.qr-url {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px; color: #aab4d4; opacity: .85;
}
.qr-url b { color: var(--mb-red-light); }

@media (max-width: 860px) {
  .qr-card {
    grid-template-columns: 1fr; gap: 32px;
    padding: 36px 24px;
  }
  .qr-right { order: -1; }
}

/* ===== Thanks ===== */
.thanks { padding: 80px 24px; position: relative; z-index: 2; }
.thanks-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 50px 36px; position: relative; overflow: hidden;
}
.thanks-inner::before {
  content:'14'; position: absolute; top: -40px; right: -20px;
  font-size: 280px; font-weight: 900; color: rgba(229,29,56,.10);
  font-family: "Playfair Display", serif;
}
.thanks-inner h2 {
  font-size: 36px; margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, var(--mb-red-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900; letter-spacing: -.01em;
}
.t-quote {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: 18px; line-height: 1.7; color: #e8eeff; margin: 0 0 24px;
}
.t-signature { color: var(--mb-red-light); font-weight: 700; margin-bottom: 28px; letter-spacing: .08em; font-size: 14px; }

/* ===== Footer ===== */
.footer {
  padding: 30px 24px; text-align: center; font-size: 13px;
  color: #98a3c4; border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,5,20,.5); backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.footer-sub { margin-top: 4px; opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .live-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .timeline::before { left: 22px; }
  .tl-item { grid-template-columns: 50px 1fr; gap: 12px; margin: 24px 0; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card {
    grid-column: 2; text-align: left;
  }
  .tl-item .tl-year { grid-column: 1; font-size: 14px; }
  .tl-dot { left: 22px; }
  .hero-title .title-row.big { gap: 12px; }
  .thanks-inner { padding: 36px 22px; }
  .navbar { padding: 10px 14px; gap: 8px; }
  .nav-left { gap: 10px; }
  .logo-badge-full { height: 38px; padding: 6px 10px; }
  .logo-divider { display: none; }
  .logo-text { display: none; }
  .nav-right .btn-ghost { display: none; }
}
