/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary-green: #06403D; /* Mảng sẫm */
    --light-green: #25C389; /* Chữ nhấn màu xanh sáng */
    --accent-orange: #FF7043;
    --accent-orange-hover: #E64A19;
    --dark-bg: #0A0F0D;
    --text-main: #E0E0E0;
    --text-muted: #9E9E9E;
    --glass-bg: rgba(6, 64, 61, 0.4);
    --glass-bg: rgba(6, 64, 61, 0.4);
    --glass-border: rgba(37, 195, 137, 0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Biểu tượng form, các phần gạch chân */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-title.left-align {
    text-align: left;
}

/* --- BUTTONS & CTA --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF8A65, #E64A19);
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
@keyframes jelly {
  0% { transform: scale(1, 1); }
  25% { transform: scale(0.95, 1.05); }
  50% { transform: scale(1.1, 0.95); }
  75% { transform: scale(0.95, 1.05); }
  100% { transform: scale(1.05, 1.05); }
}
.cta-button:hover {
    animation: jelly 0.5s;
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 112, 67, 0.6);
}
.pulse {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 112, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 112, 67, 0); }
}

/* --- 1. HERO SECTION --- */
.hero-section {
    padding: 100px 0 60px;
    background: radial-gradient(circle at top right, var(--primary-green), var(--dark-bg) 60%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    gap: 40px;
    align-items: center;
}
.hero-text {
    flex: 1;
}
.badge {
    background: var(--light-green);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.headline {
    font-size: 3.5rem;
    color: #fff;
    margin: 15px 0 10px;
    background: linear-gradient(45deg, #fff, var(--light-green));
    background: -webkit-linear-gradient(45deg, #fff, var(--light-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subheadline {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-orange);
    margin: 20px 0;
}
.context-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.outcome-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}
.outcome-box ul {
    list-style: none;
    margin-top: 15px;
}
.outcome-box li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.check-icon {
    color: var(--light-green);
    margin-right: 10px;
    font-weight: bold;
}
.hero-image {
    flex: 1;
    position: relative;
}
.main-portrait {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    object-fit: cover;
}
.instructor-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}
.instructor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-orange);
}
.instructor-info strong {
    display: block;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}
.instructor-info span {
    font-size: 0.8rem;
    color: var(--light-green);
}

/* --- 2. PROBLEM SECTION --- */
.problem-section {
    padding: 80px 0;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.problem-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s;
}
.problem-card:hover {
    transform: translateY(-5px);
}
.problem-card .number {
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 20px;
}
.highlight {
    border-color: var(--accent-orange);
    background: rgba(255, 112, 67, 0.1);
}
.insight-box {
    text-align: center;
    background: var(--primary-green);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

/* --- 3. SOLUTION SECTION --- */
.solution-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark-bg), #06201e);
}
.solution-split {
    display: flex;
    gap: 50px;
    align-items: center;
}
.glass-image {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
}
.solution-image, .solution-text {
    flex: 1;
}
.sol-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--light-green);
}
.sol-icon {
    font-size: 1.5rem;
}
.accent-box {
    margin: 40px auto 0 auto;
    width: fit-content;
    background: linear-gradient(135deg, #FF8A65, #E64A19);
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.4);
    animation: pulse-animation 2s infinite;
}
.accent-box p {
    margin: 0;
}
.accent-box strong {
    font-weight: 900;
}

/* --- 4. HOW IT WORKS --- */
.how-it-works {
    padding: 80px 0;
}
.roadmap-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0 auto 40px auto;
    max-width: 900px; /* Constrain width so staggered layout is visible */
}
.day-card {
    position: relative;
    width: 85%;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
}
.day-card:nth-child(odd) {
    align-self: flex-start;
    border-radius: 0 100px 100px 0;
    border-left: none;
    flex-direction: row-reverse; /* Image on right, Text on left */
    background: linear-gradient(135deg, var(--dark-bg) 30%, var(--primary-green) 100%);
}
.day-card:nth-child(even) {
    align-self: flex-end;
    border-radius: 100px 0 0 100px;
    border-right: none;
    flex-direction: row; /* Image on left, Text on right */
    background: linear-gradient(225deg, var(--dark-bg) 30%, var(--primary-green) 100%);
}
.day-card.day-final {
    width: 100%;
    align-self: center;
    border-radius: 100px;
    border: 1px solid var(--accent-orange);
    background: linear-gradient(135deg, var(--dark-bg) 30%, var(--accent-orange) 100%);
    justify-content: center;
    flex-direction: row !important;
}

