/* MaxFlash Pro v2.1 - Liquid Glass Theme */
/* Updated: 2026-01-12 */

/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Modern Fintech Color Palette */
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* Background - Deep space theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(15, 23, 42, 0.7);
    --bg-tertiary: rgba(30, 41, 59, 0.6);
    --bg-hover: rgba(59, 130, 246, 0.15);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Glass Effect */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Legacy support */
    --neon-green: var(--success);
    --neon-pink: var(--danger);
    --neon-blue: var(--accent-primary);
}

/* ==================== BASE ==================== */
html, body {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e1a 0%, #0f172a 50%, #0a0e1a 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    min-height: 100vh;
}

/* ==================== GLASSMORPHISM CARDS ==================== */
.card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.card-body {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.card-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

/* ==================== NAVBAR GLASS ==================== */
.navbar {
    background: rgba(10, 14, 26, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ==================== TABLES - FIXED HOVER ==================== */
.table {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.table > :not(caption) > * > * {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    padding: 12px 16px !important;
}

.table thead th {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* TABLE ROW HOVER - FIXED! */
.table tbody tr {
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.table tbody tr:hover > * {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.table .text-success,
.table td .text-success,
.table th .text-success {
    color: #34d399 !important;
}

.table .text-danger,
.table td .text-danger,
.table th .text-danger {
    color: #f87171 !important;
}

.table .text-info,
.table td .text-info,
.table th .text-info {
    color: #7dd3fc !important;
}

.table .text-warning,
.table td .text-warning,
.table th .text-warning {
    color: #fbbf24 !important;
}

.table .text-light,
.table td .text-light,
.table th .text-light {
    color: #f8fafc !important;
}

.table .text-muted,
.table td .text-muted,
.table th .text-muted {
    color: #bcc9dc !important;
}

/* Dash DataTable */
.dash-table-container {
    background: transparent !important;
}

.dash-table-container .dash-spreadsheet-container {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
}

.dash-table-container .dash-spreadsheet td,
.dash-table-container .dash-spreadsheet th {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dash-spreadsheet-inner tr:hover td {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--text-primary) !important;
}

.dash-spreadsheet-inner tr.row-selected td {
    background: rgba(59, 130, 246, 0.2) !important;
    color: var(--text-primary) !important;
}

/* FIX: DataTable cell hover - prevent white background */
.dash-table-container .cell--selected,
.dash-table-container td.cell--selected,
.dash-table-container td.focused {
    background: rgba(59, 130, 246, 0.2) !important;
    color: var(--text-primary) !important;
}

.dash-table-container tr:hover,
.dash-table-container tr:hover td,
.dash-table-container tr:hover th,
.dash-table-container tr:hover > * {
    background: rgba(59, 130, 246, 0.1) !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--text-primary) !important;
}

/* Override any Bootstrap white backgrounds on hover */
.table-hover tbody tr:hover,
.table-hover tbody tr:hover > *,
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    background: rgba(59, 130, 246, 0.1) !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--text-primary) !important;
    --bs-table-hover-bg: transparent !important;
    --bs-table-bg-state: transparent !important;
}

/* ==================== BUTTONS - GLASS ==================== */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #2563eb) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.btn-outline-primary {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: var(--accent-primary) !important;
    backdrop-filter: blur(10px) !important;
}

.btn-outline-primary:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

.btn-outline-info {
    background: rgba(6, 182, 212, 0.1) !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    color: var(--info) !important;
}

/* ==================== FORMS - GLASS ==================== */
.form-control, .form-select {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-select option {
    background: #1e293b !important;
    color: var(--text-primary) !important;
}

/* ==================== TABS - GLASS ==================== */
.nav-tabs-ecosystem {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    gap: 8px !important;
    padding: 8px !important;
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
}

.nav-tabs-ecosystem .nav-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: var(--text-muted) !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.nav-tabs-ecosystem .nav-link:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--accent-primary) !important;
}

.nav-tabs-ecosystem .nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1)) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: var(--accent-primary) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2) !important;
}

