.adb-banner {
    position: relative;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    max-width: 100%;
    border-radius: var(--border-radius, 20px);
}

/* طرح‌های مختلف حاشیه - اصلاح شده */
.adb-border-normal {
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.adb-border-dashed {
    border: 3px dashed rgba(255, 255, 255, 0.5);
}

.adb-border-zigzag {
    position: relative;
}

.adb-border-zigzag::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.4) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.4) 70%, transparent 70%);
    background-size: 20px 20px;
    z-index: -1;
    border-radius: inherit;
}

.adb-border-wavy {
    position: relative;
}

.adb-border-wavy::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.5) 4px, transparent 4px),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.5) 4px, transparent 4px);
    background-size: 20px 10px;
    background-position: 0 0, 0 100%;
    z-index: -1;
    border-radius: inherit;
}

.adb-border-torn {
    position: relative;
    clip-path: polygon(0% 10%, 5% 0%, 15% 8%, 25% 2%, 35% 12%, 45% 3%, 55% 9%, 65% 1%, 75% 11%, 85% 4%, 95% 8%, 100% 0%,
            100% 90%, 95% 100%, 85% 92%, 75% 98%, 65% 88%, 55% 97%, 45% 91%, 35% 99%, 25% 89%, 15% 96%, 5% 92%, 0% 100%);
}

.adb-border-neon {
    border: 2px solid #00ffff;
    box-shadow:
        0 0 10px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.2);
    position: relative;
}

.adb-border-neon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #ff00ff;
    border-radius: inherit;
    animation: neon-pulse 2s infinite;
    z-index: -1;
}

@keyframes neon-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 20px #ff00ff;
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 5px #ff00ff;
    }
}

/* بخش تایمر */
.adb-timer-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.adb-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
}

.timer-icon {
    font-size: 24px;
    animation: shake 2s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.timer-label {
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 8px;
}

.time-box .hours,
.time-box .minutes,
.time-box .seconds {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    line-height: 1;
    transition: transform 0.1s ease;
}

/* ثانیه شمار با رنگ متفاوت */
.time-box .seconds {
    color: #ffd93d;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.time-unit {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.timer-display .separator {
    font-size: 24px;
    animation: blink 1s infinite;
    align-self: center;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.3;
    }
}

/* وقتی تایمر تمام شود */
.adb-timer.expired {
    animation: flash 1s infinite;
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}

.adb-timer.expired .timer-display {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.adb-timer.expired .time-box {
    background: rgba(255, 0, 0, 0.3);
}

/* محتوای اصلی */
.adb-content {
    position: relative;
    z-index: 10;
    padding: 25px;
}

.adb-banner .title {
    display: block;
    margin-bottom: 15px;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* قیمت‌ها */
.price-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 5;
}

.adb-banner .old-price {
    display: block;
    text-decoration: line-through;
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.adb-banner .new-price {
    font-size: 24px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .adb-banner {
        width: 95% !important;
        margin: 15px auto;
    }

    .adb-timer-section {
        padding: 10px 5px;
    }

    .adb-timer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .timer-icon {
        font-size: 20px;
        display: none;
    }

    .timer-label {
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .timer-display {
        padding: 5px 10px;
        gap: 5px;
    }

    .time-box {
        padding: 3px 6px;
    }

    .time-box .hours,
    .time-box .minutes,
    .time-box .seconds {
        font-size: 20px;
    }

    .time-unit {
        font-size: 9px;
    }

    .timer-display .separator {
        font-size: 18px;
    }

    .adb-content {
        padding: 20px;
    }

    .adb-banner .title {
        font-size: 18px;
    }

    .adb-banner .new-price {
        font-size: 20px;
    }
}