/* ======================================================
   EQ SUBSCRIPTION PRODUCT PAGE
   ====================================================== */

.eq-sub-product {
    background: #050508;
    min-height: 100vh;
    overflow-x: hidden;
}

.eq-sub-product *,
.eq-sub-product *::before,
.eq-sub-product *::after {
    box-sizing: border-box;
}

/* ─── Layout shells ─── */
.eq-sub-inner {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .eq-sub-inner {
        padding-inline: 1.5rem;
    }
}

/* ─── Hero ─── */
.eq-sub-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a0a12 0%, #111118 40%, #0a0a12 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-block: 2.5rem 3rem;
}

@media (min-width: 768px) {
    .eq-sub-hero {
        padding-block: 3rem 3.5rem;
    }
}

.eq-sub-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(220, 38, 38, 0.12), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.08), transparent 45%);
    pointer-events: none;
}

.eq-sub-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.eq-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(185, 28, 28, 0.45);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #fecaca;
    line-height: 1.4;
}

.eq-sub-badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.eq-sub-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 5vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
}

.eq-sub-hero__desc {
    margin: 0;
    color: #9ca3af;
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    line-height: 1.75;
}

.eq-sub-hero__gift {
    margin: 1.25rem 0 0;
    color: rgba(250, 204, 21, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ─── Configurator panel ─── */
.eq-sub-config {
    padding-block: 0 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .eq-sub-config {
        margin-top: 2rem;
        padding-bottom: 2.5rem;
    }
}

.eq-sub-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(0, 0, 0, 0.95));
    padding: 1.25rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
    .eq-sub-panel {
        padding: 2rem;
    }
}

.eq-sub-block {
    margin-bottom: 2rem;
}

.eq-sub-block:last-of-type {
    margin-bottom: 0;
}

.eq-sub-block__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.eq-sub-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

/* ─── Option grids ─── */
.eq-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .eq-sub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.eq-sub-pill,
.eq-sub-session {
    appearance: none;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 0.9rem 0.65rem;
    text-align: center;
    color: #9ca3af;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    line-height: 1.45;
}

.eq-sub-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 4.75rem;
}

.eq-sub-pill__label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .eq-sub-pill__label {
        font-size: 1rem;
    }
}

.eq-sub-pill__discount {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #2dd4bf;
}

.eq-sub-session {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 5.25rem;
}

.eq-sub-session__num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .eq-sub-session__num {
        font-size: 1.75rem;
    }
}

.eq-sub-session__label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.2;
}

.eq-sub-pill:hover,
.eq-sub-session:hover {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(220, 38, 38, 0.06);
    color: #fff;
}

.eq-sub-pill.is-active,
.eq-sub-session.is-active {
    border-color: #dc2626;
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.16), rgba(127, 29, 29, 0.22));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.eq-sub-pill.is-active .eq-sub-session__num,
.eq-sub-session.is-active .eq-sub-session__num {
    color: #fff;
}

/* ─── Summary box ─── */
.eq-sub-summary {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
    .eq-sub-summary {
        padding: 1.5rem 1.75rem;
    }
}

.eq-sub-summary__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
    .eq-sub-summary__top {
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 2rem;
    }
}

.eq-sub-summary__label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.eq-sub-summary__package {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    word-break: break-word;
}

.eq-sub-summary__price-wrap {
    text-align: start;
}

@media (min-width: 640px) {
    .eq-sub-summary__price-wrap {
        text-align: end;
        min-width: 11rem;
    }
}

.eq-sub-summary__price {
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
    word-break: break-word;
}

#eq-sub-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    #eq-sub-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1rem;
    }
}

#eq-sub-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.55;
}

#eq-sub-perks li i {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

#eq-sub-perks li.eq-sub-perk-muted {
    color: #6b7280;
}

/* ─── CTA ─── */
.eq-sub-cart-form {
    margin-top: 0.5rem;
}

.eq-sub-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    font-family: inherit;
}

@media (min-width: 640px) {
    .eq-sub-cta {
        width: auto;
        min-width: 16rem;
    }
}

.eq-sub-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 179, 8, 0.35);
}

.eq-sub-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ─── Comparison section ─── */
.eq-sub-compare {
    padding-block: 2rem 4rem;
}

@media (min-width: 768px) {
    .eq-sub-compare {
        padding-block: 2.5rem 5rem;
    }
}

.eq-sub-compare__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.eq-sub-compare__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 4vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.eq-sub-compare__sub {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ─── Compact matrix table ─── */
.eq-sub-matrix-wrap {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.eq-sub-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .eq-sub-matrix {
        font-size: 0.875rem;
    }
}

.eq-sub-matrix thead tr {
    background: linear-gradient(135deg, #0f766e, #115e59);
}

.eq-sub-matrix th {
    padding: 0.65rem 0.35rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .eq-sub-matrix th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

.eq-sub-matrix th.eq-sub-matrix__pkg,
.eq-sub-matrix td.eq-sub-matrix__pkg {
    width: 26%;
    text-align: right;
    padding-inline: 0.75rem;
}

@media (min-width: 640px) {
    .eq-sub-matrix th.eq-sub-matrix__pkg,
    .eq-sub-matrix td.eq-sub-matrix__pkg {
        width: 22%;
        padding-inline: 1rem;
    }
}

.eq-sub-matrix td {
    padding: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    text-align: center;
}

.eq-sub-matrix tbody tr:last-child td {
    border-bottom: none;
}

.eq-sub-matrix tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.eq-sub-matrix__dur {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.eq-sub-matrix__discount {
    display: block;
    font-size: 0.65rem;
    color: #2dd4bf;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.eq-sub-matrix__extras {
    display: block;
    font-size: 0.62rem;
    color: #6b7280;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .eq-sub-matrix__extras {
        font-size: 0.68rem;
    }
}

.eq-sub-matrix-cell {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.25rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.eq-sub-matrix-cell:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.25);
}

.eq-sub-matrix-cell.is-highlighted {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.3);
}

.eq-sub-matrix-cell__price {
    display: block;
    font-weight: 700;
    color: #f3f4f6;
    font-size: 0.68rem;
    line-height: 1.3;
    word-break: break-word;
}

@media (min-width: 480px) {
    .eq-sub-matrix-cell__price {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .eq-sub-matrix-cell {
        padding: 0.6rem 0.35rem;
    }
    .eq-sub-matrix-cell__price {
        font-size: 0.82rem;
    }
}

.eq-sub-matrix-cell--empty {
    color: #4b5563;
}

.eq-sub-matrix-row.is-highlighted-row td.eq-sub-matrix__pkg .eq-sub-matrix__dur {
    color: #fca5a5;
}

.eq-sub-compare__note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Hide WC leaks */
.eq-sub-product .woocommerce-breadcrumb,
.eq-sub-product .product_meta,
.eq-sub-product .woocommerce-tabs {
    display: none !important;
}
