/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Tết Sáng Rực Rỡ */
    --red-primary: #FF3B30;
    --red-light: #FF6B60;
    --red-pastel: #FFA7A0;
    --orange-primary: #FF9500;
    --orange-light: #FFB347;
    --yellow-primary: #FFCC00;
    --yellow-light: #FFE066;
    --gold-primary: #FFD700;
    --gold-light: #FFEE99;
    --pink-primary: #FF2D55;
    --pink-light: #FF6B9D;
    
    /* Background Colors - Sáng hơn */
    --bg-primary: #FFF9F0;
    --bg-secondary: #FFF5E6;
    --bg-surface: #FFFAF0;
    --bg-card: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 50%, #FFF0E1 100%);
    
    /* Text Colors */
    --text-dark: #5A3921;
    --text-primary: #8B4513;
    --text-secondary: #A0522D;
    --text-light: #D2691E;
    --text-gold: #B8860B;
    
    /* Gradients - Rực Rỡ */
    --gradient-primary: linear-gradient(135deg, #FF3B30 0%, #FF9500 50%, #FFCC00 100%);
    --gradient-red: linear-gradient(135deg, #FF3B30 0%, #FF6B60 100%);
    --gradient-orange: linear-gradient(135deg, #FF9500 0%, #FFB347 100%);
    --gradient-yellow: linear-gradient(135deg, #FFCC00 0%, #FFE066 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFEE99 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FFFAF0 100%);
    
    /* Shadows - Nhẹ nhàng */
    --shadow-sm: 0 2px 12px rgba(255, 59, 48, 0.1);
    --shadow-md: 0 4px 20px rgba(255, 149, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 204, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(255, 59, 48, 0.25);
    --shadow-soft: 0 4px 20px rgba(160, 82, 45, 0.08);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-2xl: 44px;
    --radius-full: 999px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
body {
    font-family: 'Inter', 'Be Vietnam Pro', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Canvas must be on top */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Background Elements */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FFA7A0' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 96, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 71, 0.08) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 59, 48, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 149, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 204, 0, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.red-envelopes::before,
.red-envelopes::after {
    content: '🧧';
    position: fixed;
    font-size: 32px;
    z-index: -1;
    opacity: 0.3;
    animation: float-envelope 20s infinite linear;
}

.red-envelopes::before {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.red-envelopes::after {
    top: 70%;
    right: 5%;
    animation-delay: 10s;
}

@keyframes float-envelope {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 50;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255, 179, 71, 0.2);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.firework-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--yellow-light);
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

.firework-dot:nth-child(1) {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.firework-dot:nth-child(2) {
    top: 15px;
    right: 15px;
    animation-delay: 0.5s;
}

.firework-dot:nth-child(3) {
    bottom: 15px;
    left: 15px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.logo-text h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(255, 59, 48, 0.15);
    letter-spacing: -0.5px;
}

.logo-text .tagline {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.year-display {
    display: flex;
    align-items: center;
}

.current-year {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 35px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 179, 71, 0.3);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.current-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    z-index: -1;
}

.year-label {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 600;
}

.year-number {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 46px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 59, 48, 0.2);
    min-width: 90px;
    text-align: center;
}

/* Fireworks Toggle */
.fireworks-toggle button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--gradient-red);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.fireworks-toggle button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.fireworks-toggle button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.fireworks-toggle button:hover::before {
    left: 100%;
}

.fireworks-toggle button.active {
    background: var(--gradient-yellow);
    color: var(--text-dark);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: var(--shadow-lg);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
        transform: scale(1.05);
    }
}

.firework-icon {
    font-size: 24px;
}

.toggle-text {
    font-weight: 600;
}

/* Pulse animation for button feedback */
.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Zodiac Card */
.zodiac-card {
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    padding: 35px;
    border: 2px solid rgba(255, 179, 71, 0.3);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.zodiac-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 204, 0, 0.5);
}

.zodiac-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.zodiac-icon {
    font-size: 100px;
    filter: drop-shadow(0 8px 20px rgba(255, 179, 71, 0.3));
    animation: float-gentle 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 3px solid rgba(255, 179, 71, 0.3);
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(-8px) rotate(-5deg); }
}

.zodiac-title h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 44px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(255, 59, 48, 0.15);
}

.zodiac-title p {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 600;
}

.zodiac-description {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--orange-primary);
    border-right: 4px solid var(--yellow-primary);
}

