/* ═══════════════════════════════════════════════════
   XBrandAds — Hostinger Affiliate Pricing Cards
   ═══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.xba-host-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'Inter', sans-serif;
}

/* ── Billing Period Toggle ── */
.xba-host-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    background: #F0F0F0;
    border-radius: 999px;
    padding: 5px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.xba-host-period {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #555;
}

.xba-host-period:hover {
    color: #DF1117;
}

.xba-host-period.active {
    background: #DF1117;
    color: #fff;
    box-shadow: 0 4px 14px rgba(223, 17, 23, 0.35);
}

/* ── Cards Grid ── */
.xba-host-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Single Card ── */
.xba-host-card {
    background: #fff;
    border-radius: 24px;
    overflow: visible;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 28px 32px;
}

.xba-host-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Red cap on top */
.xba-host-cap {
    width: 100%;
    height: 6px;
    background: #DF1117;
    border-radius: 24px 24px 0 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Featured Card ── */
.xba-host-featured {
    transform: scale(1.04);
    z-index: 2;
    border: 3px solid #DF1117;
    box-shadow: 0 12px 40px rgba(223, 17, 23, 0.15);
}

/* Hide redundant red cap on featured card (border already provides the accent) */
.xba-host-featured .xba-host-cap {
    display: none;
}

.xba-host-featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 20px 52px rgba(223, 17, 23, 0.22);
}

.xba-host-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #DF1117;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 22px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(223, 17, 23, 0.3);
}

/* ── Icon Circle ── */
.xba-host-icon {
    width: 72px;
    height: 72px;
    background: var(--xba-host-icon-bg, #9CA3AF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.xba-host-icon i {
    font-size: 28px;
    color: #fff;
}

/* ── Plan Name ── */
.xba-host-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #DF1117;
    margin: 0 0 12px;
}

/* ── Original Price (struck) ── */
.xba-host-orig {
    margin-bottom: 4px;
}

.xba-host-orig-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

/* ── Sale Price ── */
.xba-host-sale {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.xba-host-currency {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #DF1117;
}

.xba-host-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 46px;
    color: #DF1117;
    line-height: 1;
}

.xba-host-mo {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    margin-left: 4px;
}

/* ── Promo Text ── */
.xba-host-promo {
    color: #DF1117;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.xba-host-promo i {
    margin-right: 6px;
}

/* ── Description ── */
.xba-host-desc {
    color: #505359;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0 8px;
}

/* ── Features List ── */
.xba-host-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    width: 100%;
    text-align: left;
    border-top: 1px solid #F0F0F0;
}

.xba-host-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #2D2D2D;
    border-bottom: 1px solid #F5F5F5;
}

.xba-host-features li:last-child {
    border-bottom: none;
}

/* Hidden features (collapsed by default) */
.xba-host-feat-hidden {
    display: none;
}

/* Feature icon */
.xba-host-feat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xba-host-feat-icon i.fa-check {
    color: #DF1117;
    font-size: 14px;
}

/* Strikethrough / unavailable feature */
.xba-host-feat-no .xba-host-feat-icon i {
    color: #ccc;
}

.xba-host-feat-no .xba-host-feat-text {
    color: #bbb;
    text-decoration: line-through;
}

/* Special / muted feature */
.xba-host-feat-special .xba-host-feat-text {
    color: #888;
}

/* ── Choose Plan Button ── */
.xba-host-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: #DF1117;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.xba-host-btn:hover {
    background: #A50D12;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(223, 17, 23, 0.35);
    color: #fff;
}

.xba-host-btn i {
    transition: transform 0.3s ease;
}

.xba-host-btn:hover i {
    transform: translateX(4px);
}

/* ── Show/Hide Features Toggle ── */
.xba-host-toggle-features {
    text-align: center;
    margin-top: 36px;
}

.xba-host-show-features {
    background: #fff;
    border: 2px solid #DF1117;
    color: #DF1117;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xba-host-show-features:hover {
    background: #DF1117;
    color: #fff;
    box-shadow: 0 6px 18px rgba(223, 17, 23, 0.3);
}

.xba-host-show-features i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .xba-host-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .xba-host-featured {
        transform: none;
    }

    .xba-host-featured:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 600px) {
    .xba-host-toggle {
        max-width: 100%;
    }

    .xba-host-period {
        padding: 10px 16px;
        font-size: 13px;
    }

    .xba-host-amount {
        font-size: 38px;
    }

    .xba-host-card {
        padding: 0 20px 28px;
    }
}
