/* ==========================================================================
   Mẫu 16: Rượu vang tình yêu (Clone Cinelove Thiệp cưới 47)
   Tông màu: Đỏ rượu vang (#611010), Vàng ánh kim (#d4af37), Kem nhạt (#fcfbf8)
   ========================================================================== */

:root,
[data-palette="burgundy"] {
  --primary: #611010;
  --primary-dark: #430808;
  --primary-light: #871919;
  --accent-gold: #cba239;
  --accent-gold-light: #f7e6a7;
  --bg-page: #fbf9f5;
  --bg-card: #ffffff;
  --bg-burgundy: #5c0d0d;
  --text-main: #2b2727;
  --text-muted: #6e6565;
  --text-light: #ffffff;
  --border-color: #ebdcd0;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Alex Brush", "Great Vibes", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Quicksand", "Montserrat", sans-serif;
  --shadow-sm: 0 2px 8px rgba(97, 16, 16, 0.08);
  --shadow-md: 0 4px 16px rgba(97, 16, 16, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Reset cơ bản */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #e5dcd3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}

/* Khung chứa trung tâm chuẩn mobile (500px) */
.site-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-page);
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.18);
  padding-bottom: 70px; /* Chừa chỗ cho bottom toolbar */
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   HIỆU ỨNG TRÁI TIM RƠI (Snowflake / Falling Hearts Effect)
   -------------------------------------------------------------------------- */
.hearts-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}

.falling-heart {
  position: absolute;
  top: -20px;
  color: #ff3366;
  font-size: 14px;
  user-select: none;
  opacity: 0.85;
  animation: fallDown linear infinite, sway ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 4px rgba(255, 51, 102, 0.3));
}

@keyframes fallDown {
  0% { transform: translateY(-20px) scale(0.8); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.8; }
  100% { transform: translateY(105vh) scale(1.1); opacity: 0; }
}

@keyframes sway {
  0% { margin-left: -15px; }
  100% { margin-left: 15px; }
}

/* --------------------------------------------------------------------------
   NÚT PHÁT NHẠC ĐĨA THAN GÓC PHẢI
   -------------------------------------------------------------------------- */
.audio-control-wrapper {
  position: fixed;
  top: 15px;
  right: calc(50% - 235px);
  z-index: 1000;
}

@media (max-width: 500px) {
  .audio-control-wrapper {
    right: 15px;
  }
}

.audio-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
}

.audio-toggle:active {
  transform: scale(0.95);
}

.vinyl-disk {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 25%, #111 30%, #222 65%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4);
}

.audio-toggle.playing .vinyl-disk {
  animation: rotateVinyl 4s linear infinite;
}

@keyframes rotateVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.music-note-icon {
  width: 8px;
  height: 8px;
}

/* --------------------------------------------------------------------------
   1. HERO COVER SECTION
   -------------------------------------------------------------------------- */
.section-hero {
  position: relative;
  width: 100%;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  aspect-ratio: 500 / 720;
  object-fit: cover;
  display: block;
}

