/**
 * Demian Solar Assessment
 * Premium interface enhancements.
 * Core layout and components are defined in frontend.css.
 */

.dsa-premium-unlock-card,
.dsa-blueprint-hero,
.dsa-preview-hero,
.dsa-payment-card { position: relative; isolation: isolate; }

.dsa-premium-unlock-card::before,
.dsa-blueprint-hero::before {
    content: ""; position: absolute; top: -80px; right: -70px; z-index: -1;
    width: 230px; height: 230px; pointer-events: none;
    background: rgba(255,216,77,.12); border-radius: 50%;
}
.dsa-premium-unlock-card::after,
.dsa-blueprint-hero::after {
    content: ""; position: absolute; bottom: -120px; left: -100px; z-index: -1;
    width: 260px; height: 260px; pointer-events: none;
    background: rgba(7,84,166,.06); border-radius: 50%;
}

.dsa-preview-metric-card,
.dsa-blueprint-card,
.dsa-locked-feature,
.dsa-payment-benefits > div,
.dsa-blueprint-metrics > article {
    transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease;
}
.dsa-preview-metric-card:hover,
.dsa-blueprint-card:hover,
.dsa-locked-feature:hover,
.dsa-payment-benefits > div:hover,
.dsa-blueprint-metrics > article:hover {
    transform: translateY(-3px); border-color: #a8c8e7;
    box-shadow: 0 13px 28px rgba(16,36,60,.08);
}

.dsa-locked-feature { position: relative; overflow: hidden; }
.dsa-locked-feature::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);
    transform: translateX(-120%); transition: transform 600ms ease;
}
.dsa-locked-feature:hover::after { transform: translateX(120%); }

.dsa-blueprint { animation: dsa-blueprint-entry 450ms ease; }
@keyframes dsa-blueprint-entry {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.dsa-blueprint-hero .dsa-premium-label { color: #11623f; background: #ecf9f3; border-color: #a8d9c2; }

.dsa-preview-score,
.dsa-blueprint-confidence { position: relative; overflow: hidden; }
.dsa-preview-score::before,
.dsa-blueprint-confidence::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg,#0754a6,#0a82df,#ffd84d);
}

.dsa-payment-button { position: relative; overflow: hidden; }
.dsa-payment-button::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; pointer-events: none;
    background: linear-gradient(110deg,transparent,rgba(255,255,255,.24),transparent);
    transform: skewX(-20deg);
}
.dsa-payment-button:hover:not(:disabled)::after { animation: dsa-payment-shine 750ms ease; }
@keyframes dsa-payment-shine { from { left: -80%; } to { left: 140%; } }

.dsa-blueprint-section { position: relative; }
.dsa-blueprint-section::before {
    content: ""; position: absolute; top: 0; left: 21px; width: 56px; height: 3px;
    background: linear-gradient(90deg,#0754a6,#ffd84d); border-radius: 999px;
}

.dsa-appliance-card.is-heavy-selected::before {
    content: "High impact"; position: absolute; top: -9px; right: 16px; z-index: 2;
    padding: 4px 9px; color: #704500; font-size: 9px; font-weight: 900;
    letter-spacing: .07em; text-transform: uppercase; background: #fff1bd;
    border: 1px solid #e3b95f; border-radius: 999px;
}

/* Legacy live-summary effect retained only if old markup appears. */
.dsa-live-summary .dsa-summary-card { overflow: hidden; }
.dsa-live-summary .dsa-summary-card::before {
    content: ""; display: block; width: calc(100% + 44px); height: 5px; margin: -22px -22px 18px;
    background: linear-gradient(90deg,#0754a6,#0a82df,#ffd84d);
}

/* Professional Blueprint pricing hierarchy. */
.dsa-premium-blueprint-container .dsa-blueprint-highlight > span,
.dsa-premium-blueprint-container .dsa-price-value,
.dsa-premium-blueprint-container .dsa-component-price-value {
    color: #064b8e !important; font-weight: 900 !important; opacity: 1 !important;
}
.dsa-premium-blueprint-container .dsa-fair-market-section { position: relative; overflow: hidden; }
.dsa-premium-blueprint-container .dsa-fair-market-section::after {
    content: ""; position: absolute; right: -70px; top: -80px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,216,77,.12); pointer-events: none;
}
.dsa-premium-blueprint-container .dsa-system-price-value { color: #0754a6 !important; font-weight: 950 !important; }
.dsa-premium-blueprint-container .dsa-blueprint-price-line { position: relative; }

@media (prefers-reduced-motion: reduce) {
    .dsa-assessment-app *,
    .dsa-assessment-app *::before,
    .dsa-assessment-app *::after {
        scroll-behavior: auto !important; animation-duration: .01ms !important;
        animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
}
