/* style.css - Premium Trader Agent Dark Mode CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --positive: #10b981;
    --positive-glow: rgba(16, 185, 129, 0.15);
    --negative: #ef4444;
    --negative-glow: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    padding-bottom: 5rem;
}

header.app-header {
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(56, 189, 248, 0.3) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-sub {
    font-size: 0.75rem;
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    letter-spacing: 0.02em;
}

.brand-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Navigation Principale des Espaces */
.space-nav {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem;
    border-radius: 10px;
    gap: 0.35rem;
}

.space-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 0.5rem 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.space-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.space-nav-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(56, 189, 248, 0.18) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

.nav-pill-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.nav-pill-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-pill-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-pill-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Live Header Status Indicator & User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-header-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-auth-state {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-auth-trigger {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(56, 189, 248, 0.25) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-auth-trigger:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(56, 189, 248, 0.4) 100%);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.65rem 0.25rem 0.35rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.user-avatar-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-header-details {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
}

.plan-pro-badge {
    font-size: 0.62rem;
    color: #c084fc;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-icon-action.btn-logout {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.btn-icon-action.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.live-dot-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.main-space {
    animation: fadeInSpace 0.25s ease-out;
}

@keyframes fadeInSpace {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Banner & Ops Framing */
.admin-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.admin-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-hero-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

.admin-tag-ops {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* Sections */
section {
    margin-bottom: 3.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Metric Cards Grid */
.grid-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.metric-card h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.value-row .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.value-row .value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.value-row .value.highlight {
    color: #fff;
    font-size: 1.35rem;
}

.pl-row {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.pl-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.positive {
    color: var(--positive);
}
.pl-row.positive span, .pl-badge.positive {
    background: var(--positive-glow);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.negative {
    color: var(--negative);
}
.pl-row.negative span, .pl-badge.negative {
    background: var(--negative-glow);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.neutral {
    color: var(--warning);
}

/* Big Total Card */
.total-card {
    background: radial-gradient(circle at 100% 0%, var(--accent-glow) 0%, var(--bg-card) 70%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem 1.5rem;
}

th {
    background: rgba(17, 24, 39, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.stop-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

/* Interactive Analyst Console */
.analyst-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media(max-width: 768px) {
    .analyst-grid {
        grid-template-columns: 1fr;
    }
}

.input-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    background: rgba(9, 13, 22, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn:hover {
    background: #7c3aed;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    width: auto;
}

.btn-analyze {
    background: transparent;
    border: 1px solid var(--accent);
    color: #c084fc;
}

.btn-analyze:hover {
    background: var(--accent);
    color: #fff;
}

/* Console Output Screen */
.console-screen {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
}

.console-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.console-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.positive {
    background: var(--positive-glow);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.negative {
    background: var(--negative-glow);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.neutral {
    background: var(--warning-glow);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.analysis-block {
    margin-bottom: 1.5rem;
}

.analysis-block h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.analysis-block p {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.data-row-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    background: rgba(9, 13, 22, 0.4);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.data-item h5 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.data-item p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Scenarios */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.scenario-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scenario-card.opt {
    border-left: 3px solid var(--positive);
}
.scenario-card.opt h5 { color: #34d399; }

.scenario-card.neu {
    border-left: 3px solid var(--warning);
}
.scenario-card.neu h5 { color: #fbbf24; }

.scenario-card.pes {
    border-left: 3px solid var(--negative);
}
.scenario-card.pes h5 { color: #f87171; }

.scenario-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Custom Study Guide CSS */
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.guide-steps {
    list-style: none;
}

.guide-step {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
}

.guide-step-number {
    position: absolute;
    left: 0.35rem;
    top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #c084fc;
}

.guide-step h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guide-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.guide-step-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Rules Section */
.rules-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem 2rem;
    list-style: none;
}

.rules-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.rules-list li strong {
    color: var(--accent);
}

/* Custom Tabs for Analyst Console */
.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.checklist-items li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.checklist-items li.checked {
    border-left: 3px solid var(--positive);
}

.checklist-items li.unchecked {
    border-left: 3px solid var(--negative);
}

.checklist-icon {
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.checklist-icon.checked {
    color: var(--positive);
}

.checklist-icon.unchecked {
    color: var(--negative);
}

/* ─── Styles pour le Mode Sherpa ─── */
.sherpa-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.sherpa-chip:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.sherpa-chip input[type="checkbox"] {
    accent-color: #38bdf8;
    cursor: pointer;
    margin: 0;
}

.sherpa-chip:has(input:checked) {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: 500;
}

/* ─── Compteurs de Qualité & Santé des Bases (history.db & Khumbu) ─── */
.gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.gauge-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gauge-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.gauge-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.gauge-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gauge-val-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
    letter-spacing: -0.01em;
}

.gauge-subtext {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    text-align: center;
}

.db-health-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.db-health-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.db-health-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.db-health-tab.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MODULE D'AUTHENTIFICATION & PROFIL UTILISATEUR (FINTECH SAAS)
   ───────────────────────────────────────────────────────────────────────────── */

/* Bloc Utilisateur dans le Header */
.user-header-block {
    display: flex;
    align-items: center;
}

.user-auth-state {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-auth-trigger {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.btn-auth-trigger:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(56, 189, 248, 0.35) 100%);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.auth-icon {
    font-size: 0.95rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.3rem 0.65rem 0.3rem 0.4rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-badge:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(26, 35, 58, 0.9);
}

.user-avatar-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
}

.user-header-details {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
}

.plan-pro-badge {
    font-size: 0.62rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(56, 189, 248, 0.25) 100%);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-icon-action.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Modales Fintech */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.fintech-modal {
    background: linear-gradient(145deg, #111827 0%, #0d121f 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.15);
    overflow: hidden;
}

.fintech-modal.modal-sm {
    max-width: 480px;
}

.fintech-modal.modal-lg {
    max-width: 780px;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header-icon {
    font-size: 1.4rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.5rem 0 1.5rem;
    gap: 0.5rem;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    padding: 0.6rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-tab-btn:hover {
    color: #ffffff;
}

.modal-tab-btn.active {
    color: #ffffff;
    border-bottom-color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 6px 6px 0 0;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Alertes & Toasts */
.auth-alert-box {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.auth-alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-alert-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.auth-alert-box.info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

/* Formulaires & Champs */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
    background: #0c1220;
}

.form-input.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.form-hint {
    display: block;
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: 0.3rem;
    line-height: 1.35;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* 2FA Card & Saisie */
.totp-auth-group {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    animation: fadeInSpace 0.2s ease-out;
}

.totp-badge-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 0.35rem;
}

.totp-input {
    font-size: 1.4rem;
    letter-spacing: 0.35em;
    font-weight: 700;
    text-align: center;
    color: #38bdf8;
    background: #060911;
}

/* Plan Included Banner */
.plan-included-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 0.85rem;
    margin-top: 0.85rem;
    margin-bottom: 0.5rem;
}

.plan-badge-inline {
    margin-bottom: 0.35rem;
}

.plan-included-text {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* Security Hero Banner */
.security-hero-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.security-hero-icon {
    font-size: 1.35rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WIZARD D'ONBOARDING INTERACTIF (4 ÉTAPES)
   ───────────────────────────────────────────────────────────────────────────── */

.fintech-modal.modal-wizard {
    max-width: 780px;
    min-height: 540px;
}

.wizard-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 600px;
}

.wizard-step-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.wizard-step-node.active, .wizard-step-node.completed {
    opacity: 1;
}

.step-node-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.wizard-step-node.active .step-node-circle {
    background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.wizard-step-node.completed .step-node-circle {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

.step-node-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}

.wizard-step-node.active .step-node-label {
    color: #ffffff;
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.wizard-step-line.completed {
    background: linear-gradient(90deg, #8b5cf6, #10b981);
}

.wizard-body {
    padding: 1.75rem 2rem;
}

.wizard-step-panel {
    animation: fadeInSpace 0.25s ease-out;
}

.wizard-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.wizard-step-intro h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.wizard-step-intro p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.45;
}

/* Grille des styles de trading (Étape 1) */
.trading-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.style-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.style-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.style-card.active {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.style-icon {
    font-size: 1.4rem;
}

.style-info strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

.style-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

/* Capital & Presets (Étape 2) */
.capital-input-wrap .form-input.font-lg {
    font-size: 1.35rem;
    font-weight: 700;
    color: #38bdf8;
    padding: 0.75rem 1rem;
}

.quick-preset-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.preset-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.preset-chip.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Cartes de Risque 1R */
.risk-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.risk-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.risk-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.risk-card.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.risk-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.risk-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.risk-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    display: block;
}

.risk-sub {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
}

.risk-live-preview {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.preview-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.preview-val.positive {
    color: #34d399;
}

.preview-val.accent {
    color: #38bdf8;
}

/* Sélection des Courtiers (Étape 3) */
.brokers-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.broker-wizard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.broker-wizard-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.broker-wizard-card.active {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.broker-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.broker-flag-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.broker-flag {
    font-size: 1.4rem;
}

.broker-flag-title strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    display: block;
}

.broker-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
}

.broker-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.broker-card-extra {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
}

.form-group-sm label {
    font-size: 0.72rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.2rem;
}

.form-group-sm .form-input {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
}

.checkbox-mini {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.4rem;
    cursor: pointer;
}

.checkbox-mini input {
    accent-color: var(--positive);
}

/* Étape 4 Synthèse Finale */
.congrats-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.summary-cockpit-card {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    font-size: 0.88rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-val {
    font-weight: 600;
    color: #ffffff;
}

.summary-val.positive {
    color: #34d399;
}

.onboarding-final-cta .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Footer Wizard */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-footer-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ÉCRAN D'AUTHENTIFICATION PLEIN ÉCRAN (GARDE D'ACCÈS STRICT SAAS)
   ───────────────────────────────────────────────────────────────────────────── */

.auth-page-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 15%, rgba(139, 92, 246, 0.12) 0px, transparent 55%),
        radial-gradient(at 90% 85%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.05) 0px, transparent 65%);
    background-attachment: fixed;
    animation: fadeInSpace 0.3s ease-out;
}

.auth-page-container {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand Header */
.auth-brand-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(56, 189, 248, 0.3) 100%);
    border: 1px solid rgba(139, 92, 246, 0.6);
    border-radius: 14px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
    margin-bottom: 1rem;
}

.auth-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-brand-badges-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.brand-badge-fintech {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-brand-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    max-width: 440px;
}

/* Carte Centrale */
.auth-card-wrapper {
    background: linear-gradient(145deg, #111827 0%, #0d121f 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.12);
    overflow: hidden;
}

.auth-card-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-screen-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    padding: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-screen-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.auth-screen-tab.active {
    color: #ffffff;
    border-bottom-color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
}

.auth-card-body {
    padding: 2rem;
}

/* Badges de Réassurance Sécurité */
.auth-security-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.75rem;
}

@media (max-width: 540px) {
    .auth-security-badges {
        grid-template-columns: 1fr;
    }
}

.security-badge-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.security-badge-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.security-badge-icon {
    font-size: 1.25rem;
}

.security-badge-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.security-badge-item span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1.25;
    margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INDICATEUR DE ROBUSTESSE ET POLITIQUE DE MOT DE PASSE STRICTE
   ───────────────────────────────────────────────────────────────────────────── */

.pw-strength-box {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    animation: fadeInSpace 0.2s ease-out;
}

.pw-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.pw-strength-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pw-strength-label.weak { color: #ef4444; }
.pw-strength-label.medium { color: #f59e0b; }
.pw-strength-label.strong { color: #10b981; }

.pw-strength-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.pw-strength-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-strength-bar.weak { width: 25%; background: #ef4444; }
.pw-strength-bar.medium { width: 60%; background: #f59e0b; }
.pw-strength-bar.strong { width: 100%; background: #10b981; }

.pw-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.6rem;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .pw-rules-grid {
        grid-template-columns: 1fr;
    }
}

.pw-rule-item {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.pw-rule-item.valid {
    color: #34d399;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ESPACE CONFIGURATION & DASHBOARD REGLAGES
   ───────────────────────────────────────────────────────────────────────────── */

.config-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.config-dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.config-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.config-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

.config-card-header {
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-header-icon {
    font-size: 1.4rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-header-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0;
}

.config-header-title p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0 0;
}

.config-card-body {
    padding: 1.5rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.form-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 768px) {
    .form-row-2col, .form-row-3col {
        grid-template-columns: 1fr;
    }
}

/* ─── NOUVEAU LAYOUT EN 2 COLONNES MONEY MANAGEMENT ─── */

.risk-split-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 980px) {
    .risk-split-layout {
        grid-template-columns: 1fr;
    }
}

.risk-input-group {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.risk-group-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-with-adornment {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.75rem;
    color: #38bdf8;
    font-weight: 700;
    font-family: monospace;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.input-with-adornment input.form-input {
    width: 100%;
}

.input-with-adornment .input-prefix + input.form-input {
    padding-left: 2rem !important;
}

.input-with-adornment input.form-input:has(+ .input-suffix) {
    padding-right: 3rem !important;
}

.risk-preset-pills-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.risk-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.15rem;
}

.risk-pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}

.risk-pill-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-bottom: 0.1rem;
}

.pill-dot.green { background: #34d399; }
.pill-dot.blue { background: #38bdf8; }
.pill-dot.purple { background: #c084fc; }

.pill-pct {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.pill-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.antifrais-control-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.toggle-switch-label input {
    display: none;
}

.toggle-switch-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.toggle-switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch-label input:checked + .toggle-switch-slider {
    background: #10b981;
}

.toggle-switch-label input:checked + .toggle-switch-slider::before {
    transform: translateX(16px);
}

.toggle-switch-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* ─── PANNEAU LIVE SIMULATEUR DU RISQUE (COLONNE DROITE) ─── */

.risk-live-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 1.35rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 1.5rem;
}

.sim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-header-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulseGlow 1.5s infinite;
}

.sim-header-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sim-metric-hero {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 1.15rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.sim-metric-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.35rem;
}

.sim-hero-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
}

.sim-metric-sub {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin: 0.45rem 0 0 0;
    line-height: 1.35;
}

.sim-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.sim-submetric-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.sim-sub-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.sim-sub-content {
    display: flex;
    flex-direction: column;
}

.sim-sub-label {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.sim-sub-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sim-sub-val.positive {
    color: #34d399;
}

.sim-sub-desc {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.sim-pedago-tip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.pedago-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.pedago-text {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.pedago-text code {
    background: rgba(0, 0, 0, 0.4);
    color: #c084fc;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    display: inline-block;
    margin: 0.2rem 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   SUPERVISION DES UTILISATEURS SAAS (ADMIN OPS)
   ───────────────────────────────────────────────────────────────────────────── */

.admin-users-table th {
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.65rem 0.85rem;
}

.admin-users-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
    vertical-align: middle;
}

.role-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.role-badge.admin {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.role-badge.user {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.plan-badge-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
}

.btn-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
}

.btn-action-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-action-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-action-icon.danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.btn-action-icon.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

.btn-action-icon.warning {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.btn-action-icon.warning:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROFILES DE PRICING COURTIERS & PROREALTIME (PRT)
   ───────────────────────────────────────────────────────────────────────────── */

.prt-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.badge-prt {
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #c084fc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: fadeInSpace 0.2s ease-out;
}

.pricing-info-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 3px solid #38bdf8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    animation: fadeInSpace 0.2s ease-out;
}

.pricing-info-icon {
    font-size: 1.1rem;
    line-height: 1.2;
}

.pricing-info-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.pricing-info-text strong {
    color: #ffffff;
}

.pricing-info-text .highlight-fee {
    color: #38bdf8;
    font-weight: 600;
}

.pricing-info-text .highlight-antifrais {
    color: #34d399;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ESPACE SÉCURITÉ & SOC (WATCHDOG EN 8 ÉTAPES)
   ───────────────────────────────────────────────────────────────────────────── */

.security-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.soc-score-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.soc-score-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.05em;
}

.soc-score-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.soc-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
}

.soc-action-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.soc-timestamp {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: monospace;
}

.soc-summary-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.soc-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.25rem;
}

.soc-step-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.15rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.soc-step-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(17, 24, 39, 0.9);
}

.soc-step-card.green {
    border-left: 4px solid #10b981;
}

.soc-step-card.yellow {
    border-left: 4px solid #f59e0b;
}

.soc-step-card.red {
    border-left: 4px solid #ef4444;
}

.soc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.soc-step-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.soc-step-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.soc-step-title-group h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.soc-step-summary {
    font-size: 0.83rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.soc-step-details-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.45;
}

.soc-compliance-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.soc-compliance-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem;
    border-radius: 8px;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SÉLECTEUR DE SOUS-ÉCRANS ESPACE TRADER (TERMINAL DE TRADING)
   ───────────────────────────────────────────────────────────────────────────── */

.trader-subscreen-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .trader-subscreen-nav {
        grid-template-columns: 1fr;
    }
}

.subscreen-tab-btn {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.subscreen-tab-btn:hover {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.subscreen-tab-btn.active {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-color: #38bdf8;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.subscreen-tab-btn.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
}

.subscreen-icon {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscreen-tab-btn.active .subscreen-icon {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}

.subscreen-btn-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.subscreen-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.subscreen-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.subscreen-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    white-space: nowrap;
}

.subscreen-pill.neutral {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

.trader-subscreen-panel {
    animation: fadeInSpace 0.2s ease-out;
}




