/* --- Heartly Gift: quà cá nhân hóa × tình yêu --- */
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Điểm gãy responsive: điện thoại / tablet / desktop */
  --bp-tablet: 1024px;
  --bp-mobile-nav: 639px;
  --container-pad: clamp(16px, 4vw, 22px);
  --primary: #e11d48;
  --primary-soft: #e11d48;
  --accent: #c084fc;
  --gold: #c9956c;
  --gold-deep: #a16207;
  /* Nền sáng — không gian trang */
  --bg-page: #fdf8fa;
  --bg-page-mid: #faf0f4;
  --bg-section: #fdeef4;
  --bg-elevated: #ffffff;
  --ink: #2a1f27;
  --ink-muted: #6f5965;
  /* Hero (vẫn tối nhẹ để ảnh nổi) */
  --hero-back: #1a1418;
  --border-glow: rgba(225, 29, 72, 0.18);
  --glass: rgba(255, 252, 253, 0.92);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

/* Tiêu đề / chữ nổi bật — Lora (từng mục + tên trong thẻ sản phẩm) */
.hero .hero-content h1,
.section-title,
.section-title--on-dark,
.section-eyebrow,
.section-eyebrow--on-dark,
.hero-kicker,
.movie-card .movie-info h3,
.step-item h4,
.site-footer__lead {
  font-family: "Lora", Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--bg-page) 22%,
    var(--bg-page-mid) 100%
  );
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- Layout --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad), env(safe-area-inset-right, 0px));
}

/* Neo anchor không bị che bởi header cố định */
#gifts,
#how-it-works,
#contact {
  scroll-margin-top: clamp(88px, 20vw, 140px);
}

/* --- Buttons --- */
.btn {
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    #be123c 0%,
    var(--primary) 45%,
    #7c3aed 100%
  );
  color: #fff;
  box-shadow:
    0 6px 28px rgba(225, 29, 72, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 36px rgba(225, 29, 72, 0.55),
    0 0 48px rgba(192, 132, 252, 0.2);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232, 196, 160, 0.08);
}

.btn-block {
  width: 100%;
}

/* --- Section typography --- */
.section-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 12px;
}

.section-eyebrow--on-dark {
  color: var(--gold);
}

.section-title {
  text-align: center;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(
    105deg,
    #831843 0%,
    var(--primary) 42%,
    #c2410c 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title--on-dark {
  background: linear-gradient(
    105deg,
    #881337 0%,
    #db2777 48%,
    var(--gold-deep) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  color: var(--ink-muted);
  font-size: 1.02rem;
  font-weight: 400;
}

.section-sub--on-dark {
  color: var(--ink-muted);
}

/* Nút liên hệ cố định + popover — góc phải dưới */
.contact-fab-wrap {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 1120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  /* Chỉ nút / panel nhận click — phần “vùng trống” của panel đóng không chặn footer */
  pointer-events: none;
}

.contact-fab-panel {
  position: relative;
  overflow: visible;
  width: min(292px, calc(100vw - 40px));
  margin-bottom: 14px;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 72, 0.45),
    rgba(124, 58, 237, 0.35) 50%,
    rgba(225, 29, 72, 0.3)
  );
  box-shadow:
    0 20px 50px rgba(131, 24, 67, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transform-origin: 85% 100%;
  transition:
    opacity 0.32s cubic-bezier(0.34, 1.15, 0.64, 1),
    visibility 0.32s,
    transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.contact-fab-wrap.is-open .contact-fab-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.contact-fab-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 252, 253, 0.96) 100%
  );
  border-radius: 19px 19px 0 0;
}

.contact-fab-panel__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  padding-top: 2px;
}

.contact-fab-panel__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-muted);
  background: rgba(225, 29, 72, 0.06);
  transition: var(--transition);
}

.contact-fab-panel__close:hover {
  color: var(--primary);
  background: rgba(225, 29, 72, 0.12);
}

.contact-fab-panel__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.25px;
}

.contact-fab-panel__list {
  list-style: none;
  margin: 0;
  padding: 6px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 253, 0.96) 0%,
    rgba(253, 248, 250, 0.99) 100%
  );
  border-radius: 0 0 19px 19px;
}