.zodiac-description p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    text-align: center;
    font-weight: 500;
}

.zodiac-traits {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.trait-badge {
    padding: 10px 24px;
    background: var(--gradient-red);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.trait-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.trait-badge:nth-child(2) {
    background: var(--gradient-orange);
}

.trait-badge:nth-child(3) {
    background: var(--gradient-yellow);
    color: var(--text-dark);
}

/* Status Card */
.status-card {
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    padding: 35px;
    border: 2px solid rgba(255, 107, 96, 0.3);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 179, 71, 0.1), transparent);
    z-index: -1;
}

.status-header {
    margin-bottom: 25px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 30px;
    background: var(--gradient-red);
    border: 2px solid rgba(255, 204, 0, 0.5);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-md);
    animation: status-pulse 3s infinite alternate;
}

@keyframes status-pulse {
    0% { 
        box-shadow: 0 0 15px var(--red-primary),
                    0 0 30px var(--orange-primary);
    }
    100% { 
        box-shadow: 0 0 30px var(--orange-primary),
                    0 0 60px var(--yellow-primary);
    }
}

.indicator-dot {
    width: 14px;
    height: 14px;
    background: var(--yellow-light);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-message {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

.tet-dates {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 204, 0, 0.2);
    box-shadow: var(--shadow-soft);
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(160, 82, 45, 0.1);
}

.date-item:last-child {
    border-bottom: none;
}

.date-label {
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.date-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 5px rgba(255, 59, 48, 0.1);
}

/* Quick Info */
.quick-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 179, 71, 0.2);
    box-shadow: var(--shadow-soft);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 179, 71, 0.1);
    transform: translateX(5px);
}

.info-icon {
    font-size: 20px;
    color: var(--orange-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 179, 71, 0.1);
    border-radius: 50%;
}

.info-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Header */
.section-header {
    margin-bottom: 35px;
    position: relative;
}

.section-header h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(255, 59, 48, 0.1);
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-decoration {
    display: flex;
    align-items: center;
    gap: 12px;
}

.decoration-line {
    height: 3px;
    background: var(--gradient-primary);
    flex-grow: 1;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.decoration-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: slide 2s infinite linear;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.decoration-dot {
    width: 14px;
    height: 14px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    animation: bounce-dot 1s infinite alternate;
}

.decoration-dot:nth-child(3) {
    background: var(--orange-primary);
    animation-delay: 0.2s;
}

@keyframes bounce-dot {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* =========================== */
/* COUNTDOWN SECTION - FIXED  */
/* =========================== */

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .countdown-grid {
        grid-template-columns: 1fr;
    }
}

.countdown-unit {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 25px 15px;
    text-align: center;
    border: 3px solid rgba(255, 179, 71, 0.25);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.countdown-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.countdown-unit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: var(--gradient-primary);
    opacity: 0.03;
    z-index: -1;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.countdown-unit:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: var(--shadow-xl);
}

.countdown-unit:hover::after {
    opacity: 0.08;
}

/* Wrapper cho số - FIXED để số hiển thị đẹp */
.unit-number-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    min-height: 110px;
    position: relative;
}

