:root {
    --bg-dark: #051A10;
    --bg-gradient: radial-gradient(circle at top center, #0B2B1D 0%, #051A10 100%);
    --primary: #00FF88;
    --primary-glow: rgba(0, 255, 136, 0.6);
    --secondary-glow: rgba(0, 255, 136, 0.2);
    --secondary: #2E6B52;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #E0FFED;
    --text-muted: #88BBAA;
    --warning: #FFD400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- Views & Navigation --- */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    z-index: 10;
}

.view.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(10px);
    filter: blur(10px);
}

.content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
}

.scroll-y {
    overflow-y: auto;
    padding-bottom: 3rem;
}

/* --- Home View --- */
.brand-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.living-entity {
    width: 380px;
    height: 380px;
    justify-content: center;
}

.vignette-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(0, 70, 30, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.living-logo-v5 {
    width: 320px; /* Base 220px + 30% approx */
    height: auto;
    mix-blend-mode: screen;
    filter: blur(0.4px) drop-shadow(0 0 15px var(--primary)) drop-shadow(0 0 45px var(--primary-glow)) drop-shadow(0 0 120px var(--secondary-glow));
    mask-image: radial-gradient(circle, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 90%);
    animation: floating-living-glow 8s infinite ease-in-out;
    z-index: 2;
}

.particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
}

.fantasy-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #AACCBB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.slogan {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    letter-spacing: 0.15rem;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-primary-glow {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 0 30px var(--primary-glow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-glow:active {
    transform: scale(0.96);
}

.btn-text-v2 {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s;
}

.btn-text-v2:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 1.5rem 0;
}

.home-actions .btn-primary-glow,
.home-actions .btn-secondary-glass {
    width: 100%;
    margin: 0;
}

.feature-labels {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    opacity: 0.6;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.feature-labels span {
    padding: 0.4rem 0.8rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* --- Camera View --- */
.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: black;
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.focus-guide-premium {
    width: 60vw;
    height: 60vw;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    position: relative;
}

.focus-ring {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 3px solid var(--primary);
    border-radius: 34px;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: focus-pulse 2s infinite ease-in-out;
}

.camera-controls-v2 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2.5rem 1rem 4rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.helper-text-v2 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.controls-row {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-secondary-icon {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.8rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.btn-secondary-icon .label { font-size: 0.65rem; margin-top: 4px; opacity: 0.8; }

.btn-capture-v2 {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: white;
    padding: 6px;
    border: 4px solid var(--primary-glow);
    box-shadow: 0 0 20px var(--primary-glow);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid #000;
}

.control-spacer { width: 50px; }

/* --- Processing View --- */
.ai-loader {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scanner 2.5s infinite linear;
}

.loader-icon-glow {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px var(--primary));
}

.processing-status { width: 100%; max-width: 250px; }

#processing-message {
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    min-height: 1.5em;
}

.progress-bar-container {
    height: 6px;
    width: 100%;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.5s ease;
}

/* --- Result View --- */
.result-header { margin-bottom: 2.5rem; }
.success-ring {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 3rem;
}

.stat-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 1.2rem 1rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.08rem; }
.stat-item span { font-size: 1rem; font-weight: 600; display: block; }
.stat-item .val-warning { color: var(--warning); }
.stat-item .val-healthy { color: var(--primary); }
.stat-item .val-stress { color: #FF4B4B; }

.main-health { grid-column: span 2; border: 1px solid var(--primary-glow); background: rgba(0,255,136,0.05); }

.conf-badge-v3 { font-size: 0.65rem; background: var(--secondary); color: white; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }

.analysis-conclusion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.rec-box-v3, .explanation-box-v3 {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 16px;
}

.rec-box-v3 { border-left: 4px solid var(--primary); }
.rec-box-v3 label, .explanation-box-v3 label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.rec-box-v3 p, .explanation-box-v3 p { font-size: 0.95rem; line-height: 1.5; color: var(--text-light); }

.confidence-footer {
    width: 100%;
    margin-bottom: 3rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.confidence-footer span { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 0.6rem; }
.conf-bar-bg { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; width: 100%; overflow: hidden; }
.conf-bar { height: 100%; background: var(--primary); width: 92%; transition: width 1s ease-out; }

.btn-primary-glass {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.teaser-text { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.btn-text { background: none; border: none; color: var(--text-muted); text-decoration: underline; font-size: 0.9rem; }

/* --- Animations --- */
@keyframes pulse-sprout { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes portal-glow { 0%, 100% { filter: drop-shadow(0 0 20px var(--primary-glow)); transform: scale(1); } 50% { filter: drop-shadow(0 0 40px var(--primary)); transform: scale(1.02); } }
@keyframes luminous-breathing { 0%, 100% { filter: drop-shadow(0 0 30px var(--primary-glow)) drop-shadow(0 0 60px var(--secondary-glow)); transform: scale(1); opacity: 0.9; } 50% { filter: drop-shadow(0 0 50px var(--primary)) drop-shadow(0 0 100px var(--primary-glow)); transform: scale(1.04); opacity: 1; } }
@keyframes floating-luminous { 0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 30px var(--primary-glow)); opacity: 0.95; } 50% { transform: translateY(-15px) scale(1.03); filter: drop-shadow(0 0 60px var(--primary)); opacity: 1; } }
@keyframes floating-living-glow { 0%, 100% { transform: translateY(0) scale(1); filter: contrast(1.1) brightness(1); } 50% { transform: translateY(-20px) scale(1.05); filter: contrast(1.2) brightness(1.1); } }
@keyframes particle-float { 
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.4; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1.5); opacity: 0; } 
}
@keyframes focus-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.98); opacity: 0.7; } }
@keyframes scanner { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes scale-up { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }


/* --- Traits Box (Premium) --- */
.traits-box-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.traits-box-premium label {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.traits-list-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.trait-badge-v3 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease forwards;
}

.trait-badge-v3 i {
    font-style: normal;
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- AI Engine Badge --- */
.engine-badge-v3 {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeIn 0.8s ease forwards;
}

.engine-badge-v3 i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--primary));
}