.contact-fab-panel__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(225, 29, 72, 0.08);
  transition: var(--transition);
}

.contact-fab-panel__link:hover {
  border-color: rgba(225, 29, 72, 0.22);
  background: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.1);
  transform: translateX(-2px);
}

.contact-fab-panel__ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-fab-panel__link--zalo .contact-fab-panel__ico {
  background: linear-gradient(145deg, #e0f2fe, #dbeafe);
}

.contact-fab-panel__link--zalo .contact-fab-panel__ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.contact-fab-panel__link--fb .contact-fab-panel__ico {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1877f2;
}

.contact-fab-panel__link--tiktok .contact-fab-panel__ico {
  background: linear-gradient(145deg, #fce7f3, #fdf4ff);
  color: #ec4899;
}

.contact-fab-panel__label {
  flex: 1;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.contact-fab-panel__chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(225, 29, 72, 0.35);
  transition: var(--transition);
}

.contact-fab-panel__link:hover .contact-fab-panel__chev {
  color: var(--primary);
  transform: translateX(3px);
}

.contact-fab-panel__tail {
  position: absolute;
  right: 18px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    rgba(253, 248, 250, 0.99) 50%,
    rgba(255, 252, 253, 0.96) 50%
  );
  border-right: 1px solid rgba(225, 29, 72, 0.12);
  border-bottom: 1px solid rgba(225, 29, 72, 0.12);
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
  box-shadow: 4px 4px 12px rgba(131, 24, 67, 0.06);
  pointer-events: none;
}

.contact-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(
    135deg,
    #be123c 0%,
    var(--primary) 45%,
    #7c3aed 100%
  );
  color: #fff;
  box-shadow:
    0 6px 28px rgba(225, 29, 72, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: var(--transition);
}

.contact-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 12px 36px rgba(225, 29, 72, 0.55),
    0 0 48px rgba(192, 132, 252, 0.25);
}

.contact-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.contact-fab-wrap.is-open .contact-fab {
  box-shadow:
    0 8px 32px rgba(225, 29, 72, 0.55),
    0 0 0 2px rgba(255, 255, 255, 0.35) inset;
}

.contact-fab svg {
  width: 26px;
  height: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab {
    transition: none;
  }

  .contact-fab:hover {
    transform: none;
  }

  .contact-fab-panel {
    transition:
      opacity 0.15s ease,
      visibility 0.15s;
    transform: none !important;
  }

  .contact-fab-panel__link:hover {
    transform: none;
  }

  .contact-fab-panel__link:hover .contact-fab-panel__chev {
    transform: none;
  }

  .site-nav .nav-links,
  .nav-backdrop,
  .nav-toggle-bar {
    transition: none !important;
  }
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: 20px;
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  background: transparent;
  transition: var(--transition);
  box-sizing: border-box;
}

header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  border-bottom: 1px solid rgba(225, 29, 72, 0.1);
  box-shadow: 0 8px 32px rgba(131, 24, 67, 0.08);
}

/* Logo sát mép trái, nút đăng nhập/đăng ký sát mép phải; menu giữa */
.site-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 16px;
}

.site-nav .logo {
  grid-column: 1;
  justify-self: start;
}

.site-nav .nav-links {
  grid-column: 2;
  justify-self: center;
}

