.promo-code-block {
    width: 100%;
    padding: 15px 20px;
}

.promo-code-block > .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.promo-code-block__wrapper {
    background: linear-gradient(135deg, #1F2842 0%, #152234 100%);
    border-radius: 16px;
    padding: 20px 28px;
    border: 1px solid #293B55;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.promo-code-block__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #278AEC 0%, #689BD5 50%, #278AEC 100%);
}

/* Вимикаємо underline для заголовка в цьому блоці */
.promo-code-block__wrapper h2::after,
.promo-code-block__title::after {
    display: none !important;
    content: none !important;
}

.promo-code-block__title {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.3;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    font-family: 'Montserrat', -apple-system, sans-serif;
    text-align: center;
    position: relative;
}

.promo-code-block__description {
    font-size: clamp(12px, 1.6vw, 14px);
    line-height: 1.5;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 0 0 16px 0;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.promo-code-block__copy-field {
    position: relative;
    max-width: 450px;
    margin: 0 auto 10px auto;
}

.promo-code-block__code {
    background: linear-gradient(135deg, #0F1419 0%, #1A2332 100%);
    border: 2px solid #278AEC;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    padding-right: 110px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.promo-code-block__code:hover {
    border-color: #689BD5;
    box-shadow: 0 0 20px rgba(39, 138, 236, 0.4);
    transform: translateY(-2px);
}

.promo-code-block__code:active {
    transform: translateY(0) scale(0.99);
}

.promo-code-block__code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(39, 138, 236, 0.15),
            transparent
    );
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.promo-code-block__code-text {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #278AEC;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(39, 138, 236, 0.5);
    flex: 1;
    text-align: center;
}

.promo-code-block__btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    padding: 21px 20px;
    background: linear-gradient(135deg, #278AEC 0%, #3486E3 100%);
    color: #FFFFFF;
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(39, 138, 236, 0.4);
    white-space: nowrap;
}

.promo-code-block__btn:hover {
    background: linear-gradient(135deg, #3486E3 0%, #689BD5 100%);
    box-shadow: 0 4px 15px rgba(39, 138, 236, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.promo-code-block__btn:active {
    transform: translateY(-50%) scale(0.95);
}

.promo-code-block__btn.copied {
    background: linear-gradient(135deg, #00d084 0%, #7bdcb5 100%);
    box-shadow: 0 3px 10px rgba(0, 208, 132, 0.5);
}

.promo-code-block__code.copied {
    border-color: #00d084;
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.4);
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.03) translateY(-2px);
    }
}

.promo-code-block__footnote {
    font-size: clamp(11px, 1.5vw, 12px);
    line-height: 1.4;
    color: #FFFFFF;
    opacity: 0.6;
    margin: 0;
    font-style: italic;
    text-align: center;
}

/* Mobile */
@media screen and (max-width: 576px) {
    .promo-code-block {
        padding: 12px 15px;
    }

    .promo-code-block__wrapper {
        padding: 16px 20px;
        border-radius: 14px;
    }

    .promo-code-block__code {
        padding: 12px 14px;
        padding-right: 100px;
        min-height: 48px;
        border-radius: 10px;
    }

    .promo-code-block__code-text {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .promo-code-block__btn {
        padding: 18px 16px;
        font-size: 12px;
        right: 0px;
        border-radius: 8px;
    }
}

@media screen and (max-width: 380px) {
    .promo-code-block__code {
        padding-right: 90px;
    }

    .promo-code-block__btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .promo-code-block__code-text {
        font-size: 15px;
        letter-spacing: 1.5px;
    }
}