* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #0a0e1a;
            --bg-secondary: #12182b;
            --bg-card: #1a2139;
            --accent-green: #00ff88;
            --accent-red: #ff3366;
            --accent-blue: #00b8ff;
            --accent-yellow: #ffd700;
            --text-primary: #ffffff;
            --text-secondary: #a0aec0;
            --border-color: #2d3748;
            --chat-accent: #0f9d58;
            --chat-bg: #0b0f1a;
            --chat-border: rgba(255,255,255,0.08);
        }

        body {
            font-family: Arial, sans-serif;
            font-weight: 100;
            background: linear-gradient(135deg, var(--bg-primary) 0%, #0d1424 100%);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .grain-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="4" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
            pointer-events: none;
            opacity: 0.3;
            z-index: 1;
        }

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

        .header {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
            animation: scan 3s linear infinite;
        }

        @keyframes scan {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        h1 {
            font-size: 3rem;
            font-weight: 300;
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
            letter-spacing: -1px;
        }

        .subtitle {
            font-family: Arial, sans-serif;
            color: var(--text-secondary);
            font-size: 0.9rem;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stats-freshness {
            grid-column: 1 / -1;
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            align-items: center;
            margin-top: -1rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .freshness-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            font-size: 0.75rem;
        }

        .freshness-pill.is-refreshing {
            color: var(--accent-blue);
            border-color: rgba(0, 184, 255, 0.35);
            background: rgba(0, 184, 255, 0.1);
        }

        .freshness-pill.is-cache {
            color: rgba(255, 219, 112, 0.95);
            border-color: rgba(255, 173, 0, 0.35);
            background: rgba(255, 173, 0, 0.12);
        }

        .freshness-pill.is-fresh {
            color: var(--accent-green);
            border-color: rgba(0, 255, 136, 0.35);
            background: rgba(0, 255, 136, 0.08);
        }

        .freshness-pill.is-warn {
            color: rgba(255, 77, 79, 0.95);
            border-color: rgba(255, 77, 79, 0.35);
            background: rgba(255, 77, 79, 0.08);
        }

        .freshness-pill.is-muted {
            color: var(--text-secondary);
        }

        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-blue);
            box-shadow: 0 10px 40px rgba(0, 184, 255, 0.2);
        }

        .stat-card--dark {
            background: #06070d;
            border-color: rgba(255, 255, 255, 0.08);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
        }

        .stat-label {
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 300;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .stat-change {
            font-size: 0.85rem;
            font-family: Arial, sans-serif;
        }

        .stat-change-muted {
            color: var(--text-secondary);
        }

        .stat-subtle {
            color: var(--text-secondary);
        }

        .stat-value-lg {
            font-size: 1.7rem;
            white-space: nowrap;
        }

        .stat-value-md {
            font-size: 1.5rem;
            white-space: nowrap;
        }

        .stat-value-sm {
            font-size: 1.35rem;
            white-space: nowrap;
        }

        .stat-value-xs {
            font-size: 1.2rem;
            white-space: nowrap;
        }

        .portfolio-summary {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            margin-bottom: 0.3rem;
        }

        .portfolio-summary-bar {
            display: flex;
            gap: 0.85rem;
            flex-wrap: wrap;
        }

        .portfolio-summary-pill {
            flex: 1;
            min-width: 180px;
            border-radius: 14px;
            padding: 0.75rem 1rem;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.02);
            color: #fff;
        }

        .portfolio-summary-pill .stat-label {
            color: rgba(255, 255, 255, 0.8);
        }

        .portfolio-summary-pill--invertido {
            border-color: rgba(255, 165, 0, 0.7);
            background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 94, 0, 0.35));
        }

        .portfolio-summary-pill--efectivo {
            border-color: rgba(0, 171, 255, 0.7);
            background: linear-gradient(135deg, rgba(0, 171, 255, 0.25), rgba(0, 110, 255, 0.3));
        }

        .portfolio-summary-pill--total {
            border-color: rgba(0, 255, 136, 0.7);
            background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(0, 184, 255, 0.25));
            text-align: center;
        }

        .portfolio-total-highlight {
            border-radius: 16px;
            padding: 0.95rem 1.1rem;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(0, 0, 0, 0.85));
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
        }

        .portfolio-total-highlight .stat-value {
            font-size: 1.9rem;
        }

        .portfolio-summary-row {
            display: flex;
            gap: 0.75rem;
            flex-wrap: nowrap;
            align-items: stretch;
            margin-bottom: 0.5rem;
            width: 100%;
        }

        .portfolio-actions-row {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 1.5rem;
        }

        .portfolio-action-btn {
            padding: 0.6rem 1.2rem;
            border-radius: 8px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .portfolio-action-btn--saldo {
            background: rgba(0,184,255,0.15);
            border: 1px solid rgba(0,184,255,0.35);
            color: var(--accent-blue);
        }

        .portfolio-action-btn--refresh {
            background: rgba(0,255,136,0.15);
            border: 1px solid rgba(0,255,136,0.4);
            color: var(--accent-green);
        }

        .portfolio-action-btn--snapshot {
            background: rgba(255,214,10,0.18);
            border: 1px solid rgba(255,214,10,0.4);
            color: var(--accent-yellow);
        }

        .portfolio-action-btn--primary {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            border: none;
            color: var(--bg-primary);
        }

        .portfolio-action-btn:disabled {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-secondary);
            cursor: default;
        }

        .positive {
            color: var(--accent-green);
        }

        .negative {
            color: var(--accent-red);
        }

        .section {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .fiscal-section {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 1.75rem;
            margin-bottom: 2rem;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        }

        .fiscal-section-head {
            display: flex;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .fiscal-description {
            color: var(--text-secondary);
            max-width: 460px;
            margin-top: 0.5rem;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .fiscal-controls {
            display: flex;
            gap: 1rem;
            align-items: flex-end;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .fiscal-controls label {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            font-size: 0.7rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .fiscal-controls select {
            min-width: 130px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 0.55rem 0.85rem;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        .fiscal-action-btn {
            padding: 0.65rem 1.5rem;
            font-size: 0.95rem;
            border: none;
            border-radius: 10px;
            color: #000;
            cursor: pointer;
        }

        .fiscal-action-btn--download {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
        }

        .fiscal-action-btn--view {
            background: linear-gradient(135deg, rgba(0, 184, 255, 0.7), rgba(0, 255, 136, 0.7));
        }

        .fiscal-action-btn:disabled {
            cursor: not-allowed;
            opacity: 0.85;
        }

        .fiscal-tabs {
            margin-top: 1rem;
            display: inline-flex;
            gap: 0.35rem;
            padding: 0.25rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04);
        }

        .fiscal-tab {
            border: none;
            border-radius: 999px;
            padding: 0.35rem 0.85rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            font-weight: 200;
        }

        .fiscal-tab.active {
            background: rgba(0,184,255,0.2);
            color: var(--text-primary);
        }

        .fiscal-view {
            margin-top: 1rem;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.02);
            padding: 1rem;
        }

        .fiscal-view-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .fiscal-view-status {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .fiscal-view-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .fiscal-view-tab {
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.04);
            border-radius: 10px;
            padding: 0.3rem 0.7rem;
            font-size: 0.75rem;
            color: var(--text-secondary);
            cursor: pointer;
            font-weight: 200;
        }

        .fiscal-view-tab.active {
            border-color: rgba(0,184,255,0.45);
            color: var(--text-primary);
            background: rgba(0,184,255,0.12);
        }

        .fiscal-table-wrap {
            overflow-x: auto;
            border-radius: 12px;
        }

        .fiscal-table {
            width: 100%;
            min-width: 720px;
            border-collapse: collapse;
        }

        .fiscal-table th,
        .fiscal-table td {
            padding: 0.6rem 0.65rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            text-align: left;
            font-size: 0.85rem;
        }

        .fiscal-table th {
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

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

        .fiscal-message {
            margin-top: 0.75rem;
            font-size: 0.9rem;
        }

        .fiscal-message.success {
            color: var(--accent-green);
        }

        .fiscal-message.error {
            color: var(--accent-red);
        }

        .fiscal-meta-grid {
            margin-top: 1.5rem;
            display: grid;
            gap: 0.9rem;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }

        .fiscal-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
        }

        .fiscal-card strong {
            display: block;
            font-size: 1.05rem;
            margin-top: 0.3rem;
        }

        .fiscal-hash {
            word-break: break-all;
        }

        .fiscal-meta-sub {
            color: var(--text-secondary);
        }

        .fiscal-label {
            font-size: 0.75rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .fiscal-pill-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.35rem;
        }

        .fiscal-pill {
            padding: 0.2rem 0.65rem;
            border-radius: 999px;
            background: rgba(0, 184, 255, 0.15);
            border: 1px solid rgba(0, 184, 255, 0.33);
            font-size: 0.75rem;
            letter-spacing: 0.2px;
        }

        .fiscal-pill--positive {
            background: rgba(0, 255, 136, 0.12);
            border-color: rgba(0, 255, 136, 0.4);
        }

        .fiscal-pill--negative {
            background: rgba(255, 51, 102, 0.12);
            border-color: rgba(255, 51, 102, 0.4);
        }

        .fiscal-regimen {
            margin-top: 1.25rem;
            border-radius: 12px;
            padding: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(0, 255, 136, 0.05);
        }

        .fiscal-regimen-text {
            margin-top: 0.35rem;
            color: var(--text-secondary);
        }

        .fiscal-regimen-pills {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 0.75rem;
        }

        .fiscal-regimen strong {
            font-size: 1rem;
        }

        .orders-section {
            margin-top: 1rem;
            background: linear-gradient(135deg, rgba(13, 20, 34, 0.95), rgba(29, 39, 64, 0.95));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.25rem;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
        }

        .orders-section table {
            width: 100%;
            border-collapse: collapse;
            min-width: 540px;
        }

        .orders-section th,
        .orders-section td {
            padding: 0.65rem 0.6rem;
            font-size: 0.85rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .orders-section thead th {
            text-transform: uppercase;
            font-size: 0.7rem;
            letter-spacing: 0.1rem;
            color: var(--text-secondary);
        }

        .orders-section tbody td:last-child {
            text-align: right;
        }

        .orders-section .order-state {
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
            padding: 0.15rem 0.6rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }

        .order-type-label {
            font-family: Arial, sans-serif;
            font-weight: 200;
            letter-spacing: 0.2px;
        }

        .order-type--venta {
            color: var(--accent-red);
        }

        .order-type--compra {
            color: var(--accent-green);
        }

        .orders-section tr {
            transition: background 0.2s ease;
        }

        .order-row--venta td {
            background: rgba(140, 20, 20, 0.35);
        }

        .order-row--compra td {
            background: rgba(2, 80, 40, 0.45);
        }

        .orders-list {
            display: grid;
            gap: 0.8rem;
            margin-top: 0.75rem;
        }

        .order-card {
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: linear-gradient(135deg, rgba(10, 14, 26, 0.9), rgba(17, 22, 37, 0.95));
            padding: 0.85rem 1rem;
            display: grid;
            gap: 0.4rem;
            transition: all 0.25s ease;
        }

        .order-card:hover {
            border-color: var(--accent-blue);
            box-shadow: 0 6px 20px rgba(0, 184, 255, 0.25);
        }

        .order-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .order-card-header strong {
            font-size: 0.95rem;
            font-weight: 300;
        }

        .order-card-status {
            font-family: Arial, sans-serif;
            font-size: 0.8rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .order-card-details {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
            align-items: baseline;
        }

        .order-card-details span {
            font-family: Arial, sans-serif;
        }

        .order-card-body {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .order-card--empty {
            border-style: dashed;
            text-align: center;
        }

        .order-state--pending {
            color: var(--accent-blue);
        }

        .order-state--executed {
            color: var(--accent-green);
        }

        .order-state--neutral {
            color: var(--text-secondary);
        }

        .sim-chart-container {
            width: 100%;
            height: 210px;
        }

        .sim-tooltip {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 0.4rem 0.6rem;
            color: var(--text-primary);
            font-size: 0.8rem;
        }

        .sim-tooltip-label {
            color: var(--text-secondary);
            font-size: 0.75rem;
            margin-bottom: 0.2rem;
        }

        .sim-tooltip-value {
            font-family: Arial, sans-serif;
        }

        .sim-header-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .sim-header-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .badge-demo {
            background: rgba(0, 184, 255, 0.12);
            border: 1px solid rgba(0, 184, 255, 0.35);
            color: var(--accent-blue);
        }

        .button-compact {
            padding: 0.4rem 0.7rem;
        }

        .sim-action-btn {
            border-radius: 8px;
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            border: 1px solid transparent;
            cursor: pointer;
            font-weight: 200;
        }

        .sim-action-btn--blue {
            background: rgba(0, 184, 255, 0.12);
            border-color: rgba(0, 184, 255, 0.35);
            color: var(--accent-blue);
        }

        .sim-action-btn--green {
            background: rgba(0, 255, 136, 0.15);
            border-color: rgba(0, 255, 136, 0.35);
            color: var(--accent-green);
        }

        .sim-action-btn.is-loading,
        .sim-action-btn:disabled {
            background: rgba(255, 255, 255, 0.08);
            cursor: default;
        }

        .sim-alert {
            margin-bottom: 1rem;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.85);
        }

        .sim-alert--error {
            border: 1px solid rgba(255, 77, 77, 0.35);
            background: rgba(255, 77, 77, 0.08);
        }

        .sim-alert--success {
            border: 1px solid rgba(0, 255, 136, 0.25);
            background: rgba(0, 255, 136, 0.08);
        }

        .sim-alert--info {
            border: 1px solid rgba(0, 184, 255, 0.35);
            background: rgba(0, 184, 255, 0.08);
        }

        .sim-alert-title {
            color: var(--accent-blue);
        }

        .stats-grid--compact {
            margin-bottom: 0.75rem;
        }

        .stats-grid--spaced {
            margin-bottom: 1rem;
        }

        .sim-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1rem;
        }

        .sim-card--spaced {
            margin-bottom: 1rem;
        }

        .sim-card-title {
            margin: 0 0 0.75rem;
            font-size: 1.05rem;
        }

        .sim-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .sim-card-actions {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .sim-order-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .sim-form-row {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .sim-radio {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            cursor: pointer;
        }

        .sim-form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }

        .sim-field-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 0.35rem;
        }

        .sim-field-label--caps {
            text-transform: uppercase;
        }

        .sim-input {
            width: 100%;
            padding: 0.55rem 0.7rem;
            border-radius: 10px;
            background: rgba(0,0,0,0.25);
            color: var(--text-primary);
            border: 1px solid rgba(255,255,255,0.10);
        }

        .sim-field-row {
            display: flex;
            justify-content: space-between;
            gap: 0.5rem;
            align-items: baseline;
        }

        .sim-field-hint {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .sim-mode-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
            margin-top: 0.65rem;
        }

        .sim-mode-title {
            font-size: 0.75rem;
            color: var(--text-secondary);
            letter-spacing: 0.08rem;
        }

        .sim-mode-option {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            text-transform: uppercase;
        }

        .sim-order-options {
            margin-top: 0.6rem;
            display: grid;
            gap: 0.45rem;
        }

        .sim-disparador-row {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .sim-disparador-label {
            text-transform: uppercase;
            letter-spacing: 0.05rem;
        }

        .sim-select {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 10px;
            padding: 0.35rem 0.6rem;
            color: var(--text-primary);
            font-family: Arial, sans-serif;
            font-size: 0.8rem;
            cursor: pointer;
        }

        .sim-import-row {
            margin-top: 0.6rem;
            display: flex;
            gap: 0.6rem;
            align-items: flex-end;
            flex-wrap: wrap;
        }

        .sim-import-field {
            flex: 1 1 200px;
        }

        .sim-button {
            border-radius: 10px;
            padding: 0.55rem 0.8rem;
            border: 1px solid transparent;
            font-weight: 200;
            cursor: pointer;
        }

        .sim-button--ghost {
            border-color: rgba(0,184,255,0.35);
            background: rgba(0,184,255,0.12);
            color: var(--accent-blue);
        }

        .sim-button:disabled {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
            color: var(--text-secondary);
            cursor: default;
        }

        .sim-hint {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .sim-hint--mt-xxs {
            margin-top: 0.2rem;
        }

        .sim-hint--mt-xs {
            margin-top: 0.25rem;
        }

        .sim-hint--mt-sm {
            margin-top: 0.35rem;
        }

        .sim-hint--mt-md {
            margin-top: 0.45rem;
        }

        .sim-auto-row {
            margin-top: 0.4rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .sim-auto-label {
            text-transform: uppercase;
            letter-spacing: 0.08rem;
        }

        .text-accent-blue {
            color: var(--accent-blue);
        }

        .sim-reco-link {
            margin-top: 0.35rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            align-items: center;
        }

        .sim-reco-id {
            font-weight: 300;
        }

        .sim-chip-btn {
            border: 1px solid rgba(255,255,255,0.14);
            background: rgba(255,255,255,0.06);
            color: var(--text-primary);
            border-radius: 999px;
            padding: 0.2rem 0.55rem;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 200;
        }

        .sim-execute-btn {
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: 12px;
            border: 1px solid rgba(0,255,136,0.35);
            background: rgba(0,255,136,0.18);
            color: var(--accent-green);
            font-weight: 200;
            cursor: pointer;
        }

        .sim-execute-btn:disabled {
            background: rgba(255,255,255,0.08);
            color: var(--text-secondary);
            cursor: default;
        }

        .sim-error {
            font-size: 0.85rem;
            color: var(--accent-red);
        }

        .sim-transactions {
            margin-top: 1rem;
        }

        .sim-transactions-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .sim-transaction-item {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.65rem 0.75rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.02);
            flex-wrap: wrap;
        }

        .sim-transaction-main {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .sim-transaction-asset {
            font-weight: 300;
        }

        .sim-transaction-detail {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .sim-transaction-pnl {
            font-weight: 300;
        }

        .sim-transaction-date {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .sim-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1200;
            padding: 1.5rem;
        }

        .sim-modal {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 1.25rem;
        }

        .sim-modal--sm {
            max-width: 420px;
        }

        .sim-modal--lg {
            max-width: 540px;
        }

        .sim-modal-title {
            margin-top: 0;
            margin-bottom: 0.75rem;
        }

        .sim-modal-title--tight {
            margin: 0;
        }

        .sim-modal-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }

        .sim-modal-input {
            padding: 0.75rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.25);
            font-size: 1rem;
        }

        .sim-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .sim-modal-actions--right {
            justify-content: flex-end;
        }

        .sim-modal-header {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: center;
        }

        .sim-modal-empty {
            margin-top: 1rem;
            color: var(--text-secondary);
        }

        .sim-modal-scroll {
            margin-top: 1rem;
            max-height: 70vh;
            overflow-y: auto;
            padding-right: 0.4rem;
        }

        .sim-stats-split {
            margin-top: 1rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .sim-stats-card {
            border-radius: 12px;
            padding: 0.85rem;
            border: 1px solid transparent;
        }

        .sim-stats-card--positive {
            background: rgba(0,255,136,0.06);
            border-color: rgba(0,255,136,0.18);
        }

        .sim-stats-card--negative {
            background: rgba(255,77,77,0.06);
            border-color: rgba(255,77,77,0.18);
        }

        .sim-stats-card-title {
            font-weight: 300;
            margin-bottom: 0.35rem;
        }

        .sim-stats-list {
            display: grid;
            gap: 0.35rem;
        }

        .sim-stats-item {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .sim-insights {
            margin-top: 1rem;
            background: rgba(255,255,255,0.02);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.85rem;
        }

        .sim-insights-title {
            font-weight: 300;
            margin-bottom: 0.35rem;
        }

        .sim-insights-list {
            margin: 0;
            padding-left: 1.1rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .sim-insights-item {
            margin-bottom: 0.35rem;
        }

        .sim-insights-item:last-child {
            margin-bottom: 0;
        }

        .sim-empty-banner {
            margin-bottom: 1rem;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-secondary);
        }

        .sim-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 1rem;
        }

        .sim-muted {
            color: var(--text-secondary);
        }

        .sim-text-sm {
            font-size: 0.8rem;
        }

        .sim-mt-sm {
            margin-top: 0.75rem;
        }

        .sim-table-wrap {
            width: 100%;
            overflow-x: auto;
        }

        .sim-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 560px;
        }

        .sim-table-head {
            text-align: left;
            color: var(--text-secondary);
            font-size: 0.75rem;
        }

        .sim-table th,
        .sim-table td {
            padding: 0.6rem 0.5rem;
        }

        .sim-table-row {
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sim-table-crypto {
            font-weight: 300;
        }

        .sim-table-qty {
            font-family: Arial, sans-serif;
        }

        .table-right {
            text-align: right;
        }

        .orders-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .orders-title {
            margin: 0;
            font-size: 1.05rem;
        }

        .orders-subtitle {
            margin: 0.35rem 0 0;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .header-currency {
            position: absolute;
            top: 1.25rem;
            right: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.6rem;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08rem;
        }

        .header-currency label {
            color: var(--text-secondary);
        }

        .header-currency select {
            background: var(--bg-primary);
            background-color: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.2rem 0.4rem;
            color: var(--text-primary);
            font-family: Arial, sans-serif;
            font-size: 0.8rem;
            outline: none;
            cursor: pointer;
        }

        .header-currency select option {
            background: var(--bg-primary);
            background-color: var(--bg-primary);
            color: var(--text-primary);
        }

        .header-currency select:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
            gap: 0.75rem;
        }

        .portfolio-chart {
            background: radial-gradient(circle at top left, rgba(139,92,246,0.15), transparent 55%), var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .portfolio-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .portfolio-chart-info {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .portfolio-chart-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.12rem;
            font-family: Arial, sans-serif;
        }

        .portfolio-chart-value {
            font-size: 2rem;
            font-weight: 300;
            font-family: Arial, sans-serif;
        }

        .portfolio-chart-change {
            font-size: 0.9rem;
            font-family: Arial, sans-serif;
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .portfolio-chart-meta {
            display: flex;
            gap: 1.2rem;
            flex-wrap: wrap;
            align-items: center;
            margin-top: 0.3rem;
        }

        .portfolio-chart-meta-item {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }

        .portfolio-chart-meta-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
        }

        .portfolio-chart-meta-value {
            font-size: 0.85rem;
            color: var(--text-primary);
            font-family: Arial, sans-serif;
        }

        .portfolio-chart-period {
            color: var(--text-secondary);
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .portfolio-chart-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .portfolio-period-select {
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.35rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 200;
            text-transform: uppercase;
            letter-spacing: 0.08rem;
            font-family: Arial, sans-serif;
            cursor: pointer;
        }

        .portfolio-period-select option {
            background: var(--bg-primary);
            color: var(--text-primary);
        }

        .portfolio-chart-placeholder {
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .portfolio-chart-container {
            width: 100%;
            height: 220px;
        }

        .portfolio-tooltip {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 0.5rem 0.75rem;
            color: var(--text-primary);
        }

        .portfolio-tooltip-label {
            color: var(--text-secondary);
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }

        .portfolio-tooltip-value {
            font-family: Arial, sans-serif;
        }

        .portfolio-table {
            display: grid;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }

        .portfolio-cards {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            justify-items: stretch;
        }

        .portfolio-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 0.9rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            max-width: none;
            width: 100%;
        }

        .portfolio-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .portfolio-card-title {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex: 1;
            min-width: 0;
            flex-wrap: wrap;
        }

        .portfolio-card-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            margin-left: auto;
            min-width: 0;
        }

        .portfolio-card-value {
            font-size: clamp(1rem, 2vw, 1.6rem);
            font-weight: 300;
            font-family: Arial, sans-serif;
            margin-left: auto;
            text-align: right;
            white-space: normal;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
            line-height: 1.15;
        }

        .portfolio-card-balance {
            font-size: 0.75rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            margin-left: auto;
            text-align: right;
            width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .portfolio-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem 1rem;
        }

        .portfolio-card-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .portfolio-card-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
        }

        @media (max-width: 1200px) {
            .portfolio-cards {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

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

        @media (max-width: 600px) {
            .portfolio-cards {
                grid-template-columns: 1fr;
            }

            .portfolio-card {
                max-width: 100%;
            }
        }

        .portfolio-row {
            display: grid;
            grid-template-columns: 220px 160px 160px 150px 150px 120px 160px 160px 160px 60px;
            align-items: center;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.9rem 1rem;
            min-width: 1200px;
            gap: 0.75rem;
        }

        .portfolio-row.header {
            background: transparent;
            border: none;
            padding: 0 1rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.08rem;
            font-size: 0.7rem;
            font-family: Arial, sans-serif;
        }

        .asset-cell {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .asset-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(0,184,255,0.2);
            border: 1px solid rgba(0,184,255,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 300;
            color: var(--accent-blue);
            font-family: Arial, sans-serif;
            position: relative;
            overflow: hidden;
        }

        .asset-icon img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: transparent;
            z-index: 2;
        }

        .asset-icon-fallback {
            position: relative;
            z-index: 1;
            transition: opacity 0.2s ease;
        }

        .asset-meta {
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
        }

        .asset-symbol {
            font-weight: 300;
            font-size: 0.9rem;
        }

        .asset-name {
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05rem;
        }

        .portfolio-cell-muted {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .portfolio-cell-value {
            font-weight: 200;
            font-family: Arial, sans-serif;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .portfolio-card-footer {
            display: flex;
            justify-content: flex-end;
            gap: 0.4rem;
            margin-top: auto;
        }

        .portfolio-card-btn {
            padding: 0.35rem 0.65rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            border: 1px solid transparent;
            background: transparent;
        }

        .portfolio-card-btn--icon {
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            font-size: 0.9rem;
            line-height: 1;
        }

        .portfolio-card-btn--saldo {
            background: rgba(0,184,255,0.15);
            border-color: rgba(0,184,255,0.3);
            color: var(--accent-blue);
        }

        .portfolio-card-btn--sell {
            background: rgba(255,51,102,0.18);
            border-color: rgba(255,51,102,0.35);
            color: var(--accent-red);
        }

        .portfolio-card-btn--edit {
            background: rgba(0,184,255,0.15);
            border-color: rgba(0,184,255,0.3);
            color: var(--accent-blue);
        }

        .portfolio-card-btn--delete {
            background: rgba(255,51,102,0.2);
            border-color: rgba(255,51,102,0.3);
            color: var(--accent-red);
        }

        .news-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }

        .news-thumb {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: rgba(255,255,255,0.06);
            overflow: hidden;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            color: var(--text-secondary);
            position: relative;
        }

        .news-thumb-icon {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
        }

        .news-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            position: relative;
            z-index: 2;
        }

        .news-summary {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.75rem;
        }

        .news-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .news-update-btn {
            background: rgba(0, 184, 255, 0.15);
            border: 1px solid rgba(0, 184, 255, 0.4);
            padding: 0.45rem 0.9rem;
            border-radius: 8px;
            color: var(--accent-blue);
            cursor: pointer;
            font-size: 0.75rem;
            transition: all 0.3s ease;
        }

        .news-update-btn.is-loading,
        .news-update-btn:disabled {
            background: rgba(255, 255, 255, 0.08);
            cursor: default;
        }

        .news-grid {
            display: grid;
            gap: 1rem;
        }

        .news-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            transition: all 0.3s ease;
        }

        .news-content {
            flex: 1;
        }

        .news-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
        }

        .news-impact {
            padding: 0.25rem 0.75rem;
            border-radius: 6px;
            font-size: 0.75rem;
            border: 1px solid var(--border-color);
        }

        .news-impact-positive {
            background: rgba(0, 255, 136, 0.2);
            color: var(--accent-green);
            border-color: var(--accent-green);
        }

        .news-impact-negative {
            background: rgba(255, 51, 102, 0.2);
            color: var(--accent-red);
            border-color: var(--accent-red);
        }

        .news-impact-neutral {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
        }

        .news-relevancia {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .news-type {
            font-size: 0.7rem;
            color: var(--accent-blue);
            background: rgba(0, 184, 255, 0.1);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }

        .news-title {
            font-size: 1rem;
            color: #fff;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }

        .news-link {
            color: var(--accent-blue);
            font-size: 0.85rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .news-empty {
            text-align: center;
            padding: 3rem;
            color: var(--text-secondary);
        }

        .news-empty-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .news-empty-text {
            margin: 0;
        }

        .news-empty-subtext {
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }

        .is-hidden {
            display: none;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 300;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-family: Arial, sans-serif;
            font-weight: 200;
            text-transform: uppercase;
        }

        .badge-success {
            background: rgba(0, 255, 136, 0.2);
            color: var(--accent-green);
            border: 1px solid var(--accent-green);
        }

        .badge-warning {
            background: rgba(255, 215, 0, 0.2);
            color: var(--accent-yellow);
            border: 1px solid var(--accent-yellow);
        }

        .badge-danger {
            background: rgba(255, 51, 102, 0.2);
            color: var(--accent-red);
            border: 1px solid var(--accent-red);
        }

        .rec-header-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .rec-action-btn {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 200;
            transition: all 0.3s ease;
        }

        .rec-action-btn--refresh {
            background: rgba(0,184,255,0.15);
            border: 1px solid rgba(0,184,255,0.4);
            color: var(--accent-blue);
            cursor: pointer;
        }

        .rec-action-btn--history {
            background: rgba(0,184,255,0.2);
            border: 1px solid rgba(0,184,255,0.3);
            color: var(--accent-blue);
            cursor: pointer;
        }

        .rec-action-btn:disabled {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-secondary);
            cursor: default;
        }

        .rec-strategy-card {
            margin-top: 0.75rem;
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.03);
        }

        .rec-strategy-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: flex-end;
        }

        .rec-field {
            min-width: 160px;
        }

        .rec-field--wide {
            min-width: 180px;
        }

        .rec-field-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 0.25rem;
            font-family: Arial, sans-serif;
        }

        .rec-input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            background: var(--bg-primary);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-primary);
        }

        .rec-toggle {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.12);
            background: var(--bg-primary);
            color: var(--text-primary);
            cursor: pointer;
            position: relative;
        }

        .rec-toggle-info {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-left: 0.25rem;
        }

        .rec-checkbox {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            margin-bottom: 0.4rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
            cursor: pointer;
        }

        .rec-save-btn {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            border: none;
            padding: 0.6rem 1.1rem;
            border-radius: 10px;
            color: var(--bg-primary);
            cursor: pointer;
            font-size: 0.85rem;
        }

        .rec-save-btn:disabled {
            background: rgba(255,255,255,0.08);
            color: var(--text-secondary);
            cursor: default;
        }

        .rec-strategy-progress {
            margin-top: 0.9rem;
            padding: 0.9rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.10);
            background: rgba(0,184,255,0.08);
        }

        .rec-progress-header {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.6rem;
        }

        .rec-progress-title {
            color: var(--text-primary);
        }

        .rec-spinner {
            width: 18px;
            height: 18px;
            border: 3px solid rgba(255,255,255,0.14);
            border-top-color: var(--accent-blue);
            margin: 0;
        }

        .rec-progress {
            width: 100%;
            height: 10px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.10);
            background: rgba(255,255,255,0.08);
            overflow: hidden;
            appearance: none;
        }

        .rec-progress::-webkit-progress-bar {
            background: rgba(255,255,255,0.08);
            border-radius: 999px;
        }

        .rec-progress::-webkit-progress-value {
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
            border-radius: 999px;
            transition: width 0.6s ease;
        }

        .rec-progress::-moz-progress-bar {
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
            border-radius: 999px;
        }

        .rec-progress-message {
            margin-top: 0.6rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .rec-strategy-note {
            margin-top: 0.75rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
            line-height: 1.35;
        }

        .rec-empty {
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.02);
            color: var(--text-secondary);
        }

        .rec-empty-title {
            color: var(--text-primary);
            margin-bottom: 0.35rem;
        }

        .rec-empty-text {
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .rec-block {
            margin-bottom: 1.1rem;
            padding: 1rem;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.02);
        }

        .rec-block--market {
            background: rgba(0,255,136,0.05);
        }

        .rec-block--signals {
            background: rgba(0,184,255,0.04);
        }

        .rec-block--watch {
            margin-top: 1.25rem;
            margin-bottom: 0;
        }

        .rec-block-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }

        .rec-block-title {
            margin: 0;
            font-size: 1.05rem;
            text-transform: uppercase;
        }

        .rec-empty-note {
            color: var(--text-secondary);
        }

        .rec-origin-badge {
            margin-left: 0.5rem;
        }

        .rec-card-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .rec-demo-btn {
            padding: 0.25rem 0.6rem;
            border-radius: 999px;
            border: 1px solid rgba(0,184,255,0.35);
            background: rgba(0,184,255,0.10);
            color: var(--accent-blue);
            font-weight: 200;
            cursor: pointer;
            font-size: 0.75rem;
            letter-spacing: 0.2px;
        }

        .rec-stat-note {
            margin-top: 0.35rem;
        }

        .rec-rentabilidad {
            display: block;
            margin-top: 0.35rem;
            font-size: 0.8rem;
        }

        .price-value--compact {
            font-size: 0.85rem;
            line-height: 1.3;
        }

        .text-numeric {
            font-family: Arial, sans-serif;
        }

        .text-muted {
            color: var(--text-secondary);
        }

        .ml-sm {
            margin-left: 0.5rem;
        }

        .ck-plan-sub--spaced {
            margin-top: 0.6rem;
        }

        .ck-plan-item--full {
            grid-column: 1 / -1;
        }

        .ck-plan-options {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .ck-plan-option {
            flex: 1 1 240px;
            padding: 0.75rem;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.03);
        }

        .ck-plan-option-header {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            align-items: center;
        }

        .ck-plan-label--tight {
            margin-bottom: 0;
        }

        .ck-plan-value--sm {
            font-size: 0.95rem;
        }

        .ck-plan-option-list {
            margin: 0.5rem 0 0;
            padding-left: 1.1rem;
            color: var(--text-secondary);
        }

        .ck-plan-option-item {
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
        }

        .ck-plan-option-item:last-child {
            margin-bottom: 0;
        }

        .rec-reasons {
            margin-top: 1rem;
        }

        .rec-reasons-title {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-family: Arial, sans-serif;
            text-transform: uppercase;
        }

        .rec-summary {
            margin-top: 1rem;
            padding: 1rem;
            background: var(--bg-primary);
            border-radius: 8px;
        }

        .rec-summary-title {
            font-size: 0.7rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-family: Arial, sans-serif;
        }

        .rec-summary-list {
            margin: 0;
            padding-left: 1.25rem;
            color: var(--text-secondary);
        }

        .rec-summary-item {
            font-size: 0.85rem;
            margin-bottom: 0.35rem;
        }

        .rec-summary-item:last-child {
            margin-bottom: 0;
        }

        .rec-confidence {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
        }

        .rec-confidence-title {
            font-size: 0.7rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-family: Arial, sans-serif;
        }

        .rec-confidence-list {
            margin: 0;
            padding-left: 1.25rem;
            color: var(--text-secondary);
        }

        .rec-confidence-item {
            font-size: 0.85rem;
            margin-bottom: 0.35rem;
        }

        .rec-confidence-item:last-child {
            margin-bottom: 0;
        }

        .recommendation-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .recommendation-card:hover {
            border-color: var(--accent-green);
            transform: translateX(5px);
        }

        .recommendation-card.vender:hover {
            border-color: var(--accent-red);
        }

        .recommendation-card.mantener:hover {
            border-color: var(--accent-blue);
        }

        .recommendation-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            border-radius: 4px 0 0 4px;
        }

        .recommendation-card.comprar::before {
            background: var(--accent-green);
        }

        .recommendation-card.vender::before {
            background: var(--accent-red);
        }

        .recommendation-card.mantener::before {
            background: var(--accent-blue);
        }

        .ck-plan-grid {
            margin-top: 0.95rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 0.75rem;
            padding: 0.9rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
        }

        .ck-plan-item {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            min-width: 0;
        }

        .ck-plan-label {
            font-size: 0.7rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .ck-plan-value {
            font-size: 0.95rem;
            font-weight: 300;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ck-plan-sub {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .ck-simple-plan {
            margin-top: 0.85rem;
            padding: 0.95rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
        }

        .ck-simple-plan-title {
            font-size: 0.72rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.6rem;
        }

        .ck-simple-plan-list {
            margin: 0;
            padding-left: 1.1rem;
            color: var(--text-primary);
        }

        .ck-simple-plan-list li {
            margin-bottom: 0.45rem;
            line-height: 1.45;
            color: var(--text-primary);
        }

        .ck-simple-plan-list li:last-child {
            margin-bottom: 0;
        }

        .ck-simple-plan-k {
            font-family: Arial, sans-serif;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-size: 0.72rem;
            letter-spacing: 0.06em;
        }

        .ck-plan-action {
            font-weight: 300;
        }

        .ck-plan-action--compra {
            color: var(--accent-green);
        }

        .ck-plan-action--venta {
            color: var(--accent-red);
        }

        .ck-plan-action--stop {
            color: var(--accent-blue);
        }

        .ck-reco-details {
            margin-top: 0.9rem;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 0.6rem 0.85rem;
        }

        .ck-reco-details summary {
            cursor: pointer;
            list-style: none;
            color: var(--accent-blue);
            font-weight: 300;
            font-size: 0.9rem;
            user-select: none;
        }

        .ck-reco-details summary::before {
            content: '▸';
            display: inline-block;
            margin-right: 0.45rem;
            color: var(--text-secondary);
            transform: translateY(-1px);
            transition: transform 0.2s ease;
        }

        .ck-reco-details[open] summary::before {
            transform: rotate(90deg) translateY(-1px);
        }

        .ck-reco-details summary::-webkit-details-marker {
            display: none;
        }

        .ck-reco-details[open] summary {
            margin-bottom: 0.8rem;
        }

        .ck-daily-report {
            background: linear-gradient(135deg, rgba(0,184,255,0.10) 0%, rgba(0,255,136,0.06) 100%);
            border: 1px solid rgba(0,184,255,0.25);
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }

        .ck-daily-report-title {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }

        .ck-daily-report-title h3 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 300;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .ck-daily-report-summary {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0.5rem 0 0.75rem 0;
        }

        .report-timestamp {
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
        }

        .report-muted-inline {
            color: var(--text-secondary);
        }

        .report-text-primary {
            color: var(--text-primary);
        }

        .report-muted-block {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .ck-report-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 0.9rem;
            margin-top: 0.75rem;
        }

        .ck-report-card {
            background: rgba(10,14,26,0.75);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1rem;
        }

        .report-alerts-grid {
            display: grid;
            gap: 0.6rem;
        }

        .report-alert-row {
            display: flex;
            gap: 0.6rem;
            align-items: flex-start;
        }

        .report-alert-content {
            flex: 1;
            min-width: 0;
        }

        .report-alert-summary {
            margin-top: 0.25rem;
            color: var(--text-secondary);
            font-size: 0.82rem;
            line-height: 1.35;
        }

        .risk-summary-row {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }

	        .ck-report-card h4 {
	            margin: 0 0 0.75rem 0;
	            font-size: 0.8rem;
	            color: var(--text-secondary);
	            font-family: Arial, sans-serif;
	            text-transform: uppercase;
	            letter-spacing: 0.08em;
	        }

	        .ck-tooltip {
	            position: relative;
	            display: inline-flex;
	            align-items: center;
	            cursor: help;
	        }

	        .ck-tooltip-label {
	            margin-right: 0.45rem;
	        }

	        .ck-tooltip-icon {
	            width: 18px;
	            height: 18px;
	            display: inline-flex;
	            align-items: center;
	            justify-content: center;
	            border-radius: 999px;
	            border: 1px solid rgba(255, 255, 255, 0.18);
	            background: rgba(0, 0, 0, 0.25);
	            color: rgba(255, 255, 255, 0.7);
	            font-size: 0.72rem;
	            line-height: 1;
	            user-select: none;
	        }

	        .ck-tooltip-content {
	            position: absolute;
	            top: calc(100% + 0.5rem);
	            left: 0;
	            min-width: 240px;
	            max-width: 360px;
	            padding: 0.7rem 0.85rem;
	            border-radius: 12px;
	            border: 1px solid rgba(255, 255, 255, 0.12);
	            background: rgba(10, 14, 26, 0.98);
	            box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
	            color: rgba(255, 255, 255, 0.8);
	            font-size: 0.82rem;
	            line-height: 1.45;
	            letter-spacing: normal;
	            text-transform: none;
	            font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	            opacity: 0;
	            transform: translateY(-4px);
	            pointer-events: none;
	            transition: opacity 120ms ease, transform 120ms ease;
	            z-index: 50;
	        }

	        .ck-tooltip-content::before {
	            content: '';
	            position: absolute;
	            top: -6px;
	            left: 8px;
	            width: 10px;
	            height: 10px;
	            background: rgba(10, 14, 26, 0.98);
	            border-left: 1px solid rgba(255, 255, 255, 0.12);
	            border-top: 1px solid rgba(255, 255, 255, 0.12);
	            transform: rotate(45deg);
	        }

	        .ck-tooltip:hover .ck-tooltip-content,
	        .ck-tooltip:focus-within .ck-tooltip-content {
	            opacity: 1;
	            transform: translateY(0);
	        }

	        .ck-tooltip:focus-within .ck-tooltip-icon {
	            outline: 2px solid rgba(0, 184, 255, 0.55);
	            outline-offset: 2px;
	        }

        .ck-kv {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            align-items: baseline;
            font-family: Arial, sans-serif;
            font-size: 0.85rem;
            padding: 0.35rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .ck-kv:last-child {
            border-bottom: none;
        }

        .ck-kv-key {
            color: var(--text-secondary);
        }

        .ck-kv-val {
            color: var(--text-primary);
            font-weight: 200;
            text-align: right;
        }

        .ck-alert-list {
            margin: 0;
            padding-left: 1.15rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .ck-alert-accordion {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }

        .ck-alert-details {
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.03);
            border-radius: 12px;
            padding: 0.35rem 0.75rem;
        }

        .ck-alert-summary {
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
            list-style: none;
            padding: 0.35rem 0;
        }

        .ck-alert-summary::-webkit-details-marker {
            display: none;
        }

        .ck-alert-details[open] .ck-alert-summary {
            color: var(--text-primary);
        }

        .ck-alert-summary::after {
            content: '▸';
            margin-left: auto;
            color: rgba(255,255,255,0.55);
            transition: transform 0.18s ease;
            padding-left: 0.5rem;
        }

        .ck-alert-details[open] .ck-alert-summary::after {
            transform: rotate(90deg);
        }

        .ck-alert-body {
            margin-top: 0.35rem;
            padding-top: 0.55rem;
            border-top: 1px solid rgba(255,255,255,0.07);
            color: var(--text-secondary);
            font-size: 0.85rem;
            line-height: 1.45;
        }

        .ck-alert-explain {
            margin-bottom: 0.55rem;
        }

        .ck-alert-links {
            display: grid;
            gap: 0.35rem;
        }

        .ck-alert-link {
            color: var(--accent-blue);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.85rem;
            line-height: 1.3;
        }

        .ck-alert-link-inline {
            display: inline;
        }

        .ck-alert-icon {
            color: rgba(255, 255, 255, 0.55);
            font-family: Arial, sans-serif;
        }

        .ck-alert-link-icon {
            opacity: 0.9;
        }

        .ck-alert-source {
            color: var(--text-secondary);
            font-size: 0.75rem;
        }

        .badge-compact {
            padding: 0.15rem 0.5rem;
            font-size: 0.7rem;
        }

        .ck-alert-link:hover {
            text-decoration: underline;
        }

        .ck-source-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        .ck-source-item {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.6rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.16);
            background: rgba(255,255,255,0.04);
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .recommendation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .crypto-name {
            font-size: 1.25rem;
            font-weight: 300;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .confidence-meter {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .confidence-bar {
            width: 100px;
            height: 8px;
            background: var(--bg-primary);
            border-radius: 10px;
            overflow: hidden;
        }

        .confidence-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
            transition: width 0.5s ease;
        }

        .price-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
            padding: 1rem;
            background: var(--bg-primary);
            border-radius: 8px;
        }

        .price-item {
            text-align: center;
        }

        .price-label {
            font-family: Arial, sans-serif;
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 0.25rem;
        }

        .price-value {
            font-size: 1.1rem;
            font-weight: 300;
            font-family: Arial, sans-serif;
        }

        .reason-list {
            list-style: none;
            margin: 1rem 0;
        }

        .reason-item {
            padding: 0.5rem 0;
            padding-left: 1.5rem;
            position: relative;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .reason-item::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent-blue);
        }

        .button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 200;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: Arial, sans-serif;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.5px;
        }

        .button-primary {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            color: var(--bg-primary);
        }

        .button-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
        }

        .button-secondary {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
        }

        .button-secondary:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.10);
        }

        .button-danger {
            background: rgba(255, 77, 77, 0.14);
            border: 1px solid rgba(255, 77, 77, 0.45);
            color: var(--accent-red);
        }

        .button-danger:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 20px rgba(255, 77, 77, 0.25);
            background: rgba(255, 77, 77, 0.20);
        }

        .loading {
            text-align: center;
            padding: 3rem;
            color: var(--text-secondary);
        }
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--bg-secondary);
            border-top-color: var(--accent-green);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1.6rem;
        }
        .loading-progress {
            margin: 0.8rem auto 0;
            max-width: 320px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 999px;
            overflow: hidden;
            height: 12px;
        }
        .loading-progress-bar {
            width: 100%;
            height: 100%;
            appearance: none;
            border: none;
            background: transparent;
        }

        .loading-progress-bar::-webkit-progress-bar {
            background: transparent;
        }

        .loading-progress-bar::-webkit-progress-value {
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
        }

        .loading-progress-bar::-moz-progress-bar {
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
        }

        .loading-progress-text {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin: 0.35rem auto 0.6rem;
            text-align: center;
        }

        .loading-log-wrapper {
            margin: 0.4rem auto 0;
            max-width: 780px;
            width: 100%;
        }

        .loading-log-box {
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            min-height: 70px;
            font-family: monospace;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        .portfolio-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .portfolio-modal {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 1.6rem;
            max-width: 520px;
            width: 92%;
        }

        .portfolio-modal--venta {
            max-width: 520px;
            width: 92%;
        }

        .portfolio-modal--add {
            border-radius: 20px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
        }

        .portfolio-modal--saldo {
            border-radius: 20px;
            padding: 2rem;
            max-width: 460px;
            width: 90%;
        }

        .portfolio-modal-title {
            margin: 0 0 1rem;
            color: #fff;
        }

        .portfolio-modal-title--lg {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .portfolio-modal-title--md {
            font-size: 1.35rem;
        }

        .portfolio-modal-subtitle {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }

        .portfolio-modal-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 1.25rem;
        }

        .portfolio-modal-grid {
            display: grid;
            gap: 0.75rem;
        }

        .portfolio-modal-fields {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .portfolio-modal-fields--compact {
            gap: 0.75rem;
        }

        .portfolio-field {
            position: relative;
        }

        .portfolio-modal-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .portfolio-modal-input {
            width: 100%;
            padding: 0.75rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: #fff;
            font-size: 1rem;
        }

        .portfolio-modal-input--dark {
            background: rgba(0,0,0,0.25);
            border: 1px solid rgba(255,255,255,0.10);
        }

        .portfolio-modal-input.is-readonly {
            opacity: 0.7;
            cursor: default;
        }

        .portfolio-suggest {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-top: 4px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1001;
        }

        .portfolio-suggest-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s ease;
        }

        .portfolio-suggest-item:not(:last-child) {
            border-bottom: 1px solid var(--border-color);
        }

        .portfolio-suggest-item:hover {
            background: rgba(0,255,136,0.1);
        }

        .portfolio-suggest-symbol {
            color: var(--accent-green);
        }

        .portfolio-suggest-name {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .portfolio-modal-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.75rem;
        }

        .portfolio-modal-actions--wide {
            margin-top: 2rem;
        }

        .portfolio-modal-actions--right {
            justify-content: flex-end;
            gap: 0.6rem;
            margin-top: 1.2rem;
        }

        .portfolio-modal-actions--right .portfolio-btn {
            flex: 0;
            padding: 0.45rem 0.9rem;
        }

        .portfolio-btn {
            flex: 1;
            padding: 0.75rem;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .portfolio-btn--primary {
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            border: none;
            color: var(--bg-primary);
        }

        .portfolio-btn--ghost {
            background: rgba(255,255,255,0.1);
            border: 1px solid var(--border-color);
            color: #fff;
        }

        .portfolio-btn--danger {
            background: rgba(255,51,102,0.18);
            border: 1px solid rgba(255,51,102,0.35);
            color: var(--accent-red);
        }

        .portfolio-btn:disabled {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-secondary);
            cursor: default;
        }

        .portfolio-sale-summary {
            margin-top: 0.9rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: grid;
            gap: 0.35rem;
        }

        .portfolio-sale-pnl {
            font-weight: 300;
        }

        .portfolio-sale-success {
            margin-top: 0.8rem;
            padding: 0.65rem 0.75rem;
            border-radius: 10px;
            background: rgba(0,255,136,0.12);
            color: var(--accent-green);
        }

        .loading-log-line {
            opacity: 0.7;
        }

        .loading-log-line.is-latest {
            opacity: 1;
        }

        .loading-message {
            color: var(--text-primary);
            margin: 0 auto 0.65rem;
            max-width: 720px;
            text-align: center;
        }

        .loading-submessage {
            color: var(--text-secondary);
            margin: 0 auto;
            font-size: 0.95rem;
            max-width: 720px;
            text-align: center;
            line-height: 1.4;
        }

        .error-section {
            text-align: center;
            padding: 3rem;
        }

        .error-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .error-title {
            color: var(--accent-red);
            margin-bottom: 1rem;
        }

        .error-message {
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .error-retry-btn {
            padding: 1rem 2rem;
            font-size: 1rem;
            background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
            border: none;
            border-radius: 10px;
            color: #000;
            cursor: pointer;
        }

        .error-hint {
            margin-top: 2rem;
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 10px;
            text-align: left;
        }

        .error-hint-text {
            font-family: Arial, sans-serif;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .error-hint-code {
            color: var(--accent-green);
        }

        .history-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 2rem;
        }

        .history-modal {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 2rem;
            max-width: 1200px;
            width: 100%;
            max-height: 85vh;
            overflow: auto;
        }

        .history-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .history-modal-title {
            font-size: 1.5rem;
            color: #fff;
        }

        .history-modal-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            font-size: 1.25rem;
        }

        .history-list {
            display: grid;
            gap: 1rem;
        }

        .history-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: 180px 1fr auto;
            gap: 1.5rem;
            align-items: center;
        }

        .history-date {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .history-type-pill {
            display: inline-block;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 500;
        }

        .history-type-pill.is-buy {
            background: rgba(0, 255, 136, 0.2);
            border: 1px solid var(--accent-green);
            color: var(--accent-green);
        }

        .history-type-pill.is-sell {
            background: rgba(255, 51, 102, 0.2);
            border: 1px solid var(--accent-red);
            color: var(--accent-red);
        }

        .history-price {
            font-size: 1.25rem;
            color: #fff;
            margin-bottom: 0.25rem;
            font-family: Arial, sans-serif;
        }

        .history-reason {
            font-size: 0.85rem;
            color: var(--text-secondary);
            max-width: 400px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-status-col {
            text-align: right;
        }

        .history-status {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.75rem;
        }

        .history-status.is-executed {
            background: rgba(0, 255, 136, 0.2);
            color: var(--accent-green);
        }

        .history-status.is-validated {
            background: rgba(0, 184, 255, 0.2);
            color: var(--accent-blue);
        }

        .history-status.is-pending {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
        }

        .history-confidence {
            margin-top: 0.5rem;
            font-size: 1rem;
            color: var(--accent-blue);
        }

        @media (max-width: 900px) {
            .history-card {
                grid-template-columns: 1fr;
                text-align: left;
            }

            .history-status-col {
                text-align: left;
            }
        }

        .auth-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 1.5rem;
        }

        .auth-modal {
            width: 100%;
            max-width: 460px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 1.6rem;
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
        }

        .auth-title {
            margin: 0 0 0.5rem;
            font-size: 1.35rem;
            font-weight: 300;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-primary);
            text-align: center;
        }

        .auth-subtitle {
            margin: 0 0 1.4rem;
            color: var(--text-secondary);
            text-align: center;
            line-height: 1.4;
            font-size: 0.95rem;
        }

        .auth-field {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            margin-bottom: 0.9rem;
        }

        .auth-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 200;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

	        .auth-input {
	            width: 100%;
	            padding: 0.85rem 0.9rem;
	            border-radius: 12px;
	            border: 1px solid var(--border-color);
	            background: rgba(255, 255, 255, 0.03);
	            color: var(--text-primary);
	            outline: none;
	            font-family: Arial, sans-serif;
	        }

	        /* Select dropdown: evitar texto blanco sobre fondo blanco en algunos navegadores/OS */
	        .auth-input option,
	        select option,
	        select optgroup {
	            background: var(--bg-primary);
	            color: var(--text-primary);
	        }

        .auth-input:focus {
            border-color: rgba(0, 255, 136, 0.6);
            box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
        }

        .auth-error {
            margin-top: 0.5rem;
            padding: 0.75rem 0.9rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 77, 77, 0.35);
            background: rgba(255, 77, 77, 0.1);
            color: var(--accent-red);
            font-weight: 300;
            font-size: 0.9rem;
            text-align: center;
        }

        .auth-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            justify-content: center;
            margin-top: 1.2rem;
        }

        .auth-meta {
            margin-top: 1.1rem;
            color: var(--text-secondary);
            font-size: 0.78rem;
            text-align: center;
            line-height: 1.35;
        }

	        .header-user {
	            position: absolute;
	            top: 4.15rem;
	            right: 1.5rem;
	            display: flex;
	            align-items: center;
	            gap: 0.65rem;
	            padding: 0.35rem 0.6rem;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .header-user strong {
            color: var(--text-primary);
        }

        .header-user-actions {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .header-saving {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-left: 0.6rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .header-saving-spinner {
            width: 12px;
            height: 12px;
            border-width: 2px;
            margin: 0;
        }

        .ck-header-icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.2rem;
            height: 2.2rem;
            padding: 0;
            border: 0;
            border-radius: 999px;
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }

        .ck-header-icon-button:hover {
            opacity: 0.85;
            transform: translateY(-1px);
        }

        .ck-header-icon-button:focus-visible {
            outline: 2px solid var(--accent-blue);
            outline-offset: 2px;
        }

        .button-small {
            padding: 0.45rem 0.75rem;
            border-radius: 10px;
            font-size: 0.75rem;
        }

        .admin-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.85rem;
            margin-bottom: 1.2rem;
        }

        .admin-actions-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .admin-search {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .admin-filters {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .admin-create-row {
            display: flex;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .admin-input {
            padding: 0.65rem 0.8rem;
            border-radius: 10px;
        }

        .admin-input--search {
            width: 280px;
        }

        .admin-input--username {
            width: 160px;
        }

        .admin-input--email {
            width: 220px;
        }

        .admin-input--role {
            width: 150px;
        }

        .admin-input--filter {
            width: 180px;
        }

        .admin-input--config-search {
            width: 300px;
        }

        .admin-filter-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .admin-filter-toggle input {
            width: 16px;
            height: 16px;
        }

        .admin-error {
            margin-bottom: 1rem;
        }

        .admin-last-action {
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 14px;
            border: 1px solid rgba(0, 255, 136, 0.25);
            background: rgba(0, 255, 136, 0.06);
        }

        .admin-last-title {
            font-weight: 300;
            margin-bottom: 0.35rem;
            color: var(--accent-green);
        }

        .admin-last-sub {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.35rem;
        }

        .admin-last-links {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .admin-last-link-code {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
            padding: 0.35rem 0.6rem;
            border-radius: 10px;
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            overflow: hidden;
            border-radius: 14px;
            border: 1px solid var(--border-color);
        }

        .admin-table th,
        .admin-table td {
            padding: 0.85rem 0.9rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            text-align: left;
            vertical-align: middle;
            font-size: 0.9rem;
        }

        .admin-table th {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .admin-actions-head {
            text-align: right;
        }

        .admin-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            font-size: 0.75rem;
        }

        .admin-badge-warn {
            border-color: rgba(255, 173, 0, 0.35);
            color: rgba(255, 219, 112, 0.95);
            background: rgba(255, 173, 0, 0.12);
        }

        .admin-self-badge {
            margin-left: 0.5rem;
        }

        .admin-username {
            color: var(--text-primary);
        }

        .admin-email {
            color: var(--text-secondary);
        }

        .admin-empty {
            color: var(--text-secondary);
            text-align: center;
            padding: 1.5rem;
        }

        .admin-meta {
            margin-top: 0.25rem;
            color: var(--text-secondary);
            font-size: 0.78rem;
        }

        .admin-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-end;
        }

	        .admin-hint {
	            margin-top: 1rem;
	            color: var(--text-secondary);
	            font-size: 0.9rem;
	            line-height: 1.5;
	        }

            .ck-admin-wrapper {
                display: flex;
                flex-direction: column;
                gap: 1.4rem;
            }

            .admin-otp-row {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                flex-wrap: wrap;
            }

            .admin-input--otp {
                width: 260px;
            }

            .admin-2fa-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                gap: 1rem;
            }

            .admin-2fa-card {
                padding: 1rem;
                border-radius: 14px;
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.03);
            }

            .admin-2fa-title {
                margin: 0 0 0.5rem 0;
                font-weight: 300;
                color: var(--text-primary);
            }

            .admin-2fa-secret {
                display: flex;
                flex-direction: column;
                gap: 0.6rem;
                margin-top: 0.75rem;
            }

            .admin-2fa-code {
                display: inline-flex;
                align-items: center;
                padding: 0.35rem 0.6rem;
                border-radius: 10px;
                background: rgba(255, 255, 255, 0.05);
                color: var(--text-primary);
            }

            .admin-2fa-actions {
                display: flex;
                gap: 0.6rem;
                flex-wrap: wrap;
            }

            .admin-2fa-row {
                display: flex;
                align-items: center;
                gap: 0.6rem;
                flex-wrap: wrap;
                margin-top: 0.75rem;
            }

            .admin-2fa-success {
                margin-top: 0.6rem;
                color: var(--accent-green);
                font-size: 0.9rem;
            }

            .admin-warnings {
                margin-bottom: 1rem;
                padding: 1rem;
                border-radius: 14px;
                border: 1px solid rgba(255, 173, 0, 0.35);
                background: rgba(255, 173, 0, 0.08);
            }

            .admin-warning-line {
                color: var(--text-primary);
                font-size: 0.9rem;
                line-height: 1.5;
            }

            .admin-config-list {
                display: flex;
                flex-direction: column;
                gap: 0.85rem;
            }

            .admin-config-row {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: 1rem;
                padding: 1rem;
                border-radius: 14px;
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.03);
            }

            .admin-config-row.is-danger {
                border-color: rgba(255, 77, 79, 0.35);
                background: rgba(255, 77, 79, 0.07);
            }

            .admin-config-meta {
                flex: 1;
                min-width: 260px;
            }

            .admin-config-key {
                display: flex;
                align-items: center;
                gap: 0.6rem;
                flex-wrap: wrap;
                margin-bottom: 0.35rem;
            }

            .admin-config-source {
                display: inline-flex;
                align-items: center;
                padding: 0.18rem 0.45rem;
                border-radius: 999px;
                border: 1px solid rgba(255, 255, 255, 0.14);
                background: rgba(255, 255, 255, 0.05);
                color: var(--text-secondary);
                font-family: Arial, sans-serif;
                font-size: 0.7rem;
                letter-spacing: 0.06em;
            }

            .admin-config-restart {
                display: inline-flex;
                align-items: center;
                padding: 0.18rem 0.45rem;
                border-radius: 999px;
                border: 1px solid rgba(255, 204, 0, 0.32);
                background: rgba(255, 204, 0, 0.1);
                color: rgba(255, 219, 112, 0.95);
                font-family: Arial, sans-serif;
                font-size: 0.7rem;
                letter-spacing: 0.06em;
            }

            .admin-config-label {
                font-weight: 300;
                color: var(--text-primary);
                margin-bottom: 0.25rem;
            }

            .admin-config-desc {
                color: var(--text-secondary);
                font-size: 0.9rem;
                line-height: 1.5;
            }

            .admin-config-controls {
                display: flex;
                flex-direction: column;
                gap: 0.55rem;
                align-items: flex-end;
                min-width: 230px;
            }

            .admin-input--config {
                width: 230px;
            }

            .admin-config-actions {
                display: flex;
                gap: 0.5rem;
                flex-wrap: wrap;
                justify-content: flex-end;
            }

            .admin-config-toggle {
                display: inline-flex;
                align-items: center;
                gap: 0.6rem;
                color: var(--text-secondary);
                font-size: 0.9rem;
            }

            .admin-config-toggle input {
                width: 18px;
                height: 18px;
            }

            .admin-secrets {
                margin-top: 1.5rem;
            }

            .admin-secrets-title {
                margin: 0 0 0.6rem 0;
                font-weight: 300;
                color: var(--text-primary);
            }

            .admin-secrets-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 0.65rem;
            }

            .admin-secret-pill {
                display: inline-flex;
                align-items: center;
                gap: 0.6rem;
                padding: 0.55rem 0.75rem;
                border-radius: 999px;
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.04);
            }

            .admin-secret-badge {
                display: inline-flex;
                align-items: center;
                padding: 0.2rem 0.55rem;
                border-radius: 999px;
                border: 1px solid rgba(255, 255, 255, 0.14);
                background: rgba(255, 255, 255, 0.05);
                font-family: Arial, sans-serif;
                font-size: 0.72rem;
            }

            .admin-secret-badge.is-on {
                color: var(--accent-green);
                border-color: rgba(0, 255, 136, 0.35);
                background: rgba(0, 255, 136, 0.08);
            }

            .admin-secret-badge.is-off {
                color: rgba(255, 77, 79, 0.95);
                border-color: rgba(255, 77, 79, 0.35);
                background: rgba(255, 77, 79, 0.08);
            }

            .account-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                gap: 1.2rem;
                margin-top: 0.5rem;
            }

            .account-card {
                padding: 1.2rem;
                border-radius: 14px;
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.03);
            }

            .account-card-summary {
                background: rgba(255, 255, 255, 0.04);
                border-color: rgba(0, 255, 136, 0.2);
            }

            .account-card-title {
                margin: 0 0 0.85rem 0;
                font-weight: 300;
                color: var(--text-primary);
            }

            .account-badge {
                display: inline-flex;
                align-items: center;
                padding: 0.2rem 0.55rem;
                border-radius: 999px;
                border: 1px solid rgba(255, 255, 255, 0.14);
                background: rgba(255, 255, 255, 0.05);
                color: var(--text-secondary);
                font-family: Arial, sans-serif;
                font-size: 0.75rem;
            }

            .account-badge.is-on {
                color: var(--accent-green);
                border-color: rgba(0, 255, 136, 0.35);
                background: rgba(0, 255, 136, 0.08);
            }

            .account-badge.is-off {
                color: rgba(255, 77, 79, 0.95);
                border-color: rgba(255, 77, 79, 0.35);
                background: rgba(255, 77, 79, 0.08);
            }

            .account-row {
                display: grid;
                grid-template-columns: 140px 1fr;
                gap: 0.75rem;
                align-items: center;
                margin-bottom: 0.85rem;
            }

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

            .account-value {
                color: var(--text-primary);
            }

            .account-input {
                width: 100%;
            }

            .account-actions {
                display: flex;
                justify-content: flex-end;
                margin-top: 0.75rem;
            }

            .account-hint {
                margin-top: 0.6rem;
                color: var(--text-secondary);
                font-size: 0.85rem;
                line-height: 1.4;
            }

            .account-card-reset {
                margin-top: 1.2rem;
            }

            @media (max-width: 520px) {
                .account-row {
                    grid-template-columns: 1fr;
                }
            }

	        @keyframes spin {
	            to { transform: rotate(360deg); }
	        }

        .evolution-chart {
            margin-top: 2rem;
            padding: 1.5rem;
            background: var(--bg-secondary);
            border-radius: 12px;
        }

        .learning-update-btn {
            background: rgba(0, 255, 136, 0.15);
            border: 1px solid rgba(0, 255, 136, 0.4);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            color: var(--accent-green);
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .learning-update-btn.is-loading,
        .learning-update-btn:disabled {
            background: rgba(255, 255, 255, 0.08);
            cursor: default;
        }

        .learning-activity-panel {
            margin-top: 1.5rem;
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.03);
        }

        .learning-activity-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.9rem;
        }

        .learning-activity-card {
            padding: 0.85rem 1rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.04);
        }

        .learning-activity-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-secondary);
        }

        .learning-activity-value {
            margin-top: 0.4rem;
            font-size: 1.1rem;
            color: var(--text-primary);
        }

        .learning-activity-meta {
            margin-top: 0.35rem;
            font-size: 0.82rem;
            color: var(--text-secondary);
        }

        .learning-block {
            margin-top: 2rem;
        }

        .learning-block-title {
            margin-bottom: 1rem;
        }

        .learning-empty {
            background: var(--bg-secondary);
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        .learning-strategy-card {
            background: var(--bg-secondary);
            padding: 1rem;
            margin-bottom: 0.75rem;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .learning-strategy-card--review {
            border-left: 3px solid var(--accent-red);
        }

        .learning-strategy-name {
            margin-bottom: 0.25rem;
        }

        .learning-strategy-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .learning-strategy-score {
            font-size: 1.5rem;
        }

        .learning-evolution-bars {
            display: flex;
            gap: 1rem;
            align-items: center;
            height: 200px;
        }

        .learning-evolution-bar {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .learning-evolution-value {
            font-size: 0.9rem;
            font-family: Arial, sans-serif;
        }

        .learning-evolution-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            font-family: Arial, sans-serif;
            text-align: center;
        }

        .learning-evolution-progress {
            width: 100%;
            height: 12px;
            appearance: none;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            overflow: hidden;
        }

        .learning-evolution-progress::-webkit-progress-bar {
            background: rgba(255, 255, 255, 0.08);
        }

        .learning-evolution-progress::-webkit-progress-value {
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
        }

        .learning-evolution-progress::-moz-progress-bar {
            background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
        }

        .tab-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 20;
            background: rgba(8, 12, 22, 0.92);
            backdrop-filter: blur(6px);
        }

        .tab {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-weight: 200;
            position: relative;
            transition: color 0.3s ease;
        }

        .tab.active {
            color: var(--accent-green);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent-green);
        }

        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            h1 {
                font-size: 2rem;
            }

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

            .section {
                padding: 1rem;
            }

            .header-currency {
                position: static;
                margin: 0 auto 1rem;
            }
        }

        /* Chatbot */
        #chatbot-launcher {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 1200;
        }

        #chatbot-button {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: none;
            background: var(--chat-accent);
            color: #fff;
            font-size: 24px;
            box-shadow: 0 12px 30px rgba(15, 157, 88, 0.35);
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: transform 120ms ease, box-shadow 120ms ease;
        }

        #chatbot-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 36px rgba(15, 157, 88, 0.42);
        }

        #chatbot-panel {
            position: fixed;
            right: 20px;
            bottom: 90px;
            width: 360px;
            max-width: calc(100vw - 32px);
            max-height: 72vh;
            display: none;
            flex-direction: column;
            background: var(--chat-bg);
            border: 1px solid var(--chat-border);
            border-radius: 16px;
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
            overflow: hidden;
            z-index: 1200;
        }

        #chatbot-panel.is-open {
            display: flex;
        }

        #chatbot-panel header {
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.03);
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid var(--chat-border);
        }

        #chatbot-panel header .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
        }

        #chatbot-panel header h4 {
            margin: 0;
            font-size: 0.95rem;
            color: #fff;
        }

        #chatbot-panel header small {
            color: rgba(255, 255, 255, 0.65);
        }

        #chatbot-messages {
            padding: 12px;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .chat-msg {
            padding: 10px 12px;
            border-radius: 12px;
            max-width: 90%;
            font-size: 0.92rem;
            line-height: 1.4;
            color: #e9ecf1;
            background: rgba(255, 255, 255, 0.04);
        }

        .chat-msg.user {
            margin-left: auto;
            background: rgba(15, 157, 88, 0.18);
            color: #e7fff2;
        }

        .chat-msg.assistant {
            margin-right: auto;
        }

        .chat-meta {
            font-size: 12px;
            color: #9adfff;
            margin-top: -6px;
        }

        .chat-details-wrap {
            margin-top: -8px;
        }

        .chat-details {
            margin-top: 8px;
            padding: 10px 12px;
            background: rgba(0, 217, 255, 0.08);
            border-radius: 8px;
            border-left: 3px solid #00d9ff;
            cursor: pointer;
        }

        .chat-details-summary {
            font-size: 12px;
            color: #00d9ff;
            font-weight: 600;
            letter-spacing: 0.3px;
            user-select: none;
        }

        .chat-details-body {
            margin-top: 10px;
            font-size: 13px;
            color: #e0e0e0;
            line-height: 1.6;
        }

        .chat-details-resumen {
            margin-bottom: 8px;
        }

        .chat-details-action {
            display: inline-block;
            background: rgba(0, 217, 255, 0.15);
            padding: 6px 12px;
            border-radius: 6px;
            margin-top: 6px;
            font-weight: 500;
        }

        .chat-details-confidence {
            color: #00d9ff;
        }

        .chat-details summary::-webkit-details-marker {
            color: #00d9ff;
        }

        .chat-details summary::marker {
            color: #00d9ff;
        }

        .chat-details[open] summary {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 217, 255, 0.2);
        }

        .chat-details summary:hover {
            color: #00f0ff;
            text-decoration: underline;
        }

        .chat-details[open] > div {
            animation: slideDown 0.2s ease-out;
        }

        .chatbot-close {
            margin-left: auto;
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
        }

        #chatbot-form {
            display: flex;
            gap: 8px;
            padding: 10px 12px;
            border-top: 1px solid var(--chat-border);
            background: rgba(255, 255, 255, 0.02);
        }

        #chatbot-input {
            flex: 1;
            border: 1px solid var(--chat-border);
            background: rgba(0, 0, 0, 0.35);
            color: #fff;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 0.95rem;
        }

        #chatbot-send {
            background: var(--chat-accent);
            color: #fff;
            border: none;
            padding: 0 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
        }

        .chat-quota-card {
            background: rgba(255, 100, 100, 0.1);
            border: 1px solid rgba(255, 100, 100, 0.3);
            padding: 12px;
            border-radius: 8px;
        }

        .chat-quota-title {
            font-weight: bold;
            color: #ff6b6b;
            margin-bottom: 8px;
        }

        .chat-quota-text {
            margin-bottom: 8px;
        }

        .chat-quota-link {
            display: inline-block;
            background: #00d9ff;
            color: #000;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 4px;
        }

        .chat-quota-foot {
            margin-top: 8px;
            font-size: 12px;
            color: #888;
        }

        .chat-quota-foot-link {
            color: #00d9ff;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 600px) {
            #chatbot-panel {
                right: 10px;
                left: 10px;
                width: auto;
            }

            #chatbot-button {
                right: 14px;
                bottom: 14px;
            }
        }

        /* Ayuda */
        .help-link {
            color: var(--accent-blue);
            text-decoration: none;
        }

        .help-text-green {
            color: #00ff88;
        }

        .help-text-yellow {
            color: #ffd700;
        }

        .help-text-red {
            color: #ff3366;
        }

        .help-text-muted {
            color: var(--text-secondary);
        }

        .help-text-danger {
            color: #ff3366;
        }

        .help-m-0 {
            margin: 0;
        }

        .help-mt-0 {
            margin-top: 0;
        }

        .help-mt-xs {
            margin-top: 0.5rem;
        }

        .help-mt-sm {
            margin-top: 0.75rem;
        }

        .help-mt-md {
            margin-top: 1rem;
        }

        .help-mt-lg {
            margin-top: 1.25rem;
        }

        .help-details {
            margin-top: 1rem;
            padding: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
        }

        .help-details--lg {
            margin-top: 1.25rem;
        }

        .help-summary {
            cursor: pointer;
            font-weight: 700;
            color: var(--text-primary);
        }

        .help-heading {
            margin: 0.75rem 0 0.5rem;
            color: var(--text-primary);
        }

        .help-heading-compact {
            margin: 0.5rem 0;
            color: var(--text-primary);
        }

        .help-table {
            width: 100%;
            border-collapse: collapse;
        }

        .help-table th,
        .help-table td {
            padding: 8px;
            border: 1px solid #333;
            text-align: left;
        }

        .help-code-block {
            display: block;
            background: #1a2139;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
        }

        .help-links {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .help-link-pill {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
        }

        .help-link-pill--docs {
            background: rgba(0, 184, 255, 0.2);
            border: 1px solid rgba(0, 184, 255, 0.3);
            color: var(--accent-blue);
        }

        .help-link-pill--tech {
            background: rgba(0, 255, 136, 0.15);
            border: 1px solid rgba(0, 255, 136, 0.35);
            color: var(--accent-green);
        }

        .help-layout {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 2rem;
        }

        .help-menu {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .help-menu-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            text-align: left;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .help-menu-btn.is-active {
            background: rgba(0, 255, 136, 0.2);
            border-color: var(--accent-green);
            color: var(--accent-green);
        }

        .help-content {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem;
            line-height: 1.6;
        }

        .help-content-title {
            margin-bottom: 1.5rem;
            color: var(--accent-green);
        }

        .help-content-body {
            color: var(--text-secondary);
        }

        .help-screenshot {
            width: 100%;
            max-width: 900px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: #0b1220;
            display: block;
            margin: 0.75rem 0 0.5rem;
        }

        .help-screenshot-caption {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin: 0 0 1.25rem;
        }

        .help-disclaimer {
            margin-top: 2rem;
            padding: 1.5rem;
            background: rgba(255, 51, 102, 0.1);
            border: 1px solid rgba(255, 51, 102, 0.3);
            border-radius: 12px;
        }

        .help-disclaimer-title {
            color: var(--accent-red);
            margin-bottom: 0.5rem;
        }

        .help-disclaimer-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin: 0;
        }

        .missing-section-text {
            color: var(--text-secondary);
        }

        .risk-card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            padding: 20px;
            margin-top: 1.25rem;
            margin-bottom: 1.25rem;
            border: 2px solid var(--risk-color-soft);
        }

        .risk-card.risk-bajo {
            --risk-color: #00ff88;
            --risk-color-soft: rgba(0, 255, 136, 0.25);
        }

        .risk-card.risk-medio {
            --risk-color: #ffd700;
            --risk-color-soft: rgba(255, 215, 0, 0.25);
        }

        .risk-card.risk-alto {
            --risk-color: #ff4d4d;
            --risk-color-soft: rgba(255, 77, 77, 0.25);
        }

        .risk-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .risk-card-title {
            margin: 0;
            font-size: 18px;
            color: var(--text-primary);
        }

        .risk-level-badge {
            background: var(--risk-color-soft);
            color: var(--risk-color);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            border: 1px solid var(--risk-color);
        }

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

        .risk-item {
            background: rgba(0, 0, 0, 0.2);
            padding: 12px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .risk-item-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .risk-item-value {
            font-size: 16px;
            color: var(--text-primary);
        }

        .risk-item-value--accent {
            font-size: 20px;
            color: var(--risk-color);
        }

        .risk-drivers {
            font-size: 12px;
            color: #888;
            margin-top: 15px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .risk-drivers-title {
            margin-bottom: 6px;
            color: var(--text-secondary);
        }

        .risk-driver {
            margin-left: 10px;
            line-height: 1.6;
        }

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