.site-nav .site-nav-actions {
  grid-column: 3;
  justify-self: end;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

header.scrolled .nav-toggle {
  background: rgba(225, 29, 72, 0.08);
}

header.scrolled .nav-toggle:hover {
  background: rgba(225, 29, 72, 0.14);
}

header.scrolled .nav-toggle-bar {
  background: var(--ink);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(26, 20, 24, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .contact-fab-wrap {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 66px;
  max-width: min(380px, 84vw);
  object-fit: contain;
  flex-shrink: 0;
}

.logo--footer .logo-img {
  max-height: 58px;
  max-width: 320px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

header.scrolled .nav-links a {
  color: var(--ink);
  opacity: 0.88;
}

header.scrolled .nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* Sau đăng nhập: giữ vùng rộng tương đương nút, căn giữa ảnh Gmail trong ô đó */
.auth-buttons.auth-buttons--session {
  justify-content: center;
  min-width: min(210px, calc(100vw - 100px));
  padding-inline: 10px;
  box-sizing: border-box;
}

/* Tránh .btn { display: inline-block } che mất trạng thái ẩn sau đăng nhập */
#btnLoginGoogle[hidden] {
  display: none !important;
}

/* --- Menu tài khoản Google (avatar + panel) --- */
/* [hidden] mặc định bị .auth-user-menu { display: flex } ghi đè — phải ép ẩn khi chưa đăng nhập */
.auth-user-menu[hidden] {
  display: none !important;
}

.auth-user-menu {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-user-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.28s ease;
}

.auth-user-menu__trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.auth-user-menu__trigger:hover .auth-user-photo,
.auth-user-menu__trigger:focus-visible .auth-user-photo {
  box-shadow:
    0 4px 18px rgba(225, 29, 72, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}

.auth-user-menu.is-open .auth-user-menu__trigger .auth-user-photo {
  box-shadow:
    0 0 0 3px rgba(225, 29, 72, 0.45),
    0 6px 22px rgba(124, 58, 237, 0.25);
}

.auth-user-photo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 12px rgba(26, 20, 24, 0.2);
  transition: var(--transition);
}

.auth-user-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1205;
  width: min(302px, calc(100vw - 26px));
  padding: 0;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(
      130% 90% at 100% -30%,
      rgba(192, 132, 252, 0.2) 0%,
      transparent 58%
    ),
    radial-gradient(
      100% 80% at -20% 120%,
      rgba(225, 29, 72, 0.11) 0%,
      transparent 52%
    ),
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 252, 253, 0.97) 42%,
      rgba(252, 248, 255, 0.96) 100%
    );
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 -12px 36px rgba(225, 29, 72, 0.05) inset,
    0 36px 72px -16px rgba(42, 31, 39, 0.24),
    0 16px 32px -12px rgba(225, 29, 72, 0.12),
    0 0 0 1px rgba(225, 29, 72, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.94);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.34s cubic-bezier(0.32, 1.1, 0.64, 1),
    visibility 0.34s,
    transform 0.34s cubic-bezier(0.32, 1.1, 0.64, 1),
    box-shadow 0.34s ease;
}

.auth-user-menu.is-open .auth-user-menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 -12px 36px rgba(225, 29, 72, 0.06) inset,
    0 40px 80px -14px rgba(42, 31, 39, 0.26),
    0 20px 40px -14px rgba(124, 58, 237, 0.1),
    0 0 0 1px rgba(225, 29, 72, 0.08);
}

.auth-user-menu__panel::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 19px;
  width: 11px;
  height: 11px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(254, 250, 252, 0.96) 100%
  );
  border-left: 1px solid rgba(225, 29, 72, 0.08);
  border-top: 1px solid rgba(225, 29, 72, 0.08);
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(255, 255, 255, 0.6);
  z-index: 4;
}

.auth-user-menu__sheen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    118deg,
    transparent 36%,
    rgba(255, 255, 255, 0.55) 47%,
    rgba(255, 255, 255, 0.12) 53%,
    transparent 64%
  );
  opacity: 0.42;
}

.auth-user-menu__inner {
  position: relative;
  z-index: 2;
  padding: 22px 22px 20px;
}

.auth-user-menu__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(111, 89, 101, 0.5);
}

.auth-user-menu__identity {
  padding-bottom: 18px;
  margin-bottom: 2px;
  border-bottom: none;
  background: linear-gradient(
    90deg,
    rgba(225, 29, 72, 0.14) 0%,
    rgba(168, 85, 247, 0.12) 55%,
    transparent 100%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.auth-user-menu__name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.32;
  margin: 0 0 12px;
}

.auth-user-menu__name:empty {
  display: none;
}

.auth-user-menu__email-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(225, 29, 72, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.auth-user-menu__email-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(225, 29, 72, 0.55);
  display: flex;
}

.auth-user-menu__email {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  word-break: break-word;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.auth-user-menu__logout {
  width: 100%;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.94),
      rgba(255, 252, 253, 0.92)
    ),
    linear-gradient(
      135deg,
      rgba(190, 18, 60, 0.38) 0%,
      rgba(225, 29, 72, 0.48) 45%,
      rgba(124, 58, 237, 0.38) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: #9f1239;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    color 0.2s ease,
    box-shadow 0.28s ease,
    filter 0.2s ease;
}

.auth-user-menu__logout:hover {
  color: #881337;
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(225, 29, 72, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  filter: brightness(1.02);
}

.auth-user-menu__logout:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.14);
}