.day-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--light-green); 
    outline-offset: 4px;
    transition: transform 0.5s;
    flex-shrink: 0;
}
.day-card:nth-child(odd) img {
    margin-left: 30px;
}
.day-card:nth-child(even) img {
    margin-right: 30px;
}
.day-card.day-final img {
    outline-color: var(--accent-orange);
    margin: 0 30px 0 0 !important;
}
.day-card:hover img {
    transform: scale(1.1);
}

.day-overlay {
    background: transparent;
    padding: 0;
    flex: 1;
}
.day-card:nth-child(even) .day-overlay {
    text-align: right;
}
.day-card:nth-child(odd) .day-overlay {
    text-align: left;
}
.day-card.day-final .day-overlay {
    flex: none;
    text-align: left !important;
    max-width: 60%;
}
.day-num {
    color: var(--light-green);
    -webkit-text-stroke: none;
    text-shadow: none;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}
.day-card.day-final .day-num {
    color: var(--accent-orange);
    -webkit-text-stroke: none;
    text-shadow: none;
}
.day-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.day-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
}

/* --- 5. AUDIENCE SECTION --- */
.audience-section {
    padding: 80px 0;
    position: relative;
    background: #031715;
}
.audience-split {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}
.audience-box {
    flex: 1;
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 20px;
}
.for-you {
    border-top: 5px solid var(--light-green);
}
.not-for-you {
    border-top: 5px solid #d32f2f;
}
.audience-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.audience-box ul {
    list-style: none;
}
.audience-box li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sketch-container {
    text-align: center;
    margin-top: -50px;
    position: relative;
    z-index: 1;
    opacity: 0.5;
}
.instructor-sketch {
    max-width: 250px;
}

/* --- 7. RESULT & CTA --- */
.result-section {
    padding: 100px 0;
    background: radial-gradient(circle, var(--primary-green), var(--dark-bg));
}
.text-center {
    text-align: center;
}
.result-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.tag {
    background: var(--glass-bg);
    border: 1px solid var(--light-green);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
}
.ultimate-result {
    font-size: 2rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 50px;
}
.ultimate-result span {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    display: block;
    color: #fff;
    margin-top: 10px;
}
.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-green);
}
.cta-button.massive {
    font-size: 1.4rem;
    padding: 22px 50px;
}

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    background: #000;
    font-size: 0.9rem;
    color: #666;
}
footer p {
    margin-bottom: 10px;
}


/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .hero-content, .solution-split, .audience-split {
        flex-direction: column;
    }
    .headline { font-size: 2.5rem; }
    .subheadline { font-size: 1.2rem; }
    .hero-section { padding-top: 60px; }
    .instructor-box { left: 10px; bottom: 10px; }
    .ultimate-result span { font-size: 2.5rem; }
    .day-card {
        width: 100%;
        flex-direction: column !important;
        border-radius: 20px !important;
        text-align: center;
    }
    .day-card:nth-child(odd), .day-card:nth-child(even) {
        align-self: center;
    }
    .day-card img, .day-card.day-final img {
        margin: 0 0 15px 0 !important;
    }
    .day-card:nth-child(even) {
        margin-top: 0; /* Reset zigzag margin */
    }
    .day-overlay {
        text-align: center !important;
    }
}

