/* Styles extracted from market-watch.xyz landing page */
body {
    display: block;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 10rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: -4rem;
    /* Overlap effect */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Cards & Content */
.report-card,
.content-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Navigation Grid */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    color: #2563eb;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

.badge-green {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-red {
    background: #fef2f2;
    color: #dc2626;
}

.badge-purple {
    background: #faf5ff;
    color: #9333ea;
}

/* Typography in Content */
h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Didactic Boxes */
.didactic-box,
.pedagogy-box,
.alert-box {
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.pedagogy-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.alert-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.didactic-box {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.didactic-box h4,
.pedagogy-box h4,
.alert-box h4 {
    color: #dc2626 !important;
    margin-top: 0;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Metric Grid & Cards */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.metric-change.up { color: #10b981; }
.metric-change.down { color: #ef4444; }
.metric-change.neutral { color: #64748b; }

/* =====================================================
   RESPONSIVE DESIGN - TABLET (768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Base containers */
    .report-card,
    .content-card {
        padding: 1.25rem !important;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1rem !important;
    }

    /* Hero section */
    .hero-section {
        padding: 2.5rem 1rem 5rem 1rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 0.5rem;
    }

    /* Navigation */
    .nav-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .nav-item {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Metric cards */
    .metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .metric-card {
        padding: 1rem !important;
    }

    .metric-value {
        font-size: 1.25rem !important;
    }

    .metric-label {
        font-size: 0.7rem !important;
    }

    .metric-change {
        font-size: 0.65rem !important;
    }

    /* Data tables - horizontal scroll */
    .data-table {
        font-size: 0.8rem !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.75rem !important;
    }

    /* Charts */
    .chart-container {
        padding: 1rem !important;
    }

    .treemap-container,
    .sankey-container,
    .radar-container {
        height: 280px !important;
    }

    .allocation-donut {
        height: 300px !important;
    }

    /* Typography */
    h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 0.95rem !important;
    }

    p, li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* Alert boxes */
    .alert-box,
    .didactic-box,
    .pedagogy-box,
    .geo-alert {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .alert-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    /* Risk matrix */
    .risk-matrix {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .risk-item {
        padding: 1rem !important;
    }

    /* Football field */
    .football-field {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .field-row {
        min-width: 500px !important;
    }

    /* Hide mobile class */
    .hide-mobile {
        display: none !important;
    }

    /* Calendar header hide on tablet/mobile */
    .calendar-days-header {
        display: none !important;
    }

    /* Calendar grid as list */
    .calendar-days-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .calendar-days-grid > div {
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 1rem !important;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE (480px)
   ===================================================== */
@media (max-width: 480px) {
    /* ===== RESET GLOBAL ===== */
    body {
        background: #ffffff !important;
    }

    /* ===== CONTAINERS ===== */
    .report-card,
    .content-card {
        padding: 0.75rem !important;
        border-radius: 0 !important;
        margin-bottom: 0.5rem !important;
        box-shadow: none !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .container {
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }

    .chart-container {
        padding: 0.5rem !important;
        border-radius: 0 !important;
        margin: 0.5rem 0 !important;
    }

    /* ===== HERO ===== */
    .hero-section {
        padding: 1.5rem 0.5rem 2rem 0.5rem !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    .hero-title {
        font-size: 1.3rem !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    /* ===== NAVIGATION ===== */
    .nav-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.35rem !important;
        margin-bottom: 1rem !important;
        margin-top: -1rem !important;
    }

    .nav-item {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
    }

    /* ===== ALERT BANNER ===== */
    .alert-banner {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 8px !important;
    }

    /* ===== METRIC CARDS ===== */
    .metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.35rem !important;
    }

    .metric-card {
        padding: 0.5rem !important;
        border-radius: 8px !important;
    }

    .metric-value {
        font-size: 1rem !important;
    }

    .metric-label {
        font-size: 0.6rem !important;
    }

    .metric-change {
        font-size: 0.55rem !important;
    }

    /* ===== TYPOGRAPHY ===== */
    h2 {
        font-size: 1rem !important;
        margin-top: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    h3 {
        font-size: 0.9rem !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    h4, h5 {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.35rem !important;
    }

    p, li {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.5 !important;
    }

    /* Preserve white text on dark backgrounds */
    [style*="background:#0f172a"] p,
    [style*="background: #0f172a"] p,
    [style*="background:#1e1e1e"] p,
    [style*="background: #1e1e1e"] p,
    [style*="color:white"] p,
    [style*="color: white"] p {
        color: white !important;
    }

    /* ===== ALL TABLES - RESPONSIVE ===== */
    .data-table,
    table {
        display: table !important;
        width: 100% !important;
        font-size: 0.7rem !important;
        border-radius: 0 !important;
        margin: 0.5rem 0 !important;
        table-layout: fixed !important;
    }

    .data-table th,
    .data-table td,
    table th,
    table td {
        padding: 0.35rem 0.5rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Tables inside styled divs */
    table[style],
    div[style] > table {
        font-size: 0.7rem !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    /* ===== CALENDRIER ===== */
    .calendar-days-header,
    .calendar-days-header[style],
    div.calendar-days-header,
    .hide-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .calendar-days-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }

    .calendar-days-grid > div {
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 0.75rem !important;
    }

    /* ===== FOOTBALL FIELD - SCROLL ===== */
    .football-field {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0.5rem -0.5rem !important;
        padding: 0.75rem !important;
        width: calc(100% + 1rem) !important;
    }

    .field-row {
        min-width: 280px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .field-label {
        font-size: 0.65rem !important;
        min-width: 70px !important;
        width: 70px !important;
        flex-shrink: 0 !important;
    }

    .field-bar-container {
        flex: 1 !important;
        min-width: 150px !important;
    }

    .field-bar {
        height: 20px !important;
        font-size: 0.6rem !important;
    }

    /* ===== CHARTS ===== */
    .treemap-container,
    .sankey-container,
    .radar-container {
        height: 200px !important;
    }

    .allocation-donut {
        height: 220px !important;
    }

    /* ===== ALERT/DIDACTIC BOXES ===== */
    .alert-box,
    .didactic-box,
    .pedagogy-box,
    .geo-alert {
        padding: 0.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
    }

    /* ===== RISK MATRIX ===== */
    .risk-matrix {
        grid-template-columns: 1fr !important;
    }

    .risk-item {
        padding: 0.5rem !important;
        border-radius: 8px !important;
    }

    .risk-item h4 {
        font-size: 0.8rem !important;
    }

    .risk-item p {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }

    /* ===== BADGE ===== */
    .badge {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.6rem !important;
    }

    /* ===== FORCE INLINE STYLES ===== */

    /* All grids -> single column */
    [style*="grid-template-columns"],
    [style*="display:grid"],
    [style*="display: grid"] {
        display: block !important;
    }

    /* But keep calendar-days-grid as flex column */
    .calendar-days-grid[style] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* All flex -> wrap */
    [style*="display:flex"],
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Reduce inline paddings */
    [style*="padding:1.5rem"],
    [style*="padding: 1.5rem"],
    [style*="padding:2rem"],
    [style*="padding: 2rem"] {
        padding: 0.75rem !important;
    }

    [style*="padding:1.25rem"],
    [style*="padding: 1.25rem"],
    [style*="padding:1rem"],
    [style*="padding: 1rem"] {
        padding: 0.5rem !important;
    }

    /* Reduce inline margins */
    [style*="margin:1.5rem"],
    [style*="margin: 1.5rem"],
    [style*="margin:2rem"],
    [style*="margin: 2rem"] {
        margin: 0.5rem 0 !important;
    }

    [style*="margin:1rem"],
    [style*="margin: 1rem"] {
        margin: 0.35rem 0 !important;
    }

    /* Reduce inline gaps */
    [style*="gap:1.5rem"],
    [style*="gap: 1.5rem"],
    [style*="gap:1rem"],
    [style*="gap: 1rem"] {
        gap: 0.5rem !important;
    }

    /* Reduce border-radius */
    [style*="border-radius:12px"],
    [style*="border-radius: 12px"],
    [style*="border-radius:16px"],
    [style*="border-radius: 16px"],
    [style*="border-radius:24px"],
    [style*="border-radius: 24px"] {
        border-radius: 8px !important;
    }

    /* Theme badges smaller */
    [style*="border-radius:20px"] {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 10px !important;
    }

    /* Inline font sizes */
    [style*="font-size:0.9rem"],
    [style*="font-size: 0.9rem"] {
        font-size: 0.75rem !important;
    }

    [style*="font-size:1rem"],
    [style*="font-size: 1rem"],
    [style*="font-size:1.1rem"],
    [style*="font-size: 1.1rem"] {
        font-size: 0.8rem !important;
    }

    [style*="font-size:1.25rem"],
    [style*="font-size: 1.25rem"] {
        font-size: 0.9rem !important;
    }

    /* ===== SPECIFIC SECTIONS ===== */

    /* Regime sectors grid */
    div[style*="display:grid"][style*="minmax(200px"] > div,
    div[style*="display: grid"][style*="minmax(200px"] > div,
    div[style*="display:grid"][style*="minmax(280px"] > div,
    div[style*="display: grid"][style*="minmax(280px"] > div,
    div[style*="display:grid"][style*="minmax(300px"] > div,
    div[style*="display: grid"][style*="minmax(300px"] > div {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    /* Leaders/Laggards boxes */
    div[style*="background:#f0fdf4"],
    div[style*="background: #f0fdf4"],
    div[style*="background:#fef2f2"],
    div[style*="background: #fef2f2"] {
        padding: 0.75rem !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }

    /* Info boxes with border */
    div[style*="border:1px solid"],
    div[style*="border: 1px solid"] {
        padding: 0.5rem !important;
        border-radius: 8px !important;
        margin: 0.5rem 0 !important;
    }

    /* Metric-like inline boxes */
    div[style*="text-align:center"][style*="padding"] {
        padding: 0.5rem !important;
    }

    /* ===== HIDE ON MOBILE ===== */
    .hide-mobile {
        display: none !important;
    }

    /* ===== TICKER ANALYSIS MOBILE ===== */
    .ticker-header { padding: 2rem 1rem !important; }
    .ticker-symbol { font-size: 2rem !important; }
    .ticker-price { font-size: 1.5rem !important; }
    .ticker-meta { flex-direction: column !important; align-items: center !important; gap: 0.5rem !important; font-size: 0.8rem !important; }
    .ticker-metrics { grid-template-columns: repeat(2, 1fr) !important; }
    .trade-levels { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
    .risk-card { padding: 1rem !important; }
    .verdict-grid { grid-template-columns: 1fr !important; }
    .score-card .score-value { font-size: 2rem !important; }
}

/* ===================================================================== */
/* TICKER ANALYSIS PAGES                                                  */
/* ===================================================================== */

/* --- Hero Header (Light — matches weekly hero-section) --- */
.ticker-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: #0f172a;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.ticker-symbol {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ticker-name {
    font-size: 1.3rem;
    font-weight: 300;
    color: #64748b;
    margin-top: 0.25rem;
}
.ticker-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 1rem;
    color: #0f172a;
}
.ticker-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}
.ticker-meta span { display: flex; align-items: center; gap: 0.35rem; }
.ticker-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}
.ticker-metric {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ticker-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ticker-metric .tm-value { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.ticker-metric .tm-label { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }

/* --- Score Card --- */
.score-card {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
}
.score-card .score-value { font-size: 3rem; font-weight: 900; }
.score-card .score-label { font-size: 1.1rem; font-weight: 600; margin-top: 0.5rem; }

/* --- Verdict Express --- */
.verdict-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.verdict-pro {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 16px;
    padding: 1.5rem;
}
.verdict-con {
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 16px;
    padding: 1.5rem;
}

/* --- News Items --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-item {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
}
.news-item.news-critical { border-left-color: #dc2626; }
.news-item.news-positive { border-left-color: #16a34a; }
.news-item.news-info { border-left-color: #3b82f6; }
.news-item.news-warning { border-left-color: #f59e0b; }
.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* --- Risk Summary Header --- */
.risk-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: white;
    flex-wrap: wrap;
}
.risk-gauge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    border: 4px solid;
}
.risk-gauge-score {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.risk-gauge-label { color: #cbd5e1;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 2px;
}
.risk-summary-detail { flex: 1; min-width: 200px; }
.risk-summary-detail h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: #ffffff; }
.risk-summary-detail p { margin: 0; font-size: 0.85rem; color: #e2e8f0; opacity: 1; line-height: 1.5; }
.risk-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.risk-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.risk-tag-critical { background: rgba(220,38,38,0.2); color: #fca5a5; }
.risk-tag-high { background: rgba(245,158,11,0.2); color: #fcd34d; }
.risk-tag-medium { background: rgba(59,130,246,0.2); color: #93c5fd; }
.risk-tag-low { background: rgba(22,163,74,0.2); color: #86efac; }

/* --- Risk Grid --- */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Risk Cards v2 --- */
.risk-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.risk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.risk-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.risk-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.risk-card-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    line-height: 1.3;
}
.risk-severity {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.risk-card-body {
    padding: 1rem 1.25rem;
}
.risk-card-body ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
}
.risk-card-body ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.risk-card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.risk-card-body .risk-meters {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}
.risk-meter {
    flex: 1;
}
.risk-meter-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.risk-meter-bar {
    height: 6px;
    border-radius: 3px;
    background: #f1f5f9;
    overflow: hidden;
}
.risk-meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.risk-card .risk-verdict {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.risk-card .risk-verdict i {
    font-size: 0.7rem;
}

/* Severity colors */
.risk-card-critical .risk-card-icon { background: #fef2f2; color: #dc2626; }
.risk-card-critical .risk-severity { background: #fef2f2; color: #dc2626; }
.risk-card-critical .risk-card-body ul li::before { background: #dc2626; }
.risk-card-critical .risk-meter-fill { background: #dc2626; }
.risk-card-critical .risk-verdict { background: #fef2f2; color: #991b1b; }

.risk-card-high .risk-card-icon { background: #fffbeb; color: #d97706; }
.risk-card-high .risk-severity { background: #fffbeb; color: #b45309; }
.risk-card-high .risk-card-body ul li::before { background: #f59e0b; }
.risk-card-high .risk-meter-fill { background: #f59e0b; }
.risk-card-high .risk-verdict { background: #fffbeb; color: #92400e; }

.risk-card-medium .risk-card-icon { background: #eff6ff; color: #2563eb; }
.risk-card-medium .risk-severity { background: #eff6ff; color: #1d4ed8; }
.risk-card-medium .risk-card-body ul li::before { background: #3b82f6; }
.risk-card-medium .risk-meter-fill { background: #3b82f6; }
.risk-card-medium .risk-verdict { background: #eff6ff; color: #1e40af; }

.risk-card-low .risk-card-icon { background: #f0fdf4; color: #16a34a; }
.risk-card-low .risk-severity { background: #f0fdf4; color: #16a34a; }
.risk-card-low .risk-card-body ul li::before { background: #16a34a; }
.risk-card-low .risk-meter-fill { background: #16a34a; }
.risk-card-low .risk-verdict { background: #f0fdf4; color: #166534; }

/* --- Trade Idea --- */
.trade-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}
.trade-box h3 { color: #f97316; margin: 0 0 1.5rem; }
.trade-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}
.trade-level {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
}
.trade-level .label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.trade-level .value { font-size: 1.4rem; font-weight: 800; margin-top: 0.25rem; }
.trade-entry { background: rgba(59,130,246,0.15); }
.trade-entry .value { color: #3b82f6; }
.trade-stop { background: rgba(220,38,38,0.15); }
.trade-stop .value { color: #dc2626; }
.trade-tp { background: rgba(22,163,74,0.15); }
.trade-tp .value { color: #16a34a; }
.trade-rr { background: rgba(249,115,22,0.15); }
.trade-rr .value { color: #f97316; }