/* 
   Digital-Oracle Common Styles 
   Centralized design system for simulation pages.
*/

:root {
    --primary-color: #1e3c72;
    --secondary-color: #4a6b8f;
    --accent-color: #3b82f6;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;

    /* Simulator Generic Card Colors */
    --card-red: #dc2626;
    --card-amber: #f59e0b;
    --card-blue: #3b82f6;
    --card-green: #10b981;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: var(--bg-light);
    color: var(--text-main);
}

.active-link {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    /* position: relative;*/
    list-style: none !important;
    /*padding-left: 12px;*/
}

.nav-links a.active-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-color);
}

h1 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    background: var(--bg-white);
    max-width: 1200px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Generic Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Simulator Control Cards */
.control-card {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.control-card.red {
    border-left-color: var(--card-red);
}

.control-card.amber {
    border-left-color: var(--card-amber);
}

.control-card.blue {
    border-left-color: var(--card-blue);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.control-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
}

.control-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: "Bebas Neue", sans-serif;
}

.red .control-value {
    color: var(--card-red);
}

.amber .control-value {
    color: var(--card-amber);
}

.blue .control-value {
    color: var(--card-blue);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding: 16px 18px;
    transition: all 0.3s;
}

.card.centered {
    text-align: center;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Simulator Metric Cards */
.metric-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.metric-main {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.metric-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Chart Wrap */
.chart-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: 300px;
}

/* Section Styling */
.section-label {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Timeline */
.timeline {
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
    padding-left: 20px;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-day {
    font-weight: 700;
    font-family: "DM Mono", monospace;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.timeline-content {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.tag-red {
    background: #fee2e2;
    color: #dc2626;
}

.tag-amber {
    background: #fef3c7;
    color: #d97706;
}

.tag-blue {
    background: #dbeafe;
    color: #2563eb;
}

.tag-green {
    background: #dcfce7;
    color: #166534;
}

/* Phases */
.phase-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.phase-number {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.5rem;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 10px;
}

/* Methodology & References */
.method-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.method-card h3,
.method-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Supply Bars (South Pars / Strategic Bypasses) */
.supply-item {
    margin-bottom: 15px;
}

.supply-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.supply-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.supply-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-container {
    margin: 25px 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

input[type=range] {
    width: 100%;
    margin: 10px 0;
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    vertical-align: middle;
}

.badge-ok {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.badge-warn {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.badge-halt {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* References Table */
.refs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
}

.refs-table th {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.refs-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* Navigation Header */
.nav-container {
    background: #e8f0fe;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-home-link {
    flex-basis: 100%;
    display: block;
    margin-bottom: 2px !important;
    font-weight: 500;
    color: var(--secondary-color) !important;
}

.nav-group {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
}

/* User Request: Economic & Risk padding and border fix */
.nav-group:first-of-type {
    border-left: 0;
}

.nav-group-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.nav-group-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Heatmap Colors */
:root {
    --heat0: #f0fdf4;
    --heat0t: #16a34a;
    --heat1: #dcfce7;
    --heat1t: #15803d;
    --heat2: #fef9c3;
    --heat2t: #a16207;
    --heat3: #ffedd5;
    --heat3t: #ea580c;
    --heat4: #fee2e2;
    --heat4t: #dc2626;
    --heat5: #fecaca;
    --heat5t: #b91c1c;
}

.h0 {
    background: var(--heat0);
    color: var(--heat0t);
}

.h1 {
    background: var(--heat1);
    color: var(--heat1t);
}

.h2 {
    background: var(--heat2);
    color: var(--heat2t);
}

.h3 {
    background: var(--heat3);
    color: var(--heat3t);
}

.h4 {
    background: var(--heat4);
    color: var(--heat4t);
}

.h5 {
    background: var(--heat5);
    color: var(--heat5t);
}

/* ── CONTAGION MATRIX SPECIFIC STYLES ── */
.oil-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.oil-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-weight: 800;
}

.oil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.oil-item {
    background: #f8faff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.oil-name {
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.oil-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.oil-change {
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 700;
}

.oil-change.up {
    color: #ef4444;
}

.oil-change.dn {
    color: #10b981;
}

.bypass-widget {
    background: white;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
}

.bypass-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.bypass-row {
    margin-bottom: 12px;
}

.bypass-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.bypass-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.bypass-bar-fill {
    height: 100%;
    transition: width 0.5s;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.metric-box {
    background: #f8faff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.metric-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 700;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
}

.results-panel {
    background: #eef2ff;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.results-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.progress-bar-container {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.6s ease;
}

.region-block {
    margin-top: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card.halted {
    border-color: #ef4444;
    background: #fff1f2;
}

.card.warning {
    border-color: #f59e0b;
}

.card-stripe {
    height: 4px;
    width: 100%;
}

.card-stripe.red {
    background: #ef4444;
}

.card-stripe.green {
    background: #10b981;
}

.card-stripe.yellow {
    background: #f59e0b;
}

.card-stripe.orange {
    background: #f97316;
}

.card-body {
    padding: 18px;
}

/* ── TACTICAL & OPERATIONAL UNIFIED STYLES ── */

/* Preset Buttons & Groups */
.preset-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.preset-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1e293b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.preset-btn:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preset-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.3);
}

/* Strategic Magazine Dashboard */
.magazine-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mag-stat-card {
    background: #334155;
    /* Dark slate for high contrast */
    color: white;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid transparent;
    /* Reserve space for tactical color coding */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.mag-stat-card:hover {
    background: #334155;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.mag-stat-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.mag-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    font-family: "DM Mono", monospace;
}

.mag-stat-label-cost {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Regional Force Context */
.regional-context-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.context-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

.context-table th {
    text-align: left;
    padding: 10px;
    background: rgba(30, 60, 114, 0.05);
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

.context-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.context-warning-box {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.context-warning-title {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Glassmorphic Panel Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Slider Typography Enhancements */
.slider-group-container {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.scenario-label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.slider-sub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -5px;
    margin-bottom: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    font-size: 1.2rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.cap-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.cap-label {
    color: #64748b;
}

/* Global Effects Container */
.effects {
    background: rgba(255, 255, 255, 0.5);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.effects h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
    border: none;
    padding: 0;
}

.cap-val {
    font-weight: 800;
}

.bar-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.bar-fill {
    height: 100%;
    transition: width 0.4s;
}

.dep-row {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.dep-row span {
    font-weight: 700;
    color: #64748b;
}

/* ── LEGACY DASHBOARD & GRID LAYOUTS (Energy/Strike/Risk) ── */
.simulator-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.control-panel {
    flex: 1.2;
    min-width: 350px;
}

.results-panel {
    min-width: 400px;
    background: #e8f0fe;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    width: 100%;
}

/* ── SOVEREIGN RISK HEATMAP & PANELS ── */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.heatmap-panel,
.side-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header,
.side-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8faff;
}

.panel-title {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
}

.filter-row {
    display: flex;
    gap: 8px;
}

.fbtn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 11px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.fbtn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.heatmap-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.heatmap-panel thead th {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 10px 6px;
    text-align: center;
    font-size: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.heatmap-panel td {
    padding: 9px 6px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.country-cell {
    text-align: left;
    padding-left: 16px;
    font-weight: 600;
}

.heat-cell {
    border-radius: 4px;
    font-weight: 600;
    padding: 5px 4px;
}

.legend-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #f8faff;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.leg-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.curve-controls {
    padding: 14px 18px 10px;
}

.side-card canvas {
    width: 100%;
    border-radius: 8px;
    background: #f8faff;
    display: block;
}

.decomp-box {
    margin: 14px;
    background: #f0f7fa;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.6;
}

.signal-body {
    padding: 14px 18px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.7;
}

.sig-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.region-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    opacity: 0.8;
}

.rtag-gulf {
    background: #fee2e2;
    color: #dc2626;
}

.rtag-asia {
    background: #ffedd5;
    color: #ea580c;
}

.rtag-emea {
    background: #fef9c3;
    color: #a16207;
}

.rtag-amer {
    background: #f0fdf4;
    color: #16a34a;
}

/* ── ENERGY / STRIKE EFFECTS & CHECKBOXES ── */
.checkbox-group {
    margin: 20px 0;
    background: #f8faff;
    padding: 15px;
    border-radius: 8px;
}

.checkbox-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.effects {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.effect-item {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.effect-name {
    width: 220px;
    font-weight: 600;
}

.effect-bar {
    flex: 1;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.uncertainty-shadow {
    position: absolute;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-left: 1px dashed rgba(0, 0, 0, 0.2);
    border-right: 1px dashed rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

.effect-fill {
    height: 100%;
    --base-color: hsl(calc(var(--val) * 1.2), 80%, 45%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.05) 100%), var(--base-color);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.effect-value {
    width: 120px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9em;
}

/* ── LEGACY / MISC OVERRIDES ── */
.footnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.highlight {
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.methodology {
    background: #f0f7fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0 20px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.methodology h3 {
    margin-top: 0;
}

.methodology ul {
    margin: 5px 0 15px 20px;
}

/* Strike Planner Custom */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.option-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--primary-color);
}

/* Universal Footer */
.universal-footer {
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-credit {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- HERO IMAGES --- */
.hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- STRATEGIC DROPDOWN NAVIGATION (Scalable) --- */
.nav-strategic {
    position: sticky;
    top: 20px;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-link {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu-main {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-drop {
    position: relative;
    padding: 8px 12px;
}

.nav-drop-trigger {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-drop:hover .nav-drop-trigger,
.nav-drop-trigger.active-parent {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    min-width: 200px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-drop:hover .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-drop-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-drop-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff !important;
    padding-left: 20px;
    text-decoration: none !important;
}

.nav-drop-menu a.active-link {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa !important;
    font-weight: 700;
}

.nav-drop-menu a.active-link::before {
    display: none;
    /* remove old circle from dropdown */
}

/* Mobile adjustments */
@media (max-width: 800px) {
    .nav-strategic {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
        padding: 15px;
    }

    .nav-menu-main {
        flex-wrap: wrap;
        justify-content: center;
    }
}