/* ==========================================================================
   THE MEWA - OUR APP SECTIONS (New & Revised Cards)
   Extracted from styles.css
   ========================================================================== */

/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-1: #f59e0b;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
    --gradient-4: #3b82f6;

    /* Functional Colors */
    --accent-buy: #10b981;
    --accent-sell: #f87171;
    --accent-primary: #3b82f6;

    /* Glow & Shadows */
    --glow-purple: rgba(139, 92, 246, 0.3);
    --glow-blue: rgba(59, 130, 246, 0.3);
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Ensure Dark Background Context */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

/* =========================================
   2. SHARED SECTION STYLES
   ========================================= */
.explainer-section,
.tabbed-reco-section {
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

/* Background Glow Effect */
.explainer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, var(--glow-purple) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, var(--glow-blue) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 3px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3)) border-box;
    color: #28282B;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(100deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
}

/* =========================================
   3. EXPLAINER CONTAINERS & ANNOTATIONS
   ========================================= */
.explainer-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 2;
}

/* Specific Layouts */
.section2-explainer {
    align-items: center;
    padding: 20px 0;
}

.section3-explainer {
    align-items: flex-start;
    padding: 20px 0;
}

/* Annotation Columns */
.explainer-annotations-left,
.explainer-annotations-right,
.section2-annotations,
.section3-annotations {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.explainer-annotations-left,
.section3-annotations.explainer-annotations-left {
    align-items: flex-end;
    padding-right: 80px;
}

.section2-annotations.explainer-annotations-left {
    align-items: flex-end;
    padding-right: 20px;
}

.explainer-annotations-right,
.section3-annotations.explainer-annotations-right {
    align-items: flex-start;
    padding-left: 80px;
}

.section2-annotations.explainer-annotations-right {
    align-items: flex-start;
    padding-left: 20px;
}

/* UPDATED: Broader container for Active Tab (Section 2) to fit text in fewer lines */
.section2-annotations {
    flex: 0 0 400px; /* Increased from 300px */
}

/* Widen the specific annotation boxes in the Active Tab */
.section2-annotations .annotation-item {
    max-width: 80%; /* Let it fill the new 450px container */
}

/* Keep Section 3 (Revised Tab) as is */
.section3-annotations {
    flex: 0 0 300px;
}

.section3-annotations {
    padding-top: 60px;
    gap: 1.5rem;
}

/* Annotation Items */
.annotation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

/* Right side items flow reverse */
.explainer-annotations-right .annotation-item,
.section3-annotations.explainer-annotations-right .annotation-item {
    flex-direction: row-reverse;
    text-align: right;
    transform: translateX(30px);
}

.annotation-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Annotation Numbers */
.annotation-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
}

/* Connector Lines (Small dashes from number) */
.annotation-number::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
}

.explainer-annotations-left .annotation-number::after {
    right: -16px;
}

.explainer-annotations-right .annotation-number::after {
    left: -16px;
    background: linear-gradient(-90deg, currentColor, transparent);
}

/* Number Colors */
.annotation-number.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gradient-1);
}

.annotation-number.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--gradient-4);
}

.annotation-number.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-buy);
}

.annotation-number.red {
    background: rgba(248, 113, 113, 0.2);
    color: var(--accent-sell);
}

.annotation-number.pink {
    background: rgba(236, 72, 153, 0.2);
    color: var(--gradient-2);
}

.annotation-number.purple {
    background: rgba(139, 92, 246, 0.2);
    color: var(--gradient-3);
}

.annotation-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.annotation-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   4. SVG CONNECTORS & ZONES (UPDATED)
   ========================================= */
.connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- THREAD STYLES (New) --- */

/* 1. Default State: Faint, thin "thread" */
.connector-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    /* Very faint gray by default */
    stroke-width: 1px;
    /* Thin like a thread */
    transition: all 0.3s ease;
}

/* Ensure dots are also faint by default */
circle.connector-path {
    fill: rgba(255, 255, 255, 0.08);
    stroke: none;
}

