/* ============================================================
   U888 - NHẬP CODE NHẬN THƯỞNG
   Responsive desktop / tablet / mobile. Không có footer.
   Toàn bộ ảnh nằm trong thư mục ./assets/
   ============================================================ */
:root {
  --wine: #8e140d;
  --red: #b70f13;
  --red-bright: #f62a1c;
  --gold: #fbd17b;
  --brown: #7e4837;
  --cream: #fff4de;
  --white: #fff;
  --nav-h: 98px;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  font-synthesis: none;
  color: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ffda7b; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background-color: #ad2617;
  background-image: url("assets/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.site-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(108,9,6,.13) 0%, rgba(108,9,6,0) 30%, rgba(112,19,10,.09) 90%);
}
/* Ánh sáng trang trí đặt sau nội dung và không nhận tương tác. */
.scene-glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(9px); }
.scene-glow--gold {
  left: 23%; top: 25%; width: min(520px,32vw); aspect-ratio: 1;
  background: radial-gradient(circle,rgba(255,238,156,.23),rgba(255,207,115,.06) 45%,transparent 72%);
}
.scene-glow--rose {
  right: -12%; bottom: -18%; width: min(680px,45vw); aspect-ratio: 1;
  background: radial-gradient(circle,rgba(255,140,87,.19),transparent 69%);
}
/* ----- Header ----- */
.site-header { position: relative; z-index: 30; height: var(--nav-h); }
.header-inner {
  max-width: 1415px;
  margin: 0 auto;
  height: 100%;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand { position: relative; flex: 0 0 210px; height: 90px; display: flex; align-items: center; text-decoration: none; color: #fff5ce; }
.brand img { display: block; width: 155px; max-height: 88px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(104,18,0,.23)); }

.main-nav { height: 100%; display: flex; gap: clamp(14px, 2.6vw, 40px); justify-content: center; align-items: center; }
.nav-link {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  color: #663c36;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(255,255,255,.8);
  white-space: nowrap;
  padding: 16px 2px 19px;
  transition: color .2s ease, transform .2s ease;
}
.nav-link:hover { color: #bd1b11; transform: translateY(-1px); }
.nav-link.is-active { color: #ba130d; }
.nav-link.is-active::after {
  content: ""; position: absolute; bottom: 5px; left: 15%; right: 15%; height: 3px;
  border-radius: 5px; background: linear-gradient(90deg,#ffce75,#ed2013,#ffce75);
  box-shadow: 0 2px 8px rgba(223,27,14,.38);
}
.login-button {
  flex: 0 0 auto; min-width: 167px; height: 43px; padding: 0 17px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  background: linear-gradient(100deg,rgba(196,20,19,.55),rgba(104,14,13,.64));
  border: 1.5px solid #ffdb93; border-radius: 99px;
  color: #fff6dd; font-size: 12px; font-weight: 800;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.25),0 4px 16px rgba(98,14,8,.21);
  transition: background .2s,transform .2s,box-shadow .2s;
}
.login-button svg { color: #ffe3a4; }
.login-button:hover { background: linear-gradient(100deg,#da271b,#8d0e08); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(98,14,8,.36); }
.mobile-login, .menu-toggle { display: none; }

/* ----- Main stage ----- */
.main-content { position: relative; z-index: 1; }
.hero-layout {
  width: min(100%, 1550px);
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  margin: 0 auto;
  padding: 0 clamp(16px, 3.1vw, 54px) 24px;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.94fr);
  align-items: center;
  column-gap: clamp(4px, 1vw, 20px);
}
.artwork {
  width: 100%;
  height: clamp(560px, calc(100svh - 103px), 800px);
  position: relative;
  align-self: end;
  pointer-events: none;
  user-select: none;
}
.artwork img { position: absolute; display: block; max-width: none; height: auto; }
.art-ambassador {
  z-index: 2;
  width: min(76%, 570px);
  bottom: 17%; left: 25%;
  filter: drop-shadow(0 12px 16px rgba(72,13,4,.14));
  animation: breathe 6.4s ease-in-out infinite;
  transform-origin: center bottom;
}
.art-rewards {
  z-index: 4;
  width: min(105%, 800px);
  bottom: 0%; left: -9%;
  filter: drop-shadow(0 18px 13px rgba(79,21,5,.3));
}
.art-sparkles { z-index: 5; pointer-events: none; width: 77%; top: 26%; left: 10%; opacity: .56; mix-blend-mode: screen; animation: sparkle 5s ease-in-out infinite alternate; }
.art-decor { z-index: 1; width: min(52%, 390px); top: 17%; left: -28%; opacity: .38; mix-blend-mode: normal; }
/* Dải lụa treo tạo cảm giác lễ hội như mẫu tham chiếu. */
.slogan {
  position: absolute; z-index: 3; top: 6%; left: 1%;
  width: 147px; min-height: 240px; padding: 24px 14px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #ffdf98; font: italic 26px/1.12 Georgia,"Times New Roman",serif;
  text-shadow: 0 2px 2px #84320c,0 4px 12px rgba(113,28,0,.85);
  background: linear-gradient(130deg,rgba(174,28,21,.88),rgba(111,10,10,.91));
  border-left: 2px solid rgba(255,206,117,.67);
  border-right: 2px solid rgba(255,206,117,.67);
  clip-path: polygon(0 0,100% 0,100% 89%,50% 100%,0 89%);
  box-shadow: inset 0 0 18px rgba(255,212,147,.14);
  transform: rotate(-3deg);
}
.slogan::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: linear-gradient(90deg,#a96824 0%,#ffed9e 25%,#e3a741 60%,#fff2ab 80%,#99621d 100%);
}
.slogan span:nth-child(even) { margin-left: 7px; }
.slogan span:nth-child(4) { font-size: 29px; }

/* ----- Card ----- */
.redeem-section { width: 100%; display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.redeem-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 610px);
  min-height: 550px;
  padding: 60px clamp(26px, 3.1vw, 49px) 27px;
  border: 3px solid #fff3bc;
  border-radius: 44px;
  background:
    radial-gradient(ellipse at 49% -16%, rgba(255,255,255,.96) 2%, rgba(255,245,216,.6) 58%, transparent 78%),
    linear-gradient(140deg, #fff9ed 0%, #fff0d6 53%, #ffe8c4 100%);
  color: #772e21;
  text-align: center;
  box-shadow:
    0 0 0 4px rgba(216,125,44,.66),
    0 0 0 8px rgba(255,232,159,.65),
    inset 0 0 0 4px rgba(255,255,255,.66),
    inset 0 0 18px rgba(227,151,67,.47),
    0 19px 45px rgba(116,27,1,.35),
    0 0 45px rgba(255,194,86,.65);
  transform: translateY(-31px);
}
.redeem-card::before {
  content: ""; position: absolute; inset: 8px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(203,130,39,.7); border-radius: 33px;
}
.redeem-card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 100%,rgba(255,255,255,.6),transparent 60%);
}
.card-highlight {
  position: absolute; z-index: -1; inset: 0; overflow: hidden; border-radius: 40px; pointer-events: none;
}
.card-highlight::before {
  content: ""; position: absolute; top: -75px; left: -25%; width: 150%; height: 174px;
  background: radial-gradient(ellipse,rgba(255,242,178,.95),transparent 67%); opacity: .9;
}
/* Viền kim loại khắc hoa văn nhỏ, chỉ mang tính trang trí. */
.card-engraving { position: absolute; z-index: 1; top: 50%; color: #e8ab5e; font-size: 15px; opacity: .66; text-shadow: 0 1px 0 #fff; pointer-events: none; }
.card-engraving--left { left: 11px; }
.card-engraving--right { right: 11px; }
.card-highlight::after {
  content: ""; position: absolute; bottom: -36px; right: -38px; width: 160px; height: 130px;
  border: 28px solid rgba(247,199,129,.14); border-radius: 50%;
}
.top-gift {
  position: absolute; left: 50%; top: -73px;
  width: 136px; height: 136px;
  display: grid; place-items: center;
  transform: translateX(-50%) rotate(-5deg);
  filter: drop-shadow(0 9px 8px rgba(145,56,10,.2));
  animation: giftBob 4s ease-in-out infinite;
}
.top-gift img { width: 100%; height: 100%; object-fit: contain; }
.card-content { position: relative; z-index: 1; }
.redeem-title {
  margin: 0;
  color: #c30712;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(34px,3.2vw,56px);
  line-height: 1.22;
  letter-spacing: -.035em;
  -webkit-text-stroke: .45px #a92811;
  text-shadow: 0 2px 0 #fff3b9,0 4px 0 #e0a442,0 6px 5px rgba(128,38,11,.22);
}
.redeem-title span { display: block; white-space: nowrap; color: #bd1013; -webkit-text-fill-color: #bd1013; }
.redeem-intro { margin: 10px -12px 29px; color: #95614d; font-size: clamp(15px,1.45vw,20px); font-weight: 500; line-height: 1.4; }
.redeem-form { margin: 0; }
.code-input-wrap {
  height: 70px; width: 100%; position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px 0 24px;
  background: linear-gradient(#fff,#fffafa);
  border: 1.7px solid #efc6a8;
  border-radius: 21px;
  box-shadow: 0 3px 8px rgba(134,52,22,.07), inset 0 1px 7px rgba(210,137,74,.06);
  transition: border-color .18s, box-shadow .18s;
}
.code-input-wrap:focus-within { border-color: #dca142; box-shadow: 0 0 0 4px rgba(244,178,80,.17), 0 3px 8px rgba(134,52,22,.08); }
.code-input-wrap.is-invalid { border-color: #c72826; box-shadow: 0 0 0 3px rgba(199,40,38,.13); }
.ticket-icon { flex: 0 0 auto; color: #dfb891; transform: rotate(-15deg); }
.code-input-wrap input {
  width: 100%; height: 100%; min-width: 0; padding: 0;
  outline: none; border: none; box-shadow: none;
  background: transparent; color: #733225;
  font-size: 18px; font-weight: 500;
}
.code-input-wrap input::placeholder { color: #acabb6; opacity: .9; }
.clear-code { display: grid; flex: 0 0 24px; place-items: center; height: 27px; padding: 0; background: #fbefdf; border: none; border-radius: 50%; color: #9d7865; }
.clear-code:hover { background: #f5dabb; color: #ad1d12; }
.confirm-button {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; height: 78px; margin-top: 23px;
  display: flex; justify-content: center; align-items: center; gap: 24px;
  color: #fffdf0;
  border: 5px solid transparent; border-radius: 99px;
  background:
    linear-gradient(180deg,#ff8363 0%,#fc382a 31%,#dc1515 55%,#a8000a 100%) padding-box,
    linear-gradient(180deg,#fffad0 0%,#ffd774 25%,#d4871f 67%,#fff0a1 100%) border-box;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.6), inset 0 -5px 9px rgba(106,5,5,.24), 0 0 0 2px #c77421,0 5px 10px rgba(140,30,4,.25),0 0 13px rgba(255,192,75,.7);
  font-size: 24px; font-weight: 900; letter-spacing: .5px;
  text-shadow: 0 2px 2px rgba(124,15,10,.5);
  transition: transform .2s ease, filter .2s, box-shadow .2s;
}
.confirm-button::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 5px 7px; border-radius: inherit;
  border: 1px solid rgba(255,235,157,.7);
}
.confirm-button::after {
  content: "✦"; position: absolute; right: 13px; font-size: 15px; color: #ffd389; opacity: .9;
}
.confirm-button > * { position: relative; z-index: 1; }
.confirm-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 2px 4px rgba(255,255,255,.6),inset 0 -5px 9px rgba(106,5,5,.24),0 0 0 2px #c77421,0 7px 16px rgba(140,30,4,.38),0 0 23px rgba(255,192,75,.8); }
.confirm-button:active { transform: translateY(1px); }
.confirm-button:disabled { opacity: .78; cursor: wait; transform: none; }
.button-shine { position: absolute; z-index: 0; left: -70%; top: -35%; width: 45%; height: 190%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.21),transparent); transform: rotate(24deg); transition: left .5s; }
.confirm-button:hover .button-shine { left: 140%; }
.confirm-arrow { flex: 0 0 auto; }
.button-spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.form-message { min-height: 0; margin: 0; font-size: 14px; line-height: 1.45; font-weight: 700; }
.form-message:not(:empty) { margin: 14px 0 -1px; }
.form-message[data-type="error"] { color: #a31b1a; }
.form-message[data-type="success"] { color: #28723b; }
.form-message[data-type="info"] { color: #955522; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 11px; max-width: 390px; margin: 24px auto 0; text-align: left; color: #855748; font-size: 13.5px; line-height: 1.47; }
.security-note svg { flex-shrink: 0; }

/* ----- Dialogs ----- */
.info-dialog {
  width: min(520px,calc(100vw - 26px)); max-height: calc(100svh - 30px);
  padding: 0; border-radius: 24px; border: 2px solid #f4c36d;
  color: #713d2c; background: linear-gradient(145deg,#fffbf0,#ffecd2);
  box-shadow: 0 24px 78px rgba(57,8,2,.44),inset 0 0 10px rgba(222,150,65,.24);
  overflow: auto;
}
.info-dialog::backdrop { background: rgba(58,9,4,.64); backdrop-filter: blur(5px); }
.dialog-heading { position: relative; display: flex; justify-content: center; align-items: center; min-height: 85px; padding: 17px 62px 10px; border-bottom: 1px solid #e8c78e; }
.dialog-heading h2 { margin: 0; font: 900 24px/1.25 Georgia,"Times New Roman",serif; color: #ba1717; text-align: center; }
.dialog-accent { position: absolute; top: 12px; left: 22px; color: #d99d31; font-size: 20px; }
.dialog-close { position: absolute; right: 15px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(204,142,54,.15); color: #9c5437; }
.dialog-close:hover { color: #ae1b14; background: rgba(204,142,54,.3); }
.dialog-body { padding: 23px 27px 12px; font-size: 15px; line-height: 1.7; }
.dialog-body p { margin: 0 0 14px; }
.dialog-body .steps { margin: 0; padding-left: 22px; }
.dialog-body .steps li { margin: 0 0 12px; }
.dialog-body .dialog-box { padding: 12px 15px; border: 1px solid #ead3a6; background: #fffcf3; border-radius: 11px; margin: 12px 0; }
.dialog-body .dialog-box strong { display: block; color: #a91810; }
.dialog-body .dialog-box small { display: block; color: #a1775d; }
.dialog-body .empty-state { color: #976c53; text-align: center; padding: 20px 4px; }
.dialog-action { display: block; min-width: 160px; margin: 8px auto 23px; padding: 12px 25px; color: white; font-weight: 800; background: linear-gradient(#f65e37,#bf1010); border: 2px solid #e6a84f; border-radius: 99px; box-shadow: 0 3px 8px rgba(152,29,9,.23); }
.dialog-action:hover { filter: brightness(1.1); }

#confetti-layer { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -24px; width: 9px; height: 14px; animation: confettiFall var(--dur) linear forwards; border-radius: 1px; }
@keyframes confettiFall { from { transform: translate3d(0,-20px,0) rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: translate3d(var(--drift), 105vh,0) rotate(var(--spin)); opacity: 0; } }
@keyframes giftBob { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-5deg); } 50% { transform: translateX(-50%) translateY(-7px) rotate(-2deg); } }
@keyframes sparkle { from { opacity: .32; transform: scale(.98); } to { opacity: .65; transform: scale(1.015); } }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1750px) {
  .hero-layout { max-width: 1580px; }
  .art-rewards { bottom: 1%; }
}
@media (max-width: 1280px) {
  .header-inner { gap: 13px; }
  .brand { flex-basis: 168px; }
  .brand img { width: 143px; }

  .main-nav { gap: 17px; }
  .nav-link { font-size: 12px; }
  .redeem-card { min-height: 495px; padding-top: 59px; }
  .redeem-title { font-size: clamp(32px, 3.45vw, 48px); }
  .redeem-intro { margin-bottom: 22px; }
  .code-input-wrap { height: 65px; }
  .confirm-button { height: 72px; }
  .slogan { left: -1%; top: 6%; width: 127px; min-height: 202px; padding: 20px 12px 26px; font-size: 23px; }
}
@media (max-width: 1120px) {
  :root { --nav-h: 82px; }
  .site-wrap { background-size: auto 100%; background-position: center top; }
  .header-inner { padding: 0 20px; }
  .brand { flex-basis: 154px; height: 75px; }
  .brand img { width: 130px; max-height: 72px; }

  .main-nav { display: none; position: absolute; top: calc(var(--nav-h) - 4px); right: 15px; left: 15px; height: auto; padding: 12px; border: 1.5px solid #efc179; border-radius: 18px; background: rgba(255,246,223,.98); backdrop-filter: blur(15px); box-shadow: 0 18px 35px rgba(69,18,8,.23); }
  .main-nav.is-open { display: grid; }
  .nav-link { display: block; width: 100%; text-align: left; padding: 15px 17px; border-radius: 9px; color: #744a3a; font-size: 14px; }
  .nav-link:hover,.nav-link.is-active { background: rgba(255,210,136,.28); }
  .nav-link.is-active::after { top: 8px; bottom: 8px; left: 5px; right: auto; height: auto; width: 3px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: 0 0 42px; height: 42px; background: rgba(147,24,11,.7); border: 1px solid #fbe1a2; border-radius: 12px; }
  .menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff1c8; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .login-button { margin-left: auto; min-width: 136px; height: 40px; font-size: 11px; }
  .hero-layout { width: min(100%, 660px); min-height: unset; display: flex; flex-direction: column; padding: 4px 21px 53px; gap: 30px; }
  .artwork { align-self: center; height: clamp(370px, 56vw, 565px); width: min(100%, 610px); }
  .art-ambassador { width: 63%; left: 30%; bottom: 17%; }
  .art-rewards { width: 100%; left: -5%; bottom: -2%; }
  .art-decor { width: 40%; top: 3%; left: -9%; opacity: .6; }
  .art-sparkles { top: 15%; }
  .slogan { left: 1%; top: 7%; width: 120px; min-height: 179px; padding: 18px 8px 23px; font-size: clamp(19px,3vw,25px); }
  .redeem-section { justify-content: center; }
  .redeem-card { width: min(100%, 588px); padding-top: 55px; min-height: 0; transform: none; }
  .redeem-title { font-size: clamp(34px,6.8vw,55px); }
}
@media (max-width: 560px) {
  :root { --nav-h: 75px; }
  .site-wrap { background-size: auto 100%; }
  .header-inner { padding: 0 15px; }
  .brand { flex-basis: 124px; height: 74px; }
  .brand img { width: 112px; max-height: 67px; }

  .login-button { min-width: 105px; height: 36px; gap: 6px; padding: 0 10px; font-size: 10px; }
  .login-button svg { width: 16px; height: 16px; }
  .menu-toggle { width: 37px; flex-basis: 37px; height: 37px; }
  .hero-layout { gap: 25px; padding: 0 17px 36px; }
  .artwork { height: clamp(275px, 83vw, 400px); }
  .art-ambassador { left: 34%; width: 62%; bottom: 18%; }
  .art-rewards { width: 104%; left: -6%; bottom: -4%; }
  .art-decor { width: 40%; opacity: .5; }
  .slogan { top: 8%; left: 0; width: clamp(87px,24vw,105px); min-height: 125px; padding: 11px 7px 18px; font-size: clamp(14px,4.2vw,19px); line-height: 1.08; }
  .slogan span:nth-child(4) { font-size: 110%; }
  .redeem-card { width: 100%; border-radius: 29px; padding: 48px 20px 22px; border-width: 2px; box-shadow: 0 0 0 3px rgba(216,125,44,.72),0 0 0 5px rgba(255,232,159,.5),inset 0 0 0 3px rgba(255,255,255,.7),0 15px 36px rgba(116,27,1,.28); }
  .redeem-card::before { inset: 6px; border-radius: 24px; }
  .card-highlight { border-radius: 28px; }
  .top-gift { width: 98px; height: 98px; top: -52px; }
  .redeem-title { font-size: clamp(28px,8vw,39px); letter-spacing: -.045em; }
  .redeem-intro { font-size: clamp(13px,3.6vw,16px); margin: 11px -9px 21px; }
  .code-input-wrap { height: 59px; padding: 0 14px; gap: 11px; border-radius: 16px; }
  .code-input-wrap input { font-size: 14px; }
  .code-input-wrap .ticket-icon { width: 23px; height: 23px; }
  .confirm-button { height: 67px; margin-top: 20px; font-size: 20px; }
  .confirm-arrow { width: 23px; }
  .security-note { margin-top: 19px; padding: 0 2px; font-size: 11.5px; gap: 7px; }
  .security-note svg { width: 22px; height: 22px; }
  .dialog-heading h2 { font-size: 21px; }
  .dialog-body { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Màn hình nhỏ và laptop chiều cao thấp */
@media (min-width: 1121px) and (max-height: 770px) {
  .hero-layout { min-height: calc(100vh - var(--nav-h)); }
  .artwork { height: clamp(520px,calc(100svh - 90px),690px); }
  .art-ambassador { bottom: 14%; }
  .redeem-card { min-height: 0; padding-top: 53px; padding-bottom: 22px; transform: translateY(-7px); }
  .top-gift { top: -60px; width: 118px; height: 118px; }
  .redeem-intro { margin-bottom: 22px; }
  .code-input-wrap { height: 63px; }
  .confirm-button { height: 70px; }
}
@media (max-width: 360px) {
  .header-inner { padding-inline: 10px; gap: 7px; }
  .brand { flex-basis: 110px; }
  .brand img { width: 104px; }

  .login-button { min-width: 100px; padding: 0 7px; }
  .redeem-card { padding-inline: 16px; }
  .redeem-title { font-size: 27px; }
  .redeem-intro { font-size: 12.5px; }
  .confirm-button { font-size: 19px; }
}


/* ================================================================
   U888 2.0 — TINH CHỈNH TỪ PHẢN HỒI THỰC TẾ
   - Giữ nguyên logo U888 / ABCVIP người dùng đã cung cấp.
   - Logo dễ đọc hơn, KHÔNG bổ sung dòng slogan dưới logo.
   - Menu có viền vàng 1px và phát sáng nhẹ khi rê chuột.
   - Hình người mẫu có khoảng thoáng, quà ở thấp và lệch trái.
   - Mobile chia các lớp theo vùng, hạn chế chồng chéo.
   ================================================================ */

/* HEADER — căn sát cụm menu, tận dụng nền trời xanh của ảnh background.
   KHÔNG tạo quầng tối, bóng đổ hoặc ô màu sau logo. */
.header-inner {
  max-width: 1510px;
  gap: clamp(14px, 1.8vw, 32px);
}
.brand {
  flex: 0 0 clamp(236px, 19.5vw, 282px);
  width: clamp(236px, 19.5vw, 282px);
  height: 81px;
  padding: 6px 7px 5px;
  justify-content: center;
  transform: translateX(clamp(110px, 12vw, 185px));
  isolation: auto;
  background: transparent;
}
.brand::before { content: none; }
.brand img,
.brand:hover img,
.brand:focus-visible img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  filter: none;
  transform: none;
  transition: none;
}
/* Một kiểu cho toàn bộ menu, gồm cả nút NHẬP CODE.
   Active: chữ đỏ và đường gạch nhỏ, không nền hình viên thuốc. */
.main-nav {
  gap: clamp(5px, 0.9vw, 15px);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 11px clamp(9px, 1vw, 17px);
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #60332b;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(255,255,255,.76);
  transition: color .18s ease, border-color .18s ease,
    background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav-link.is-active {
  color: #ad110b;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 1px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent, #f1b055 15%, #db2617 50%, #f1b055 85%, transparent);
  box-shadow: 0 0 3px rgba(216,55,25,.22);
  pointer-events: none;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active:hover,
.nav-link.is-active:focus-visible {
  color: #ae1e13;
  transform: translateY(-1px);
  border-color: rgba(229,247,255,.96);
  background: linear-gradient(145deg,rgba(230,248,255,.52),rgba(255,248,226,.26));
  box-shadow: 0 0 11px rgba(235,250,255,.76),
    inset 0 1px 0 rgba(255,255,255,.55);
  text-shadow: 0 0 6px rgba(255,255,255,.88);
}
.login-button { border-width: 1px; }
.login-button:hover,
.login-button:focus-visible {
  border-color: #ffe4a4;
  box-shadow: 0 0 13px rgba(255,223,141,.75), 0 6px 18px rgba(100,14,8,.3);
}

/* Desktop: Người mẫu là chủ thể, quà là điểm nhấn thấp phía trước. */
.art-ambassador {
  z-index: 3;
  width: min(90%, 660px);
  left: 15.5%;
  bottom: 15.5%;
}
.art-rewards {
  z-index: 4;
  width: min(89%, 665px);
  left: -12.5%;
  bottom: 5%;
}
.art-decor {
  z-index: 1;
  width: min(39%, 290px);
  top: 14%;
  left: -25%;
  opacity: .28;
}
.art-sparkles {
  z-index: 5;
  width: 66%;
  top: 26%;
  left: 16%;
  opacity: .36;
}

/* Máy tính 1281–1399px: giữ khoảng cách giữa logo và TRANG CHỦ >= 20px. */
@media (min-width: 1281px) and (max-width: 1399px) {
  .brand { transform: translateX(calc(12vw - 15px)); }
}

/* Laptop nhỏ: tăng tỷ lệ khối nội dung, giữ logo và menu đủ thoáng. */
@media (min-width: 1121px) and (max-width: 1280px) {
  .header-inner { gap: 12px; padding-inline: 18px; }
  .brand { flex-basis: 225px; width: 225px; }
  .main-nav { gap: 2px; }
  .nav-link { padding-inline: 9px; font-size: 11.6px; }
  .login-button { min-width: 139px; padding-inline: 12px; }
  .art-ambassador { width: 95%; left: 11%; bottom: 16%; }
  .art-rewards { width: 87%; left: -9%; bottom: 5%; }
}

/* Tablet/mobile: nghệ thuật và form là 2 khu riêng, không xếp đè form lên ảnh. */
@media (max-width: 1120px) {
  .site-wrap { background-size: cover; background-position: center top; }
  .brand { transform: none; }
  .site-header { z-index: 40; }
  .brand {
    width: clamp(175px, 23vw, 235px);
    flex-basis: clamp(175px, 23vw, 235px);
    height: 76px;
    padding: 5px 0;
  }
  .brand img { width: 100%; max-height: 69px; }
  .main-nav {
    gap: 4px;
    justify-content: stretch;
    flex: none;
    z-index: 50;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 17px;
    border-radius: 10px;
    min-height: 44px;
    font-size: 14px;
    transform: none;
  }
  .nav-link.is-active::after {
    left: 5px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    background: linear-gradient(#ffd778, #e92317, #ffd778);
  }
  .nav-link:hover, .nav-link:focus-visible { transform: none; }
  .hero-layout {
    width: min(100%, 730px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    padding: 10px 22px 60px;
    min-height: 0;
  }
  .artwork {
    position: relative;
    align-self: center;
    width: min(100%, 650px);
    height: clamp(385px, 62vw, 560px);
    flex: 0 0 auto;
  }
  .art-ambassador {
    z-index: 3;
    width: 70%;
    left: 27%;
    bottom: 7%;
  }
  .art-rewards {
    z-index: 4;
    width: 76%;
    left: -7%;
    bottom: 1%;
  }
  .art-decor { width: 33%; top: 11%; left: -7%; opacity: .26; }
  .art-sparkles { width: 65%; top: 17%; left: 12%; opacity: .26; }
  .slogan {
    width: 114px; min-height: 166px; top: 7%; left: 0;
    padding: 13px 7px 24px; font-size: 22px;
  }
  .redeem-section { width: 100%; justify-content: center; flex: 0 0 auto; }
  .redeem-card {
    transform: none;
    width: min(100%, 588px);
    margin: 0;
  }
}

@media (max-width: 560px) {
  :root { --nav-h: 76px; }
  .header-inner { padding: 0 13px; gap: 10px; }
  .brand {
    flex: 0 1 179px;
    width: 179px;
    min-width: 0;
    height: 72px;
    padding: 6px 0;
  }
  .brand img { width: 100%; max-height: 65px; }
  .login-button { min-width: 104px; padding-inline: 8px; }
  .menu-toggle { flex: 0 0 37px; }
  .hero-layout {
    gap: 59px;
    padding: 2px 14px 42px;
  }
  .artwork {
    width: 100%;
    height: clamp(342px, 88vw, 405px);
  }
  .art-ambassador {
    width: 70%;
    left: 30%;
    bottom: 8%;
  }
  .art-rewards {
    width: 74%;
    left: -7%;
    bottom: 2%;
  }
  .art-decor { display: none; }
  .art-sparkles { top: 22%; width: 57%; left: 33%; opacity: .2; }
  .slogan {
    width: 84px;
    min-height: 121px;
    left: 0;
    top: 11%;
    padding: 11px 8px 19px;
    font-size: 15.5px;
  }
  .slogan span:nth-child(4) { font-size: 17px; }
  .redeem-card { margin-top: 0; }
  .top-gift { top: -48px; width: 94px; height: 94px; }
}
@media (max-width: 385px) {
  .header-inner { gap: 6px; padding-inline: 10px; }
  .brand { flex-basis: 161px; width: 161px; }
  .login-button { min-width: 96px; padding-inline: 7px; }
  .hero-layout { padding-inline: 12px; }
  .artwork { height: clamp(318px, 91vw, 350px); }
  .art-ambassador { width: 72%; left: 27%; bottom: 6%; }
  .art-rewards { width: 72%; left: -5%; bottom: 2%; }
  .slogan { font-size: 14px; width: 75px; }
}

/* Khóa nút login dành riêng cho menu cũ: header đã có nút đăng nhập. */
.mobile-login { display: none !important; }

/* Che mềm mép ảnh được cắt, tránh mép chân váy dừng đột ngột. */
.art-ambassador {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, rgba(0,0,0,.87) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, rgba(0,0,0,.87) 92%, transparent 100%);
}

/* Desktop cao: hai nhân vật và thẻ nằm ở nửa trên thay vì trôi thấp. */
@media (min-width: 1121px) and (min-height: 950px) {
  .artwork { align-self: start; margin-top: 5px; }
  .redeem-card { transform: translateY(-88px); }
}

/* Màn hình laptop thấp: không cắt tóc ở cạnh trên viewport. */
@media (min-width: 1121px) and (max-height: 780px) {
  .art-ambassador { width: min(84%, 570px); left: 11%; bottom: 10%; }
  .art-rewards { width: min(82%, 590px); left: -10%; bottom: 4%; }
}

/* Logo điện thoại lớn nhất có thể nhưng không đè lên nút/menu. */
@media (min-width: 386px) and (max-width: 560px) {
  .header-inner { gap: 6px; }
  .brand { flex: 1 1 195px; width: auto; max-width: 195px; }
  .login-button { min-width: 100px; }
}

/* Desktop là một cảnh liền màn hình, không tạo khoảng cuộn ảo 19px. */
@media (min-width: 1121px) {
  .hero-layout { padding-bottom: 0; }
}
@media (min-width: 1121px) and (max-height: 780px) {
  .artwork { height: clamp(520px, calc(100svh - var(--nav-h)), 690px); }
}

/* Các mục điều hướng ngoài website dùng thẻ a nhưng giữ nguyên giao diện nút. */
.main-nav a.nav-link, .main-nav a.nav-link:visited { text-decoration: none; }

/* ================================================================
   U888 v3 – MOBILE SCENE RIÊNG
   - Ảnh desktop giữ nguyên.
   - Ảnh dọc 960x2160 được reframe từ tranh cổng thành gốc,
     không bóp kéo hình mái/cổng; duy trì khung cảnh phía trước cổng.
   - Layout mobile có khoảng riêng cho nhân vật, quà, và card.
   ================================================================ */
@media (max-width: 1120px) {
  .site-wrap {
    background-color: #edb579;
    background-image: url("assets/background-mobile.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .site-wrap::before {
    background: linear-gradient(180deg,
      rgba(240,248,255,.05) 0%,
      rgba(255,235,204,.03) 43%,
      rgba(226,113,58,.09) 100%);
  }
  .scene-glow--gold { top: 14%; left: 2%; width: 80vw; }
  .scene-glow--rose { bottom: -7%; width: 85vw; }
}
@media (max-width: 560px) {
  /* Tỷ lệ ảnh và bố cục dùng % của vùng ảnh, không bám vào body-height. */
  .hero-layout {
    gap: 48px;
    padding: 0 15px 46px;
  }
  .artwork {
    height: clamp(305px, 82vw, 368px);
    overflow: visible;
  }
  .art-ambassador {
    width: 68%;
    left: 32%;
    bottom: 2%;
  }
  .art-rewards {
    width: 72%;
    left: -7%;
    bottom: 0%;
  }
  .art-sparkles { width: 54%; left: 39%; top: 19%; opacity: .15; }
  .slogan { top: 7%; }
  .redeem-section { z-index: 2; }
  .redeem-card { margin-top: 0; }
  .top-gift { pointer-events: none; }
}
@media (max-width: 370px) {
  .hero-layout { gap: 44px; padding: 0 10px 42px; }
  .artwork { height: clamp(286px, 83vw, 309px); }
  .slogan { top: 6%; left: 0; }
  .redeem-card { padding-inline: 15px; }
  .redeem-title { font-size: clamp(26px, 8vw, 30px); }
}

/* ==================================================================
   U888 • FORM NHẬP CODE 3 BƯỚC
   Cùng khung vàng kem, không tạo thêm popup xác thực.
   Khung thay đổi nội dung theo data-step trên .redeem-card.
   ================================================================== */
.redeem-card .redeem-intro {
  margin-bottom: 18px;
}
.steps-track {
  margin: 0 0 21px;
  padding: 6px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(226, 170, 94, .14);
  border: 1px solid rgba(211, 151, 78, .35);
  border-radius: 18px;
  box-shadow: inset 0 1px 5px rgba(164, 87, 31, .05);
}
.steps-track__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 37px;
  padding: 5px 5px;
  border-radius: 13px;
  color: #99664d;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  transition: background .25s, color .25s, box-shadow .25s;
}
.steps-track__item b {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  border-radius: 50%;
  color: #8e583f;
  background: #f9e4bd;
  font-weight: 900;
  font-size: 10px;
}
.steps-track__item.is-current {
  color: #ac231b;
  background: linear-gradient(#fffdf3, #fff0d4);
  box-shadow: 0 2px 7px rgba(156,91,39,.13), inset 0 0 0 1px rgba(237, 185, 106, .8);
}
.steps-track__item.is-current b {
  color: #fff6db;
  background: linear-gradient(#f9643f, #c91d12);
  box-shadow: 0 2px 5px rgba(161, 43, 13,.23);
}
.steps-track__item.is-done b {
  color: #fff;
  background: linear-gradient(145deg,#dbad56,#a96e27);
}
.steps-track__item.is-done b::first-letter { color: inherit; }
.step-fields { animation: stepAppear .2s ease-out both; }
@keyframes stepAppear { from { opacity: .38; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.field-note {
  color: #955d43;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.field-note strong { color: #be2615; }
.field-label {
  display: block;
  color: #9d412c;
  margin: 13px 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .035em;
  text-align: center;
}
.field-icon { flex: 0 0 auto; color: #d6ac80; }
.captcha-box {
  border: 1px solid rgba(214, 145, 56,.5);
  border-radius: 20px;
  background: linear-gradient(155deg, #fff9e9, #fce8c7);
  padding: 10px;
  box-shadow: inset 0 2px 9px rgba(191, 107, 35, .09);
}
.captcha-image {
  width: 100%;
  height: 112px;
  overflow: hidden;
  border: 1px solid #eac99e;
  border-radius: 13px;
  background: #fff1d6;
}
.captcha-image canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.captcha-actions { display: flex; gap: 10px; justify-content: center; margin-top: 9px; }
.captcha-mini-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 6px 15px;
  border: 1px solid rgba(209, 146, 75, .65);
  border-radius: 99px;
  color: #9b502f;
  background: rgba(255,251,242,.9);
  font-size: 12px;
  font-weight: 800;
  transition: background .15s ease, border-color .15s ease;
}
.captcha-mini-btn:hover, .captcha-mini-btn:focus-visible {
  background: #fff1d5;
  border-color: #d99946;
}
.captcha-mini-btn svg { width: 16px; height: 16px; }
.captcha-input-wrap, .account-input-wrap { height: 61px; }
.captcha-input-wrap input {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .24em;
}
.account-input-wrap input { font-size: 17px; }
.bank-label { margin: 21px 0 14px; }
.bank-digits {
  width: min(100%, 315px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 0 auto;
  border-radius: 12px;
}
.bank-digits input {
  min-width: 0;
  width: 100%;
  height: 63px;
  border: 1.8px solid #e9b67b;
  border-radius: 13px;
  background: linear-gradient(#fff,#fff9ef);
  outline: none;
  text-align: center;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  color: #7e3724;
  box-shadow: 0 3px 8px rgba(134,52,22,.07);
  transition: border-color .2s, box-shadow .2s;
}
.bank-digits input:focus { border-color: #cf8324; box-shadow: 0 0 0 4px rgba(241,182,96,.22); }
.bank-digits.is-invalid input { border-color: #c72826; }
.privacy-note {
  margin: 14px 0 0;
  color: #946553;
  font-size: 12px;
  line-height: 1.55;
}
.back-step {
  display: inline-flex;
  margin: 14px auto 0;
  padding: 8px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ac4c2c;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, background .2s;
}
.back-step:hover { color: #c32315; background: rgba(233,172,103,.16); }
.redeem-card[data-step="2"], .redeem-card[data-step="3"] {
  min-height: 600px;
}
.redeem-card[data-step="2"] .redeem-title,
.redeem-card[data-step="3"] .redeem-title {
  font-size: clamp(30px, 2.75vw, 47px);
}
.redeem-card[data-step="2"] .confirm-button,
.redeem-card[data-step="3"] .confirm-button {
  height: 67px;
  margin-top: 16px;
  font-size: 21px;
}
.redeem-card[data-step="3"] { min-height: 615px; }
.redeem-card[data-step="completed"] { min-height: 475px; }
.redeem-card[data-step="completed"] .redeem-title { font-size: clamp(30px, 3vw, 48px); }
.completed-view {
  padding: 11px 7px 17px;
  animation: stepAppear .24s ease-out both;
}
.completed-emblem {
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  margin: 0 auto 15px;
  border: 4px solid #f3c276;
  border-radius: 50%;
  background: linear-gradient(140deg, #fff5cc, #fbd7a0);
  color: #b81911;
  font-size: 55px;
  font-weight: 900;
  box-shadow: inset 0 0 10px rgba(228,155,61,.22), 0 7px 18px rgba(110,57,15,.12);
}
.completed-view h2 {
  margin: 4px 0 12px;
  color: #ae261a;
  font: 900 21px/1.25 Georgia,"Times New Roman",serif;
}
.completed-view p { color: #834b38; font-size: 15px; line-height: 1.6; }
.completed-view .dialog-action { margin-top: 20px; }
.dialog-body .guide-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f2d7a5;
  background: rgba(255,239,214,.68);
  color: #9a5638;
  font-size: 13px;
}

@media (max-width: 1120px) {
  /* Ảnh cổng thành giữ tỷ lệ gốc trên mobile — KHÔNG kéo giãn theo
     chiều cao form 3 bước. Đáy trang chuyển dần sang gam vàng ấm. */
  .site-wrap {
    background-color: #f3c184;
    background-image: url("assets/background-mobile.webp"), linear-gradient(180deg,#f6d59a 25%,#c35228 100%);
    background-size: 100% auto, 100% 100%;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
  }
  .redeem-card[data-step="2"], .redeem-card[data-step="3"] { min-height: 0; }
  .redeem-card { scroll-margin-top: 24px; }
}
@media (max-width: 560px) {
  .redeem-card .redeem-intro { margin-bottom: 13px; }
  .steps-track { padding: 4px; gap: 2px; margin-bottom: 17px; border-radius: 13px; }
  .steps-track__item { gap: 4px; font-size: 10px; padding: 5px 2px; min-height: 36px; }
  .steps-track__item b { flex-basis: 21px; width: 21px; height: 21px; font-size: 9px; }
  .redeem-card[data-step="2"] .redeem-title,
  .redeem-card[data-step="3"] .redeem-title { font-size: clamp(27px,7vw,38px); }
  .redeem-card[data-step="2"], .redeem-card[data-step="3"] { padding-top: 50px; }
  .captcha-image { height: 100px; }
  .captcha-box { border-radius: 15px; padding: 7px; }
  .captcha-mini-btn { min-height: 33px; font-size: 11px; padding: 6px 10px; }
  .field-note { font-size: 12px; margin-bottom: 9px; }
  .field-label { font-size: 11px; margin: 12px 0 8px; }
  .bank-label { margin-top: 15px; }
  .bank-digits { gap: 9px; max-width: 260px; }
  .bank-digits input { height: 56px; font-size: 25px; border-radius: 11px; }
  .captcha-input-wrap, .account-input-wrap { height: 56px; }
  .captcha-input-wrap input { font-size: 18px; }
  .account-input-wrap input { font-size: 16px; }
  .privacy-note { font-size: 11px; }
  .redeem-card[data-step="2"] .confirm-button,
  .redeem-card[data-step="3"] .confirm-button { height: 60px; font-size: 18px; margin-top: 14px; }
  .redeem-card[data-step="completed"] { min-height: 0; }
  .redeem-card[data-step="completed"] .redeem-title { font-size: 29px; }
  .completed-emblem { width: 70px; height: 70px; font-size: 46px; }
}
@media (max-width: 365px) {
  .steps-track__item { font-size: 9px; }
  .steps-track__item b { flex-basis: 19px; height: 19px; }
  .captcha-actions { gap: 7px; }
  .bank-digits { max-width: 246px; gap: 8px; }
}

/* Desktop: khi bước 2–3 cần nhiều trường, nới chiều cao trang thay vì
   cho khung xác nhận/biểu tượng quà đè lên thanh menu phía trên. */
@media (min-width: 1121px) {
  .site-wrap.is-multi-step .hero-layout {
    min-height: calc(100svh - var(--nav-h));
    align-items: start;
    padding-top: 64px;
    padding-bottom: 48px;
  }
  .site-wrap.is-multi-step .artwork {
    align-self: start;
    height: clamp(600px, calc(100svh - 220px), 710px);
  }
  .site-wrap.is-multi-step .redeem-section { align-self: start; }
  .site-wrap.is-multi-step .redeem-card { transform: none; }
  .redeem-card[data-step="2"] .top-gift,
  .redeem-card[data-step="3"] .top-gift {
    left: auto;
    right: 14px;
    top: 7px;
    width: 65px;
    height: 65px;
    transform: rotate(5deg);
    animation: none;
  }
}
@media (min-width: 1121px) {
  /* Giữ tóc người mẫu bên dưới vùng logo/menu khi thẻ form cao hơn. */
  .site-wrap.is-multi-step .art-ambassador {
    width: min(88%, 630px);
    left: 17.5%;
    bottom: 7%;
  }
}


/* ========================================================================
   U888 – UI FIXED FRAME / BEAUTIFUL 3-STEP GUIDE · 2026-10-13
   Khung nhập giữ cố định chiều cao trên mỗi breakpoint. Bước 2/3 chỉ
   thay phần nội dung bên trong; không thay đổi bố cục người mẫu/trang.
   ======================================================================== */

/* Khung nhập mã cố định cùng kích thước xuyên suốt các bước. */
:root { --redeem-card-fixed-height: 581px; }
.redeem-card,
.redeem-card[data-step="2"],
.redeem-card[data-step="3"],
.redeem-card[data-step="completed"] {
  height: var(--redeem-card-fixed-height);
  min-height: 0;
}
.redeem-card .card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.redeem-card .redeem-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.redeem-card .redeem-form .step-fields { flex: 0 0 auto; }
.redeem-card .redeem-form .confirm-button {
  flex: 0 0 auto;
  margin-top: auto;
}
.redeem-card .form-message {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}
.redeem-card .form-message:not(:empty) { margin: 3px 0 -1px; }
.redeem-card .security-note { flex: 0 0 auto; margin-top: 15px; }
.redeem-card[data-step="2"] .security-note,
.redeem-card[data-step="3"] .security-note { display: none; }
.redeem-card[data-step="2"] .redeem-title,
.redeem-card[data-step="3"] .redeem-title {
  font-size: clamp(29px,2.5vw,38px);
  line-height: 1.15;
  margin-bottom: 3px;
}
.redeem-card[data-step="2"] .redeem-title span:last-child,
.redeem-card[data-step="3"] .redeem-title span:last-child { display: none; }
.redeem-card[data-step="2"] .redeem-intro,
.redeem-card[data-step="3"] .redeem-intro {
  margin: 4px 0 12px;
  font-size: 14px;
}
.redeem-card[data-step="2"] .steps-track,
.redeem-card[data-step="3"] .steps-track { margin-bottom: 11px; }
.redeem-card[data-step="2"] .confirm-button,
.redeem-card[data-step="3"] .confirm-button {
  height: 56px;
  margin-top: auto;
  font-size: 19px;
}
.redeem-card[data-step="2"] .back-step,
.redeem-card[data-step="3"] .back-step { margin: 3px auto 0; padding: 5px 12px; font-size: 11px; }
.redeem-card[data-step="2"] .top-gift,
.redeem-card[data-step="3"] .top-gift {
  top: -73px; left: 50%; right: auto;
  width: 136px; height: 136px;
  transform: translateX(-50%) rotate(-5deg);
  animation: giftBob 4s ease-in-out infinite;
}

/* Không kéo dài hero hoặc dịch tấm card khi chuyển bước. */
@media (min-width: 1121px) {
  .site-wrap.is-multi-step .hero-layout {
    min-height: calc(100svh - var(--nav-h));
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
  .site-wrap.is-multi-step .artwork {
    align-self: end;
    height: clamp(560px, calc(100svh - 103px), 800px);
    margin-top: 0;
  }
  .site-wrap.is-multi-step .redeem-section { align-self: center; }
  .site-wrap.is-multi-step .redeem-card { transform: translateY(-31px); }
  .site-wrap.is-multi-step .art-ambassador { width: min(90%,660px); left: 15.5%; bottom: 15.5%; }
}

/* Nội dung CAPTCHA dạng cô đọng, dễ đọc và đủ chỗ trong khung cố định. */
.redeem-card .field-note { font-size: 12px; margin: 0 0 6px; line-height: 1.35; }
.redeem-card .captcha-box { padding: 7px; border-radius: 14px; }
.redeem-card .captcha-image { height: 75px; border-radius: 10px; }
.redeem-card .captcha-actions { gap: 8px; margin-top: 5px; }
.redeem-card .captcha-mini-btn { min-height: 30px; padding: 4px 12px; font-size: 11px; }
.redeem-card .field-label { margin: 8px 0 6px; font-size: 12px; }
.redeem-card .captcha-input-wrap,
.redeem-card .account-input-wrap { height: 50px; }
.redeem-card .captcha-input-wrap input { font-size: 19px; }
.redeem-card .bank-label { margin: 13px 0 8px; }
.redeem-card .bank-digits { max-width: 275px; gap: 9px; }
.redeem-card .bank-digits input { height: 50px; font-size: 23px; border-radius: 11px; }
.redeem-card .privacy-note { margin-top: 8px; font-size: 11px; line-height: 1.35; }
.redeem-card[data-step="completed"] .completed-view { margin: auto 0; padding: 4px 7px 8px; }

/* Bảng hướng dẫn chia riêng 3 mục, viền và số bước rõ ràng. */
.info-dialog.is-guide {
  width: min(610px, calc(100vw - 24px));
  max-height: min(750px, calc(100dvh - 30px));
  border: 1.5px solid #ffd58d;
  border-radius: 25px;
  background: linear-gradient(152deg, #fffaf0 0%, #fff0d7 100%);
  box-shadow: 0 0 0 5px rgba(189,87,33,.18), 0 27px 70px rgba(55,10,3,.42);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(192,122,65,.6) transparent;
}
.info-dialog.is-guide::backdrop {
  background: rgba(40,10,5,.6);
  backdrop-filter: blur(6px);
}
.is-guide .dialog-heading {
  min-height: 93px;
  padding: 19px 65px 19px;
  background:
    radial-gradient(ellipse at 50% -60%,rgba(255,219,153,.85),transparent 78%),
    linear-gradient(120deg,#fffcf5,#fff0d8);
  border-bottom: 1px solid rgba(210,143,58,.42);
}
.is-guide .dialog-heading::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 31%; right: 31%; bottom: 0;
  background: linear-gradient(90deg,transparent,#dba248,#ffde96,#dba248,transparent);
}
.is-guide .dialog-heading h2 {
  font: 900 clamp(21px,4.6vw,27px)/1.18 Georgia, "Times New Roman",serif;
  color: #ad190e;
  text-shadow: 0 2px 0 rgba(255,255,255,.85);
}
.is-guide .dialog-accent {
  top: 26px; left: 26px; font-size: 25px;
  color: #d19732; text-shadow: 0 0 12px rgba(255,205,122,.7);
}
.is-guide .dialog-close {
  width: 36px; height: 36px;
  right: 17px; top: 18px;
  background: #f7e8d0;
  color: #9b431b;
  transition: background .2s, transform .2s;
}
.is-guide .dialog-close:hover { background: #f3d5b0; transform: rotate(90deg); }
.is-guide .dialog-body { padding: 20px 24px 6px; }
.guide-lead {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 17px;
  border-radius: 17px;
  border: 1px solid rgba(228,166,78,.56);
  background: linear-gradient(110deg,#fff2d4,#fffaf0);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.75);
}
.guide-lead__star {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px;
  background: linear-gradient(155deg,#fce8a3,#d9962e);
  color: #8f2c18;
  font-size: 22px;
  box-shadow: 0 3px 7px rgba(145,73,9,.17);
}
.guide-lead strong { color: #a61d15; font-size: 13px; letter-spacing: .055em; }
.guide-lead p { margin: 4px 0 0; color: #86614a; font-size: 12px; line-height: 1.45; }
.guide-steps { display: grid; gap: 10px; padding: 0; margin: 14px 0; list-style: none; }
.guide-step {
  position: relative;
  display: grid; grid-template-columns: 52px minmax(0,1fr);
  gap: 13px; align-items: center;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid #f1cf9a;
  background: linear-gradient(110deg,#fffdf8 0%,#fff5e5 100%);
  box-shadow: 0 3px 9px rgba(128,67,31,.055);
  transition: border-color .18s, transform .18s;
}
.guide-step:nth-child(2) { background: linear-gradient(110deg,#fffdfa,#fff0dc); }
.guide-step:nth-child(3) { background: linear-gradient(110deg,#fffbef,#fff2df); }
.guide-step:hover { border-color: #e6a952; transform: translateY(-1px); }
.guide-step__number {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2px solid rgba(255,228,153,.8);
  border-radius: 15px;
  background: linear-gradient(155deg,#f35c2f,#b91c13);
  box-shadow: 0 4px 10px rgba(156,46,20,.2);
  color: #fff9e1;
  font: 900 22px/1 Georgia,serif;
}
.guide-step:nth-child(2) .guide-step__number { background: linear-gradient(155deg,#e7ad48,#ad5a1e); }
.guide-step:nth-child(3) .guide-step__number { background: linear-gradient(155deg,#c73722,#891714); }
.guide-step__eyebrow {
  display: block; margin-bottom: 3px;
  font-size: 10px; letter-spacing: .095em;
  font-weight: 900; color: #b87942;
}
.guide-step__title {
  margin: 0 0 5px;
  color: #a42317;
  font: 900 16px/1.18 Georgia,"Times New Roman",serif;
}
.guide-step__details {
  margin: 0;
  color: #7b4b3b;
  font-size: 13px;
  line-height: 1.5;
}
.guide-safety {
  display: flex; align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  margin: 2px 0 6px;
  border: 1px solid #efce90;
  border-radius: 14px;
  background: #fff1d7;
  color: #8b583f;
}
.guide-safety__icon {
  display: grid; place-items: center;
  flex: 0 0 24px;
  width: 24px; height: 24px;
  background: #e6b661; color: #fff9e9;
  border-radius: 50%;
  font-size: 15px; font-weight: 900;
}
.guide-safety strong { font-size: 11px; letter-spacing: .04em; color: #a92318; }
.guide-safety p { margin: 3px 0 0; font-size: 12px; line-height: 1.45; }
.is-guide .dialog-action {
  position: sticky; z-index: 3;
  bottom: 10px;
  margin: 9px auto 14px;
  min-width: 210px;
  padding: 11px 25px;
  box-shadow: 0 5px 17px rgba(141,35,10,.25),0 0 0 4px rgba(255,244,225,.7);
}

@media (max-width: 1280px) and (min-width: 1121px) {
  :root { --redeem-card-fixed-height: 540px; }
  .redeem-card { padding-top: 56px; padding-bottom: 22px; }
  .redeem-card[data-step="2"] .top-gift,
  .redeem-card[data-step="3"] .top-gift { top:-60px; width:118px; height:118px; }
}
@media (min-width: 1121px) and (max-height: 770px) {
  .site-wrap.is-multi-step .artwork { height: clamp(520px,calc(100svh - var(--nav-h)),690px); }
  .site-wrap.is-multi-step .art-ambassador { width: min(84%,570px); left:11%; bottom:10%; }
  .site-wrap.is-multi-step .redeem-card { transform: translateY(-7px); }
  .redeem-card[data-step="2"] .top-gift,
  .redeem-card[data-step="3"] .top-gift { top:-60px; width:118px; height:118px; }
}
@media (max-width: 1120px) {
  :root { --redeem-card-fixed-height: 542px; }
  .site-wrap.is-multi-step .hero-layout { gap:48px; }
  .redeem-card { padding-top: 54px; padding-bottom: 23px; }
  .redeem-card[data-step="2"] .top-gift,
  .redeem-card[data-step="3"] .top-gift { top:-53px; width:105px; height:105px; }
}
@media (max-width: 560px) {
  :root { --redeem-card-fixed-height: 475px; }
  .redeem-card,
  .redeem-card[data-step="2"],
  .redeem-card[data-step="3"] {
    padding: 48px 20px 20px;
  }
  .redeem-card[data-step="2"] .redeem-title,
  .redeem-card[data-step="3"] .redeem-title { font-size: clamp(25px, 7vw, 32px); }
  .redeem-card[data-step="2"] .redeem-intro,
  .redeem-card[data-step="3"] .redeem-intro { font-size: 12px; line-height: 1.27; margin: 3px 0 8px; }
  .redeem-card .steps-track { margin-bottom: 11px; }
  .redeem-card[data-step="2"] .steps-track,
  .redeem-card[data-step="3"] .steps-track { margin-bottom: 9px; }
  .redeem-card .field-note { font-size: 11px; margin-bottom: 4px; }
  .redeem-card .captcha-image { height: 62px; }
  .redeem-card .captcha-actions { margin-top: 4px; }
  .redeem-card .captcha-mini-btn { min-height: 27px; padding: 4px 8px; font-size: 10px; }
  .redeem-card .captcha-input-wrap,
  .redeem-card .account-input-wrap { height: 43px; }
  .redeem-card .field-label { font-size: 10px; margin: 6px 0 4px; }
  .redeem-card .bank-label { margin-top: 9px; }
  .redeem-card .bank-digits input { height: 43px; font-size: 21px; }
  .redeem-card .privacy-note { font-size: 10px; line-height: 1.3; margin-top: 6px; }
  .redeem-card[data-step="2"] .confirm-button,
  .redeem-card[data-step="3"] .confirm-button { height: 52px; font-size: 17px; }
  .redeem-card .back-step { font-size: 10px; margin-top: 2px; padding: 3px 9px; }
  .redeem-card[data-step="2"] .top-gift,
  .redeem-card[data-step="3"] .top-gift { top:-48px; width:94px; height:94px; }
  .redeem-card[data-step="2"] .form-message,
  .redeem-card[data-step="3"] .form-message { font-size: 11px; }
  .is-guide .dialog-heading { min-height: 72px; padding: 16px 50px 13px; }
  .is-guide .dialog-heading h2 { font-size: clamp(17px,5vw,21px); }
  .is-guide .dialog-accent { top: 19px; left: 15px; font-size: 18px; }
  .is-guide .dialog-close { top: 13px; right: 12px; width:34px; height:34px; }
  .is-guide .dialog-body { padding: 13px 13px 4px; }
  .guide-lead { gap: 9px; padding: 9px 10px; }
  .guide-lead__star { width:30px; height:30px; flex-basis:30px; border-radius:10px; }
  .guide-lead strong { font-size: 11px; }
  .guide-lead p { font-size: 11px; margin-top: 2px; }
  .guide-steps { gap: 8px; margin: 10px 0; }
  .guide-step { grid-template-columns: 36px minmax(0, 1fr); gap:10px; padding: 11px; border-radius:13px; }
  .guide-step__number { width:36px; height:36px; font-size:17px; border-radius:10px; }
  .guide-step__eyebrow { font-size:9px; margin-bottom:2px; }
  .guide-step__title { font-size:13.5px; margin-bottom:4px; }
  .guide-step__details { font-size:11.5px; line-height:1.48; }
  .guide-safety { gap:8px; padding:9px 10px; }
  .guide-safety p { font-size:11px; }
  .is-guide .dialog-action { min-width: 170px; margin:7px auto 12px; }
}
@media (max-width: 360px) {
  :root { --redeem-card-fixed-height: 466px; }
  .redeem-card,
  .redeem-card[data-step="2"],
  .redeem-card[data-step="3"] { padding-inline: 15px; }
  .redeem-card[data-step="2"] .redeem-title,
  .redeem-card[data-step="3"] .redeem-title { font-size: 24px; }
  .redeem-card .captcha-image { height: 57px; }
  .redeem-card .captcha-mini-btn { font-size: 9.5px; padding: 3px 7px; }
}


/* Trang kết quả cũng giữ đúng kích thước thẻ, không tràn nút bên dưới. */
.redeem-card[data-step="completed"] .redeem-title { font-size: clamp(26px,2.8vw,40px); line-height: 1.15; }
.redeem-card[data-step="completed"] .redeem-title span:last-child { display: none; }
.redeem-card[data-step="completed"] .redeem-intro { margin: 6px 0 9px; font-size: 13px; }
.redeem-card[data-step="completed"] .completed-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 3px 8px;
  margin: 0;
}
.redeem-card[data-step="completed"] .completed-emblem {
  width: 64px; height: 64px;
  border-width: 3px;
  font-size: 38px;
  margin: 0 auto 10px;
}
.redeem-card[data-step="completed"] .completed-view h2 {
  font-size: 17px;
  margin: 3px 0 7px;
}
.redeem-card[data-step="completed"] .completed-view p {
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
}
.redeem-card[data-step="completed"] .completed-view .dialog-action {
  min-width: 162px;
  margin: 14px auto 0;
  padding: 10px 17px;
  font-size: 13px;
}
@media (max-width: 560px) {
  .is-guide .dialog-action { position: static; }
  .redeem-card[data-step="completed"] .redeem-title { font-size: 28px; }
  .redeem-card[data-step="completed"] .redeem-intro { font-size: 11.5px; margin: 5px 0 9px; }
  .redeem-card[data-step="completed"] .completed-emblem { width: 55px; height:55px; font-size: 33px; margin-bottom: 8px; }
  .redeem-card[data-step="completed"] .completed-view h2 { font-size: 15.5px; margin-bottom: 7px; }
  .redeem-card[data-step="completed"] .completed-view p { font-size: 12px; line-height: 1.44; }
  .redeem-card[data-step="completed"] .completed-view .dialog-action { padding: 9px 15px; margin-top: 10px; font-size: 12px; }
}
