/* Product detail rich-content table polish */
.product-tab-content .tab-pane {
    overflow-x: hidden;
}

.product-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    background: #fff;
}

.product-tab-content table th,
.product-tab-content table td {
    border: 1px solid #dee2e6;
    padding: 0.65rem 0.75rem;
    vertical-align: top;
    text-align: left;
}

.product-tab-content table thead th,
.product-tab-content table tr:first-child th {
    background: #f8f9fa;
    font-weight: 600;
}

.product-tab-content table tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.product-tab-content table p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .product-tab-content table {
        min-width: 640px;
    }
}

/* --- Account / auth (theme-aligned) --- */
.account-auth-hero.about-hero-section {
    min-height: 220px;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.account-dashboard-hero.about-hero-section {
    min-height: 200px;
}

.account-auth-section {
    background: linear-gradient(180deg, #f8f9fb 0%, #fff 45%);
}

.account-auth-card.contact-form-card {
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.account-register-card.contact-form-card {
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.07);
}

.account-auth-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 202, 240, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.35rem;
}

/* Membership comparison (public) */
.membership-compare-table thead th.table-primary,
.membership-compare-table tbody td.table-primary,
.membership-compare-table tbody th.table-primary {
    --bs-table-bg: rgba(13, 110, 253, 0.09);
    box-shadow: inset 0 0 0 999px rgba(13, 110, 253, 0.06);
}

@media (max-width: 576px) {
    .membership-compare-table {
        font-size: 0.875rem;
    }
}

a.account-auth-link {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.35);
}

a.account-auth-link:hover {
    color: #0a58ca;
    border-bottom-color: #0a58ca;
}

.top-nav .top-nav-signout {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
    vertical-align: baseline;
}

.top-nav .top-nav-signout:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.account-dashboard-section {
    background: #f8f9fb;
}

.account-summary-card .account-summary-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #e7f1ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.account-summary-list i {
    width: 1.25rem;
}

.account-summary-card,
.account-panel-card.contact-form-card {
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.account-panel-card .section-title {
    font-size: 1.25rem;
}

/* ─── Membership Benefits Banner (Homepage) ─── */
.membership-benefits-banner {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3060 60%, #0d1b3e 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.membership-benefits-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.mbb-header {
    background: rgba(0,0,0,0.25);
    padding: 18px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mbb-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.04em;
}

.mbb-body {
    display: flex;
    align-items: stretch;
    position: relative;
}

.mbb-tiles {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.mbb-tile {
    flex: 1 1 0;
    min-width: 140px;
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s;
}

.mbb-tile:last-child {
    border-right: none;
}

.mbb-tile:hover {
    background: rgba(255,255,255,0.05);
}

.mbb-tile-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.mbb-tile-value sup {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
}

.mbb-tile-value .mbb-pct {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 4px;
    color: rgba(255,255,255,0.85);
}

.mbb-tile-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
    display: block;
}

.mbb-tile-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin-top: 8px;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.mbb-tile-divider {
    display: block;
    height: 3px;
    width: 40px;
    border-radius: 2px;
    margin: 10px auto 0;
}

.mbb-cta-panel {
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.12);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 200px;
    text-align: center;
}

.mbb-cta-panel .mbb-cta-icon {
    font-size: 2.8rem;
    color: #7dd3fc;
    line-height: 1;
}

.mbb-cta-panel .mbb-cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.mbb-cta-panel .mbb-cta-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.mbb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #C72026;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.mbb-cta-btn:hover {
    background: #a51a1e;
    color: #fff;
    transform: translateY(-1px);
}

.mbb-footnote {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 30px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
}

@media (max-width: 991px) {
    .mbb-tile {
        flex: 1 1 45%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .mbb-cta-panel {
        min-width: unset;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px 24px;
    }
}

@media (max-width: 575px) {
    .mbb-tile {
        flex: 1 1 100%;
        border-right: none;
    }
    .mbb-tile-value {
        font-size: 2rem;
    }
}

/* ─── Join Membership CTA Section (4th position, homepage) ─── */
.join-membership-section {
    background: #0d1b3e;
    position: relative;
    overflow: hidden;
}

.join-membership-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #C72026 0%, #8b0000 100%);
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.12;
    pointer-events: none;
}

.join-membership-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.jms-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 40px;
    position: relative;
    z-index: 1;
}

/* Left panel */
.jms-left {
    flex: 1 1 0;
    min-width: 0;
}

.jms-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 2rem;
    padding: 4px 14px;
    margin-bottom: 20px;
}

.jms-heading {
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.jms-subtext {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.jms-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.jms-perk {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jms-perk-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.jms-perk strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px;
}

.jms-perk span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.jms-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.jms-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #C72026;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(199,32,38,0.4);
}

.jms-btn-primary:hover {
    background: #a51a1e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(199,32,38,0.5);
}

.jms-btn-ghost {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.jms-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.jms-fine {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

/* Right panel — savings card */
.jms-right {
    flex: 0 0 420px;
    max-width: 420px;
}

.jms-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.jms-card-header {
    background: rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    flex-wrap: wrap;
    gap: 6px;
}

.jms-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
    border-radius: 2rem;
    padding: 2px 10px;
}

.jms-card-body {
    padding: 20px;
}

.jms-compare-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.jms-compare-col {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jms-col-no {
    background: rgba(220,38,38,0.1);
    border-right: 1px solid rgba(255,255,255,0.07);
}

.jms-col-yes {
    background: rgba(16,185,129,0.1);
}

.jms-col-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jms-col-no .jms-col-label { color: #f87171; }
.jms-col-yes .jms-col-label { color: #34d399; }

.jms-col-price {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.jms-price-red { color: rgba(255,255,255,0.5); text-decoration: line-through; }
.jms-price-green { color: rgba(255,255,255,0.5); }

.jms-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.jms-col-list li {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 5px;
}

.jms-col-no .jms-col-list li i { color: #f87171; }
.jms-col-yes .jms-col-list li i { color: #34d399; }

.jms-col-total {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.jms-total-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
}

.jms-total-val {
    font-size: 1rem;
    font-weight: 800;
}

.jms-val-red { color: #f87171; }
.jms-val-green {
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jms-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: rgba(255,255,255,0.04);
}

.jms-vs span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.jms-card-cta {
    margin-top: 16px;
    background: rgba(199,32,38,0.15);
    border: 1px solid rgba(199,32,38,0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.jms-card-cta i {
    color: #fbbf24;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Responsive */
@media (max-width: 991px) {
    .jms-inner {
        flex-direction: column;
        padding: 52px 28px;
        gap: 36px;
    }
    .jms-right {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
    .jms-subtext { max-width: 100%; }
}

@media (max-width: 575px) {
    .jms-inner { padding: 40px 20px; }
    .jms-heading { font-size: 1.75rem; }
    .jms-compare-row { flex-direction: column; }
    .jms-vs { display: none; }
    .jms-col-no { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
}