/* 2. Override Colors: Ignore color classes by default so they stay faint */
.connector-path.orange,
.connector-path.purple,
.connector-path.blue,
.connector-path.pink,
.connector-path.green,
.connector-path.red {
    stroke: rgba(255, 255, 255, 0.08);
}

circle.connector-path.orange,
circle.connector-path.purple,
circle.connector-path.blue,
circle.connector-path.pink,
circle.connector-path.green,
circle.connector-path.red {
    fill: rgba(255, 255, 255, 0.08);
}

/* 3. Hover State: Only show color/glow when 'highlighted' class is added */
.connector-path.highlighted {
    stroke-width: 2px;
    opacity: 1;
    filter: drop-shadow(0 0 5px currentColor);
}

/* Re-apply colors ONLY when highlighted */
.connector-path.highlighted.orange {
    stroke: #f59e0b;
    color: #f59e0b;
}

circle.connector-path.highlighted.orange {
    fill: #f59e0b;
}

.connector-path.highlighted.purple {
    stroke: #8b5cf6;
    color: #8b5cf6;
}

circle.connector-path.highlighted.purple {
    fill: #8b5cf6;
}

.connector-path.highlighted.blue {
    stroke: #3b82f6;
    color: #3b82f6;
}

circle.connector-path.highlighted.blue {
    fill: #3b82f6;
}

.connector-path.highlighted.pink {
    stroke: #ec4899;
    color: #ec4899;
}

circle.connector-path.highlighted.pink {
    fill: #ec4899;
}

.connector-path.highlighted.green {
    stroke: #10b981;
    color: #10b981;
}

circle.connector-path.highlighted.green {
    fill: #10b981;
}

.connector-path.highlighted.red {
    stroke: #ef4444;
    color: #ef4444;
}

circle.connector-path.highlighted.red {
    fill: #ef4444;
}


/* --- ZONE STYLES (Kept from your original file) --- */

/* Highlight Zones (Target Areas) */
.highlight-zone {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 6px 8px;
    margin: -6px -8px;
    cursor: default;
}

.highlight-zone.highlighted {
    background: rgba(255, 255, 255, 0.08);
}

.highlight-zone.faded {
    opacity: 0.4;
}

.highlight-zone.live-zone {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    margin: 0 0 0 4px;
    vertical-align: middle;
}

.highlight-zone-inline {
    display: inline-flex;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-items: center;
}

