/* New Year Promo Modal - Festive Design */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 30, 80, 0.85) 0%, rgba(0, 10, 40, 0.95) 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.promo-modal-content {
    background: linear-gradient(135deg, 
        rgba(10, 30, 80, 0.95) 0%, 
        rgba(20, 60, 120, 0.9) 25%, 
        rgba(30, 80, 150, 0.85) 50%, 
        rgba(20, 60, 120, 0.9) 75%, 
        rgba(10, 30, 80, 0.95) 100%);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 560px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 60px rgba(100, 180, 255, 0.3);
    border: 2px solid rgba(100, 180, 255, 0.4);
    overflow: hidden;
}

.promo-modal-content::before {
    content: '❄️ 🎄 ❄️';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: snowflakeFloat 3s ease-in-out infinite;
}

.promo-modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(100, 180, 255, 0.15), transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

.promo-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.promo-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.4);
}

.promo-modal-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #FFD700;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    margin-top: 30px;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #FFD700, #FFF8DC, #FFD700, #FFA500);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
}

.promo-code-display {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #00FF88;
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.15) 0%, 
        rgba(0, 200, 100, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.4);
    letter-spacing: 4px;
    animation: codeGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.promo-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
    animation: codeShine 2.5s ease-in-out infinite;
}

.promo-modal-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.promo-modal-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #c62828 0%, #e53935 50%, #c62828 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 8px 32px rgba(198, 40, 40, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.promo-modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
}

.promo-modal-button:hover {
    background-position: 200% 0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(198, 40, 40, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.promo-modal-button:hover::before {
    left: 100%;
}

.promo-modal-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Modern Animations */
@keyframes modalFadeIn {
    0% { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideIn {
    0% { 
        transform: translateY(-80px) scale(0.85) rotateX(15deg);
        opacity: 0;
    }
    100% { 
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes codeGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        border-color: rgba(0, 255, 136, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.7);
        border-color: rgba(0, 255, 136, 0.6);
    }
}

@keyframes codeShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes snowflakeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .promo-modal-content {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 20px;
        max-width: 95%;
    }
    
    .promo-modal-title {
        font-size: 22px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .promo-code-display {
        font-size: 32px;
        padding: 20px 25px;
        letter-spacing: 3px;
        margin: 25px 0;
    }
    
    .promo-modal-text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .promo-modal-button {
        padding: 16px 35px;
        font-size: 15px;
        letter-spacing: 1px;
    }

    .promo-modal-close {
        top: 15px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .promo-modal-content {
        padding: 35px 25px;
        margin: 15px;
    }
    
    .promo-modal-title {
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    
    .promo-code-display {
        font-size: 28px;
        padding: 18px 20px;
        letter-spacing: 2px;
    }
    
    .promo-modal-text {
        font-size: 15px;
    }
    
    .promo-modal-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* Tablet landscape optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .promo-modal-content {
        max-width: 520px;
        padding: 45px 35px;
    }
}

/* New Year bar height - Desktop */
.new-year-bar {
    height: 50px !important;
}

/* Page and header spacing for New Year bar */
body {
    margin-top: 50px !important;
}

.header {
    margin-top: 50px !important;
    top: 50px !important;
}

@media (max-width: 768px) {
    .new-year-bar {
        height: 100px !important;
    }

    body {
        margin-top: 100px !important;
    }

    .header {
        margin-top: 100px !important;
        top: 100px !important;
    }
}

@media (max-width: 480px) {
    .new-year-bar {
        height: 110px !important;
    }

    body {
        margin-top: 110px !important;
    }

    .header {
        margin-top: 110px !important;
        top: 110px !important;
    }
}

/* Adjust breadcrumbs position */
#breadcrumbs {
    margin-top: 50px !important;
}

@media (max-width: 768px) {
    #breadcrumbs {
        margin-top: 100px !important;
    }
}

@media (max-width: 480px) {
    #breadcrumbs {
        margin-top: 110px !important;
    }
}