/* --- AI Engine Fallback Style --- */
.engine-badge-v3.fallback {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff4444;
}

.engine-badge-v3.fallback i {
    filter: drop-shadow(0 0 5px #ff4444);
}

/* --- Prescription (Reçete) Box --- */
.prescription-box-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.prescription-box-premium.hidden {
    display: none;
}

.prescription-box-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.prescription-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pre-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.pre-title-group {
    text-align: left;
}

.pre-title-group h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.pre-type-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--secondary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.prescription-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.prescription-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    padding-left: 1.8rem;
    position: relative;
}

.prescription-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Phase 5: Camera Coach --- */
.camera-coach-v5 {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 15;
    pointer-events: none;
}

.coach-bubble {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: coach-bounce 2s infinite ease-in-out;
}

.coach-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ind-v5 {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: white;
    opacity: 0.3;
    transition: all 0.3s;
}

.ind-v5.active {
    background: var(--primary);
    color: var(--bg-dark);
    opacity: 1;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes coach-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- Phase 5: Result View Upgrades --- */
.result-header-v5 {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.success-ring-v5 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 0 20px var(--primary-glow);
}

.title-group-v5 h2 { font-size: 1.5rem; margin-bottom: 2px; }
.title-group-v5 small { color: var(--text-muted); font-size: 0.8rem; }

/* Urgency Banner */
.urgency-banner {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #FF4B4B 0%, #990000 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    animation: flash-red 2s infinite;
}

@keyframes flash-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Next Action Card */
.next-action-card {
    width: 100%;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.next-action-card label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.next-action-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    color: white;
}

/* Stats Grid v5 */
.stats-grid-v5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 12px;
    text-align: left;
}