/* Số hiển thị - FIXED: KHÔNG PAD ZEROS CHO NGÀY, CÓ PAD ZEROS CHO GIỜ/PHÚT/GIÂY */
.unit-number {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 15px rgba(255, 59, 48, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

/* Kích thước font khác nhau - CÂN ĐỐI */
.countdown-unit[data-unit="days"] .unit-number {
    font-size: 72px; /* Lớn hơn cho số ngày */
    min-width: 120px;
}

.countdown-unit[data-unit="hours"] .unit-number,
.countdown-unit[data-unit="mins"] .unit-number,
.countdown-unit[data-unit="secs"] .unit-number {
    font-size: 72px; /* Cùng cỡ cho các ô khác */
    min-width: 90px;
    letter-spacing: -1px;
}

/* Điều chỉnh font-size khi số ngày quá lớn */
.countdown-unit[data-unit="days"] .unit-number.large-number {
    font-size: 64px;
    letter-spacing: -1px;
}

.countdown-unit[data-unit="days"] .unit-number.very-large-number {
    font-size: 56px;
    letter-spacing: -2px;
}

/* Hiệu ứng cho số khi thay đổi */
.unit-number.changing {
    animation: numberChange 0.3s ease;
}

@keyframes numberChange {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.unit-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
    display: block;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 179, 71, 0.3);
    box-shadow: var(--shadow-sm);
    min-width: 120px;
    text-align: center;
}

.unit-progress {
    height: 8px;
    width: 90%;
    background: rgba(160, 82, 45, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: slide 1.5s infinite linear;
}

/* Responsive adjustments for countdown */
@media (max-width: 1200px) {
    .countdown-unit[data-unit="days"] .unit-number {
        font-size: 68px;
    }
    
    .countdown-unit[data-unit="hours"] .unit-number,
    .countdown-unit[data-unit="mins"] .unit-number,
    .countdown-unit[data-unit="secs"] .unit-number {
        font-size: 68px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.large-number {
        font-size: 60px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.very-large-number {
        font-size: 52px;
    }
    
    .unit-number-wrapper {
        min-height: 100px;
    }
}

@media (max-width: 992px) {
    .countdown-unit {
        min-height: 200px;
        padding: 20px 12px;
    }
    
    .unit-number-wrapper {
        min-height: 90px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number {
        font-size: 64px;
    }
    
    .countdown-unit[data-unit="hours"] .unit-number,
    .countdown-unit[data-unit="mins"] .unit-number,
    .countdown-unit[data-unit="secs"] .unit-number {
        font-size: 64px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.large-number {
        font-size: 56px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.very-large-number {
        font-size: 48px;
    }
    
    .unit-label {
        font-size: 16px;
        padding: 8px 16px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .countdown-grid {
        gap: 15px;
    }
    
    .countdown-unit {
        min-height: 180px;
        padding: 18px 10px;
    }
    
    .unit-number-wrapper {
        min-height: 80px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number {
        font-size: 60px;
    }
    
    .countdown-unit[data-unit="hours"] .unit-number,
    .countdown-unit[data-unit="mins"] .unit-number,
    .countdown-unit[data-unit="secs"] .unit-number {
        font-size: 60px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.large-number {
        font-size: 52px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.very-large-number {
        font-size: 44px;
    }
    
    .unit-label {
        font-size: 14px;
        padding: 6px 14px;
        min-width: 90px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 576px) {
    .countdown-unit {
        min-height: 160px;
        padding: 15px 8px;
    }
    
    .unit-number-wrapper {
        min-height: 70px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number {
        font-size: 56px;
    }
    
    .countdown-unit[data-unit="hours"] .unit-number,
    .countdown-unit[data-unit="mins"] .unit-number,
    .countdown-unit[data-unit="secs"] .unit-number {
        font-size: 56px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.large-number {
        font-size: 48px;
    }
    
    .countdown-unit[data-unit="days"] .unit-number.very-large-number {
        font-size: 40px;
    }
    
    .unit-label {
        font-size: 13px;
        padding: 5px 12px;
        min-width: 80px;
        letter-spacing: 1px;
    }
}

/* Tet Active States */
body.tet-active .countdown-unit {
    animation: tet-bounce 3s infinite;
    border-color: rgba(255, 204, 0, 0.6);
}

body.tet-active .countdown-unit::before {
    animation: gradient-flow 2s infinite alternate;
}

@keyframes gradient-flow {
    0% { background: var(--gradient-primary); }
    100% { background: linear-gradient(135deg, #FFCC00 0%, #FF3B30 50%, #FF9500 100%); }
}

body.tet-active .progress-fill {
    animation: progress-pulse 2s infinite alternate;
}

@keyframes progress-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 59, 48, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.7); }
}

/* Year Selection */
.year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.year-button {
    padding: 16px 30px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 179, 71, 0.3);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-width: 140px;
    text-align: center;
}

.year-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.year-button:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: var(--red-primary);
    color: var(--text-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.year-button:hover::before {
    left: 100%;
}

.year-button.active {
    background: var(--gradient-red);
    color: white;
    border-color: var(--yellow-light);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

/* Tet Details */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 2px solid rgba(255, 179, 71, 0.3);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 204, 0, 0.08));
    pointer-events: none;
    z-index: -1;
}

.detail-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.6);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--yellow-primary);
    box-shadow: var(--shadow-md);
}

.card-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-content p {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Sponsor Section */
.sponsor-section {
    margin-top: 20px;
}

.sponsor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 22px 35px;
    background: linear-gradient(135deg, 
        rgba(255, 59, 48, 0.12), 
        rgba(255, 149, 0, 0.12)
    );
    border: 2px solid rgba(255, 204, 0, 0.4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sponsor-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.sponsor-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 59, 48, 0.2), 
        rgba(255, 149, 0, 0.2)
    );
    border-color: var(--yellow-light);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.sponsor-link:hover::before {
    left: 100%;
}

.sponsor-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 5px rgba(255, 204, 0, 0.3));
}

.sponsor-text {
    flex-grow: 1;
    text-align: center;
    font-size: 18px;
}

.sponsor-arrow {
    font-size: 28px;
    color: var(--yellow-primary);
    transition: var(--transition);
    transform: translateX(0);
}

.sponsor-link:hover .sponsor-arrow {
    transform: translateX(10px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 35px 0;
    border-top: 2px solid rgba(255, 179, 71, 0.2);
    margin-top: 50px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer p {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 179, 71, 0.2);
}

.social-link:hover {
    color: var(--red-primary);
    background: rgba(255, 59, 48, 0.1);
    transform: translateY(-2px);
}

.divider {
    color: var(--text-light);
    opacity: 0.5;
}

/* Tet Active States */
body.tet-active .status-indicator {
    animation: tet-active-glow 2s infinite alternate;
    background: var(--gradient-yellow);
    color: var(--text-dark);
}

body.tet-active .indicator-dot {
    background: var(--red-primary);
    animation: blink-fast 0.5s infinite;
}

@keyframes blink-fast {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes tet-active-glow {
    0% { 
        box-shadow: 0 0 25px var(--yellow-light),
                    0 0 50px var(--orange-primary);
    }
    100% { 
        box-shadow: 0 0 50px var(--orange-primary),
                    0 0 100px var(--red-primary);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .current-year {
        padding: 15px 30px;
        min-width: 160px;
    }
    
    .year-number {
        font-size: 40px;
    }
    
    .zodiac-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .zodiac-icon {
        font-size: 90px;
        width: 110px;
        height: 110px;
    }
    
    .zodiac-title h2 {
        font-size: 38px;
    }
    
    .year-button {
        padding: 14px 25px;
        font-size: 15px;
        min-width: 130px;
    }
    
    .section-header h3 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .logo-text h1 {
        font-size: 36px;
    }
    
    .zodiac-icon {
        font-size: 80px;
        width: 100px;
        height: 100px;
    }
    
    .zodiac-title h2 {
        font-size: 32px;
    }
    
    .detail-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .current-year {
        min-width: 140px;
        padding: 12px 25px;
    }
    
    .year-number {
        font-size: 36px;
    }
    
    .fireworks-toggle button {
        min-width: 140px;
        padding: 14px 24px;
    }
    
    .year-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .zodiac-traits {
        gap: 10px;
    }
    
    .trait-badge {
        padding: 8px 20px;
        font-size: 14px;
    }
}