.auth-user-menu__logout:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.auth-user-menu__logout-icon {
  display: flex;
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  .auth-user-menu__panel,
  .auth-user-menu__trigger,
  .auth-user-photo,
  .auth-user-menu__logout {
    transition: none;
  }

  .auth-user-menu.is-open .auth-user-menu__panel {
    transform: none;
  }

  .auth-user-menu__panel {
    transform: none;
  }
}

/* --- Hero / Banner --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--hero-back);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow:
    inset 0 0 140px 50px rgba(0, 0, 0, 0.45),
    inset 0 -100px 80px rgba(26, 20, 24, 0.55);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.slider {
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.08);
  transform: scale(1.02);
}

.slide-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      160deg,
      rgba(40, 24, 32, 0.45) 0%,
      rgba(255, 240, 246, 0.12) 45%,
      rgba(88, 28, 50, 0.28) 100%
    ),
    radial-gradient(
      ellipse 85% 65% at 50% 100%,
      rgba(190, 18, 60, 0.22),
      transparent 58%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  transform: translateY(36px);
  transition:
    transform 1s ease-out,
    opacity 1s ease-out;
  opacity: 0.96;
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  text-shadow: 0 0 40px rgba(232, 196, 160, 0.4);
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.65rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.6);
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 500;
  color: #fecdd3;
}

.hero-lead {
  font-size: 1.08rem;
  font-weight: 400;
  color: rgba(255, 250, 252, 0.9);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.slider-dots {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  padding: 0 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dot.active {
  background: linear-gradient(90deg, var(--gold), var(--primary-soft));
  width: 32px;
  border-radius: 10px;
  border-color: transparent;
}

/* --- Sản phẩm / thẻ mẫu quà --- */
.products {
  position: relative;
  width: 100%;
  padding: 100px 0 110px;
  /* Một màu nền full-width — tránh vệt hai tông do gradient + body lộ hai bên */
  background: var(--bg-page);
}

