body {
    background-color: #ffffff;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #7d5a96;
    color: #fff;
    padding: 30px 0 18px 0;
    text-align: center;
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.08);
}

    header h1 {
        margin: 0;
        font-size: 2.2rem;
        letter-spacing: 1px;
        font-weight: 700;
        color: #fff;
    }

    header p {
        font-size: 1.1rem;
        margin: 10px 0 0 0;
        font-weight: 400;
        color: #fff;
    }

.seo-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 600px;
    margin: 32px auto 26px auto;
    color: #6d6d6d;
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.5;
    background: #ffffff;
    /*border-radius: 12px;*/
    box-shadow: 0 2px 10px rgba(44,62,80,0.16);
    padding: 22px 18px 20px 18px;
    text-align: left;
}

.seo-logo {
    width: 128px;
    height: 128px;
    border-radius: 14px;
    box-shadow: 0 1.5px 8px rgba(255,69,69,0.07);
    flex-shrink: 0;
    background: #fff3ef;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 540px) {
    .seo-description {
        flex-direction: column;
        gap: 9px;
        text-align: center;
        padding: 14px 8px 14px 8px;
    }

    .seo-logo {
        width: 72px;
        height: 72px;
        margin-bottom: 2px;
    }
}

.coupon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 auto 0 auto;
    max-width: 500px;
    width: 100%;
    padding: 0 26px 40px 26px;
    box-sizing: border-box;
    flex: 1;
}

.coupon-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(44,62,80,0.11);
    padding: 38px 28px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: relative;
    transition: transform 0.12s;
    overflow: visible;
    border: 2px solid #111;
    padding-left: 15px;
    padding-right: 15px;
}

    .coupon-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 32px rgba(255, 77, 77, 0.12);
    }

.badge {
    position: absolute;
    top: -14px;
    left: -14px;
    background-color: #fb7800;
    color: #fff;
    padding: 7px 28px 7px 18px;
    font-size: 1.09rem;
    font-weight: bold;
    border-radius: 14px 0 24px 0;
    box-shadow: 0 4px 18px rgba(255,69,69,0.12), 0 1.5px 5px rgba(44,62,80,0.07);
    z-index: 2;
    letter-spacing: 0.8px;
    min-width: 66px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid #fff0f0;
    filter: drop-shadow(0 2px 7px rgba(255,77,77,0.16));
    animation: badgePop 0.9s cubic-bezier(.28,.84,.42,1) 1;
}

@keyframes badgePop {
    0% {
        transform: scale(0.4) rotate(-6deg);
        opacity: 0.1;
    }

    70% {
        transform: scale(1.12) rotate(2deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.coupon-title {
    font-size: 1.14rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #707070;
    text-align: center;
    letter-spacing: .1px;
    margin-top: 6px;
}

.coupon-code-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 15px;
    gap: 12px;
    width: 100%;
}

.coupon-code {
    background: #f6ffed;
    color: #2d7738;
    border: 2px dashed #4caf50;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 1.2px;
    min-width: 0;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: auto;
    transition: border 0.18s;
}

.btn-copy {
    border: none;
    outline: none;
    background: #7d5a96;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0 0;
    width: 45%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(44,62,80,0.07);
    transition: background 0.2s, color 0.2s;
    min-width: 90px;
    gap: 7px;
    position: relative;
    z-index: 1;
}

    .btn-copy .icon-copy,
    .btn-copy .icon-check {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        display: inline-block;
        transition: opacity 0.22s;
    }

    .btn-copy.copied {
        background: #4caf50;
        color: #fff;
    }

        .btn-copy.copied .icon-copy {
            display: none;
        }

        .btn-copy.copied .icon-check {
            display: inline-block;
        }

    .btn-copy .icon-check {
        display: none;
    }

.coupon-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 17px;
    margin-bottom: -7px;
    width: 100%;
}

.counter-minimal {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    color: #757575;
    opacity: 0.8;
    letter-spacing: 0.01em;
    user-select: none;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0 11px;
    height: 36px;
    box-sizing: border-box;
}

.counter-value {
    font-family: 'Montserrat',sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #fb7800;
    margin: 0 1.5px 0 3px;
    transition: color 0.18s;
}

.counter-minimal.animated .counter-value {
    color: #d32f2f;
}

.counter-label {
    font-size: 0.94em;
    color: #757575;
    margin-left: 1px;
}

.share-minimal {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9f9f9;
    border-radius: 8px;
    height: 36px;
    padding: 0 13px 0 13px;
    box-sizing: border-box;
}

.share-label {
    font-size: .99em;
    color: #17b153;
    font-weight: 600;
    letter-spacing: 0.04em;
    user-select: none;
}

.btn-share-wp {
    background: transparent;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    transition: box-shadow 0.12s, background 0.12s;
    box-shadow: none;
}

    .btn-share-wp:active {
        background: #ececec;
    }

    .btn-share-wp img {
        width: 24px;
        height: 24px;
        display: block;
        object-fit: contain;
        border-radius: 3px;
    }

.coupon-desc {
    font-size: 1rem;
    color: #555;
    margin: 16px 0 0 0;
    text-align: center;
    min-height: 44px;
    line-height: 1.4;
}

.btn-shop {
    font-size: 1.12rem;
    font-weight: 700;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 13px 0;
    background-color: #7d5a96;
    color: #fff;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0 0 0;
    box-shadow: 0 1px 8px rgba(255,69,69,0.13);
    transition: background 0.12s;
    letter-spacing: 0.8px;
    text-align: center;
}

    /*.btn-shop:active, .btn-shop:focus {
        background: #c31515;
    }*/

.coupon-note {
    font-size: 0.98rem;
    color: #b71c1c;
    text-align: center;
    margin: 10px 0 0 0;
    font-weight: 600;
    letter-spacing: .01em;
}

footer {
    background: #ffffff;
    text-align: center;
    font-size: 1rem;
    color: #585050;
    padding: 20px 0 16px 0;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.16);
    margin-top: auto;
}

@media (min-width: 700px) {
    .coupon-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px;
        max-width: 1040px;
        padding-left: 0;
        padding-right: 0;
    }

    .coupon-card {
        max-width: 340px;
        min-width: 270px;
    }
}