﻿.pi-detail-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px;
    color: #111827;
    background: #f8fafc;
}


.pi-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

    .pi-breadcrumb a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
    }

.pi-detail-topbar h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.pi-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

    .pi-detail-meta span {
        padding: 7px 11px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid #e2e8f0;
        color: #475569;
        font-size: 13px;
        font-weight: 700;
    }

.pi-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.pi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}

.pi-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

    .pi-btn-primary:hover {
        background: #1d4ed8;
    }

.pi-btn-light {
    background: #fff;
    color: #0f172a;
    border-color: #e2e8f0;
}

    .pi-btn-light:hover {
        background: #f1f5f9;
    }

.pi-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.pi-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.pi-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.pi-empty-state {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.pi-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.pi-hero-copy {
    min-width: 0;
}

.pi-eyebrow {
    display: block;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: .15rem;
}

.pi-detail-hero .pi-eyebrow {
    color: #93c5fd;
}

.pi-hero-copy h2 {
    margin: 6px 0 12px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.pi-hero-copy p {
    max-width: 820px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 15px;
}

.pi-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}

    .pi-pill.completed {
        background: rgba(34, 197, 94, .18);
        color: #bbf7d0;
    }

    .pi-pill.failed {
        background: rgba(239, 68, 68, .18);
        color: #fecaca;
    }

    .pi-pill.processing,
    .pi-pill.pending {
        background: rgba(245, 158, 11, .18);
        color: #fde68a;
    }

.pi-score-orb {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
}

    .pi-score-orb .pi-score-star {
        position: absolute;
        top: 18px;
        left: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin: 0;
        border-radius: 11px;
        background: rgba(191, 219, 254, .18);
        color: #93c5fd;
        font-size: 1.15rem;
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .28);
    }

    .pi-score-orb strong {
        font-size: 64px;
        line-height: 1;
        letter-spacing: -0.06em;
    }

    .pi-score-orb span {
        margin-top: 10px;
        color: #cbd5e1;
        font-size: 13px;
        font-weight: 800;
    }

    .pi-score-orb.high strong {
        color: #86efac;
    }

    .pi-score-orb.medium strong {
        color: #fde68a;
    }

    .pi-score-orb.low strong {
        color: #fecaca;
    }

/* KPI ROW */
.pi-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

    .pi-metric-card,
    .pi-metric-row article {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        min-height: 120px;
        padding: 24px 24px 24px 76px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    }

        .pi-metric-row article .pi-metric-icon {
            position: absolute;
            left: 24px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            margin: 0;
            border-radius: 12px;
            font-size: 1.35rem;
            line-height: 1;
        }

        .pi-metric-icon-price {
            background: #eef2ff;
            color: #4f46e5 !important;
        }

        .pi-metric-icon-demand {
            background: #ecfdf5;
            color: #10b981 !important;
        }

        .pi-metric-icon-competition {
            background: #fff7ed;
            color: #f59e0b !important;
        }

        .pi-metric-card span,
        .pi-metric-row article span {
            display: block;
            margin-bottom: 10px;
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .pi-metric-row article .pi-metric-icon + span {
            margin-bottom: 8px;
        }

        .pi-metric-card strong,
        .pi-metric-row article strong {
            color: #0f172a;
            font-size: 32px;
            font-weight: 800;
            line-height: 1.1;
        }

.pi-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pi-detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.pi-detail-main {
    display: grid;
    gap: 18px;
}

.pi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.pi-card-heading {
    margin-bottom: 0;
}

    .pi-card-heading h2 {
        margin: 0;
        color: #0f172a;
        font-size: 21px;
        letter-spacing: -0.025em;
    }

.pi-product-description {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.6;
}
.pi-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pi-product-media {
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

    .pi-product-media img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .pi-product-media a {
        display: block;
        padding: 12px;
        text-align: center;
        color: #2563eb;
        background: #fff;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        border-top: 1px solid #e2e8f0;
    }

.pi-image-empty,
.pi-competitor-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    color: #94a3b8;
    font-weight: 900;
}

.pi-mini-list {
    display: grid;
    gap: 12px;
}

    .pi-mini-list div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
    }

        .pi-mini-list div:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

    .pi-mini-list span,
    .pi-info-grid span {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 6px;
    }

    .pi-mini-list strong {
        text-align: right;
        color: #0f172a;
        font-size: 13px;
    }

.pi-source-link {
    display: block;
    color: #2563eb;
    font-weight: 700;
    overflow-wrap: anywhere;
    line-height: 1.5;
    text-decoration: none;
}

    .pi-source-link:hover {
        text-decoration: underline;
    }

.pi-muted {
    color: #94a3b8;
}

