/* ============================================================
   WordPress Hosting Coupons — Coupon Cards Section
   ============================================================ */

.wp-coupons-section {
    background: var(--white);
}

.wp-coupon-grid {
    position: relative;
}

/* ---- Card ---- */
.wp-coupon-card {
    background: var(--white);
    border: 1px solid var(--border-indigo);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 8px 24px -16px rgba(78, 49, 173, .12);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.wp-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(78, 49, 173, .25);
}

/* ---- Head row: logo + tag ---- */
.wp-coupon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .9rem;
    border: 1px solid var(--border-indigo);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.wp-coupon-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.wp-coupon-tag {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .3rem .7rem;
    border-radius: 6px;
}

/* ---- Verified pill ---- */
.wp-coupon-verified {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .85rem;
    width: max-content;
}

.wp-coupon-verified svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.25;
}

/* ---- Titles ---- */
.wp-coupon-title {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.wp-coupon-tagline {
    color: var(--text-body);
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

/* ---- Deal banner ---- */
.wp-coupon-deal {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--brand-indigo) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: .9rem 1rem;
    text-align: center;
    margin-bottom: .85rem;
}

.wp-coupon-deal-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    opacity: .85;
    margin-bottom: .15rem;
}

.wp-coupon-deal-value {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ---- Coupon code box ---- */
.wp-coupon-code-box {
    background: #2b2f3a;
    color: var(--white);
    border-radius: 10px;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.wp-coupon-code-meta {
    flex-grow: 1;
    min-width: 0;
}

.wp-coupon-code-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .1rem;
}

.wp-coupon-code-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-coupon-copy-btn {
    border: 0;
    background: var(--primary-purple);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 8px;
    padding: .55rem .85rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.wp-coupon-copy-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(78, 49, 173, .55);
}

.wp-coupon-copy-btn.is-copied {
    background: #10b981;
}

.wp-coupon-copy-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ---- Feature list ---- */
.wp-coupon-features {
    margin-bottom: 1.25rem;
    padding: 0;
}

.wp-coupon-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .9rem;
    color: var(--text-body);
    padding: .35rem 0;
}

.wp-coupon-features li svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    stroke-width: 2.5;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- CTA ---- */
.wp-coupon-cta {
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: auto;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wp-coupon-cta:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(78, 49, 173, .45);
}

.wp-coupon-cta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

@media (max-width: 575.98px) {
    .wp-coupon-card {
        padding: 1.25rem 1.1rem 1.5rem;
    }
    .wp-coupon-title {
        font-size: 1.15rem;
    }
    .wp-coupon-code-value {
        font-size: .95rem;
    }
}

/* ============================================================
   Why Trust Section
   ============================================================ */

.wp-trust-section {
    background: var(--white);
}

.wp-trust-intro {
    color: var(--text-body);
    font-size: .98rem;
    line-height: 1.7;
}

.wp-trust-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.wp-trust-feature + .wp-trust-feature {
    border-top: 1px solid var(--border-indigo);
}

.wp-trust-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-indigo);
    color: var(--primary-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -10px rgba(78, 49, 173, .25);
}

.wp-trust-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.wp-trust-feature-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.wp-trust-feature-desc {
    color: var(--text-body);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Trust card (right side) ---- */
.wp-trust-card {
    background: var(--white);
    border: 1px solid var(--border-indigo);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 24px 48px -28px rgba(78, 49, 173, .25);
}

.wp-trust-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wp-trust-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d1fae5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wp-trust-check svg {
    width: 28px;
    height: 28px;
    stroke-width: 3;
}

.wp-trust-percent {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
}

.wp-trust-percent-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--text-body);
    margin-top: .25rem;
}

.wp-trust-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--light-purple-shade);
    overflow: hidden;
    margin-bottom: .65rem;
}

.wp-trust-progress-bar {
    height: 100%;
    width: 98%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    border-radius: 999px;
}

.wp-trust-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--text-body);
}

.wp-trust-divider {
    border: 0;
    border-top: 1px solid var(--border-indigo);
    opacity: 1;
    margin: 1.5rem 0;
}

.wp-trust-users {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wp-trust-avatars {
    display: inline-flex;
    flex-shrink: 0;
}

.wp-trust-avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}

.wp-trust-avatars img:first-child {
    margin-left: 0;
}

.wp-trust-users-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.wp-trust-users-sub {
    color: var(--text-body);
    font-size: .88rem;
}

@media (max-width: 575.98px) {
    .wp-trust-card {
        padding: 1.5rem;
    }
    .wp-trust-percent {
        font-size: 1.6rem;
    }
    .wp-trust-check {
        width: 48px;
        height: 48px;
    }
    .wp-trust-check svg {
        width: 22px;
        height: 22px;
    }
}

/* Extra Savings heading: live date badge + animated savings number */
.wp-coupon-live-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-purple, #efeaff);
    color: var(--primary-purple);
    padding: 4px 14px 4px 10px;
    border-radius: 50px;
    font-size: 0.6em;
    font-weight: 700;
    vertical-align: middle;
}

.wp-coupon-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex: 0 0 auto;
    animation: wpCouponLivePulse 1.8s ease-in-out infinite;
}

@keyframes wpCouponLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.wp-coupon-stat-num {
    color: #16a34a;
    font-weight: 800;
}

