
/* Navbar */
.navbar {
    background: var(--clr-surface-elevated) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--clr-on-surface) !important;
}
.nav-link {
    color: var(--clr-white-soft) !important;
    font-weight: 600;
    font-size: 0.85rem;
}
.nav-link:hover,
.nav-link.active {
    color: var(--p2) !important;
}

/* Breadcrumb */
.breadcrumb-bar {
    background: rgba(14, 17, 23, 0.6);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.breadcrumb-item,
.breadcrumb-item a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--text);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted);
}

/* Hero */
.detail-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

/* Icon */
.product-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Badges */
.badge-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
}
.badge-paid { background: rgba(99,102,241,0.1); color: var(--p2); border: 1px solid rgba(99,102,241,0.2); }

.badge-free {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-individual {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Stars */
.stars {
    color: var(--yellow);
}

/* Stat card */
.stat-card {
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.stat-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--clr-on-surface);
}
.stat-lbl {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Glass card */
.g-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}
.g-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--clr-on-surface);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.g-card-title .ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Feature row */
.feat-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.feat-row:last-child {
    border-bottom: none;
}
.feat-ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.feat-text {
    font-size: 0.83rem;
    color: var(--clr-white-soft);
    line-height: 1.5;
}
.feat-text strong {
    color: var(--clr-on-surface);
}

/* Axis item */
.axis-item {
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 13px 15px;
    margin-bottom: 9px;
}
.axis-num {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--p2);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.axis-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--clr-on-surface);
}
.axis-desc {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 2px;
}
.axis-bar-bg {
    height: 4px;
    background: var(--clr-grid-line);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.axis-bar-fill {
    height: 100%;
    border-radius: 2px;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.d-tab {
    padding: 9px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-family: "Cairo", sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.d-tab:hover {
    color: var(--p2);
}
.d-tab.active {
    color: var(--p2);
    border-bottom-color: var(--p2);
}

/* Tab panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Sample question */
.sample-q {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.sample-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-top: 7px;
    font-size: 0.8rem;
    color: var(--clr-white-soft);
}
.opt-letter {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
}

/* Timeline */
.tl-step {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    position: relative;
}
.tl-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 38px;
    width: 2px;
    height: calc(100% - 14px);
    background: var(--border);
}
.tl-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--p2);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Review card */
.review-card {
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
}
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* FAQ */
.faq-item {
    background: var(--clr-white-hover);
    border: 1px solid var(--border);
    border-radius: 11px;
    margin-bottom: 7px;
    overflow: hidden;
}
.faq-q {
    padding: 13px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--clr-on-surface);
}
.faq-q:hover {
    background: var(--clr-white-hover);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
    padding: 0 16px;
}
.faq-item.open .faq-a {
    max-height: 180px;
    padding: 0 16px 13px;
}
.faq-chevron {
    transition: transform 0.3s;
    font-size: 0.78rem;
    color: var(--muted);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 76px;
}
.price-box {
    background: var(--clr-surface-elevated);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 14px;
}
.price-original { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }
.price-current { font-size: 1.5rem; font-weight: 900; color: var(--clr-on-surface); line-height: 1; }
.price-free { font-size: 1.5rem; font-weight: 900; color: var(--clr-green-text); line-height: 1; }
.price-period { font-size: 0.72rem; color: var(--muted); }
.price-free-lbl {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--clr-green-text);
    line-height: 1;
}
.price-note {
    font-size: 0.73rem;
    color: var(--muted);
    margin-top: 3px;
}
.btn-cta-free {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--green), #059669);
    border: none;
    color: #fff;
    border-radius: 13px;
    font-family: "Cairo", sans-serif;
    font-size: 0.93rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 9px;
}
.btn-primary-custom {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none; color: #fff;
    border-radius: 12px; font-family: 'Cairo', sans-serif;
    font-size: 0.88rem; font-weight: 800;
    cursor: pointer; transition: all 0.2s;
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.btn-free-custom {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--green), #059669);
    border: none; color: #fff;
    border-radius: 12px; font-family: 'Cairo', sans-serif;
    font-size: 0.88rem; font-weight: 800;
    cursor: pointer; transition: all 0.2s;
}
.btn-cta-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
}
.btn-cta-outline {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--p2);
    border-radius: 13px;
    font-family: "Cairo", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 7px;
}
.btn-cta-outline:hover {
    background: rgba(99, 102, 241, 0.08);
}
.guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 0.76rem;
    color: var(--clr-green-text);
    margin-top: 11px;
}

/* Quick info */
.qi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.qi-row:last-child {
    border-bottom: none;
}
.qi-label {
    font-size: 0.78rem;
    color: var(--muted);
}
.qi-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-on-surface);
}

/* Cert box */
.cert-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 11px;
    padding: 18px;
    text-align: center;
}

/* Related card */
.related-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.25s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.related-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    color: inherit;
}

/* Diff dots */
.diff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Rating bar */
.rating-bar-bg {
    flex: 1;
    height: 5px;
    background: var(--clr-grid-line);
    border-radius: 3px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--yellow);
}

footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 28px 0 16px;
    margin-top: 64px;
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 32px 0 24px;
    }
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 15px;
    }
    .sticky-sidebar {
        position: static;
    }
}

/* ── Light Mode ── */
html[data-theme="light"] .navbar { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
html[data-theme="light"] .g-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .price-box { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .stat-card { box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
html[data-theme="light"] .review-card { box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
html[data-theme="light"] .faq-item { box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
html[data-theme="light"] .related-card { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
html[data-theme="light"] .breadcrumb-bar { background: rgba(248,249,252,0.8); }
html[data-theme="light"] .detail-hero { background: linear-gradient(135deg, rgba(16,185,129,0.03) 0%, transparent 60%); }
html[data-theme="light"] .axis-item { box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
html[data-theme="light"] .sample-q { background: rgba(99,102,241,0.03); }
html[data-theme="light"] .cert-box { background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(6,182,212,0.02)); }