/* Regular nav-tabs */
.nav-tabs .nav-link {
    color: var(--text-muted) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
}

.nav-tabs .nav-link.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--accent-primary) !important;
}

/* ==================== SIGNAL CARDS ==================== */
.signal-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    border-left: 4px solid !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
}

.signal-buy {
    border-left-color: var(--success) !important;
    box-shadow: -4px 0 20px rgba(16, 185, 129, 0.2) !important;
}

.signal-sell {
    border-left-color: var(--danger) !important;
    box-shadow: -4px 0 20px rgba(239, 68, 68, 0.2) !important;
}

/* ==================== HOVER GLOW EFFECT ==================== */
.hover-glow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.hover-glow:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.15) !important;
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
}

/* Icon wrappers */
.icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
}

.icon-wrapper.icon-yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05)) !important;
    color: #f59e0b !important;
}

.icon-wrapper.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05)) !important;
    color: #06b6d4 !important;
}

.icon-wrapper.icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05)) !important;
    color: #10b981 !important;
}

.icon-wrapper.icon-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05)) !important;
    color: #ef4444 !important;
}

.icon-wrapper.icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05)) !important;
    color: #8b5cf6 !important;
}

.icon-wrapper.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05)) !important;
    color: #3b82f6 !important;
}

/* ==================== STEP NUMBERS ==================== */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success), #059669) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning), #d97706) !important;
    color: #000 !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info), #0891b2) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--accent-primary), #2563eb) !important;
}

/* Header stream badges: stable width to prevent jitter on periodic updates */
.streams-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.stream-status-badge {
    min-width: 132px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ==================== PROGRESS BARS ==================== */
.progress {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    height: 8px !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

.progress-bar {
    border-radius: 10px !important;
    transition: width 0.6s ease !important;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--success), #34d399) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, var(--danger), #f87171) !important;
}

/* ==================== ALERTS - GLASS ==================== */
.alert {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    border-left: 4px solid !important;
}

.alert-info {
    border-left-color: var(--info) !important;
    color: var(--info) !important;
}

.alert-warning {
    border-left-color: var(--warning) !important;
    color: var(--warning) !important;
}

.alert-success {
    border-left-color: var(--success) !important;
    color: var(--success) !important;
}

.alert-danger {
    border-left-color: var(--danger) !important;
    color: var(--danger) !important;
}

/* ==================== ACCORDION - GLASS ==================== */
.accordion-item {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--accent-primary) !important;
}

.accordion-button::after {
    filter: invert(1) brightness(0.6) !important;
}

.accordion-body {
    background: rgba(15, 23, 42, 0.5) !important;
    color: var(--text-secondary) !important;
}

/* ==================== MODALS - GLASS ==================== */
.modal-content {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==================== DROPDOWNS - GLASS ==================== */
.dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    padding: 8px !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--accent-primary) !important;
}

/* ==================== LIST GROUPS - GLASS ==================== */
.list-group-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(10px) !important;
}

.list-group-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

/* ==================== CHECKBOXES & RADIOS ==================== */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    width: 20px !important;
    height: 20px !important;
}

.form-check-input:checked {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.form-check-label {
    color: var(--text-primary) !important;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--success); }
    50% { box-shadow: 0 0 20px var(--success), 0 0 30px var(--success); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: glow 2s ease-in-out infinite;
    margin-right: 8px;
}