/* --- FORM & QR SETTINGS --- */
.register-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.form-group {
    margin-bottom: 20px;
}
.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}
.form-group input:focus {
    outline: none;
    border-color: var(--light-green);
}
.hidden-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.hidden-fields.show {
    max-height: 200px; /* enough space for extra fields */
}
.expand-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}
.expand-btn:hover {
    color: var(--light-green);
}
.qr-box {
    margin-top: 30px;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    display: inline-block;
}
.qr-box.hidden {
    display: none;
}
.qr-box h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.qr-box img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}
.qr-box p {
    color: #555;
    margin-top: 15px;
    font-weight: 500;
}
.logo-blend {
    mix-blend-mode: screen; /* Removes black bg if there's any, or keeps white. Adjust if needed */
    filter: invert(1); /* Assuming original logo is black on white/transparent line art, invert makes it white */
    max-width: 180px;
}

/* SOCIAL & CONTACT */
.contact-social-section { padding: 80px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px;}
.contact-social-section h2 { margin-bottom: 40px; font-size: 2.2rem; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 12px 30px; border-radius: 30px; color: #fff; text-decoration: none; font-weight: 800; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.15); }
.social-btn:hover { background: var(--light-green); color: #000; border-color: var(--light-green); transform: translateY(-3px); }
.s-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #fff; color: #000; border-radius: 50%; font-weight: 900; font-size: 0.8rem; transition: background 0.3s; }
.social-btn:hover .s-icon { background: #000; color: var(--light-green); }
.contact-info p { font-size: 1.1rem; margin-bottom: 10px; color: #ccc; }

/* MINI FOOTER */
.mini-footer {
  text-align: left;
  padding: 40px 20px;
  background: #020e0d;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-right {
  text-align: right;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--light-green);
}
.footer-copy {
  color: #666;
}
@media (max-width: 768px) {
  .footer-right { text-align: left; }
}

/* MODAL POPUP (POLICY) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: radial-gradient(circle at top right, var(--primary-green), var(--dark-bg));
  border: 1px solid var(--accent-orange);
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 50px rgba(255, 112, 67, 0.3);
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: var(--accent-orange);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* Premium Dark Gold UI Polish */
.qr-box, .success-box {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 215, 0, 0.05);
    padding: 40px !important;
    border-radius: 24px !important;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.qr-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.qr-box h3, .success-box h3 {
    color: #FFD700 !important;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 800;
}

.qr-img-wrapper {
    background: white;
    padding: 15px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-img-wrapper:hover {
    transform: scale(1.08) rotate(1deg);
}

.qr-img-wrapper img {
    max-width: 220px;
    display: block;
}

#confirm-btn {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%) !important;
    color: #000 !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.4);
    transition: all 0.4s ease;
}

#confirm-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.6);
    background: linear-gradient(135deg, #FFF 0%, #FFD700 100%) !important;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.price-tag {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: 900;
    margin-bottom: 15px;
    display: block;
}

.wait-message {
    font-style: italic;
    color: #FFD700;
    font-size: 0.95rem;
    margin-top: 25px;
    opacity: 0.8;
}

/* REWARD SECTION */
.reward-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, #3d0000 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.reward-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid #FFD700;
    border-radius: 30px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}

.reward-info { flex: 1; text-align: left; }
.reward-img { 
    flex: 1; 
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px; /* Tăng không gian cho hộp quà 200px */
}

/* 3D GIFT BOX PREMIUM 5.0 (EPIC SCALE & GLOW) */
.gift-box-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGift 15s infinite ease-in-out;
}

/* Thân hộp */
.gift-body {
    position: absolute;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
}

.gift-side {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a00 0%, #e00 100%);
    border: 3px solid rgba(255, 215, 0, 0.9); /* Viền dày và sáng hơn cho kích thước lớn */
    border-radius: 30px; /* Bo tròn mạnh hơn đồng bộ với size 200px */
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.gift-side.front  { transform: translateZ(100px); }
.gift-side.back   { transform: rotateY(180deg) translateZ(100px); }
.gift-side.right  { transform: rotateY(90deg) translateZ(100px); }
.gift-side.left   { transform: rotateY(-90deg) translateZ(100px); }
.gift-side.bottom { transform: rotateX(-90deg) translateZ(100px); background: #500; border-radius: 30px;}

/* Nắp hộp */
.gift-lid {
    position: absolute;
    width: 220px;
    height: 50px;
    top: -45px;
    left: -10px;
    transform-style: preserve-3d;
}

.lid-side {
    position: absolute;
    background: linear-gradient(135deg, #c00 0%, #f00 100%);
    border: 3px solid rgba(255, 215, 0, 1);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.lid-side.front  { width: 220px; height: 50px; transform: translateZ(110px); }
.lid-side.back   { width: 220px; height: 50px; transform: rotateY(180deg) translateZ(110px); }
.lid-side.right  { width: 220px; height: 50px; transform: rotateY(90deg) translateZ(110px); }
.lid-side.left   { width: 220px; height: 50px; transform: rotateY(-90deg) translateZ(110px); }
.lid-side.top    { 
    width: 220px; height: 220px; 
    transform: rotateX(90deg) translateZ(110px); 
    background: #f00;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.4);
    border-radius: 30px;
}

/* Ruy-băng Gold Phát Sáng (Tỉ lệ 2x) */
.ribbon-v, .ribbon-h {
    position: absolute;
    background: linear-gradient(to bottom, #FFD700, #FFFACD, #FFD700);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
    z-index: 10;
}
.ribbon-v { width: 40px; height: 100%; left: 50%; transform: translateX(-50%); }
.ribbon-h { width: 100%; height: 40px; top: 50%; transform: translateY(-50%); }

/* Xóa nơ cũ (Empty class to avoid errors if kept in HTML) */
.gift-bow { display: none; }

/* Hiệu ứng lấp lánh nồng nàn hơn */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px #FFD700;
    animation: sparkleAnim 4s infinite linear;
}

@keyframes sparkleAnim {
    0%, 100% { transform: scale(0) translate(0, 0); opacity: 0; }
    50% { transform: scale(1.2) translate(var(--tx), var(--ty)); opacity: 1; }
}

@keyframes rotateGift {
    0% { transform: rotateY(0) rotateX(-15deg) translateY(0); }
    50% { transform: rotateY(180deg) rotateX(-10deg) translateY(-10px); }
    100% { transform: rotateY(360deg) rotateX(-15deg) translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.reward-tag {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.reward-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.reward-title span { color: #FFD700; }

.reward-value {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.reward-countdown {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
}

.countdown-label { font-size: 0.7rem; color: #aaa; text-transform: uppercase; }

@media (max-width: 768px) {
    .reward-card { flex-direction: column; text-align: center; padding: 30px; }
    .reward-info { text-align: center; }
    .reward-title { font-size: 1.8rem; }
    .reward-value { font-size: 2.2rem; }
}

/* QR BOX & SUCCESS BOX - PREMIUM GLASSMORPHISM */
.qr-box, .success-box, .qr-box *, .success-box *, .final-cta p, .wait-message {
    font-family: 'Montserrat', sans-serif !important;
}

.qr-box, .success-box {
    background: rgba(18, 18, 18, 0.92) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 30px !important;
    padding: 50px 30px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(255,215,0,0.15) !important;
    margin-top: 40px !important;
}

.qr-box h3, .success-box h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
    font-size: 1.6rem !important;
    letter-spacing: -0.5px;
    margin-bottom: 25px !important;
}

.price-tag {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: 30px !important;
    text-shadow: 0 0 15px rgba(255,215,0,0.4);
}

.qr-box p, .success-box p, .wait-message {
    font-family: 'Montserrat', sans-serif !important;
    color: #ccc !important;
    font-size: 1rem !important;
    line-height: 1.6;
}

#confirm-btn {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%) !important;
    color: #000 !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    margin-top: 25px !important;
    box-shadow: 0 10px 25px rgba(255,215,0,0.3) !important;
}

.hidden { display: none !important; }