.products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-glow),
    transparent
  );
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.movie-card {
  background: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  border: 1px solid rgba(225, 29, 72, 0.14);
  box-shadow:
    0 10px 32px rgba(131, 24, 67, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 0 12px rgba(225, 29, 72, 0.05),
    0 0 24px rgba(251, 113, 133, 0.04);
  display: none;
}

.movie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(225, 29, 72, 0.12) 30%,
    rgba(225, 29, 72, 0.16) 50%,
    rgba(225, 29, 72, 0.12) 70%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.movie-card.visible {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation:
    fadeCard 0.75s ease forwards,
    cardPinkGlow 3.5s ease-in-out infinite;
}

.movie-card.visible:hover {
  animation-play-state: paused, paused;
  transform: translateY(-12px);
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow:
    0 20px 48px rgba(131, 24, 67, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 0 18px rgba(225, 29, 72, 0.12),
    0 0 36px rgba(251, 113, 133, 0.08),
    0 0 52px rgba(244, 114, 182, 0.05);
}

@keyframes fadeCard {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardPinkGlow {
  0%,
  100% {
    box-shadow:
      0 10px 32px rgba(131, 24, 67, 0.06),
      0 0 0 1px rgba(255, 255, 255, 0.75) inset,
      0 0 10px rgba(225, 29, 72, 0.04),
      0 0 22px rgba(251, 113, 133, 0.035);
  }
  50% {
    box-shadow:
      0 11px 36px rgba(131, 24, 67, 0.07),
      0 0 0 1px rgba(255, 255, 255, 0.78) inset,
      0 0 16px rgba(225, 29, 72, 0.08),
      0 0 30px rgba(251, 113, 133, 0.06),
      0 0 44px rgba(244, 114, 182, 0.04);
  }
}

.movie-img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.movie-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(131, 24, 67, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.movie-card.visible:hover .movie-img::after {
  opacity: 1;
}

/* Băng chéo góc phải trên — "New" / "Hot" (badgeNew, badgeHot) */
.corner-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

.corner-ribbon span {
  position: absolute;
  display: block;
  width: 150px;
  padding: 7px 0;
  top: 20px;
  right: -38px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 45%, #b91c1c 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow:
    0 2px 8px rgba(127, 29, 29, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.corner-ribbon--hot span {
  letter-spacing: 0.14em;
}

.movie-card--new.visible,
.movie-card--hot.visible {
  border-color: rgba(220, 38, 38, 0.28);
}

.movie-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card.visible:hover .movie-img img {
  transform: scale(1.06);
}

.movie-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 20px 18px;
  border-top: 1px solid rgba(225, 29, 72, 0.08);
  background: linear-gradient(
    180deg,
    var(--bg-elevated) 0%,
    rgba(255, 251, 252, 0.98) 100%
  );
}

.movie-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.35;
}

.movie-info p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.movie-card-meta__creates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.movie-card-meta__creates-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #e11d48;
  stroke-width: 2.25;
}

.movie-card-meta__creates-num {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #9f1239;
  white-space: nowrap;
}

.movie-card-meta__creates-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(190, 18, 60, 0.85);
  white-space: nowrap;
}

.movie-card-meta__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.movie-card-meta__price-label {
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(131, 24, 67, 0.55);
}

.movie-card-meta__price strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  background: linear-gradient(135deg, #be123c, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.movie-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 29, 72, 0.1);
}

.movie-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  box-sizing: border-box;
}

.movie-card-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.movie-card-btn span {
  white-space: nowrap;
}

.movie-card-btn--preview {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(225, 29, 72, 0.22);
  box-shadow:
    0 2px 8px rgba(131, 24, 67, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.movie-card-btn--preview:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(255, 241, 245, 1);
  box-shadow:
    0 8px 20px rgba(225, 29, 72, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #9f1239;
}

.movie-card-btn--create {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1.5px solid transparent;
  background: linear-gradient(
    135deg,
    #be123c 0%,
    var(--primary) 50%,
    #a21caf 100%
  );
  box-shadow:
    0 4px 16px rgba(225, 29, 72, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.movie-card-btn--create::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.movie-card-btn--create:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(225, 29, 72, 0.45),
    0 0 24px rgba(192, 132, 252, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.movie-card-btn--create:hover::before {
  transform: translateX(120%);
}

.movie-card-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .movie-card-actions {
    grid-template-columns: 1fr;
  }

  .movie-card-btn {
    min-height: 42px;
    font-size: 0.82rem;
  }
}

.load-more-container {
  text-align: center;
  margin-top: 48px;
}

.products .btn-outline {
  border-color: rgba(225, 29, 72, 0.25);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
}

.products .btn-outline:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

/* --- How it works — cùng nền với Khám phá mẫu quà & footer --- */
.how-it-works {
  padding: 100px 0 110px;
  background: var(--bg-page);
  border-top: none;
  border-bottom: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-item {
  padding: 32px 26px;
  text-align: left;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid rgba(225, 29, 72, 0.1);
  box-shadow: 0 8px 32px rgba(131, 24, 67, 0.06);
  transition: var(--transition);
}

.step-item:hover {
  border-color: rgba(225, 29, 72, 0.2);
  background: #fff;
  box-shadow: 0 16px 40px rgba(131, 24, 67, 0.1);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 22px;
  background: linear-gradient(
    145deg,
    rgba(225, 29, 72, 0.12),
    rgba(124, 58, 237, 0.1)
  );
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 29, 72, 0.12);
  transition: var(--transition);
}

.step-item:hover .step-icon {
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #7c3aed);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.35);
}

.step-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--ink);
}

.step-item p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-item p + p {
  margin-top: 0.65rem;
}

.step-bullets {
  list-style: disc;
  text-align: left;
  margin: 12px 0 0;
  max-width: none;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.step-bullets li {
  margin-bottom: 6px;
}

.step-bullets li:last-child {
  margin-bottom: 0;
}

/* --- Footer — bố cục trung tâm, không form --- */
.site-footer {
  position: relative;
  overflow: hidden;
  /* Chừa chỗ cho nút liên hệ nổi (contact-fab) để icon footer không bị chặn click */
  padding: clamp(72px, 12vw, 110px) 0
    max(
      clamp(40px, 6vw, 52px),
      calc(72px + env(safe-area-inset-bottom, 0px))
    );
  border-top: none;
  background: var(--bg-page);
}

.site-footer__glow {
  display: none;
}

.site-footer__mesh {
  display: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 44px);
}

.site-footer__col--main {
  text-align: left;
  min-width: 0;
}

.site-footer__col--aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
}

.site-footer__brand {
  margin-bottom: clamp(22px, 4vw, 32px);
}

.site-footer__logo {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.site-footer__logo .logo-img {
  filter: drop-shadow(0 12px 36px rgba(131, 24, 67, 0.12));
}

.site-footer__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36rem;
}

.site-footer__lead em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.site-footer__nav {
  margin-bottom: 0;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.site-footer__links li {
  display: flex;
  align-items: center;
}

.site-footer__links li + li::before {
  content: "·";
  margin: 0 14px;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(111, 89, 101, 0.38);
  font-weight: 600;
  user-select: none;
}

.site-footer__textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.site-footer__textlink svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2px;
  flex-shrink: 0;
  opacity: 0.88;
}

.site-footer__textlink:hover {
  color: var(--primary);
  border-bottom-color: rgba(225, 29, 72, 0.35);
}

.site-footer__textlink:hover svg {
  opacity: 1;
}

.site-footer__textlink:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer__social-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
  opacity: 0.88;
  text-align: right;
  line-height: 1.35;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.social-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  text-decoration: none;
  background: linear-gradient(165deg, #ffffff 0%, #fff8fa 45%, #fdeef4 100%);
  border: 1px solid rgba(225, 29, 72, 0.2);
  box-shadow:
    0 6px 22px rgba(131, 24, 67, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 0 28px rgba(225, 29, 72, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    color 0.25s ease,
    background 0.35s ease;
}

.social-icon svg,
.social-icon .social-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-icon:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #e11d48 0%, #db2777 45%, #7c3aed 100%);
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 14px 32px rgba(225, 29, 72, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 40px rgba(225, 29, 72, 0.35),
    0 0 72px rgba(251, 113, 133, 0.25);
}

.social-icon:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-footer__social {
  margin: 0;
  justify-content: flex-end;
}

.site-footer__rule {
  height: 1px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(22px, 4vw, 30px);
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(225, 29, 72, 0.28) 35%,
    rgba(124, 58, 237, 0.2) 65%,
    transparent
  );
}

.site-footer__bottom {
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* --- Responsive: desktop mặc định, tablet & điện thoại --- */

/* Tablet + iPad: giữ thanh menu một hàng (logo | link | đăng nhập) như desktop */
@media (max-width: 1024px) and (min-width: 640px) {
  .site-nav {
    gap: 10px 12px;
  }

  .auth-buttons.auth-buttons--session {
    min-width: min(190px, 30vw);
    padding-inline: 8px;
  }

  .auth-user-menu__trigger {
    width: 42px;
    height: 42px;
  }

  .auth-user-photo {
    width: 38px;
    height: 38px;
  }

  .auth-user-menu__panel {
    width: min(286px, calc(100vw - 30px));
  }

  .auth-user-menu__inner {
    padding: 20px 18px 18px;
  }

  .nav-links {
    gap: clamp(8px, 1.6vw, 20px);
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .logo-img {
    max-height: 48px;
    max-width: min(180px, 36vw);
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  }

  .hero-content {
    padding: 0 var(--container-pad);
  }

  .hero-lead {
    font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  }

  .logo--footer .logo-img {
    max-height: 46px;
    max-width: 245px;
  }

  .products {
    padding: clamp(64px, 12vw, 100px) 0 clamp(72px, 11vw, 110px);
  }

  .how-it-works {
    padding: clamp(64px, 12vw, 100px) 0 clamp(72px, 11vw, 110px);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .movie-grid {
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }
}

/* Điện thoại: drawer + nút menu */
@media (max-width: 639px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .site-nav .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav .site-nav-actions {
    flex: 0 0 auto;
  }

  .auth-buttons.auth-buttons--session {
    justify-content: flex-end;
    min-width: auto;
    padding-inline: 0;
  }

  .auth-user-menu__trigger {
    width: 42px;
    height: 42px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .auth-user-photo {
    width: 36px;
    height: 36px;
    border-width: 1.5px;
  }

  .auth-user-menu__panel {
    top: calc(100% + 8px);
    right: 0;
    width: min(90vw, 288px);
    border-radius: 18px;
    transform-origin: top right;
  }

  .auth-user-menu__panel::before {
    right: 15px;
  }

  .auth-user-menu__inner {
    padding: 16px 14px 14px;
  }

  .auth-user-menu__name {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .auth-user-menu__email {
    font-size: 0.76rem;
  }

  .auth-user-menu__logout {
    margin-top: 12px;
    padding: 11px 16px;
    font-size: 0.8rem;
  }

  .site-nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(100px, calc(env(safe-area-inset-top, 0px) + 88px)) 24px 32px
      max(24px, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    border-top: none;
    border-left: 1px solid rgba(225, 29, 72, 0.12);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -12px 0 40px rgba(131, 24, 67, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  body.nav-open .site-nav .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(225, 29, 72, 0.08);
  }

  .site-nav .nav-links a {
    display: block;
    padding: 16px 4px;
    font-size: 1rem;
    color: var(--ink);
  }

  header:not(.scrolled) .site-nav .nav-links a {
    color: rgba(255, 255, 255, 0.95);
  }

  header:not(.scrolled) .site-nav .nav-links {
    background: rgba(26, 20, 24, 0.92);
    border-left-color: rgba(255, 255, 255, 0.12);
  }

  header.scrolled .site-nav .nav-links {
    background: var(--glass);
    border-left-color: rgba(225, 29, 72, 0.12);
  }

  header.scrolled .site-nav .nav-links a {
    color: var(--ink);
  }

  .logo-img {
    max-height: 36px;
    max-width: min(135px, 50vw);
  }

  .logo--footer .logo-img {
    max-height: 40px;
    max-width: 162px;
  }

  .section-title,
  .section-title--on-dark {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  }

  .section-sub {
    margin-bottom: 36px;
    font-size: 0.98rem;
    padding: 0 4px;
  }

  .hero-kicker {
    letter-spacing: 0.28em;
    font-size: 0.62rem;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .movie-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    padding: 26px 20px;
  }

  .auth-buttons .btn {
    padding: 10px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .site-footer {
    padding: 56px 0
      max(32px, calc(88px + env(safe-area-inset-bottom, 0px)));
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .site-footer__col--main {
    text-align: center;
  }

  .site-footer__logo {
    justify-content: center;
  }

  .site-footer__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__links {
    justify-content: center;
  }

  .site-footer__col--aside {
    align-items: center;
    text-align: center;
    padding-top: 0;
  }

  .site-footer__social-label {
    text-align: center;
  }

  .site-footer__social {
    justify-content: center;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.86rem;
  }
}

/* Màn rất hẹp */
@media (max-width: 380px) {
  .auth-buttons.auth-buttons--session {
    min-width: auto;
    padding-inline: 0;
  }

  .auth-user-menu__trigger {
    width: 38px;
    height: 38px;
    padding: 2px;
  }

  .auth-user-photo {
    width: 32px;
    height: 32px;
  }

  .auth-user-menu__panel {
    width: min(94vw, 260px);
    right: 0;
  }

  .auth-buttons .btn {
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .logo-img {
    max-height: 30px;
    max-width: min(118px, 46vw);
  }
}