/* ==================== NEON TEXT ==================== */
.neon-text-blue {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

.neon-text-green {
    color: var(--success) !important;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.neon-text-pink {
    color: var(--danger) !important;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

/* ==================== PRICE TICKER ==================== */
.ticker-wrapper {
    background: linear-gradient(90deg, rgba(10, 14, 26, 0.9), rgba(15, 23, 42, 0.8), rgba(10, 14, 26, 0.9)) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-duration, 26s) linear infinite;
    opacity: 0.92;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ticker-symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-price {
    color: var(--text-secondary);
}

.ticker-change-up {
    color: var(--success) !important;
}

.ticker-change-down {
    color: var(--danger) !important;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== PAGINATION ==================== */
.previous-next-container button,
.dash-table-container button {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
}

.previous-next-container button:hover {
    background: var(--accent-primary) !important;
}

.current-page-container input {
    background: rgba(30, 41, 59, 0.5) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
}

/* ==================== SELECT (DASH) ==================== */
.Select-control, .Select-menu-outer {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.Select-value-label, .Select-placeholder {
    color: var(--text-primary) !important;
}

.Select-option {
    background: rgba(30, 41, 59, 0.9) !important;
    color: var(--text-primary) !important;
}

.Select-option:hover, .Select-option.is-focused {
    background: rgba(59, 130, 246, 0.2) !important;
}

/* ==================== PLOTLY CHARTS ==================== */
.js-plotly-plot, .plotly, .plot-container {
    background: transparent !important;
}

.modebar {
    background: rgba(30, 41, 59, 0.8) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
}

/* ==================== FORCE DARK ==================== */
.bg-dark {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}

.text-muted {
    color: #aebcd3 !important;
}

small.text-muted,
.small.text-muted,
.text-muted.small {
    color: #bcc9dc !important;
}

.text-light {
    color: #f8fafc !important;
}

.text-info {
    color: #7dd3fc !important;
}

.text-success {
    color: #34d399 !important;
}

.text-danger {
    color: #f87171 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.investments-workspace .text-muted {
    color: #aebcd3 !important;
}

.investments-workspace .small.text-muted,
.investments-workspace small.text-muted,
.investments-workspace .text-muted.small {
    color: #bcc9dc !important;
}

.investments-workspace .card .text-light.small,
.investments-workspace .card .small.text-light {
    color: #dbe6f5 !important;
}

.investments-workspace {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.09), transparent 34%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(5, 13, 28, 0.98), rgba(6, 18, 38, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(2, 6, 23, 0.35);
}

.investments-workspace::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 72%);
    opacity: 0.18;
}

.investments-workspace > * {
    position: relative;
    z-index: 1;
}

.investments-hero {
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 24px;
    padding: 22px 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 19, 39, 0.88)),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 46px rgba(15, 23, 42, 0.28);
}

.investments-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.investments-hero-kicker {
    margin-bottom: 12px;
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.investments-hero-title {
    color: #c084fc !important;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.investments-hero-subtitle {
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.65;
}

.investments-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.investments-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.investments-hero-terminal {
    height: 100%;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 20px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(8, 17, 34, 0.96), rgba(10, 23, 46, 0.86));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(245, 158, 11, 0.04);
}

.investments-terminal-label {
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.investments-terminal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.investments-terminal-cell {
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.52);
}

.investments-terminal-value {
    margin-top: 8px;
    color: #f8fafc;
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.investments-market-strip {
    padding: 12px 14px 2px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 22px;
    background: rgba(8, 18, 35, 0.54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.invest-overview-card {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(12, 24, 46, 0.84)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 28px rgba(2, 6, 23, 0.22);
}

.invest-overview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 34px rgba(2, 6, 23, 0.3),
        0 0 0 1px rgba(125, 211, 252, 0.06);
}

.invest-overview-kicker {
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

.invest-overview-value {
    font-size: 2rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.invest-section-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(10, 19, 37, 0.96), rgba(8, 17, 33, 0.86)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 34px rgba(2, 6, 23, 0.24);
}

.invest-section-card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--invest-accent), transparent);
    opacity: 0.95;
}

.invest-section-card-header {
    padding: 16px 20px 10px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
}

.invest-section-card-body {
    padding: 20px !important;
    background: transparent !important;
}

.invest-guidance-item {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    background: rgba(10, 20, 37, 0.56);
}

.investments-tabset .nav-tabs,
.investments-workspace .nav-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(9, 18, 34, 0.56);
}