.pi-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .pi-info-grid div {
        padding: 16px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .pi-info-grid strong {
        color: #0f172a;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

.pi-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

    .pi-score-grid article {
        padding: 18px;
        border-radius: 20px;
        background: linear-gradient(180deg, #f8fafc, #fff);
        border: 1px solid #e2e8f0;
    }

    .pi-score-grid span {
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

    .pi-score-grid strong {
        display: block;
        margin: 10px 0;
        color: #0f172a;
        font-size: 36px;
        letter-spacing: -0.05em;
    }

    .pi-score-grid p {
        margin: 0;
        color: #64748b;
        line-height: 1.55;
        font-size: 13px;
    }

.pi-score-details {
    margin-top: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
}

    .pi-score-details summary {
        cursor: pointer;
        font-weight: 900;
        color: #0f172a;
    }

    .pi-score-details p {
        color: #475569;
        line-height: 1.6;
    }

.pi-score-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .pi-score-scale span {
        background: #fff;
        border: 1px solid #e2e8f0;
        color: #475569;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 12px;
    }

.pi-opportunity-list {
    display: grid;
    gap: 12px;
}

    .pi-opportunity-list article {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 16px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .pi-opportunity-list span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: #dbeafe;
        color: #1d4ed8;
        font-weight: 900;
        font-size: 13px;
    }

    .pi-opportunity-list p {
        margin: 0;
        color: #334155;
        line-height: 1.65;
    }

.pi-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .pi-keyword-cloud span {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 12px;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
        font-size: 13px;
        font-weight: 800;
    }

.pi-toast-copy {
    display: none;
    margin-top: 14px;
    width: fit-content;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.pi-insight-list {
    display: grid;
    gap: 10px;
}

    .pi-insight-list details {
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        overflow: hidden;
    }

    .pi-insight-list summary {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        list-style: none;
        cursor: pointer;
        padding: 16px;
        color: #0f172a;
        font-weight: 900;
    }

    .pi-insight-list summary::-webkit-details-marker {
        display: none;
    }

    .pi-insight-list summary::before {
        content: "›";
        color: #475569;
        font-size: 1.1rem;
        line-height: 1;
        transition: transform .18s ease;
    }

    .pi-insight-list details[open] summary::before {
        transform: rotate(90deg);
    }

    .pi-insight-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        color: #64748b;
        font-size: 1rem;
    }

    .pi-insight-list p {
        margin: 0;
        padding: 0 16px 16px;
        color: #475569;
        line-height: 1.7;
    }

.pi-competitor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pi-competitor-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .pi-competitor-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, .1);
    }

    .pi-competitor-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        background: #f1f5f9;
    }

.pi-competitor-body {
    padding: 14px;
}

    .pi-competitor-body h3 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 14px;
        line-height: 1.45;
    }

.pi-competitor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

    .pi-competitor-meta span {
        padding: 6px 8px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #475569;
        font-size: 12px;
        font-weight: 800;
    }

.pi-competitor-body a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

    .pi-competitor-body a:hover {
        text-decoration: underline;
    }