.hero-signature {
  position: absolute;
  top: 30px;
  right: 25px;
  text-align: right;
  font-family: var(--font-script);
  color: var(--primary);
  font-size: 32px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-signature .sig-heart {
  display: block;
  font-size: 16px;
  color: #e63956;
  margin: -2px 0;
  text-align: center;
}

.hero-invite-badge {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: right;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.badge-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 8px;
}

.badge-line {
  height: 1px;
  background-color: var(--primary);
  opacity: 0.3;
  margin: 6px 0;
}

.badge-event {
  margin-top: 6px;
}

.badge-event-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.badge-event-time, .badge-event-date {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   DÀNH CHO KHÁCH MỜI
   -------------------------------------------------------------------------- */
.section-guest {
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  border-bottom: 1px dashed var(--border-color);
}

.guest-label {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.guest-name {
  font-size: 40px;
  color: var(--primary);
  margin: 4px 0;
}

.guest-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   2. BURGUNDY CARD SECTION
   -------------------------------------------------------------------------- */
.section-burgundy-card {
  padding: 24px 20px;
}

.burgundy-card {
  background-color: var(--bg-burgundy);
  color: #fff;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(97, 16, 16, 0.28);
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-time {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 500;
  opacity: 0.9;
}

.card-date-gold {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 3px;
  margin: 10px 0;
}

.card-lunar {
  font-size: 13px;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 14px;
}

.card-place {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

.card-address {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.btn-card-map {
  display: inline-block;
  background-color: #fff;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 26px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-card-map:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   3. CEREMONY & WINDING ROAD SECTION
   -------------------------------------------------------------------------- */
.section-ceremony {
  padding: 30px 20px;
  text-align: center;
}

.ceremony-header {
  margin-bottom: 25px;
}

.ceremony-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-main);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.ceremony-time {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.ceremony-date-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px auto;
  font-family: var(--font-serif);
}

.cd-month, .cd-year {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
}

.cd-day {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  padding: 0 16px;
  border-left: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
}

.ceremony-lunar {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ceremony-place {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.ceremony-place::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background-color: var(--text-main);
}

/* Winding Road Container */
.winding-road-container {
  position: relative;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.road-track {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 220px;
  margin: 10px 0;
}

.road-svg {
  width: 100%;
  height: 100%;
}

.road-wedding-car {
  position: absolute;
  width: 60px;
  top: 90px;
  left: 45%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
  animation: carFloat 3s ease-in-out infinite alternate;
}

@keyframes carFloat {
  0% { transform: translate(-50%, -50%) rotate(-3deg); }
  100% { transform: translate(-50%, -46%) rotate(3deg); }
}

.road-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.point-bride {
  align-self: flex-end;
  margin-right: 35px;
}

.point-groom {
  align-self: flex-start;
  margin-left: 35px;
}

.road-icon {
  width: 32px;
  height: 32px;
}

.road-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #a46d49;
}

.btn-road-dir {
  background-color: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(97, 16, 16, 0.25);
}

.main-ceremony {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   4. WEDDING CALENDAR SECTION
   -------------------------------------------------------------------------- */
.section-calendar {
  padding: 20px;
}

.calendar-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.calendar-header-banner {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 20px;
  text-align: right;
}

.cal-month-script {
  font-size: 32px;
  letter-spacing: 1px;
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  padding: 10px;
}

.calendar-grid th {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.calendar-grid td {
  position: relative;
  height: 44px;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.calendar-grid .day-number {
  position: relative;
  z-index: 2;
}

.calendar-grid .wedding-day {
  font-weight: 700;
  color: #fff;
}

.day-stamp-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. INVITATION LETTER & COUNTDOWN
   -------------------------------------------------------------------------- */
.section-invitation {
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-page) 100%);
}

.invitation-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.invitation-names {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.invitation-quote {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 30px;
  text-wrap: balance;
}

.invitation-quote p {
  margin-bottom: 4px;
}

/* 4 Ô Đếm Ngược Đỏ Rượu Vang */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.countdown-block {
  flex: 1;
  max-width: 75px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(97, 16, 16, 0.2);
}

.count-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.count-label {
  font-size: 11px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   6. LOVE & YOU STORY SECTION
   -------------------------------------------------------------------------- */
.section-story {
  padding: 30px 20px;
}

.story-big-word {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.word-left {
  text-align: left;
  margin-bottom: 10px;
}

.word-right {
  text-align: right;
  margin-top: 10px;
  margin-bottom: 16px;
}

.story-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-photo {
  width: 100%;
  display: block;
}

.story-caption {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-main);
  padding: 20px 10px;
  text-wrap: balance;
}

.couple-wrap {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   7. ALBUM OF LOVE CAROUSEL
   -------------------------------------------------------------------------- */
.section-album {
  padding: 30px 20px;
  text-align: center;
}

.album-header {
  font-family: var(--font-serif);
  margin-bottom: 20px;
}

.album-title-main, .album-title-sub {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
}

.album-title-script {
  font-size: 36px;
  margin: 0 10px;
  color: var(--text-main);
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background-color: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  touch-action: pan-y;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. RSVP SECTION
   -------------------------------------------------------------------------- */
.section-rsvp {
  padding: 30px 20px;
}

.rsvp-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.rsvp-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.rsvp-sub-desc {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-wrap: balance;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background-color: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-options.inline {
  flex-direction: row;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.radio-label input {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.radio-label input:checked + .custom-radio {
  border-color: var(--primary);
  background-color: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.btn-rsvp-submit {
  width: 100%;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
  box-shadow: 0 4px 12px rgba(97, 16, 16, 0.25);
}

.btn-rsvp-submit:hover {
  background-color: var(--primary-dark);
}

.form-status-msg {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  min-height: 18px;
  transition: color 0.2s;
}

.form-status-msg.success {
  color: #2b8a3e;
  font-weight: 600;
}

.form-status-msg.error {
  color: #c92a2a;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. GIFT BANNER
   -------------------------------------------------------------------------- */
.section-gift-banner {
  padding: 24px 20px;
  text-align: center;
}

.gift-banner-inner {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  border: 1px dashed #e8c8be;
}

.gift-banner-img {
  width: 90px;
  margin: 0 auto 16px;
}

.bounce-animation {
  animation: bounceGift 4s ease infinite;
}

@keyframes bounceGift {
  0%, 100% { transform: translateY(0); }
  10% { transform: translateY(-10px); }
  20% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  30% { transform: translateY(0); }
}

.gift-banner-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.btn-open-gift {
  background: linear-gradient(135deg, var(--primary) 0%, #8c2020 100%);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(97, 16, 16, 0.25);
  transition: transform 0.2s ease;
}

.btn-open-gift:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   10. WISHES / GUESTBOOK
   -------------------------------------------------------------------------- */
.section-wishes {
  padding: 24px 20px;
}

.wishes-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  text-align: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.wish-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--primary);
}

.wish-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.wish-text {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. THANK YOU FOOTER
   -------------------------------------------------------------------------- */
.section-thanks {
  padding: 40px 20px 20px;
  text-align: center;
}

.thanks-image {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.thanks-title {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 8px;
}

.thanks-message {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  text-wrap: balance;
}

.credit {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.credit:hover {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   BONG BÓNG LỜI CHÚC TRÔI NỔI (Blessing Toast góc dưới trái)
   -------------------------------------------------------------------------- */
.blessing-box {
  position: fixed;
  bottom: 74px;
  left: calc(50% - 235px);
  z-index: 950;
  pointer-events: none;
}

@media (max-width: 500px) {
  .blessing-box {
    left: 14px;
  }
}

.blessing-toast {
  background: rgba(225, 117, 117, 0.88);
  color: #fff;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 16px;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.blessing-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   BOTTOM TOOLBAR
   -------------------------------------------------------------------------- */
.bottom-toolbar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bottom-toolbar {
  width: 100%;
  max-width: 500px;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: auto;
}

.btn-tb-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--text-main);
  width: 140px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-tb-message:active {
  background: rgba(0, 0, 0, 0.12);
}

.tb-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.toolbar-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tb-heart-shoot {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.15s, background 0.15s;
}

.btn-tb-heart-shoot:active {
  transform: scale(1.15);
  background: #ffecf0;
}

.btn-tb-gift {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffeff2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-tb-gift img {
  width: 24px;
  height: 24px;
}

.btn-tb-like {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffeff2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s;
}

.btn-tb-like:active {
  transform: scale(1.2);
}

.like-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff758c 0%, #ff4969 100%);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   GIFT MODAL BACKDROP & DIALOG
   -------------------------------------------------------------------------- */
.gift-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.gift-modal-backdrop[hidden] {
  display: none;
}

.gift-modal-dialog {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.gift-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.gift-modal-tip {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.gift-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gift-account-card {
  background: #fbf8f5;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #ebdcd0;
  text-align: center;
}

.ga-owner {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.ga-bank {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ga-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ga-number {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-copy-account {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ga-qr-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.ga-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* --------------------------------------------------------------------------
   REVEAL ON SCROLL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}
