/* ==============================================
   Beat The Clock — Modal + Sticky Banner
   ============================================== */

/* --- Overlay backdrop --- */
#btc-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999998;
}

/* --- Modal box --- */
#btc-banner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    z-index: 999999;
    background: #FFF5F0;
    border-radius: 16px;
    padding: 40px 44px;
    width: 92%;
    max-width: 560px;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

/* --- Close button --- */
#btc-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
    padding: 0;
}

#btc-close:hover { background: #2d3f6b; }

/* --- Inner layout --- */
#btc-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 24px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

#btc-text { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 200px; }

#btc-headline {
    font-size: 16px;
    color: #1a2a4a;
    font-family: 'Georgia', serif;
    margin: 0 0 4px 0;
    font-weight: normal;
    line-height: 1.4;
}

#btc-discount {
    font-size: 52px;
    font-weight: 900;
    color: #1a2a4a;
    font-family: 'Georgia', serif;
    margin: 0 0 12px 0;
    line-height: 1;
}

#btc-sub {
    font-size: 14px;
    color: #555;
    font-family: Arial, sans-serif;
    margin: 0 0 20px 0;
    line-height: 1.5;
}



/* --- Timer boxes inside modal --- */
#btc-timer-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.btc-time-box {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    min-width: 72px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btc-time-num {
    font-size: 42px;
    font-weight: 900;
    color: #1a2a4a;
    font-family: 'Georgia', serif;
    line-height: 1;
    display: block;
}

.btc-time-label {
    font-size: 13px;
    color: #888;
    font-family: Arial, sans-serif;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ==============================================
   STICKY TOP BANNER (shows on all pages after
   popup has been seen)
   ============================================== */
#btc-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: auto;
    max-width: 500px;
    z-index: 999997;
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 50%, #b71c1c 100%);
    padding: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

#btc-topbar-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 12px;
    padding: 5px 20px;
    color: #fff;
    text-align: center;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    cursor: pointer;
    white-space: nowrap;
}

#btc-topbar-label {
    color: #ffe0e0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#btc-topbar-clock {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
    padding: 2px 10px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

#btc-topbar-hint {
    font-size: 11px;
    color: #ffcccc;
    font-style: italic;
}

body.btc-bar-active {
    padding-top: 32px !important;
}

@media (max-width: 980px) {
    body.btc-bar-active {
        padding-top: 32px !important;
    }
}

/* --- 5-Minute Warning Popup --- */
#btc-warning {
    display: none;
    position: fixed;
    top: 64px;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    z-index: 1000000;
    background: #FF6F00;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    max-width: 380px;
    width: 90%;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

/* --- Expired Notice --- */
#btc-expired-notice {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #424242;
    padding: 12px 20px;
    text-align: center;
    color: #ccc;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

/* --- Urgent pulse --- */
.btc-urgent .btc-time-num {
    color: #e8571a;
    -webkit-animation: btc-pulse 1s infinite;
            animation: btc-pulse 1s infinite;
}

#btc-topbar.btc-urgent #btc-topbar-clock {
    color: #FFD600;
    -webkit-animation: btc-pulse 1s infinite;
            animation: btc-pulse 1s infinite;
}

@-webkit-keyframes btc-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}
@keyframes btc-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Mobile --- */
@media (max-width: 540px) {
    #btc-banner { padding: 28px 20px; }
    #btc-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        text-align: center;
    }
    #btc-discount { font-size: 40px; }
    .btc-time-num { font-size: 32px; }
    .btc-time-box { min-width: 58px; padding: 10px 12px; }
    #btc-topbar-clock { font-size: 18px; }
}