.investments-tabset .nav-link,
.investments-workspace .nav-tabs .nav-link {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 10px 16px !important;
    color: #aebcd3 !important;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent !important;
    transition: all 0.2s ease;
}

.investments-tabset .nav-link.active,
.investments-workspace .nav-tabs .nav-link.active {
    color: #f8fafc !important;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 24px rgba(15, 23, 42, 0.2);
}

.investments-workspace .form-control,
.investments-workspace .form-select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 14px !important;
    background: rgba(5, 13, 26, 0.84) !important;
    color: #eff6ff !important;
    box-shadow: none !important;
}

.investments-workspace .form-control:focus,
.investments-workspace .form-select:focus {
    border-color: rgba(56, 189, 248, 0.38) !important;
    box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.12) !important;
}

.investments-workspace .form-check-input {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background-color: rgba(15, 23, 42, 0.72) !important;
}

.investments-workspace .form-check-input:checked {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

.invest-summary-card,
.invest-metric-card,
.invest-idea-card,
.invest-watchlist-card,
.invest-profile-card,
.invest-allocation-card,
.invest-stat-card {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    background:
        linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(8, 16, 31, 0.84)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 28px rgba(2, 6, 23, 0.18);
}

.invest-idea-card:hover,
.invest-watchlist-card:hover,
.invest-allocation-card:hover {
    border-color: rgba(125, 211, 252, 0.18) !important;
    transform: translateY(-1px);
}

.invest-allocation-progress {
    height: 9px !important;
    border-radius: 999px !important;
    background: rgba(30, 41, 59, 0.68) !important;
}

.investments-workspace .progress-bar {
    border-radius: 999px !important;
}

.investments-workspace .badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.investments-workspace .alert-secondary {
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    background: rgba(15, 23, 42, 0.62) !important;
    color: #dbeafe !important;
}

.investments-workspace ul.small {
    padding-left: 1.1rem;
}

.investments-workspace .fw-semibold,
.invest-overview-value,
.investments-terminal-value {
    font-variant-numeric: tabular-nums;
}

.fiat-stream-card {
    border-radius: 20px !important;
    overflow: hidden;
}

.fiat-stream-body {
    background:
        linear-gradient(180deg, rgba(9, 18, 34, 0.92), rgba(8, 17, 32, 0.86)) !important;
}

.fiat-stream-side-title {
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fiat-stream-side-title.buy {
    color: #34d399;
}

.fiat-stream-side-title.sell {
    color: #f87171;
}

.fiat-stream-signal-strip {
    min-height: 42px;
}

.fiat-stream-signal-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fiat-signal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.fiat-signal-chip.buy {
    border-color: rgba(52, 211, 153, 0.24);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(8, 28, 36, 0.84));
}

.fiat-signal-chip.sell {
    border-color: rgba(248, 113, 113, 0.24);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(33, 14, 22, 0.86));
}

.fiat-signal-chip-symbol {
    color: #f8fafc;
    font-weight: 800;
}

.fiat-signal-chip-conf {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fiat-signal-chip-change {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fiat-signal-chip.buy .fiat-signal-chip-change {
    color: #86efac;
}

.fiat-signal-chip.sell .fiat-signal-chip-change {
    color: #fca5a5;
}

.fiat-signal-chip-tf,
.fiat-signal-chip-price {
    color: #bfd2ea;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.fiat-stream-empty-strip {
    padding: 10px 12px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    color: #94a3b8;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.35);
}

.fiat-stream-table-title {
    margin: 4px 0 10px;
    color: #8fd3ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fiat-full-signal-card {
    margin-top: 14px;
    border-radius: 22px !important;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(7, 15, 30, 0.96), rgba(8, 17, 32, 0.9)) !important;
}

.fiat-full-signal-card.buy {
    box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.06), 0 18px 36px rgba(2, 6, 23, 0.2);
}

.fiat-full-signal-card.sell {
    box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.06), 0 18px 36px rgba(2, 6, 23, 0.2);
}