.highlight-zone-inline.highlighted {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Hover State Logic */
.annotation-item.faded {
    opacity: 0.3;
}

.annotation-item.highlighted .annotation-content h4 {
    color: #ffffff;
}

/* =========================================
   ARROW HEAD STYLES
   ========================================= */

/* 1. Default State: Faint transparent fill (Same as lines) */
path.connector-path.arrow-head {
    fill: rgba(255, 255, 255, 0.08); /* Faint Grey */
    stroke: none; /* No outline */
    transition: all 0.3s ease;
}

/* 2. Hover State: Fill with color when highlighted */
path.connector-path.arrow-head.highlighted.orange { fill: #f59e0b; }
path.connector-path.arrow-head.highlighted.purple { fill: #8b5cf6; }
path.connector-path.arrow-head.highlighted.blue   { fill: #3b82f6; }
path.connector-path.arrow-head.highlighted.pink   { fill: #ec4899; }
path.connector-path.arrow-head.highlighted.green  { fill: #10b981; }
path.connector-path.arrow-head.highlighted.red    { fill: #ef4444; }

/* =========================================
   5. CARD DESIGN (Used in both sections)
   ========================================= */
.explainer-card-wrapper,
.reco-card-demo-container {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.reco-card-demo-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Base Card Style */
.explainer-card,
.reco-card,
.revision-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    width: 380px;
    /* Base width for Explainer Card */
    position: relative;
    /* Deep shadow for floating effect */
    box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.5), 0 0 100px rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

/* Reco/Revision Cards have variable width via container */
.reco-card,
.revision-card {
    width: 100%;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px var(--shadow);
}

.reco-card:hover,
.revision-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

/* Gradient Border Effect */
.explainer-card::before,
.reco-card::before,
.revision-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    border-radius: 24px;
    /* Matches explainer-card radius */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.reco-card::before,
.revision-card::before {
    border-radius: 12px;
    /* Matches reco-card radius */
}

/* --- Card Content Styles --- */
.exp-header,
.card-header-custom,
.revision-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-header-custom,
.revision-header {
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.exp-script-name,
.stock-name,
.revision-script-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.exp-live-price,
.live-price,
.revision-live-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-buy);
    /* Green price for active/revised */
}

.exp-live-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    /* Grey price for explainer */
    margin-top: 4px;
}

/* Live Tag */
.exp-live-tag,
.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    color: var(--accent-sell);
    letter-spacing: 0.5px;
}

.exp-live-dot,
.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    /* or accent-sell */
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Action Badge */
.exp-action-badge,
.action-badge {
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-buy);
}

.action-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 6px;
}

.action-badge.sell {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-sell);
}

/* Buying Zone */
.exp-buying-zone,
.buying-zone,
.revision-buying-info {
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.buying-zone,
.revision-buying-info {
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.exp-zone-label,
.buying-zone-label,
.revision-buying-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.exp-zone-value,
.buying-zone-value,
.revision-buying-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.buying-zone-value,
.revision-buying-value {
    font-size: 1.5rem;
}

/* Detail Rows */
.exp-detail,
.card-detail,
.revision-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border-radius: 14px;
    margin-bottom: 10px;
}

.card-detail,
.revision-price-row {
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 0;
}

.revision-price-row {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.card-detail.bg-transparent {
    background: transparent;
    padding: 2rem 0 0.5rem;
    margin-top: 0;
}

.exp-detail-label,
.detail-label,
.revision-price-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.detail-label,
.revision-price-label {
    font-size: 0.8rem;
    gap: 0.5rem;
    text-transform: uppercase;
}

.exp-detail-value,
.detail-value,
.revision-price-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.revision-price-value {
    font-size: 1rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* =========================================
   FIX FOR REVISED HIGHLIGHT ZONES
   ========================================= */

/* 1. Update price-combo to align items to the TOP */
.price-combo {
    display: flex;
    align-items: flex-start; /* Ensures Old Price aligns with the top (New Price), not the middle */
    justify-content: flex-end;
    gap: 12px;
}

/* 2. Create a specific wrapper for the Price + Label group */
.revised-group {
    /* Override standard highlight-zone-inline flex settings */
    display: inline-flex !important;
    flex-direction: column !important; /* Stack vertical */
    align-items: flex-end !important;  /* Align right */
    justify-content: center;
    
    /* Adjust padding for the larger box */
    padding: 6px 8px !important;
}

/* 3. Style the price text inside the group */
.revised-group .new-price-text {
    font-weight: 700;
    line-height: 1;
}

/* 4. Style the label inside the group */
.revised-group .revised-label-text {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-top: 4px;
    line-height: 1;
}

.exp-detail-value.green {
    color: var(--accent-buy);
}

.exp-detail-value.red {
    color: var(--accent-sell);
}

/* Footer Elements */
.recommended-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.research-report {
    font-size: 0.75rem;
    margin-left: auto;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.research-report:hover {
    color: var(--accent-primary);
}

/* =========================================
   6. SECTION 2 SPECIFICS (TABS & REVISED)
   ========================================= */
.recommendation-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.recommendation-tabs {
    display: flex;
    gap: 60px;
    align-items: flex-end;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 12px;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

.revised-tab-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.past-performance-zone {
    display: inline-block;
}

.past-performance-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.85;
    cursor: default;
}

.tab-content,
.reco-tab-content {
    display: none;
}

.tab-content.active,
.reco-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View Revised Button */
.view-revised-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
}

.view-revised-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* =========================================
   FIXED STAMP STYLES (Restores the Stamp & Fixes Hover)
   ========================================= */

/* 1. TARGET THE SPECIFIC ZONE WRAPPER */
.highlight-zone[data-num="s2-1"] {
    position: absolute;
    top: 58%;
    left: 5%;
    width: 90.1%;
    height: 120px;
    transform: translateY(-50%);
    z-index: 5;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
}

.highlight-zone[data-num="s2-1_2"] {
    position: absolute;
    top: 58%;
    left: 5%;
    width: 90.1%;
    height: 120px;
    transform: translateY(-50%);
    z-index: 5;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
}

/* 2. STYLE THE INNER STAMP */
.status-stamp {
    /* Fill the wrapper completely */
    position: relative;
    width: 100%;
    height: 100%;
    top: auto;
    left: auto;
    transform: none;
    
    /* Flexbox for centering text */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Visual Styles */
    text-align: center;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    
    /* Background & Effects */
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 6px, transparent 6px, transparent 12px);
    backdrop-filter: blur(1px);
    border-radius: 5px; /* Ensure background follows radius */
}

/* Text Color */
.status-stamp.revised-stamp {
    color: var(--accent-primary);
}

/* Revision Specifics */
.strikethrough {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.6;
}

.history-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.history-toggle-btn:hover {
    background: var(--border-color);
}

/* History Timeline */
.revision-history-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.revision-history-section.expanded {
    max-height: 1000px;
}

.revision-timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.revision-timeline::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.revision-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.revision-item::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-card);
}

.revision-item.green::before {
    background: var(--accent-buy);
}

.revision-item.red::before {
    background: var(--accent-sell);
}

.revision-label {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.revision-label.green {
    color: var(--accent-buy);
}

.revision-label.red {
    color: var(--accent-sell);
}

.revision-timestamp {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-align: right;
    line-height: 1.2;
}

.revision-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.revision-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.revision-row-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.revision-row-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* =========================================
   7. MOBILE TOOLTIPS (Popups)
   ========================================= */
.mobile-explanation {
    display: none;
}

/* Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.3;
    }
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* =========================================
   8. RESPONSIVE DESIGN (Bottom of File)
   ========================================= */
@media (max-width: 1199px) {
    .connector-svg {
        display: none !important;
    }

    .explainer-container {
        gap: 2rem;
    }
}

@media (max-width: 991px) {

    /* Hide Desktop Annotations */
    .explainer-annotations-left,
    .explainer-annotations-right,
    .section2-annotations,
    .section3-annotations {
        display: none !important;
    }

    /* Layouts */
    .explainer-container,
    .section2-explainer,
    .section3-explainer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding-top: 20px;
    }

    .explainer-card-wrapper,
    .reco-card-demo-container {
        width: 100%;
        max-width: 400px;
        margin: 0;
    }

    /* Tabs */
    .tabbed-reco-section {
        padding: 80px 0;
    }

    .recommendation-tabs {
        gap: 20px;
        width: 100%;
        justify-content: space-between;
    }

    .revised-tab-wrapper {
        align-items: flex-end;
    }

    /* Interactions */
    .highlight-zone,
    .highlight-zone-inline {
        cursor: pointer;
        padding: 8px;
        margin: 4px -8px;
    }

    .highlight-zone-inline {
        margin: 0;
        padding: 2px 4px;
        display: inline-flex;
    }

    .highlight-zone.active,
    .highlight-zone-inline.active {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Tooltip Styles */
    .mobile-explanation {
        display: block;
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        min-width: 220px;
        max-width: 280px;
        background: #1a1a2e;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 100;
    }

    .mobile-explanation::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: #1a1a2e;
    }

    .mobile-explanation.expanded {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }

    .mobile-explanation p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
        margin: 0;
        text-align: center;
    }

    /* Specific Tooltip Positions */
    .highlight-zone[data-num="5"] .mobile-explanation,
    .highlight-zone[data-num="6"] .mobile-explanation,
    .highlight-zone[data-num="s3-6"] .mobile-explanation {
        bottom: auto;
        top: calc(100% + 10px);
    }

    .highlight-zone[data-num="5"] .mobile-explanation::after,
    .highlight-zone[data-num="6"] .mobile-explanation::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: #1a1a2e;
    }

    .past-performance-zone .mobile-explanation {
        top: 100%;
        bottom: auto;
    }
}

