/* Detailed Viewer Profile / Viewer Command Center owner styles.
   Keep DVP-only layout, hero, timeline, activity panels, and referral-network styles here.
   Cross-module panels such as Credit Multipliers should be styled in their own owner CSS. */

/* --------------------------------------------------------------------------
   Page shell + base DVP containers
-------------------------------------------------------------------------- */

#profile-detail {
    scroll-margin-top: 94px;
}

#profile-detail .section-heading,
#profile-detail .support-view-heading {
    margin-bottom: 14px;
}

#profile-detail .section-heading h2,
#profile-detail .support-view-heading h2 {
    line-height: 0.95;
}

#profile-detail .section-heading p,
#profile-detail .support-view-heading p {
    max-width: 700px;
    line-height: 1.45;
}

#profile-detail .panel {
    padding: 14px;
}

#profile-detail .panel-title {
    margin-bottom: 10px;
}

.dvp-shell {
    display: grid;
    gap: 12px;
}

.dvp-card,
.dvp-hero-card,
.dvp-stat-card {
    min-width: 0;
}

.dvp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.48fr);
    gap: 12px;
    align-items: start;
}

.dvp-column,
.dvp-activity-stack {
    display: grid;
    gap: 12px;
    min-width: 0;
}


/* --------------------------------------------------------------------------
   Summary stat cards
-------------------------------------------------------------------------- */

.dvp-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.dvp-stat-card {
    padding: 10px;
    border: 1px solid rgba(93, 210, 255, 0.2);
    border-radius: 14px;
    background: rgba(8, 24, 45, 0.62);
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.dvp-stat-card.clickable:hover {
    border-color: var(--border-hot) !important;
    background-color: rgba(18, 51, 84, 0.72) !important;
}

.dvp-stat-label {
    color: rgba(126, 223, 255, 0.82);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dvp-stat-value {
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dvp-stat-detail {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Shared DVP card primitives still used by DVP-rendered sections
-------------------------------------------------------------------------- */

.dvp-signal-list {
    display: grid;
    gap: 8px;
}

.dvp-signal,
.dvp-recruit-list article {
    display: block;
    padding: 9px 10px;
    border: 1px solid rgba(93, 210, 255, 0.18);
    border-radius: 12px;
    background: rgba(5, 15, 31, 0.38);
    color: inherit;
    text-decoration: none;
}

.dvp-signal:hover {
    border-color: var(--border-hot) !important;
    background-color: rgba(18, 51, 84, 0.72) !important;
}

.dvp-signal strong,
.dvp-recruit-list strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.dvp-signal span,
.dvp-recruit-list span,
.dvp-muted,
.dvp-referral-note {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.dvp-action-track,
.dvp-recruit-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 8px;
}

.dvp-action-track i,
.dvp-recruit-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #36bfff, #7effe8);
}

/* --------------------------------------------------------------------------
   DVP guided-link target pulse
-------------------------------------------------------------------------- */

.dvp-target-pulse {
    border-color: rgba(126, 223, 255, 0.82) !important;
    animation: dvpTargetPulse 1800ms ease-out !important;
}

@keyframes dvpTargetPulse {
    0% {
        border-color: rgba(126, 223, 255, 0.82);
        box-shadow: 0 0 0 rgba(126, 223, 255, 0);
        background-color: rgba(55, 187, 255, 0.16);
    }

    45% {
        box-shadow: 0 0 34px rgba(126, 223, 255, 0.34), inset 0 0 18px rgba(126, 223, 255, 0.055);
    }

    100% {
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   Panel titles + count pills
-------------------------------------------------------------------------- */

.dvp-signal-timeline-card .panel-title,
.dvp-activity-feed-card > .panel-title,
.dvp-activity-feed-card > summary.panel-title,
.dvp-referral-network-card > .panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
}

.dvp-activity-feed-card > .panel-title {
    cursor: default;
}

.dvp-activity-feed-card > .panel-title span,
.dvp-referral-network-card > .panel-title span {
    min-width: 0;
}

.dvp-activity-feed-card > .panel-title small,
.dvp-referral-network-card > .panel-title small {
    margin-left: auto;
    flex: 0 0 auto;
}

.dvp-referral-network-card > .panel-title,
.dvp-referral-network-card > .panel-title *,
.dvp-referral-network-card > .panel-title:hover,
.dvp-referral-network-card > .panel-title:hover * {
    cursor: default !important;
}

.dvp-referral-network-card > .panel-title:hover {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.dvp-signal-timeline-card .panel-title small,
.dvp-activity-feed-card .panel-title small,
.dvp-referral-network-card > .panel-title small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(126, 223, 255, 0.22);
    border-radius: 999px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.dvp-activity-feed-card > summary.panel-title::-webkit-details-marker {
    display: none;
}


/* --------------------------------------------------------------------------
   Legacy compatibility / intentionally hidden old DVP blocks
   These are kept isolated so they can be deleted after renderer cleanup.
-------------------------------------------------------------------------- */

.dvp-premium-strip,
.dvp-profile-completeness,
.dvp-anchor-link {
    display: none !important;
}

.dvp-dossier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dvp-dossier-grid > article {
    display: none !important;
}

@media (max-width: 760px) {
    #profile-detail .support-view-heading {
        gap: 0;
    }

    #profile-detail .support-view-heading > div {
        margin-bottom: 9px;
    }

    #profile-detail .support-view-heading p {
        margin-top: 0;
        line-height: 1.5;
    }
}