.fiat-full-stream-kicker {
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.fiat-full-title {
    color: #f8fafc;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fiat-full-name {
    color: #b9c8dc;
    font-size: 0.95rem;
}

.fiat-full-side-badge {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    padding: 8px 12px !important;
}

.fiat-full-confidence {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(15, 23, 42, 0.72);
}

.fiat-full-confidence.buy {
    color: #86efac;
}

.fiat-full-confidence.sell {
    color: #fca5a5;
}

.fiat-full-meta-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.fiat-full-meta-item {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
}

.fiat-full-meta-label {
    display: block;
    color: #91a6c4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fiat-full-meta-value {
    display: block;
    margin-top: 6px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fiat-full-level-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.fiat-full-level-card {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.52);
}

.fiat-full-level-card.neutral {
    border-color: rgba(125, 211, 252, 0.16);
}

.fiat-full-level-card.success {
    border-color: rgba(52, 211, 153, 0.18);
}

.fiat-full-level-card.danger {
    border-color: rgba(248, 113, 113, 0.18);
}

.fiat-full-level-label {
    color: #8ea4c4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fiat-full-level-price {
    margin-top: 8px;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fiat-full-level-roi {
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fiat-full-level-roi.success {
    color: #86efac;
}

.fiat-full-level-roi.danger {
    color: #fca5a5;
}

.fiat-full-block-title {
    margin-bottom: 10px;
    color: #8fd3ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fiat-full-plan-list,
.fiat-full-reason-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #dbe7f7;
    font-size: 0.92rem;
}

.fiat-full-plan-list li,
.fiat-full-reason-list li {
    margin-bottom: 7px;
}

@media (max-width: 992px) {
    .investments-terminal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fiat-full-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fiat-full-level-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .investments-workspace {
        border-radius: 22px;
    }

    .investments-hero {
        padding: 18px;
    }

    .investments-terminal-grid {
        grid-template-columns: 1fr;
    }

    .investments-pill-row {
        gap: 8px;
    }

    .investments-pill {
        font-size: 0.72rem;
    }

    .invest-overview-value {
        font-size: 1.6rem;
    }

    .fiat-stream-signal-strip-inner {
        gap: 6px;
    }

    .fiat-signal-chip {
        width: 100%;
        justify-content: space-between;
    }

    .fiat-full-meta-grid,
    .fiat-full-level-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fiat-full-title {
        font-size: 1.28rem;
    }
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* All text should be visible */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

p, span, div, label {
    color: inherit;
}

/* Links */
a {
    color: var(--accent-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .card {
        border-radius: 16px !important;
    }

    .nav-tabs-ecosystem .nav-link {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    .stat-card {
        padding: 16px !important;
    }
}

/* ==================== SIGNAL BADGES ==================== */
/* BUY/SELL signal badges with glow effect */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-success:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, #34d399, #10b981) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-danger:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5) !important;
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.btn-warning:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5) !important;
}

/* Signal badge pulse animation for new signals */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
    }
}

.signal-new {
    animation: pulse-glow 2s infinite;
}

/* ==================== ALERT TOAST ==================== */
.toast {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 16px !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(16, 185, 129, 0.3) !important;
}

.toast-header {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), transparent) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: var(--success) !important;
    font-weight: 700 !important;
}

.toast-body {
    color: var(--text-primary) !important;
}

/* ==================== PRICE ALERTS PANEL ==================== */
#active-alerts-list > div {
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
}

#active-alerts-list > div:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Alert triggered animation */
@keyframes alert-triggered {
    0%, 100% {
        background: rgba(16, 185, 129, 0.1);
    }
    50% {
        background: rgba(16, 185, 129, 0.3);
    }
}

.alert-triggered {
    animation: alert-triggered 1s ease-in-out 3;
}

/* ==================== TRACK RECORD ==================== */
/* Win/Loss badge colors */
.badge-win {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.badge-loss {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}

/* PnL colors */
.pnl-positive {
    color: #10b981 !important;
    font-weight: 600 !important;
}

.pnl-negative {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* ==================== CHART IMPROVEMENTS ==================== */
/* Candlestick glow */
.main-svg .candlestick .increase {
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
}

.main-svg .candlestick .decrease {
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.5));
}