@media (max-width: 768px) {
    .recommendation-tabs-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .recommendation-tabs {
        width: auto;
        gap: 30px;
        padding-bottom: 5px;
    }

    .reco-card-demo-container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .explainer-card {
        padding: 20px;
        width: 100%;
    }

    .exp-script-name {
        font-size: 1.3rem;
    }

    .exp-zone-value {
        font-size: 1.5rem;
    }
}


/* =========================================
   SIMPLE APP HERO SECTION
   ========================================= */
.app-hero-section {
    min-height: 80vh;
    padding: 150px 0 70px; /* Spacing for fixed navbar */
    background: var(--bg-secondary);
    position: relative;
}

.app-page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.app-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Store Buttons */
.store-link img {
    height: 50px; /* Standard button height */
    width: auto;
    transition: transform 0.2s ease;
}

.store-link:hover img {
    transform: translateY(-3px);
}

/* Image Styling */
.app-hero-img {
    max-height: 530px; /* Prevents image from getting too huge on large screens */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .app-hero-section {
        padding: 140px 0 60px;
        text-align: center;
    }

    .app-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .d-flex.gap-3 {
        justify-content: center;
    }
}


/* =========================================================
   NOTIFICATION LINE EFFECT (Left-to-Right Slide)
   ========================================================= */