/* ============================================================
   Coupon Tickets (ys-cpn) — horizontal deal cards
   ============================================================ */
.ys-cpn-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
}

.ys-cpn {
    display: grid;
    grid-template-columns: 1fr 250px;
    background: var(--white);
    border: 1.5px dashed var(--border-indigo);
    border-radius: 18px;
    box-shadow: 0 8px 24px -16px rgba(78, 49, 173, .18);
    transition: box-shadow .25s ease, transform .25s ease;
}

.ys-cpn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -24px rgba(78, 49, 173, .3);
}

/* ---- left: brand + info ---- */
.ys-cpn-main {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.6rem 1.5rem 2.2rem;
}

.ys-cpn-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--primary-purple);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary-purple);
    background: var(--white);
}

.ys-cpn-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
}

.ys-cpn-brand img {
    max-width: 160px;
    height: auto;
}

.ys-cpn-brand-sub {
    font-size: .85rem;
    color: var(--text-body);
}

.ys-cpn-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 .6rem;
}

.ys-cpn-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .55rem;
}

.ys-cpn-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 500;
    padding: .2rem .65rem;
    border-radius: 6px;
}

.ys-cpn-badge-excl {
    background: var(--brand-purple-light);
    border: 1px solid var(--border-indigo);
    color: var(--primary-purple);
}

.ys-cpn-badge-ok {
    background: var(--save-bg);
    border: 1px solid var(--save-border);
    color: var(--save-text);
}

.ys-cpn-meta {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .45rem;
}

.ys-cpn-vote {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-body);
}

.ys-cpn-vote-btn {
    border: 0;
    background: transparent;
    padding: 0 .15rem;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease;
}

.ys-cpn-vote-btn:hover { transform: scale(1.15); }
.ys-cpn-up { color: var(--emerald-500); }
.ys-cpn-down { color: var(--cp-orange); }
.ys-cpn-vote-btn.is-voted { transform: scale(1.2); }
.ys-cpn-vote-btn.is-voted i::before { font-weight: 700; }

.ys-cpn-vote-msg {
    font-weight: 500;
    color: var(--text-muted);
}

.ys-cpn-more {
    position: absolute;
    left: 1.5rem;
    bottom: 0;
    transform: translateY(50%);
    border: 0;
    background: var(--light-purple);
    color: var(--primary-purple);
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem 1.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    z-index: 2;
}

.ys-cpn-more i { transition: transform .2s ease; }
.ys-cpn-more[aria-expanded="true"] i { transform: rotate(180deg); }

/* ---- right: discount + code ---- */
.ys-cpn-side {
    border-left: 1.5px dashed var(--border-indigo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 1.5rem 1rem;
}

.ys-cpn-off {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.ys-cpn-reveal {
    position: relative;
    width: 100%;
    max-width: 210px;
    height: 46px;
    border: 1.5px solid var(--border-indigo);
    border-radius: 999px;
    background: var(--white);
    padding: 0 1rem;
    cursor: pointer;
    overflow: hidden;
}

.ys-cpn-code {
    display: block;
    text-align: right;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .06em;
    color: var(--slate-400);
}

.ys-cpn-cover {
    position: absolute;
    inset: 0 22% 0 0;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 999px 0 0 999px;
    transition: inset .35s ease, opacity .35s ease;
}

/* folded "peel" corner */
.ys-cpn-cover::after {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    border-style: solid;
    border-width: 0 14px 22px 0;
    border-color: transparent transparent var(--primary-blue) transparent;
    filter: brightness(.8);
}

.ys-cpn-reveal:hover .ys-cpn-cover { inset: 0 28% 0 0; }

.ys-cpn-reveal.is-revealed .ys-cpn-code {
    text-align: center;
    color: var(--primary-purple);
}

.ys-cpn-reveal.is-revealed .ys-cpn-cover {
    inset: 0 100% 0 0;
    opacity: 0;
}

.ys-cpn-reveal.is-copied {
    border-color: var(--emerald-500);
}

/* ---- expandable details ---- */
.ys-cpn-details {
    grid-column: 1 / -1;
    border-top: 1.5px dashed var(--border-indigo);
    padding: 2rem 1.5rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ys-cpn-details[hidden] { display: none; }

.ys-cpn-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 2.5rem;
    margin: 0;
}

.ys-cpn-features li {
    font-size: .9rem;
    color: var(--text-body);
}

.ys-cpn-features li i { color: var(--emerald-500); }

.ys-cpn-cta {
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 10px;
    padding: .65rem 1.2rem;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s ease;
}

.ys-cpn-cta:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ---- mobile ---- */
@media (max-width: 767.98px) {
    .ys-cpn { grid-template-columns: 1fr; }

    .ys-cpn-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.2rem 1rem 1.2rem;
    }

    .ys-cpn-badges, .ys-cpn-vote { justify-content: center; }
    .ys-cpn-title { font-size: 1.05rem; }

    .ys-cpn-more {
        position: static;
        transform: none;
        margin: .4rem auto 0;
    }

    .ys-cpn-side {
        border-left: 0;
        border-top: 1.5px dashed var(--border-indigo);
    }

    .ys-cpn-details { padding: 1.2rem 1rem; }
    .ys-cpn-cta { width: 100%; justify-content: center; }
}

.ys-cpn-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ys-cpn-vote-count {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
}
