.pricing-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 16px
}

.pricing-header {
    text-align: center;
    margin-bottom: 18px
}

.pricing-title {
    font: 700 32px/1.2 "Tajawal", system-ui, Roboto, sans-serif;
    color: #0f172a;
    letter-spacing: .2px
}

.plan-image img {
    max-width: 100px;
    margin: 0 auto 12px;
    display: block;
}

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #222;
}

.old-price {
    font-size: 1.1rem;
    color: #888;
}

.old-price .fake-amount {
    text-decoration: line-through;
}

.discount {
    color: #e63946;
    border: 1px solid #e63946;
    border-radius: 4px;
    padding: 2px 4px;
    font-weight: bold;
    width: 70px;
    font-size: 20px !important;
}

/* Tabs */
.year-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 22px 0
}

.year-tabs label {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02)
}

.year-tabs label:hover {
    background: #f8fafc
}

/* Active tab chip (radios are inside .year-tabs) */
.year-tabs input[type=radio]:checked+label {
    background: var(--primary-border);
    color: #fff;
    border-color: var(--primary-border);
}

/* Panels default hidden */
.panels .panel {
    display: none
}

/* Show panel based on which tab is checked (requires :has()) */
.year-tabs:has(#y1:checked)~.panels [data-panel="y1"],
.year-tabs:has(#y2:checked)~.panels [data-panel="y2"],
.year-tabs:has(#y3:checked)~.panels [data-panel="y3"],
.year-tabs:has(#y4:checked)~.panels [data-panel="y4"],
.year-tabs:has(#y6:checked)~.panels [data-panel="y6"],/* Added y6 */
.year-tabs:has(#y5:checked)~.panels [data-panel="y5"] {
    display: block;
}

/* Billing toggle (inside each panel) */
.billing-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 24px
}

.billing-toggle label {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s
}

.billing-toggle label:hover {
    background: #f8fafc
}

/* Style active billing label using :has() on the panel */
.panel:has(#b_y1_m:checked) .billing-toggle label[for="b_y1_m"],
.panel:has(#b_y1_q:checked) .billing-toggle label[for="b_y1_q"],
.panel:has(#b_y1_a:checked) .billing-toggle label[for="b_y1_a"],
.panel:has(#b_y2_m:checked) .billing-toggle label[for="b_y2_m"],
.panel:has(#b_y2_q:checked) .billing-toggle label[for="b_y2_q"],
.panel:has(#b_y2_a:checked) .billing-toggle label[for="b_y2_a"],
.panel:has(#b_y3_m:checked) .billing-toggle label[for="b_y3_m"],
.panel:has(#b_y3_q:checked) .billing-toggle label[for="b_y3_q"],
.panel:has(#b_y3_a:checked) .billing-toggle label[for="b_y3_a"],
.panel:has(#b_y4_m:checked) .billing-toggle label[for="b_y4_m"],
.panel:has(#b_y4_q:checked) .billing-toggle label[for="b_y4_q"],
.panel:has(#b_y4_a:checked) .billing-toggle label[for="b_y4_a"],
.panel:has(#b_y6_m:checked) .billing-toggle label[for="b_y6_m"],/* Added y6 */
.panel:has(#b_y6_q:checked) .billing-toggle label[for="b_y6_q"],/* Added y6 */
.panel:has(#b_y6_a:checked) .billing-toggle label[for="b_y6_a"],/* Added y6 */
.panel:has(#b_y5_m:checked) .billing-toggle label[for="b_y5_m"],
.panel:has(#b_y5_q:checked) .billing-toggle label[for="b_y5_q"],
.panel:has(#b_y5_a:checked) .billing-toggle label[for="b_y5_a"] {
    background: #111827;
    color: #fff;
    border-color: #111827
}

/* Billing content visibility (within each panel) */
.bpanel {
    display: none
}

#b_y1_m:checked~.billing-panels [data-billing="monthly"],
#b_y1_q:checked~.billing-panels [data-billing="quarterly"],
#b_y1_a:checked~.billing-panels [data-billing="annual"],
#b_y2_m:checked~.billing-panels [data-billing="monthly"],
#b_y2_q:checked~.billing-panels [data-billing="quarterly"],
#b_y2_a:checked~.billing-panels [data-billing="annual"],
#b_y3_m:checked~.billing-panels [data-billing="monthly"],
#b_y3_q:checked~.billing-panels [data-billing="quarterly"],
#b_y3_a:checked~.billing-panels [data-billing="annual"],
#b_y4_m:checked~.billing-panels [data-billing="monthly"],
#b_y4_q:checked~.billing-panels [data-billing="quarterly"],
#b_y4_a:checked~.billing-panels [data-billing="annual"],
#b_y6_m:checked~.billing-panels [data-billing="monthly"], /* Added y6 */
#b_y6_q:checked~.billing-panels [data-billing="quarterly"],/* Added y6 */
#b_y6_a:checked~.billing-panels [data-billing="annual"],/* Added y6 */
#b_y5_m:checked~.billing-panels [data-billing="monthly"],
#b_y5_q:checked~.billing-panels [data-billing="quarterly"],
#b_y5_a:checked~.billing-panels [data-billing="annual"] {
    display: block
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    gap: 18px;
    justify-content: center;
}

.plan-card {
    position: relative;
    border-radius: 22px;
    padding: 22px 18px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(2, 8, 23, .06), 0 2px 6px rgba(2, 8, 23, .04);
    border: 4px solid var(--primary-border);
    display: flex;
    flex-direction: column;
    max-width: 420px;
}

.plan-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px
}

.plan-name {
    font: 700 28px/1.1 "Tajawal", system-ui, sans-serif;
    color: var(--primary-border);
}

.badge {
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 18px;
}

.badge.primary {
    background: var(--primary-border);
    color: #fff
}

.badge.alt {
    background: #7c3aed;
    color: #fff
}

.badge.yellow {
    background: #fbbf24;
    color: #fff
}

.badge.pink {
    background: #ec4899;
    color: #fff
}

.badge.gray {
    background: #64748b;
    color: #fff
}

.price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 6px 0 12px
}

.price .amount {
    font: 800 36px/1 "Tajawal", system-ui, sans-serif;
    color: #0f172a
}

.price .per {
    color: #475569;
    font-weight: 600;
    font-size: 12px
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: justify;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155
}

.feature .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding:
        5px;
}

.dot.on {
    background: #10b981;
    color: #fff
}

.dot.off {
    background: #e2e8f0;
    color: #94a3b8
}

.select-btn {
    text-align: center;
    margin-top: auto;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    background: var(--primary-border);
    color: #fff;
    box-shadow: 0 6px 12px rgba(14, 165, 233, .25);
    transition: .2s
}

.select-btn:hover {
    transform: translateY(-1px)
}

.plan-card.theme-white {
    background: #fff
}

.plan-card.theme-blue {
    background: #e8f3fb
}

.plan-card.theme-plum {
    background: #eddcf0
}

.plan-card.theme-green {
    background: #e0f9ec
}