/* 1. Base Button Styling */
.tab-btn:not(.active) {
    position: relative;
    opacity: 0.7;        /* Slightly dimmed text to show it's inactive */
    overflow: hidden;    /* Key: keeps the sliding line inside the button boundaries */
}

/* 2. Clear previous bell icons/dots if any */
.tab-btn:not(.active)::before {
    display: none;
}

/* 3. The Sliding Line Animation */
.tab-btn:not(.active)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px; 
    background: linear-gradient(90deg, transparent, var(--gradient-1), transparent);
    
    transform: translateX(-100%);
    
    /* CHANGE: Reduced to 2s for a faster animation cycle */
    animation: lineSlideRight 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 4. The Animation Keyframes */
@keyframes lineSlideRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1; 
    }
    /* CHANGE: 80% of 2s = 1.6s travel time */
    80% {
        transform: translateX(100%);
        opacity: 1;
    }
    81% {
        opacity: 0; /* Hides immediately */
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .tab-btn:not(.active)::after {
        height: 2px; /* Slightly thinner on mobile */
        bottom: -1px; /* Align perfectly with bottom border */
    }
}

/* =========================================================
   EXACT REPLICA CARDS STYLING (Pixel Perfect Match)
   ========================================================= */

/* Base Card Overrides */
.reco-card.exact-card {
    background-color: #121212 !important; /* Dark background per image */
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid transparent; /* Prepare for theme borders */
    box-shadow: none !important;
}

/* Remove existing gradient pseudo-elements from main CSS to get clean lines */
.reco-card.exact-card::before,
.reco-card.exact-card::after {
    display: none !important; 
}

/* THEME: Loss (Red) */
.reco-card.exact-card.loss-theme {
    border: 1px solid #ef4444; /* Solid Red Border */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1) !important;
}

/* THEME: Profit (Green) */
.reco-card.exact-card.profit-theme {
    border: 1px solid #10b981; /* Solid Green Border */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1) !important;
}

/* Header Text */
.reco-card.exact-card .stock-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Status Box (The main box in the middle) */
.reco-card.exact-card .status-box {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: transparent;
}

/* Loss Theme Status Box */
.reco-card.exact-card.loss-theme .status-box {
    border: 1px solid #ef4444;
}
.reco-card.exact-card.loss-theme .status-label,
.reco-card.exact-card.loss-theme .status-value {
    color: #ef4444; /* Red Text */
}

