/* ===================================
   NOUVELLES SECTIONS - FUSION 2026
   =================================== */

/* ===================================
   BENCHMARKS SECTION
   =================================== */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benchmark-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.benchmark-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.benchmark-header {
    padding: 25px;
    border-bottom: 1px solid var(--glass-border);
}

.benchmark-logo {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.benchmark-icon {
    font-size: 2rem;
}

.benchmark-header h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.benchmark-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.benchmark-badge.featured {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.benchmark-body {
    padding: 25px;
}

.benchmark-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.highlight-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
}

.benchmark-details {
    list-style: none;
    margin: 0 0 20px 0;
}

.benchmark-details li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.benchmark-details li:last-child {
    border-bottom: none;
}

.benchmark-insight {
    padding: 15px;
    background: rgba(148, 163, 184, 0.1);
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    font-size: 0.9rem;
}

.benchmark-insight.featured {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.benchmarks-comparison {
    margin-top: 60px;
}

.comparison-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
}

.comparison-row:not(.header):hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.comparison-row:not(.header):hover .comparison-cell:first-child {
    color: #3b82f6;
    font-weight: 700;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: rgba(59, 130, 246, 0.15);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.comparison-cell {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

/* ===================================
   TRADER INTERFACE SECTION
   =================================== */
.trader-interface {
    margin-top: 40px;
}

.trader-screen {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.trader-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #334155;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.trader-url {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #94a3b8;
}

.trader-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.trader-main {
    padding: 30px;
    border-right: 1px solid #334155;
}

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

.bond-name {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.bond-isin {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #64748b;
}

.bond-price {
    text-align: right;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.price-change {
    font-size: 0.9rem;
}

.price-change.positive {
    color: #10b981;
}

.chart-container {
    height: 200px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, transparent 100%);
    border-top: 2px solid #10b981;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 50px 40px;
}

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

.metric-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.metric-box.highlight {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.trader-sidebar {
    padding: 30px;
    background: rgba(15, 23, 42, 0.5);
}

.sidebar-title {
    color: #3b82f6;
    margin-bottom: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.side-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.side-btn {
    padding: 10px;
    border: 1px solid #334155;
    background: transparent;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.side-btn.buy.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.side-btn.sell.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.total-display {
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #3b82f6;
}

.execute-btn {
    padding: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

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

.settlement-info {
    padding: 12px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

.info-icon {
    margin-right: 5px;
}

.trader-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.explanation-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
}

.explanation-box h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.explanation-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   OUTLOOK 2026 SECTION
   =================================== */
.outlook-container {
    margin-top: 40px;
}

.outlook-timeline {
    margin-bottom: 60px;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-event {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    align-items: start;
}

.event-date {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #3b82f6;
}

.event-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
}

.event-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.event-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-impact {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-impact.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.event-impact.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.outlook-analysis {
    margin-bottom: 60px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analysis-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
}

.analysis-card.opportunities {
    border-left: 4px solid #10b981;
}

.analysis-card.risks {
    border-left: 4px solid #ef4444;
}

.analysis-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.analysis-list {
    list-style: none;
    margin: 0;
}

.analysis-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    line-height: 1.6;
}

.analysis-list li:last-child {
    border-bottom: none;
}

.outlook-forecast {
    margin-top: 40px;
}

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

.forecast-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.forecast-card:hover {
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.forecast-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.forecast-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.forecast-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   AI WIDGET
   =================================== */
.ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.ai-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.7);
}

.ai-btn-icon {
    font-size: 1.8rem;
}

.ai-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 550px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-panel.active {
    display: flex;
}

.ai-header {
    background: #0f172a;
    padding: 20px;
    border-bottom: 1px solid #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.ai-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.ai-close:hover {
    color: white;
}

.ai-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 85%;
}

.ai-msg.bot {
    background: #334155;
    align-self: flex-start;
}

.ai-msg.user {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
}

.ai-msg.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.ai-msg.error a {
    color: #60a5fa;
    text-decoration: underline;
}

.ai-input-zone {
    padding: 20px;
    border-top: 1px solid #475569;
    background: #0f172a;
    display: flex;
    gap: 10px;
}

.ai-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 0.95rem;
}

.ai-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-send-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */
@media (max-width: 1024px) {
    .benchmarks-grid {
        grid-template-columns: 1fr;
    }

    .trader-body {
        grid-template-columns: 1fr;
    }

    .trader-main {
        border-right: none;
        border-bottom: 1px solid #334155;
    }

    .bond-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .trader-explanation {
        grid-template-columns: 1fr;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bond-metrics {
        grid-template-columns: 1fr;
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .timeline-event {
        grid-template-columns: 1fr;
    }

    .ai-panel {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        right: 20px;
        bottom: 100px;
    }
}

/* ===================================
   PANORAMA RÉGLEMENTAIRE (REVAMPED)
   =================================== */
.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reg-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.reg-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.5;
}

.reg-card.green {
    color: #10b981;
}

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

.reg-card.blue {
    color: #3b82f6;
}

.reg-card.blue::before {
    background: #3b82f6;
}

.reg-card.purple {
    color: #a855f7;
}

.reg-card.purple::before {
    background: #a855f7;
}

.reg-card.orange {
    color: #f59e0b;
}

.reg-card.orange::before {
    background: #f59e0b;
}

.reg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.reg-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flag {
    font-size: 2rem;
}

.country {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: white;
}

.score {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid currentColor;
}

.reg-body p {
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.reg-body strong {
    color: white;
}

.status-production,
.status-advanced,
.status-pilot,
.status-fragmented {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-production {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-advanced {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-pilot {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.status-fragmented {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.detail {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-top: 15px;
    font-style: italic;
}

.reg-conclusion {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.reg-conclusion i {
    font-size: 2rem;
    color: #3b82f6;
}

.reg-conclusion p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* ===================================
   BUREAU DU TRADER 2026 (PREMIUM UI)
   =================================== */
.trader-console {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
}

.console-header {
    background: #1e293b;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.wallet-info {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
}

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

.market-panel {
    padding: 30px;
    border-right: 1px solid #334155;
    background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.5), transparent);
}

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

.badge-aaa {
    background: #10b981;
    color: #020617;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    vertical-align: middle;
    margin-left: 10px;
}

.isin {
    color: #64748b;
    font-size: 12px;
}

.live-price {
    text-align: right;
}

.big-price {
    font-size: 42px;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.price-change {
    display: block;
    color: #10b981;
    font-size: 14px;
}

.order-book {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 25px;
}

.book-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0;
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-row:last-child {
    border-bottom: none;
}

.book-row.header {
    font-weight: 700;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.bid {
    color: #10b981;
}

.ask {
    color: #ef4444;
}

.instrument-details {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.detail-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    flex: 1;
}

.detail-box span {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 5px;
}

.detail-box strong {
    font-size: 16px;
    color: white;
}

.order-panel {
    padding: 30px;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.switch-field {
    display: flex;
    border: 1px solid #475569;
    border-radius: 6px;
    overflow: hidden;
}

.switch-field input {
    display: none;
}

.switch-field label {
    flex: 1;
    text-align: center;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    background: #1e293b;
    color: #94a3b8;
    transition: all 0.2s;
}

.switch-field input:checked+label {
    background: #3b82f6;
    color: white;
}

#radio-sell:checked+label {
    background: #ef4444;
}

.input-group input[type="number"] {
    width: 100%;
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.total-display {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
    color: #3b82f6;
}

.execute-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.execute-btn:active {
    transform: translateY(1px);
}

/* ===================================
   RISK MANAGEMENT & OUTLOOK (ANIMATED)
   =================================== */

/* --- SHARED INTERACTIVE CARD --- */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
    position: relative;
    z-index: 1;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.interactive-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.interactive-card:hover::after {
    opacity: 1;
}

/* --- RISK GRID (CARTOGRAPHIE) --- */
/* Note: Removing dependency on inline styles */

.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.risk-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.risk-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-5px);
}

.risk-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.risk-body {
    padding: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Risk Levels */
.risk-card.low {
    border-left: 4px solid #10b981;
}

.risk-card.low .risk-header {
    color: #10b981;
}

.risk-card.medium {
    border-left: 4px solid #f59e0b;
}

.risk-card.medium .risk-header {
    color: #f59e0b;
}

.risk-card.high {
    border-left: 4px solid #ef4444;
}

.risk-card.high .risk-header {
    color: #ef4444;
}

.risk-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.risk-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.risk-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}


/* --- OUTLOOK TIMELINE --- */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-left: 40px;
}

.timeline-events::before {
    content: '';
    position: absolute;
    left: 14px;
    /* Center with 30px circles */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #a855f7);
    opacity: 0.3;
}

.timeline-event {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

/* Dot on line */
.timeline-event::before {
    content: '';
    position: absolute;
    left: -41px;
    /* 40px padding + 1px border */
    top: 30px;
    width: 30px;
    height: 30px;
    background: #0f172a;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-event:hover::before {
    background: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.event-date {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-content h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.2rem;
}

.event-content p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* --- STAGGER ANIMATION (Native CSS) --- */
/* Creating a stagger effect for items with --item-index style */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.stagger-animation>* {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger Delay Loop (up to 10 items) */
.stagger-animation>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-animation>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-animation>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-animation>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-animation>*:nth-child(5) {
    animation-delay: 0.5s;
}

/* ===================================
   ROI SIMULATOR (VISUAL & ANIMATED)
   =================================== */

.roi-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .roi-calculator {
        grid-template-columns: 1fr;
    }
}

/* --- INPUTS SECTION --- */
.roi-inputs {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.input-group-calc {
    margin-bottom: 25px;
}

.input-group-calc label {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group-calc input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-group-calc input[type="number"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Range Slider Styling */
.input-group-calc input[type="range"] {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.input-group-calc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: transform 0.2s;
}

.input-group-calc input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cost-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.savings-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.savings-info h4 {
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.savings-info ul {
    margin: 0;
    padding-left: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- RESULTS SECTION --- */
.roi-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.result-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 78, 59, 0.1));
    border: 1px solid #10b981;
}

.result-card.highlight:hover {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.result-icon.gold {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.result-label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.result-value.green {
    color: #10b981;
}

.result-value.gold {
    color: #f59e0b;
}

.result-value.blue {
    color: #3b82f6;
}

.roi-disclaimer {
    margin-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   ECOSYSTEM & LIBRARY (REVAMPED)
   =================================== */

/* --- ECOSYSTEM GRID (13.1) --- */
.new-eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.new-eco-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.new-eco-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

.new-eco-header {
    padding: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
}

.new-eco-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.eco-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.eco-item i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Color Themes for Eco Cards */
.new-eco-card.infra {
    border-top: 4px solid #3b82f6;
}

.new-eco-card.infra .new-eco-header i {
    color: #3b82f6;
}

.new-eco-card.issuer {
    border-top: 4px solid #10b981;
}

.new-eco-card.issuer .new-eco-header i {
    color: #10b981;
}

.new-eco-card.custody {
    border-top: 4px solid #f59e0b;
}

.new-eco-card.custody .new-eco-header i {
    color: #f59e0b;
}

.new-eco-card.legal {
    border-top: 4px solid #a855f7;
}

.new-eco-card.legal .new-eco-header i {
    color: #a855f7;
}


/* --- LIBRARY GRID (14) --- */
.new-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.lib-card {
    display: flex;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    height: 100%;
}

.lib-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.lib-icon-box {
    width: 80px;
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #334155;
    transition: background 0.3s;
}

.lib-card:hover .lib-icon-box {
    background: rgba(59, 130, 246, 0.1);
}

.lib-icon-box i {
    font-size: 2rem;
    color: #64748b;
    transition: color 0.3s;
}

.lib-card:hover .lib-icon-box i {
    color: #3b82f6;
}

.lib-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lib-title {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.lib-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

.lib-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #475569;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.lib-card:hover .lib-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #3b82f6;
}

/* ===================================
   LEARNING PATHS (PHASE 5 UX)
   =================================== */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.path-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Specific Card Themes */
.path-card.beginner {
    border-top: 4px solid #10b981;
}

.path-card.beginner:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.path-card.intermediate {
    border-top: 4px solid #3b82f6;
}

.path-card.intermediate:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.path-card.expert {
    border-top: 4px solid #a855f7;
}

.path-card.expert:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.path-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.path-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.path-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.path-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.path-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: #475569;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.path-card:hover .path-arrow {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* ===================================
   BREADCRUMBS (PHASE 5 UX)
   =================================== */
.breadcrumb-container {
    position: fixed;
    top: 70px;
    /* Below Navbar */
    left: 0;
    width: 100%;
    z-index: 900;
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    /* Hidden by default, shown via JS on scroll */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.breadcrumb-container.visible {
    display: block;
    transform: translateY(0);
}

.breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item.active {
    color: #3b82f6;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #475569;
    font-size: 0.7rem;
}

/* ===================================
   PEDAGOGICAL LEVELS (PHASE 5 PRIORITY 2)
   =================================== */

/* Toggle Button Container (Sticky Bottom Right) */
.level-toggle-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-toggle-container:hover {
    transform: scale(1.02);
    border-color: #3b82f6;
}

.level-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* The Switch */
.level-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.level-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3b82f6;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Detailed Content State */
.detail-content {
    display: none;
    /* Hidden by default (Synthétique mode) */
    animation: fadeInDetail 0.5s ease;
    border-left: 3px solid #3b82f6;
    padding-left: 15px;
    margin: 15px 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
}

/* When body has 'show-details' class */
body.show-details .detail-content {
    display: block;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Indicator for Detailed Content */
.detail-badge {
    display: none;
    font-size: 0.7rem;
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
    width: fit-content;
}

body.show-details .detail-badge {
    display: inline-block;
}

/* ===================================
   NARRATIVE CARDS (PHASE 5 PRIORITY 2)
   =================================== */
.narrative-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border-left: 4px solid #f59e0b;
    /* Amber for Story/Example */
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.narrative-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.03);
    font-family: serif;
    font-weight: bold;
}

.narrative-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.narrative-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.2rem;
}

.narrative-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.narrative-content {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.narrative-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    text-align: right;
}

/* ===================================
   INTERACTIVITY (PHASE 5 PRIORITY 3)
   =================================== */

/* 1. AUDIO CAPSULES */
.audio-capsule {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 20px 0;
    max-width: 400px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.audio-capsule:hover {
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.audio-btn:hover {
    transform: scale(1.1);
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.audio-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 2. DRAG & DROP GAME */
.game-container {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 40px auto;
    max-width: 900px;
    /* Constrain width for better centering */
    text-align: center;
}

.game-header {
    margin-bottom: 20px;
}

.game-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}

.drop-zones-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.drop-zone {
    width: 120px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px dashed #475569;
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.drop-zone.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.step-number {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: bold;
}

.draggable-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.draggable {
    background: #3b82f6;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: grab;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.draggable:active {
    cursor: grabbing;
}

.draggable.placed {
    background: #10b981;
    cursor: default;
}

.game-success-msg {
    display: none;
    margin-top: 20px;
    color: #10b981;
    font-weight: bold;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

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

/* ===================================
   RISK & COMPLIANCE ENHANCEMENTS (PHASE 5)
   =================================== */

/* ILLUMINATED CARDS (SPOTLIGHT EFFECT) */
.interactive-card {
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    will-change: transform, background;
    overflow: hidden;
    /* For the spotlight glow */
}

/* The glow aura following mouse */
.interactive-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.interactive-card:hover::after {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Specific Glow Colors based on Danger Levels */
.risk-card:nth-child(1):hover {
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

/* Custody - Red */
.risk-card:nth-child(2):hover {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

/* Private Key - Orange */
.risk-card:nth-child(3):hover {
    border-color: #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Smart Contract - Purple */
.risk-card:nth-child(4):hover {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Regulatory - Blue */


/* ===================================
   BADGES & CERTIFICATION (PHASE 5 PRIORITY 5)
   =================================== */

/* 1. Floating Trigger (Space Saving) */
.badge-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Move to LEFT to avoid scroll arrow on right */
    right: auto;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    /* Above everything */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.badge-trigger i {
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Notification Dot */
.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f172a;
    display: none;
    /* JS triggers block */
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 2. Badge Modal Overlay */
.badge-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    /* Flex when active */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.badge-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.badge-modal-overlay.active .badge-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

/* 3. Badge Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.badge-item {
    background: #0f172a;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px dashed #334155;
    opacity: 0.5;
    transition: all 0.3s;
    position: relative;
}

.badge-item.unlocked {
    opacity: 1;
    border: 1px solid #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0));
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.badge-item.unlocked .badge-icon {
    filter: grayscale(0%);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-name {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.badge-item.unlocked .badge-name {
    color: #f59e0b;
}

@keyframes pop {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

/* 4. Certificate Button */
.cert-btn {
    width: 100%;
    padding: 15px;
    background: #334155;
    color: #94a3b8;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cert-btn.unlocked {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.cert-btn.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
}

/* 5. PRINT CERTIFICATE STYLES */
@media print {
    body>* {
        display: none !important;
    }

    #certificate-print-area {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}
/* ===================================
   REGULATORY UX ENHANCEMENTS (PHASE 5)
   =================================== */

/* 1. PANORAMA GLOBAL (Accentuating Lighting) */
.reg-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Base Hover Glow */
.reg-card:hover {
    transform: translateY(-5px);
    z-index: 10;
}

/* Dynamic Lighting by Color */
.reg-card.green:hover {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.reg-card.blue:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.reg-card.purple:hover {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.3), inset 0 0 20px rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
}

/* 2. EU FRAMEWORK (3D Cards) */
.regulatory-card {
    transition: transform 0.1s ease-out; /* Fast for tilt */
    transform-style: preserve-3d;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Ensure badges look 3D */
.reg-badge {
    transform: translateZ(30px); /* Pop out */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.regulatory-card h4 {
    transform: translateZ(20px);
}

.regulatory-card p {
    transform: translateZ(10px);
}
