/* =========================
   TIMER WRAPPER
========================= */

.countdown-section {
    width: 100%;
    padding: 25px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* background: #000; */

    overflow: hidden;
}


/* =========================
   COUNTDOWN
========================= */

.neon-countdown {
    width: 100%;
    max-width: 900px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}


/* =========================
   TIME ITEM - NEW
========================= */

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}


/* =========================
   TIME BOX
========================= */

.time-box {
    width: 120px;
    height: 110px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #111111,
            #080808
        );

    border: 1px solid rgba(255,255,255,.15);

    box-shadow:
        inset 0 0 20px rgba(255,255,255,.025),
        0 8px 25px rgba(0,0,0,.35);
}


/* =========================
   NEON BORDER
========================= */

.time-box::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 18px;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            #ff0050,
            transparent 35%,
            transparent 65%,
            #00f2ea
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    opacity: .65;

    pointer-events: none;
}


/* =========================
   INNER GLOW
========================= */

.time-box::after {

    content: "";

    position: absolute;

    width: 70%;
    height: 70%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,0,80,.08),
            transparent 70%
        );

    filter: blur(20px);

    pointer-events: none;
}


/* =========================
   NUMBER
========================= */

.time-number {

    position: relative;

    z-index: 3;

    font-family:
        Arial Black,
        Arial,
        sans-serif;

    font-size: 30px;

    line-height: 1;

    font-weight: 900;

    color: #ffffff;

    letter-spacing: -5px;

    text-shadow:
        -4px 0 #00f2ea,
        4px 0 #ff0050,
        0 0 18px rgba(255,255,255,.1);
}


/* =========================
   NUMBER ANIMATION
========================= */

.time-number.flip {

    animation:
        glitchNumber
        .65s
        cubic-bezier(.2,.8,.2,1);
}


@keyframes glitchNumber {

    0% {
        transform: translateY(-25px) scale(1.03);
        opacity: 0;
        filter:
            blur(3px)
            drop-shadow(-3px 0 #00f2ea)
            drop-shadow(3px 0 #ff0050);
    }

    30% {
        transform: translateY(5px) scale(1.01);
        opacity: 1;
        filter:
            blur(0.5px)
            drop-shadow(-2px 0 #00f2ea)
            drop-shadow(2px 0 #ff0050);
    }

    50% {
        transform: translateY(-2px) scale(1);
        filter: blur(0);
    }

    65% {
        transform: translateX(2px);
        text-shadow:
            -4px 0 #00f2ea,
            4px 0 #ff0050;
    }

    80% {
        transform: translateX(-1px);
        text-shadow:
            -2px 0 #00f2ea,
            2px 0 #ff0050;
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
        text-shadow:
            -4px 0 #00f2ea,
            4px 0 #ff0050,
            0 0 18px rgba(255,255,255,.1);
    }

}


/* =========================
   TIMER LABELS - NEW
========================= */

.time-label {
    margin-top: 10px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.time-label1 {
    margin-top: 10px;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}


/* =========================
   COLON
========================= */

.time-colon {

    width: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;
}


.time-colon span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 7px #00f2ea,
        0 0 14px #ff0050;

    animation:
        colonPulse
        1s
        infinite
        alternate;
}


@keyframes colonPulse {

    from {

        opacity: .45;

        transform:
            scale(.8);
    }


    to {

        opacity: 1;

        transform:
            scale(1.15);
    }

}


.time-colon1 {

    width: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;
}


.time-colon1 span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #000;

    box-shadow:
        0 0 7px #00f2ea,
        0 0 14px #ff0050;

    animation:
        colonPulse
        1s
        infinite
        alternate;
}


@keyframes colonPulse {

    from {

        opacity: .45;

        transform:
            scale(.8);
    }


    to {

        opacity: 1;

        transform:
            scale(1.15);
    }

}


/* =========================
   MOBILE
========================= */

@media(min-width:768px){
      .time-number {

        font-size: 55px;
    }
}

@media (max-width: 767px) {
/* 
    .countdown-section {

        padding:
            15px 8px;
    } */


    .neon-countdown {

        gap: 6px;
    }


    .time-box {

        width: 75px;
        height: 72px;

        border-radius: 12px;
    }


    .time-box::before {

        border-radius: 12px;
    }


    .time-number {

        font-size: 40px;

        letter-spacing: -3px;
    }


    .time-colon {

        width: 9px;

        gap: 8px;
    }


    .time-colon span {

        width: 4px;
        height: 4px;
    }

    /* NEW LABEL RESPONSIVE CSS */

    .time-label {
        margin-top: 7px;
        font-size: 10px;
    }
    .time-label1 {
        margin-top: 7px;
        font-size: 10px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .neon-countdown {

        gap: 3px;
    }


    .time-box {

        width: 64px;
        height: 62px;
    }


    .time-number {

        font-size: 34px;
    }


    .time-colon {

        width: 6px;

        gap: 6px;
    }


    .time-colon span {

        width: 4px;
        height: 4px;
    }

    /* NEW LABEL RESPONSIVE CSS */

    .time-label {
        margin-top: 6px;
        font-size: 8px;
    }
    .time-label1 {
        margin-top: 6px;
        font-size: 8px;
    }

}


.small-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.small-time-box {
    width: 72px;
    height: 62px;
    background: #111;
    border: 1px solid #ff1680;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.small-time-box span {
    color: #00f2ea;
    font-size: 34px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    line-height: 1;
    text-shadow: 2px 0 #ff0050;
}

.small-colon {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .small-countdown {
        gap: 5px;
    }

    .small-time-box {
        width: 48px;
        height: 44px;
        border-radius: 12px;
    }

    .small-time-box span {
        font-size: 23px;
    }

    .small-colon {
        font-size: 19px;
    }
}

/* Small timer - offer bar only */
.countdown-section.small-timer {
    margin: 0 !important;
    padding: 0 !important;
}

.small-timer .neon-countdown {
    gap: 6px !important;
    transform: scale(0.45);
    transform-origin: center center;
    margin: 0 -100px;
}

/* Keep the original timer design and animation */
.small-timer .time-box,
.small-timer .time-number,
.small-timer .time-colon {
    /* Original styles remain unchanged */
}

@media (max-width: 767px) {
    .small-timer .neon-countdown {
        transform: scale(0.32);
        margin: 0 -120px;
    }
}

/* Small timer - remove extra vertical space */
.countdown-section.small-timer {
    padding: 0 !important;
    margin: 0 !important;
    height: 64px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.countdown-section.small-timer .neon-countdown {
    width: max-content !important;
    max-width: none !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    transform: scale(0.45);
    transform-origin: center center;
}

/* Keep small timer vertically centered */
.countdown-section.small-timer .time-box {
    flex-shrink: 0;
}

/* NEW: Hide labels in small offer timer */
.small-timer .time-label {
    display: none;
}

/* Center countdown dots vertically */
.neon-countdown > .time-colon, .time-colon1 {
    margin-top: -20px;
}