/* Profit Theme Status Box */
.reco-card.exact-card.profit-theme .status-box {
    border: 1px solid #10b981;
}
.reco-card.exact-card.profit-theme .status-label,
.reco-card.exact-card.profit-theme .status-value {
    color: #10b981; /* Green Text */
}

/* Status Box Typography */
.reco-card.exact-card .status-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.reco-card.exact-card .status-value {
    font-size: 1.75rem;
    font-weight: 800;
}

/* Show Less/More Button */
.reco-card.exact-card .show-more-btn {
    color: #3b82f6 !important; /* Specific blue from image */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* Styling for the Show More toggle when it acts as a zone */
.show-more-btn.highlight-zone-inline {
    display: block;          /* changed from inline-block */
    width: fit-content;      /* Shrinks to fit text size */
    padding: 6px 12px;
    border-radius: 20px;
    margin: 1rem auto;       /* 'auto' left/right centers it now */
    transition: all 0.3s ease;
}

/* Ensure lines connect cleanly to the button text area */
.show-more-btn.highlight-zone-inline.highlighted {
    background: rgba(59, 130, 246, 0.1); /* Subtle blue background */
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
    color: #ffffff !important;
}

/* Details Rows */
.reco-card.exact-card .card-detail {
    background: transparent !important; /* Transparent background per image */
    padding: 0.75rem 0;
    border-bottom: none;
    align-items: flex-start; /* Align top for multiline dates */
}

/* Labels (Left Side) */
.reco-card.exact-card .detail-label {
    color: #9ca3af; /* Muted grey */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.reco-card.exact-card .detail-label i {
    font-size: 0.9rem;
    margin-right: 6px;
}

/* Values (Right Side) */
.reco-card.exact-card .detail-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Footer Specifics */
.reco-card.exact-card .footer-row {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle separator */
    align-items: center;
}

.reco-card.exact-card .research-link {
    cursor: pointer;
    transition: color 0.2s;
}
.reco-card.exact-card .research-link:hover {
    color: #ffffff;
}
.reco-card.exact-card .research-link i {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* Collapsible Logic specific to exact card */
.exact-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.exact-details.expanded {
    max-height: 1000px; /* Arbitrary large height */
}


/* =========================================================
   EXACT REPLICA CARDS - WITH GLOWING EFFECT
   ========================================================= */

/* Shared Animation Keyframes (Ensure these exist in your CSS) */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Base Exact Card Setup */
.reco-card.exact-card {
    background-color: #121212; 
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden; /* Required to keep the inner glow contained */
    transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   1. STOP LOSS CARD (RED GLOW + PULSE)
   --------------------------------------------------------- */
.reco-card.exact-card.loss-theme {
    /* Exact Red Border & Strong Glow from Source [cite: 84] */
    border: 2px solid #f87171; 
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.25);
    
    /* Subtle Red Background Gradient [cite: 83] */
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.15) 0%,
            rgba(248, 113, 113, 0.08) 50%,
            #121212 100%);
}

/* The Pulsing Red Glow Animation [cite: 86] */
.reco-card.exact-card.loss-theme::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(239, 68, 68, 0.08) 0%,
            transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------------
   2. TARGET HIT CARD (GREEN GLOW + SHIMMER)
   --------------------------------------------------------- */
.reco-card.exact-card.profit-theme {
    /* Exact Green Border & Strong Glow from Source [cite: 78] */
    border: 2px solid #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25);

    /* Subtle Green Background Gradient [cite: 77] */
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.15) 0%,
            rgba(52, 211, 153, 0.08) 50%,
            #121212 100%);
}

