/* Praman Invention Engine v3.0.0 — Interactive V3 Gadget Atlas & Tombstone Archaeology */
.pva-wrap {
    max-width: 1180px;
    margin: 22px auto;
    color: #e9f6f7;
    background:
        radial-gradient(760px 380px at 12% 0%, rgba(65, 224, 209, 0.11), transparent 62%),
        radial-gradient(700px 360px at 88% 4%, rgba(244, 199, 107, 0.08), transparent 60%),
        #060d14;
    border: 1px solid #1d3a4a;
    border-radius: 18px;
    padding: 24px;
    font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
    box-shadow: 0 22px 58px rgba(2, 6, 23, 0.36);
}
.pva-wrap *, .pva-wrap *::before, .pva-wrap *::after { box-sizing: border-box; }
.pva-loading { padding: 32px; text-align: center; color: #41e0d1; font-family: 'Fira Code', monospace; }

.pva-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pva-pill {
    border: 1px solid #1d3a4a;
    background: rgba(12, 27, 39, 0.86);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12px;
    color: #83a5b0;
}
.pva-pill b { color: #e9f6f7; font-variant-numeric: tabular-nums; }
.pva-pill.hot { border-color: rgba(255, 111, 145, 0.55); color: #ffc3d2; }
.pva-pill.hot b { color: #ff6f91; }

.pva-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(10, 22, 33, 0.9);
    border: 1px solid #1d3a4a;
    border-radius: 12px;
}
.pva-fbtn {
    background: #0c1b27;
    color: #9ec0cb;
    border: 1px solid #1d3a4a;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.pva-fbtn:hover { border-color: #41e0d1; color: #ffffff; }
.pva-fbtn.active { background: rgba(65, 224, 209, 0.14); border-color: #41e0d1; color: #41e0d1; }
.pva-select {
    background: #08121c;
    color: #e9f6f7;
    border: 1px solid #1d3a4a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.pva-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 18px;
}
@media (max-width: 960px) {
    .pva-grid { grid-template-columns: 1fr; }
}
.pva-card {
    background: linear-gradient(145deg, rgba(16, 36, 52, 0.94), rgba(10, 23, 34, 0.94));
    border: 1px solid #1d3a4a;
    border-radius: 16px;
    overflow: hidden;
}
.pva-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 0;
}
.pva-card-head h3 { margin: 0; font-size: 16px; color: #f8fafc; }
.pva-sub { color: #83a5b0; font-size: 12px; margin-top: 3px; }
.pva-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(65, 224, 209, 0.45);
    color: #41e0d1;
    background: rgba(65, 224, 209, 0.08);
    white-space: nowrap;
}
.pva-badge.nc {
    border-color: rgba(255, 111, 145, 0.55);
    color: #ff6f91;
    background: rgba(255, 111, 145, 0.10);
}
.pva-stage {
    padding: 8px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pva-stage svg { width: 100%; height: auto; max-height: 460px; overflow: visible; }
.pva-ring { fill: none; stroke: rgba(131, 165, 176, 0.14); stroke-width: 1; }
.pva-spoke { stroke: rgba(131, 165, 176, 0.13); stroke-width: 1; stroke-dasharray: 3 7; }
.pva-route-under { fill: none; stroke: rgba(65, 224, 209, 0.13); stroke-width: 14; stroke-linecap: round; }
.pva-route {
    fill: none;
    stroke: url(#pvaRouteGrad);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 9;
    animation: pvaFlow 1.3s linear infinite;
}
@keyframes pvaFlow { to { stroke-dashoffset: -46; } }
.pva-halo {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 4 6;
    animation: pvaSpin 12s linear infinite;
    transform-origin: center;
}
@keyframes pvaSpin { to { transform: rotate(360deg); } }
.pva-tombstone { fill: rgba(244, 199, 107, 0.08); stroke: rgba(244, 199, 107, 0.42); stroke-width: 1.5; stroke-dasharray: 2 6; }
.pva-node circle { fill: #0b1a25; stroke-width: 3; }
.pva-node text { font-size: 16px; font-weight: 800; text-anchor: middle; dominant-baseline: central; fill: #eaf8f8; }
.pva-node-lbl { font-size: 10px; fill: #83a5b0; text-anchor: middle; }
.pva-legend { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 16px; }
.pva-legend span { font-size: 11px; color: #9ec0cb; border: 1px solid #1d3a4a; border-radius: 999px; padding: 4px 9px; }
.pva-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.pva-inspector { padding: 18px 20px 20px; }
.pva-score-wrap { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.pva-score-ring {
    --pct: 0;
    position: relative;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#41e0d1 calc(var(--pct) * 1%), rgba(131, 165, 176, 0.14) 0);
}
.pva-score-ring::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0d1f2c;
    border: 1px solid #1d3a4a;
}
.pva-score-num { position: relative; font-size: 20px; font-weight: 800; color: #f8fafc; font-variant-numeric: tabular-nums; }
.pva-score-meta h4 { margin: 0; font-size: 19px; color: #ffffff; }
.pva-score-meta p { margin: 4px 0 0; color: #83a5b0; font-size: 12px; }

.pva-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.pva-metric { border: 1px solid #1d3a4a; background: rgba(6, 13, 20, 0.58); border-radius: 10px; padding: 10px 11px; }
.pva-metric .k { font-size: 10px; color: #83a5b0; text-transform: uppercase; letter-spacing: 0.08em; }
.pva-metric .v { font-size: 14px; font-weight: 700; margin-top: 3px; color: #f8fafc; word-break: break-word; }
.pva-metric .v.good { color: #8ddf8b; }
.pva-metric .v.warn { color: #ff6f91; }
.pva-metric .v.gold { color: #f4c76b; }

.pva-sec-title { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #83a5b0; margin: 14px 0 7px; font-weight: 800; }
.pva-laws { display: flex; flex-wrap: wrap; gap: 6px; }
.pva-law {
    border: 1px solid #1d3a4a;
    border-radius: 7px;
    padding: 5px 8px;
    font: 11px/1.3 'Fira Code', ui-monospace, Menlo, monospace;
    color: #c6e8e8;
    background: rgba(65, 224, 209, 0.06);
}
.pva-note {
    margin-top: 12px;
    font-size: 12px;
    color: #9ec0cb;
    border-left: 2px solid #9b8cff;
    padding-left: 10px;
}

.pva-cad-card { margin-top: 18px; padding: 18px 20px; }
.pva-cad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; margin-top: 12px; }
.pva-art {
    display: block;
    text-decoration: none;
    color: #e9f6f7;
    border: 1px solid #1d3a4a;
    border-radius: 11px;
    padding: 12px;
    background: rgba(6, 13, 20, 0.5);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.pva-art:hover { transform: translateY(-2px); border-color: #41e0d1; }
.pva-art .ext { font: 700 11px 'Fira Code', monospace; color: #41e0d1; }
.pva-art .nm { font-size: 12px; color: #9ec0cb; margin-top: 4px; }

.pva-table-card { margin-top: 18px; }
.pva-tscroll { overflow-x: auto; max-height: 430px; overflow-y: auto; }
.pva-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 680px; }
.pva-table th, .pva-table td { text-align: left; padding: 10px 13px; border-bottom: 1px solid rgba(29, 58, 74, 0.72); }
.pva-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ec0cb;
    background: #08121c;
}
.pva-table tbody tr { cursor: pointer; }
.pva-table tbody tr:hover, .pva-table tbody tr.active { background: rgba(65, 224, 209, 0.09); }
.pva-table tbody tr.active td:first-child { color: #41e0d1; font-weight: 800; }
.pva-hol { color: #ff6f91; font-weight: 700; }
.pva-foot { margin-top: 14px; font-size: 11.5px; color: #83a5b0; }