.stat-card label { display: block; font-size: 0.6rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-card span { font-size: 0.9rem; font-weight: 600; color: white; }

/* Recovery Timeline */
.timeline-container-v5 {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.timeline-container-v5 label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1.5rem;
}

.timeline-v5 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.timeline-v5::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-step {
    display: flex;
    gap: 1.2rem;
    position: relative;
}

.t-day {
    min-width: 50px;
    height: 30px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.t-content strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.t-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* --- Phase 5: History View --- */
.history-header { margin-bottom: 2rem; text-align: left; width: 100%; }
.history-header h2 { font-size: 2rem; font-family: 'Cinzel', serif; }

.history-list-v5 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.history-item-v5 {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 16px;
    text-align: left;
    transition: all 0.2s;
}

.history-item-v5:active { background: rgba(255,255,255,0.1); }

.h-date { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.h-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.h-species { font-size: 1.1rem; font-weight: 600; }
.h-status { font-size: 0.8rem; color: var(--primary); }
.h-status.critical { color: #FF4B4B; }
.h-footer { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

.empty-msg { opacity: 0.5; font-style: italic; padding: 2rem; }

/* --- Phase 7: Launch Polish & Perception --- */

/* Emotional Hero Section */
.result-hero-v7 {
    width: 100%;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 0 40px 40px;
    background: var(--glass);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
}

/* Hero Themes */
.theme-healthy {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.2) 0%, rgba(5, 26, 16, 1) 100%);
    border-bottom: 2px solid var(--primary);
}
.theme-healthy .success-ring-v5 { background: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }

.theme-warning {
    background: linear-gradient(180deg, rgba(255, 212, 0, 0.15) 0%, rgba(5, 26, 16, 1) 100%);
    border-bottom: 2px solid var(--warning);
}
.theme-warning .success-ring-v5 { background: var(--warning); box-shadow: 0 0 30px rgba(255, 212, 0, 0.4); border-radius: 12px; }
.theme-warning .success-ring-v5::after { content: '!'; }

.theme-danger {
    background: linear-gradient(180deg, rgba(255, 75, 75, 0.2) 0%, rgba(5, 26, 16, 1) 100%);
    border-bottom: 2px solid #FF4B4B;
}
.theme-danger .success-ring-v5 { background: #FF4B4B; box-shadow: 0 0 30px rgba(255, 75, 75, 0.5); border-radius: 8px; }
.theme-danger .success-ring-v5 { color: white; }

/* Polished Next Action Card */
.next-action-card-v7 {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    z-index: 5;
}

.next-action-card-v7 label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.next-action-card-v7 h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
}

/* Insight Banner Polishing */
.insight-banner-v6.trend-positive {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
}
.insight-banner-v6.trend-negative {
    background: rgba(255, 75, 75, 0.1);
    border-color: #FF4B4B;
    color: #FF4B4B;
}
.insight-banner-v6.trend-negative span { color: #FF4B4B; }

/* Premium Lock v7 */
.premium-lock-v7 {
    margin-top: 1.5rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-lock-v7::after {
    content: 'PREMIUM';
    position: absolute;
    top: 10px; right: -25px;
    background: #FFD700;
    color: black;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 30px;
    transform: rotate(45deg);
}

.btn-premium-v7 {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    color: black;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s;
}

.btn-premium-v7:active { transform: scale(0.95); }


/* --- Phase 6: Insight & Monetization --- */

/* Insight Banner */
.insight-banner-v6 {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    animation: slideInDown 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.trend-icon { font-size: 1.4rem; }
.insight-banner-v6 span { font-size: 0.95rem; font-weight: 600; color: var(--primary); }

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Confidence Warning */
.conf-warning-v6 {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 212, 0, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    color: var(--warning);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Grounded Evidence List */
.evidence-container-v6 {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.evidence-header label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }

.scientific-badge {
    font-size: 0.6rem;
    background: var(--secondary);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.evidence-list-v6 {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.evidence-item-v6 {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.e-marker { font-size: 0.85rem; color: var(--text-muted); }
.e-finding { font-size: 0.85rem; font-weight: 600; color: white; }

/* Premium Lock Overlay */
.premium-lock-v6 {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.premium-lock-v6 p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.btn-premium-small {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    color: black;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* --- Phase 8: Premium v8 Result UI --- */
.result-hero-v8 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
}

.ring-v8 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 0 30px var(--primary-glow);
    flex-shrink: 0;
}

.result-hero-v8.theme-danger .ring-v8 { background: #FF4B4B; box-shadow: 0 0 30px rgba(255, 75, 75, 0.6); }
.result-hero-v8.theme-warning .ring-v8 { background: var(--warning); box-shadow: 0 0 30px rgba(255, 212, 0, 0.6); }

.hero-text-v8 h2 { font-size: 1.8rem; margin-bottom: 4px; font-weight: 700; color: #fff; }
.hero-text-v8 small { font-size: 0.85rem; color: var(--text-muted); opacity: 0.8; }

.action-card-v8 {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid var(--primary-glow);
    padding: 1.8rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: left;
}

.action-card-v8 label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.8rem;
}

.action-card-v8 h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 500;
    color: #fff;
}

.core-grid-v8 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.core-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1rem;
    border-radius: 16px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.core-card label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.core-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.explanation-box-v8 {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: left;
    margin-bottom: 2.5rem;
}

.explanation-box-v8 label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.explanation-box-v8 p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.uncertainty-card-v8 {
    width: 100%;
    padding: 3rem 2rem;
    background: rgba(255, 212, 0, 0.05);
    border: 1px dashed var(--warning);
    border-radius: 24px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.uncertainty-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.uncertainty-card-v8 h3 { font-size: 1.5rem; color: var(--warning); margin-bottom: 1rem; }
.uncertainty-card-v8 p { color: var(--text-muted); line-height: 1.5; }

.btn-primary-v8 {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 30px var(--primary-glow);
    cursor: pointer;
    margin-bottom: 1rem;
}

.btn-text-v8 {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
}