/* The Shimmering Green Sweep Animation [cite: 81] */
.reco-card.exact-card.profit-theme::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(16, 185, 129, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------------
   ENSURE CONTENT STAYS ABOVE GLOW
   --------------------------------------------------------- */
.reco-card.exact-card > div,
.reco-card.exact-card > p {
    position: relative;
    z-index: 1; /* Puts text above the ::after animation */
}

/* Status Box Colors Update to Match Glow */
.reco-card.exact-card.loss-theme .status-box {
    border: 1px solid #f87171;
    background: rgba(239, 68, 68, 0.05); /* Slight tint inside box */
}

.reco-card.exact-card.profit-theme .status-box {
    border: 1px solid #10b981;
    background: rgba(16, 185, 129, 0.05); /* Slight tint inside box */
}

/* =========================================================
   3-COLUMN LAYOUT & INFO CARDS
   ========================================================= */

/* Center Column Stack */
.info-card-stack {
    position: relative;
    perspective: 1000px;
}

/* Info Card - Default Hidden State */
.info-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Active State for Info Card */
.info-card.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
}

/* Default Placeholder State */
.info-card.default-state {
    border: 1px dashed var(--border-color);
    background: transparent;
    box-shadow: none;
}
.info-card.default-state h4 { opacity: 0.7; }
.info-card.default-state p { opacity: 0.5; }

/* Typography inside Info Card */
.info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}
.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Icons */
.info-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-primary);
}
/* Split Background for the Trade Outcome Flag */
/* 1. The Circular Box (Lighter Glass Effect) */
.annotation-number.green-red-split {
    /* Significantly lighter transparency for better visibility */
    background: rgba(255, 255, 255, 0.12); 
    
    /* Stronger border to define the edges */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Soft glow to make it "float" */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05);
    
    backdrop-filter: blur(5px); /* Blurs the background behind it (if supported) */
}

