/*!
 * HostOpy — homepage/plan-page pricing UI (billing period select, price pills, cards).
 * Linked from templates/hostopy/header.tpl after custom.css so production keeps layout
 * when custom.css was truncated or not fully deployed.
 */
/* HostOpy billing period select — card works on dark or light sections */
.pricing__area .hostopy-duration-wrap--card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 24px 24px;
    background: linear-gradient(165deg, #ffffff 0%, #f4fbf5 50%, #ecf8ee 100%);
    border-radius: 20px;
    border: 1px solid rgba(42, 134, 46, 0.22);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 16px 36px -12px rgba(42, 134, 46, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pricing__area .hostopy-duration-wrap .hostopy-duration-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    color: #0f172a !important;
    text-shadow: none;
}

.pricing__area .hostopy-duration-wrap .hostopy-duration-select {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 14px 44px 14px 18px;
    border: 2px solid var(--tg-theme-primary);
    border-radius: 14px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232A862E' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E")
        no-repeat right 16px center;
    background-size: 16px 16px;
    appearance: none;
    -webkit-appearance: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42, 134, 46, 0.1);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing__area .hostopy-duration-wrap .hostopy-duration-select:hover {
    border-color: #1f6b22;
    box-shadow: 0 4px 16px rgba(42, 134, 46, 0.18);
}

.pricing__area .hostopy-duration-wrap .hostopy-duration-select:focus {
    border-color: #1a5c1d;
    box-shadow: 0 0 0 4px rgba(42, 134, 46, 0.22);
}

/* Fallback when duration wrap is outside .pricing__area */
.hostopy-duration-wrap:not(.hostopy-duration-wrap--card) .hostopy-duration-label {
    color: #0f172a;
    font-weight: 700;
}

/* HostOpy price panel (hero + 3 pills) */
/* Override main.css `.pricing__price > p { color: gray }` for HostOpy panel */
.pricing__area .hostopy-price-panel > p {
    color: #000000 !important;
}

.pricing__area .hostopy-price-panel {
    text-align: center;
    padding: 20px 14px 16px;
    color: #000000;
    overflow: visible;
    background: linear-gradient(165deg, #f0faf1 0%, #ffffff 45%, #fafefb 100%);
    border-radius: 18px;
    border: 1px solid rgba(42, 134, 46, 0.14);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 28px -8px rgba(42, 134, 46, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.pricing__area .hostopy-price-card:hover .hostopy-price-panel {
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 18px 36px -10px rgba(42, 134, 46, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pricing__area .hostopy-price-hero {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #000000;
    letter-spacing: -0.03em;
}

.pricing__area .hostopy-price-hero,
.pricing__area .hostopy-price-hero .hostopy-dynamic-price {
    color: #000000 !important;
}

.pricing__area .hostopy-price-hero .hostopy-dynamic-price {
    font-weight: 800;
}

.pricing__area .hostopy-price-hero-suffix {
    font-weight: 700;
    font-size: 0.55em;
    color: #000000;
    margin-left: 2px;
}

.pricing__area .hostopy-price-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 14px;
    max-width: 100%;
}

.pricing__area .hostopy-price-pills--hide {
    display: none !important;
}

.pricing__area .hostopy-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 90px;
    min-width: 88px;
    max-width: 140px;
    padding: 12px 10px 14px;
    border-radius: 14px;
    border-width: 1.5px;
    border-style: solid;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pricing__area .hostopy-price-pills .hostopy-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.pricing__area .hostopy-pill__badge {
    position: static;
    display: inline-block;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: capitalize;
    color: #ffffff !important;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.pricing__area .hostopy-pill__badge,
.pricing__area .hostopy-pill__badge * {
    color: #ffffff !important;
}

.pricing__area .hostopy-pill__inner {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #000000;
}

.pricing__area .hostopy-pill__unit {
    font-size: 0.72em;
    font-weight: 600;
    color: #000000;
    opacity: 0.85;
    margin-left: 1px;
}

.pricing__area .hostopy-pill--regular {
    background: #e8f4fc;
    border-color: #1e5f99;
}
.pricing__area .hostopy-pill--regular .hostopy-pill__badge {
    background: #0c4a7c;
    color: #ffffff !important;
}

.pricing__area .hostopy-pill--regular .hostopy-strike-monthly {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    text-decoration-color: rgba(0, 0, 0, 0.45);
}

.pricing__area .hostopy-pill--save {
    background: #e6f7ee;
    border-color: #1d8a54;
}
.pricing__area .hostopy-pill--save .hostopy-pill__badge {
    background: #0d7a47;
    color: #ffffff !important;
}

.pricing__area .hostopy-pill--save .hostopy-save-total {
    color: #000000;
    font-weight: 800;
}

.pricing__area .hostopy-pill--off {
    background: #faf3e8;
    border-color: #8b6914;
}
.pricing__area .hostopy-pill--off .hostopy-pill__badge {
    background: #5c420f;
    color: #ffffff !important;
}

.pricing__area .hostopy-pill--off .hostopy-off-pct {
    color: #000000;
    font-weight: 800;
    font-size: 1.05rem;
}

.pricing__area .hostopy-billing-line {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #000000;
}

.pricing__area .hostopy-billing-label {
    font-weight: 600;
    color: #000000;
    margin-right: 4px;
}

.pricing__area .hostopy-billing-line .hostopy-cycle-name {
    color: #000000;
    font-weight: 800;
}

/* Site-wide: true black for HostOpy pricing (beats main.css grey + modernization !important) */
.pricing__price.hostopy-price-panel {
    color: #000000 !important;
}
.pricing__price.hostopy-price-panel > p,
.pricing__price.hostopy-price-panel .hostopy-price-hero,
.pricing__price.hostopy-price-panel .hostopy-dynamic-price,
.pricing__price.hostopy-price-panel .hostopy-price-hero-suffix,
.pricing__price.hostopy-price-panel .hostopy-pill__inner,
.pricing__price.hostopy-price-panel .hostopy-strike-monthly,
.pricing__price.hostopy-price-panel .hostopy-pill__unit,
.pricing__price.hostopy-price-panel .hostopy-save-total,
.pricing__price.hostopy-price-panel .hostopy-off-pct,
.pricing__price.hostopy-price-panel .hostopy-billing-line,
.pricing__price.hostopy-price-panel .hostopy-billing-label,
.pricing__price.hostopy-price-panel .hostopy-cycle-name {
    color: #000000 !important;
}
.pricing__price.hostopy-price-panel .hostopy-pill__badge {
    color: #ffffff !important;
}

/* Product pricing cards: featured ribbon, theme-green CTA, divider, expanded list */
/* Let Trending badge extend above the card without being clipped */
.pricing__area,
.pricing__area > .container,
.pricing__area .pricing__item-wrap,
.pricing__area .pricing__item-wrap-two,
.pricing__area .pricing__item-wrap .row,
.pricing__area .pricing__item-wrap-two .row,
.pricing__area .pricing__item-wrap [class*="col-"],
.pricing__area .pricing__item-wrap-two [class*="col-"] {
    overflow: visible;
}

.pricing__area .hostopy-price-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1.5px solid rgba(42, 134, 46, 0.35);
    border-radius: 20px;
    overflow: visible !important;
}

.pricing__area .pricing__box-four.hostopy-price-card {
    background: #ffffff;
    border: 1.5px solid rgba(42, 134, 46, 0.28);
}

.pricing__area .hostopy-price-card--featured {
    padding-top: 36px;
    z-index: 2;
    border: 2px solid var(--tg-theme-primary);
    box-shadow:
        0 4px 24px rgba(42, 134, 46, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Featured plan ribbon: “MOST POPULAR” badge (half above top edge, centered) */
.pricing__area .hostopy-price-card__ribbon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
}

.pricing__area .hostopy-price-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--tg-theme-primary) 0%, #1e6b22 100%);
    box-shadow: 0 4px 14px rgba(42, 134, 46, 0.38);
}

.pricing__area .hostopy-price-card__badge i {
    font-size: 0.7rem;
    color: #ffffff !important;
}

/* Match centered badge: plan name + tagline (main.css uses flex on .title → left align) */
.pricing__area .hostopy-price-card .pricing__plan.hostopy-price-card__head {
    text-align: center;
}

.pricing__area .hostopy-price-card .hostopy-price-card__head .title {
    color: #0f172a;
    font-weight: 800;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.pricing__area .hostopy-price-card .hostopy-price-card__tagline {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
    text-align: center;
    max-width: 100%;
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle {
    background: linear-gradient(180deg, var(--tg-theme-primary) 0%, #1e6b22 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 22px;
    box-shadow: 0 4px 16px rgba(42, 134, 46, 0.35);
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle:hover {
    filter: brightness(1.06);
    color: #ffffff !important;
}

.pricing__area .pricing__box-four .hostopy-btn-order.hostopy-cart-cycle {
    background: linear-gradient(180deg, var(--tg-theme-primary) 0%, #1e6b22 100%) !important;
    color: #ffffff !important;
}

.pricing__area .hostopy-price-card__divider {
    height: 1px;
    margin: 8px 0 20px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(42, 134, 46, 0.28),
        transparent
    );
}

.pricing__area .hostopy-price-card.active .pricing__list,
.pricing__area .hostopy-price-card.active.pricing__box-four .pricing__list {
    height: auto !important;
    max-height: none;
    overflow: visible;
}

.pricing__area .hostopy-price-card.active .pricing__select .more-item {
    display: none;
}

.pricing__area .hostopy-price-card.active .pricing__select .less-item {
    display: block;
}

.pricing__area .hostopy-price-card.active .pricing__select::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Pricing section & cards — polish (depth, motion, hierarchy) */
.pricing__area .section__title .title {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pricing__area .section__title > p {
    color: #64748b;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.pricing__area .hostopy-price-card {
    transition:
        transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1),
        box-shadow 0.35s ease;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.03),
        0 12px 40px -12px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pricing__area .hostopy-price-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 16px rgba(15, 23, 42, 0.06),
        0 28px 56px -18px rgba(42, 134, 46, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(42, 134, 46, 0.45) !important;
}

.pricing__area .hostopy-price-card--featured {
    background: linear-gradient(165deg, #ffffff 0%, #fbfffc 45%, #f3faf4 100%);
}

.pricing__area .hostopy-price-card--featured:hover {
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08),
        0 36px 64px -20px rgba(42, 134, 46, 0.28),
        0 0 0 1px rgba(42, 134, 46, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pricing__area .hostopy-price-panel {
    border-radius: 20px;
    padding: 22px 16px 18px;
}

.pricing__area .hostopy-price-card .hostopy-price-card__head .title {
    font-size: clamp(1.25rem, 2.8vw, 1.45rem);
    letter-spacing: -0.03em;
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.2s ease;
    letter-spacing: 0.02em;
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 8px 24px rgba(42, 134, 46, 0.42),
        0 2px 8px rgba(42, 134, 46, 0.15) !important;
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle:active {
    transform: translateY(0);
}

.pricing__area .hostopy-price-card .pricing__list.hostopy-price-card__features {
    margin-top: 4px;
    padding: 16px 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(42, 134, 46, 0.04) 0%, rgba(42, 134, 46, 0.02) 100%);
    border: 1px solid rgba(42, 134, 46, 0.08);
}

.pricing__area .hostopy-price-card .pricing__list .list-wrap li:last-child {
    margin-bottom: 0;
}

.pricing__area .hostopy-price-card .pricing__select {
    margin-top: 14px;
    height: auto;
    min-height: 40px;
    padding: 10px 44px 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(180deg, #f8faf9 0%, #eef6ef 100%);
    border: 1px solid rgba(42, 134, 46, 0.18);
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pricing__area .hostopy-price-card .pricing__select:hover {
    border-color: rgba(42, 134, 46, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f0f9f1 100%);
    box-shadow: 0 4px 14px rgba(42, 134, 46, 0.12);
}

.pricing__area .hostopy-price-card__divider {
    margin: 12px 0 16px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(42, 134, 46, 0.15) 20%,
        rgba(42, 134, 46, 0.35) 50%,
        rgba(42, 134, 46, 0.15) 80%,
        transparent
    );
    border-radius: 2px;
    opacity: 0.9;
}

/* Pricing area — extra visual polish */
.pricing__area {
    position: relative;
    isolation: isolate;
    background: radial-gradient(
            ellipse 90% 55% at 50% -5%,
            rgba(42, 134, 46, 0.09) 0%,
            transparent 52%
        ),
        linear-gradient(180deg, #f7fbf8 0%, #fbfcfc 38%, #ffffff 100%);
}

.pricing__area::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(45%, 320px);
    background: radial-gradient(
        ellipse 70% 80% at 50% 100%,
        rgba(42, 134, 46, 0.04),
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

.pricing__area > .container {
    position: relative;
    z-index: 1;
}

.pricing__area .hostopy-price-card {
    border-radius: 22px;
}

.pricing__area .hostopy-price-hero {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing__area .hostopy-price-pills {
    gap: 12px;
    align-items: stretch;
}

.pricing__area .hostopy-pill {
    border-radius: 16px;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pricing__area .hostopy-pill__inner {
    font-variant-numeric: tabular-nums;
}

.pricing__area .hostopy-billing-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    padding: 10px 16px;
    margin-top: 4px;
    border-radius: 12px;
    background: rgba(42, 134, 46, 0.06);
    border: 1px solid rgba(42, 134, 46, 0.1);
    line-height: 1.35;
}

.pricing__area .hostopy-billing-line .hostopy-cycle-name {
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(42, 134, 46, 0.12);
    color: #0f4d12 !important;
}

.pricing__area .hostopy-price-card .pricing__btn {
    margin-top: 8px;
    margin-bottom: 28px;
}

.pricing__area .hostopy-btn-order.hostopy-cart-cycle:focus-visible {
    outline: none;
    box-shadow:
        0 4px 16px rgba(42, 134, 46, 0.35),
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 0 5px rgba(42, 134, 46, 0.45) !important;
}

.pricing__area .hostopy-duration-wrap .hostopy-duration-select:focus-visible {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 0 0 4px rgba(42, 134, 46, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .pricing__area .hostopy-price-card,
    .pricing__area .hostopy-btn-order.hostopy-cart-cycle {
        transition: none;
    }

    .pricing__area .hostopy-price-card:hover {
        transform: none;
    }

    .pricing__area .hostopy-btn-order.hostopy-cart-cycle:hover {
        transform: none;
    }
}

/* #plans: layout hardening (homepage + all plan pages; beats stale CDN / conflicting resets) */
#plans .hostopy-price-pills {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin: 0 auto 14px !important;
    max-width: 100%;
}

#plans .hostopy-price-pills .hostopy-pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#plans .hostopy-price-pills--hide {
    display: none !important;
}

#plans.pricing__area .hostopy-price-panel,
#plans .hostopy-price-panel {
    display: block;
    text-align: center;
    padding: 20px 14px 16px;
    overflow: visible;
    background: linear-gradient(165deg, #f0faf1 0%, #ffffff 45%, #fafefb 100%);
    border-radius: 18px;
    border: 1px solid rgba(42, 134, 46, 0.14);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 28px -8px rgba(42, 134, 46, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#plans .hostopy-price-hero {
    display: block;
}

#plans .hostopy-billing-line {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
}