.pi-summary-card {
    background: linear-gradient(180deg, rgba(239, 246, 255, .8), #fff);
}

.pi-summary-box {
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
}

.pi-summary-card .pi-summary-box {
    text-align: left;
    white-space: pre-line;
}

.pi-empty-inline {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

    .pi-empty-inline strong {
        color: #0f172a;
    }

    .pi-empty-inline p {
        margin: 6px 0 0;
        color: #64748b;
    }

@media (max-width: 1100px) {
    .pi-detail-layout {
        grid-template-columns: 1fr;
    }

    .pi-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pi-score-grid,
    .pi-competitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.pi-verdict-row {
    margin-bottom: 24px;
}

.pi-verdict-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.pi-keyword-heading-actions {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.pi-keyword-heading-actions .pi-btn {
    width: auto;
    min-height: 42px;
    flex: 0 0 auto;
    box-sizing: border-box;
    gap: 8px;
}

.pi-keyword-heading-actions .pi-btn i {
    font-size: 1rem;
    line-height: 1;
}

    .pi-verdict-icon {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin: 0;
        border-radius: 14px;
        background: #eef2ff;
        line-height: 1;
    }

        .pi-verdict-document {
            position: absolute;
            left: 10px;
            top: 8px;
            width: 30px;
            height: 38px;
            border: 3px solid #111827;
            border-radius: 6px;
            background: #ffffff;
        }

        .pi-verdict-document::before {
            content: "";
            position: absolute;
            right: -3px;
            top: -3px;
            width: 12px;
            height: 12px;
            border-left: 3px solid #111827;
            border-bottom: 3px solid #111827;
            background: #eef2ff;
            border-radius: 0 4px 0 3px;
            clip-path: polygon(0 0, 100% 100%, 0 100%);
        }

        .pi-document-line {
            position: absolute;
            left: 6px;
            right: 6px;
            height: 3px;
            border-radius: 999px;
            background: #111827;
        }

        .pi-document-line-title {
            top: 9px;
            height: 8px;
            border: 3px solid #111827;
            background: transparent;
        }

        .pi-document-line:not(.pi-document-line-title):nth-child(2) {
            top: 23px;
        }

        .pi-document-line:not(.pi-document-line-title):nth-child(3) {
            top: 29px;
        }

        .pi-document-line-short {
            top: 35px;
            right: 13px;
        }

    .pi-verdict-card > div > span {
        display: block;
        margin-bottom: 10px;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .pi-verdict-card strong {
        display: block;
        font-size: 20px;
        line-height: 1.6;
        font-weight: 700;
        color: #0f172a;
        white-space: normal;
        overflow-wrap: break-word;
    }

@media (max-width: 800px) {
    .pi-detail-page {
        padding: 18px;
    }

    .pi-detail-topbar {
        flex-direction: column;
    }

    .pi-detail-actions {
        width: 100%;
    }

        .pi-detail-actions .pi-btn {
            flex: 1;
        }

    .pi-detail-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .pi-score-orb {
        min-height: 150px;
    }

    .pi-metric-row {
        grid-template-columns: 1fr;
    }

        .pi-metric-card,
        .pi-metric-row article {
            min-height: 100px;
        }

    .pi-detail-sidebar,
    .pi-info-grid,
    .pi-score-grid,
    .pi-competitor-grid {
        grid-template-columns: 1fr;
    }

    .pi-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
.pi-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pi-pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
}

.pi-pricing-label {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: .5rem;
}

.pi-pricing-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .75rem;
}

.pi-pricing-reason {
    color: #4b5563;
    line-height: 1.6;
}

.pi-pricing-highlight {
    margin-top: 1.5rem;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.25rem;
}

.pi-pricing-highlight-title {
    font-weight: 700;
    margin-bottom: .5rem;
}

.pi-pricing-range {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: .75rem;
}

.pi-pricing-insight {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

    .pi-pricing-insight h3 {
        margin-bottom: .75rem;
    }

    .pi-pricing-insight p {
        line-height: 1.8;
        white-space: pre-line;
    }
.pi-collapsible-header {
    cursor: pointer;
}

.pi-card-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pi-collapse-icon {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.pi-card.collapsed .pi-collapse-icon {
    transform: rotate(-90deg);
}

.pi-card.collapsed .pi-card-content {
    display: none;
}
.pi-collapsible-header {
    cursor: pointer;
    user-select: none;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.pi-collapsible-header:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 4px;
    border-radius: 12px;
}

.pi-card-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pi-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pi-card-heading h2.pi-heading-title {
    display: flex;
}

.pi-heading-title .pi-eyebrow {
    margin: 0;
}

.pi-heading-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    font-size: 1.15rem;
    line-height: 1;
}

.pi-heading-icon-growth {
    background: #ecfdf5;
    color: #10b981 !important;
}

.pi-heading-icon-keywords {
    background: #eff6ff;
    color: #2563eb !important;
}

.pi-heading-icon-intelligence {
    background: #f0f9ff;
    color: #0284c7 !important;
}

.pi-heading-icon-competitor-scan {
    background: #fff7ed;
    color: #f59e0b !important;
}

.pi-heading-icon-assessment {
    background: #eef2ff;
    color: #4f46e5 !important;
}

.pi-collapse-icon {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.pi-card.collapsed .pi-collapse-icon {
    transform: rotate(-90deg);
}

.pi-card.collapsed .pi-card-content {
    display: none;
}
.pi-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pi-section-subtitle {
    margin: 0;
    font-size: .95rem;
    color: #6b7280;
}

.pi-evidence-limitation {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid #d97706;
    border-radius: 0 8px 8px 0;
    background: #fffbeb;
    color: #92400e !important;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 0.925rem;
    font-style: italic;
    line-height: 1.65;
}
.pi-download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.pi-download-format {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1;
    margin-top: 2px;
}
.report-actions .pi-btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
    }
.pi-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.pi-detail-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.report-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pi-detail-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom:.5rem;
}

.pdf-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .pi-detail-topbar {
        flex-direction: column;
    }

    .pi-detail-right {
        width: 100%;
        align-items: flex-start;
    }

    .pi-detail-actions {
        flex-wrap: wrap;
    }
}
.pi-score-grid article {
    position: relative;
    overflow: visible;
}

.pi-score-grid article {
    text-align: center;
}

.pi-score-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    color: #2563eb !important;
    font-size: 1.65rem !important;
    line-height: 1;
}

.pi-score-icon i {
    display: block;
    line-height: 1;
}

.pi-score-icon-product {
    color: #5b3ff3 !important;
}

.pi-score-icon-market {
    color: #18bd6b !important;
}

.pi-score-icon-competition {
    color: #f59e0b !important;
}

.pi-score-icon-trend {
    color: #4f7df3 !important;
}

.pi-score-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 100%;
    color: #11194a !important;
    font-weight: 900;
}

.pi-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: #94a3b8;
}

    .pi-tooltip:hover {
        color: #2563eb;
    }

.pi-tooltip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 240px;
    padding: 10px 12px;
    background: #111827;
    color: #ffffff;
    border-radius: 10px;
    font-size: .5px;
    font-weight: 200;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

    .pi-tooltip-text::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #111827 transparent transparent transparent;
    }

.pi-tooltip:hover .pi-tooltip-text,
.pi-tooltip:focus-within .pi-tooltip-text {
    opacity: 1;
    visibility: visible;
}