/* 2. The Flag Icon (Keep the split gradient) */
.annotation-number.green-red-split i {
    background: linear-gradient(to right, #10b981 50%, #ef4444 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transform: scale(1.1);
}
.info-icon.blue { color: var(--accent-primary); background: rgba(59, 130, 246, 0.1); }
.info-icon.purple { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.info-icon.orange { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.info-icon.pink { color: #ec4899; background: rgba(236, 72, 153, 0.1); }

/* =========================================================
   CRUCIAL: THE SPLIT BORDER (Green Left / Red Right)
   ========================================================= */
.info-card.split-border-card {
    border: 3px solid transparent; /* Essential for border-image */
    border-image: linear-gradient(to right, #10b981 50%, #ef4444 50%) 1;
    /* Fallback for radius with border-image (clip-path or nested div approach usually needed, 
       but for simplicity we use box-shadow to fake rounded corners or just square corners) */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.2);
}

.info-icon.split-icon {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2) 50%, rgba(239, 68, 68, 0.2) 50%);
    color: #ffffff;
}

/* =========================================================
   INTERACTION STATES
   ========================================================= */

/* Dimming Effect (Focus Mode) */
/* When section has 'has-interaction' class, fade everything that is NOT highlighted */
.tri-col-section.has-interaction .reco-card {
    opacity: 1 !important; /* Fade the cards slightly */
}

/* But keep the specific highlighted rows visible */
.tri-col-section.has-interaction .card-detail.highlighted,
.tri-col-section.has-interaction .status-box.highlighted,
.tri-col-section.has-interaction .detail-value.highlighted {
    position: relative;
    z-index: 20;
    background: var(--bg-secondary); /* Ensure readability */
    box-shadow: 0 0 0 2px var(--accent-primary); /* Highlight border */
    border-radius: 6px;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Specific Highlight Colors */
.tri-col-section.has-interaction .status-box[data-hover-group="profit-loss-main"].highlighted {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255,255,255,0.1); 
}

/* Connector Lines Styles */
.dual-connector {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2px;
    filter: drop-shadow(0 0 3px var(--accent-primary));
    opacity: 0;
    transition: opacity 0.2s;
}
.dual-connector.visible {
    opacity: 1;
}

/* Dots */
.connector-dot {
    fill: var(--accent-primary);
}

/* =========================================
   LIGHT SECTION OVERRIDES (TESTING)
   ========================================= */

/* Section 2 & Section 5 Light Background */
.bg-light-section {
    background-color: #f8f9fa !important; /* Light Gray */
    color: #1a1a1a !important;
}

/* Adjusting Background Glow for light sections */
.bg-light-section .explainer-bg {
    opacity: 0.1; /* Reduce glow intensity on light bg */
}

/* Text Contrast for Light Sections */
.bg-light-section .section-title,
.bg-light-section .section-subtitle,
.bg-light-section .annotation-content h4,
.bg-light-section .annotation-content p {
    color: #28282b !important;
}

/* Annotation Number Contrast */
.bg-light-section .annotation-number {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Card Shadow adjustment for light background */
.bg-light-section .explainer-card, 
.bg-light-section .reco-card.exact-card {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
}

/* Outcome Section (Section 5) specific fixes */
.bg-light-section .info-card h4,
.bg-light-section .info-card p {
    color: #28282b !important;
}

.bg-light-section .info-card.default-state {
    border-color: rgba(0,0,0,0.1);
}

/* Temporary fix for line visibility on light sections */
.bg-light-section .connector-path:not(.highlighted) {
    stroke: rgba(0, 0, 0, 0.15) !important; /* Darker thread color */
}


/* --- SUBTLE DIMMING (Matches Section 2 & 3) --- */
.tri-col-section.has-interaction .highlight-zone.faded,
.tri-col-section.has-interaction .highlight-zone-inline.faded,
.tri-col-section.has-interaction .annotation-item.faded,
.tri-col-section.has-interaction .research-link.faded {   /* <--- Added this line */
    opacity: 0.1 !important; 
    filter: none; 
    transition: all 0.3s ease;
}

/* --- CENTER COLUMN LAYOUT --- */
.explainer-annotations-center.top-aligned {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    padding-top: 10px;
}

.annotation-item.center-mode {
    flex-direction: column;
    text-align: center;
    transform: none !important;
    opacity: 1 !important;
}

.annotation-item.center-mode .annotation-number::after {
    display: none; /* Remove side dashes */
}

/* --- CENTER COLLAPSIBLE LOGIC --- */
.center-collapsible-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.center-collapsible-wrapper.expanded {
    max-height: 1000px; /* Large enough to show all */
    opacity: 1;
}

/* --- PERSISTENT SVG LINES (Visible Grey) --- */
#dualConnectorSvg .dual-connector {
    fill: none;
    stroke-width: 1.5px;
    stroke: rgba(0, 0, 0, 0.07) !important; /* Visible Grey */
    opacity: 1 !important;
    transition: all 0.3s ease;
}

#dualConnectorSvg .arrow-head {
    fill: rgba(0, 0, 0, 0.08) !important; /* Visible Grey */
    stroke: none;
    transition: all 0.3s ease;
}

/* --- HIGHLIGHTED STATE (Higher Specificity) --- */

/* 1. General Highlight Styles */
#dualConnectorSvg .dual-connector.highlighted {
    stroke-width: 2.5px;
    z-index: 10;
    opacity: 0.7 !important;
    filter: drop-shadow(0 0 5px currentColor);
}

#dualConnectorSvg .arrow-head.highlighted {
    opacity: 0.8 !important;
    filter: drop-shadow(0 0 5px currentColor);
}

/* 2. PROFIT (GREEN) - Forces Green over Grey */
#dualConnectorSvg .dual-connector.highlighted.line-profit { 
    stroke: #10b981 !important; 
    color: #10b981; /* For shadow */
}
#dualConnectorSvg .arrow-head.highlighted.line-profit { 
    fill: #10b981 !important; 
    color: #10b981; 
}

/* 3. LOSS (RED) - Forces Red over Grey */
#dualConnectorSvg .dual-connector.highlighted.line-loss { 
    stroke: #ef4444 !important; 
    color: #ef4444; /* For shadow */
}
#dualConnectorSvg .arrow-head.highlighted.line-loss { 
    fill: #ef4444 !important; 
    color: #ef4444; 
}