/* ==================== HOT MOVERS ==================== */
.hot-movers > div {
    transition: all 0.2s ease !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
}

.hot-movers > div:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    transform: translateX(4px) !important;
}

/* ==================== LOADING STATES ==================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==================== CONFIDENCE METER ==================== */
.confidence-high {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.confidence-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.confidence-low {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
}

/* ==================== SWITCH TOGGLE ==================== */
.form-switch .form-check-input {
    background-color: rgba(100, 116, 139, 0.5) !important;
    border: none !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--success) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
}


.education-workspace {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 34%),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(4, 10, 23, 0.98), rgba(7, 16, 31, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(2, 6, 23, 0.32);
}

.education-workspace::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 70%);
    opacity: 0.18;
}

.education-workspace > * {
    position: relative;
    z-index: 1;
}

.education-workspace .text-muted {
    color: #b6c3d8 !important;
}

.education-workspace .card .text-light,
.education-workspace .small.text-light,
.education-workspace .text-light.small {
    color: #e5eefb !important;
}

.education-hero,
.education-memo-card,
.education-panel-card,
.education-path-card,
.education-playbook-card {
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(7, 15, 29, 0.88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(2, 6, 23, 0.2);
}

.education-hero {
    padding: 24px;
}

.education-hero-title {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
    color: #f8fbff;
}

.education-hero-lead {
    color: #f8fbff;
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 42rem;
}

.education-kicker {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.education-section-title {
    color: #f8fbff;
    font-size: 1.14rem;
    font-weight: 700;
}

.education-section-subtitle {
    color: #9db0cb;
    font-size: 0.88rem;
    line-height: 1.45;
}

.education-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.education-metric-card {
    min-height: 122px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(12, 22, 40, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.education-metric-label {
    color: #8fa8c8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.education-metric-value {
    color: #f8fbff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.education-metric-caption {
    margin-top: 8px;
    color: #b7c5da;
    font-size: 0.82rem;
    line-height: 1.35;
}

.education-accent-info {
    box-shadow: inset 3px 0 0 rgba(56, 189, 248, 0.48);
}

.education-accent-primary {
    box-shadow: inset 3px 0 0 rgba(99, 102, 241, 0.48);
}

.education-accent-success {
    box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.48);
}

.education-accent-warning {
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.48);
}

.education-accent-secondary {
    box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.42);
}

.education-action-title {
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.08);
    color: #9bdcff;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}

.education-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.education-list-item {
    position: relative;
    padding-left: 18px;
    color: #e5eefb;
    line-height: 1.45;
}

.education-list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.9);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.education-bullet-list-success .education-list-item::before {
    background: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.education-bullet-list-warning .education-list-item::before {
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.education-step-card {
    min-height: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(12, 22, 40, 0.62);
}

.education-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.18));
    color: #f8fafc;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.education-glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.education-glossary-item {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(9, 18, 34, 0.54);
}

.education-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.education-signal-card {
    min-height: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(9, 18, 34, 0.54);
}

.education-signal-field {
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.education-signal-meaning {
    color: #d7e4f7;
    font-size: 0.88rem;
    line-height: 1.45;
}

.education-signal-action {
    margin-top: 10px;
    color: #9bdcff;
    font-size: 0.8rem;
    line-height: 1.4;
}

.education-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.education-health-card {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(9, 18, 34, 0.54);
}

.education-health-stream {
    color: #f8fbff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.education-health-badge {
    white-space: nowrap;
}

.education-health-value {
    color: #f8fbff;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}

.education-health-caption {
    margin-top: 4px;
    color: #8fa8c8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.education-health-note {
    margin-top: 10px;
    color: #d4e0f2;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .education-summary-grid,
    .education-signal-grid,
    .education-health-grid,
    .education-glossary-grid {
        grid-template-columns: 1fr;
    }
}
