/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Cyber Dark Theme */
    --bg-body: #080c14;
    --bg-card: rgba(18, 26, 43, 0.6);
    --bg-card-hover: rgba(25, 36, 60, 0.8);
    --bg-sidebar: #0b121f;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-active: rgba(96, 165, 250, 0.4);
    
    /* Semantic Colors */
    --color-primary: #10b981; /* Emerald Green (Buffett Moat/Quality) */
    --color-primary-rgb: 16, 185, 129;
    --color-accent: #3b82f6; /* Electric Blue (Druckenmiller Macro/Liquidity) */
    --color-accent-rgb: 59, 130, 246;
    --color-purple: #8b5cf6; /* Asymmetric Inflection */
    --color-danger: #ef4444; /* High Risk / Avoid */
    --color-warning: #f59e0b; /* Hold */
    
    /* Text Colors */
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow-primary: 0 0 15px rgba(16, 185, 129, 0.25);
    --shadow-glow-accent: 0 0 15px rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

input, select, textarea, button {
    font-family: inherit;
    color: inherit;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
}

.brand-logo svg {
    width: 24px;
    height: 24px;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-left: 3px solid var(--color-accent);
    padding-left: calc(1rem - 3px);
}

.nav-item.active svg {
    color: var(--color-accent);
}

.sidebar-footer {
    margin-top: auto;
}

.macro-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.badge-dot.pulse {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Main Workspace */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    height: 100vh;
    overflow-y: auto;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-success {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow-primary);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    left: -100%;
}

.btn-glow:hover::after {
    left: 100%;
}

/* ==========================================================================
   TAB STYLING
   ========================================================================== */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-normal);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CARDS & GRID
   ========================================================================== */
.grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.span-2 {
    grid-column: span 2;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hero Card (Druckenmiller Macro Banner) */
.card-hero {
    background: #0b121f; /* base color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Background image container for motion */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('bg-globe.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: brightness(0.7) contrast(1.1);
}

.hero-content {
    max-width: 75%;
    z-index: 2; /* above bg image */
    position: relative;
}

.hero-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* increase readability */
}

.hero-content p {
    font-size: 0.88rem;
    color: var(--text-color); /* slightly lighter for contrast */
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

.macro-controls {
    display: flex;
    gap: 1.5rem;
    z-index: 2;
}

.hero-icon {
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.12);
    pointer-events: none;
    z-index: 2;
    position: relative;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.hero-icon svg {
    width: 80px;
    height: 80px;
}

/* Metrics Row */
.metrics-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.text-success { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }

/* ==========================================================================
   INPUTS & FORMS
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color-active);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    width: 100%;
    padding-right: 3rem !important;
}

.input-with-suffix span {
    position: absolute;
    right: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.help-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Checkbox Cards */
.checkbox-group-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 5px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.08);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ strong {
    color: #fff;
}

/* ==========================================================================
   SCATTER CHART (SVG)
   ========================================================================== */
.chart-card {
    min-height: 420px;
}

.card-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.card-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.chart-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.scatter-chart-wrapper {
    width: 100%;
    max-width: 550px;
}

.scatter-chart {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 10px;
}

.chart-bubble {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.chart-bubble:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.chart-bubble-text {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: bold;
    fill: #ffffff;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-card {
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.empty-row {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-strong-buy {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-buy {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-hold {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-avoid {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   WIZARD STEPS & NAVIGATION
   ========================================================================== */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3.5rem;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-accent), var(--color-primary));
    transition: width var(--transition-normal);
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    width: 80px;
    cursor: pointer;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-sidebar);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.step-node.active .step-number {
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
    background-color: var(--bg-body);
}

.step-node.active .step-label {
    color: #fff;
}

.step-node.completed .step-number {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--text-dark);
}

.step-node.completed .step-label {
    color: var(--color-primary);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.step-header {
    margin-bottom: 2rem;
}

.step-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.step-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   STEP 4: RESULT PAGE DESIGNS
   ========================================================================== */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-card-hero {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.score-ring {
    width: 140px;
    height: 140px;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.percentage {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    fill: #fff;
    font-size: 8.5px;
    text-anchor: middle;
}

.score-rating-label {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Breakdown PILAR list */
.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.score-breakdown h4 {
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.breakdown-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breakdown-info strong {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.progress-bar-small {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.dcf-result-box {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dcf-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dcf-line strong {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

/* Recommendation alert card */
.recommendation-box {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.rec-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.rec-icon svg {
    width: 24px;
    height: 24px;
}

.rec-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rec-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PORTFOLIO VIEW & SIMULATION
   ========================================================================== */
.portfolio-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 1.5rem;
}

.header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.portfolio-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-pie-chart-container {
    width: 100%;
    max-width: 180px;
    margin: 2rem 0;
}

.portfolio-pie-chart-container svg {
    transform: rotate(-90deg);
}

.portfolio-legend-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.legend-color-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.legend-ticker {
    font-weight: 700;
}

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

.legend-weight {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Row Action Buttons */
.action-btn-group {
    display: flex;
    gap: 0.35rem;
}

.row-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.row-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.row-btn-delete:hover {
    color: var(--color-danger);
    background-color: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.row-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   SCANNERS & MODALS (EXPANDED FEATURES)
   ========================================================================== */

/* Scanner Panel Controls */
.scanner-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-ticker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    min-width: 280px;
}

.search-ticker-wrapper label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input-group input {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.9rem;
    outline: none;
    flex-grow: 1;
    transition: var(--transition-fast);
}

.search-input-group input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-active);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.market-filters-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.btn-filter:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
}

.btn-filter.active {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
}

/* Progress Bar */
.scanner-progress-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeIn var(--transition-normal);
}

.progress-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#scanner-progress-text {
    color: var(--text-muted);
}

#scanner-progress-percent {
    color: var(--color-primary);
}

.progress-bar-track {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill-neon {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 0.1s linear;
}

/* Geographic Market Badges */
.badge-market {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.badge-us {
    background-color: rgba(59, 130, 246, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-eu {
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0d1526;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   DISCLAIMER & LOGIN OVERLAYS
   ========================================================================== */
.disclaimer-overlay, .login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #040812;
    background-image: radial-gradient(circle at center, #0c152a 0%, #03050a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-overlay {
    z-index: 99998;
    background-image: radial-gradient(circle at top right, #091a38 0%, #03050a 100%);
}

.disclaimer-card, .login-card {
    background: rgba(13, 22, 41, 0.75);
    border: 1px solid rgba(239, 68, 68, 0.25); /* warning border for disclaimer */
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.08);
    max-width: 480px;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-danger);
}

.disclaimer-icon svg {
    width: 32px;
    height: 32px;
}

.disclaimer-body {
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.disclaimer-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.login-roles-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-role-select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-normal);
}

.btn-role-select:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.role-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.btn-role-select:hover .role-icon {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
}

.role-details h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #fff;
}

.role-details p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.login-inputs-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

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

/* User Profile Badge (Sidebar) */
.user-profile-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.user-role {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.logout-link {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logout-link:hover {
    color: var(--color-danger);
}

/* ==========================================================================
   MODULE 1: EXPRESS ANALYSIS VIEW
   ========================================================================== */
.express-search-container {
    max-width: 720px;
    margin: 2rem auto;
    width: 100%;
}

.express-search-bar {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.02);
    transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
    border-color: var(--border-color-active);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-md), 0 0 25px rgba(59, 130, 246, 0.12);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    margin-right: 1rem;
}

.search-input-wrapper input {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
    width: 100%;
    outline: none;
    padding: 0.5rem 0;
}

.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #0b1220;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.suggestion-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.suggestion-item strong {
    color: var(--color-accent);
}

.suggestion-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.express-results-wrapper {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.express-empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon svg {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.express-company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

.ticker-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.express-dictum-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.dictum-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.dictum-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    margin-top: 0.25rem;
}

.express-target-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.target-field {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.target-field strong {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.consenso-box {
    margin-top: 1.5rem;
}

.consenso-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.consenso-bar-track {
    height: 8px;
    background: rgba(239, 68, 68, 0.2); /* sell area */
    border-radius: 4px;
    overflow: hidden;
}

.consenso-bar-buy {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.consenso-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.dot-legend {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.dot-legend.buy { background: var(--color-primary); }
.dot-legend.sell { background: var(--color-danger); }

.bullet-list {
    list-style: none;
    margin-top: 0.75rem;
}

.bullet-list li {
    font-size: 0.88rem;
    color: var(--text-color);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.bullet-list li::before {
    content: "•";
    color: var(--color-primary);
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.bullet-list-danger li::before {
    color: var(--color-danger);
}

.bullet-list-success li::before {
    color: var(--color-primary);
}

.details-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.details-section {
    margin-bottom: 1.5rem;
}

.macro-reasoning {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* ==========================================================================
   MODULE 2: DISRUPTIVE IDEAS (3D CARDS)
   ========================================================================== */
.disruptive-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.disruptive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.disruptive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.disruptive-card:hover {
    border-color: var(--color-purple);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
}

.disruptive-card.active {
    border-color: var(--color-purple);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.disruptive-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.disruptive-card .disruptive-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: block;
}

.disruptive-card .potential-badge {
    display: inline-block;
    margin-top: 1rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.disruptive-expanded-panel {
    border-color: rgba(139, 92, 246, 0.3) !important;
    animation: fadeInUp 0.4s ease;
}

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

.upside-potential {
    font-weight: 800;
    color: var(--color-purple);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.expanded-body-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.metrics-micro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.micro-metric-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.micro-metric-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.micro-metric-item strong {
    font-size: 1rem;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.15rem;
}

/* ==========================================================================
   MODULE 3: PROFILES BUTTONS & RECS
   ========================================================================== */
.profile-tabs-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-profile {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.badge-profile-conservador {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-profile-moderado {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-profile-agresivo {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   MODULE 4: PORTFOLIO & OPTIMIZATION (OCR & QUANT)
   ========================================================================== */
.drag-drop-area {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.01);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    border-color: var(--color-purple);
    background: rgba(139, 92, 246, 0.04);
}

.drop-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-purple);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.highlight-text {
    color: var(--color-purple);
    font-weight: 600;
    text-decoration: underline;
}

.ocr-status-box {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.ocr-results-box {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.ocr-badges-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem 0;
    flex-wrap: wrap;
}

.ocr-badge-detected {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.ocr-opinion-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.85rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-purple);
}

.optimization-methods-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.method-card.active {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.06);
    box-shadow: var(--shadow-glow-primary);
}

.method-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.method-card span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODULE 5: PROMOTER VIEW
   ========================================================================== */
.promoter-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.promoter-controls {
    display: flex;
    gap: 1rem;
}

.pitch-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
}

.pitch-text {
    font-size: 0.98rem;
    color: var(--text-color);
    line-height: 1.6;
}

.analogy-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.catalyst-focus-box {
    background: rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    font-size: 0.88rem;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 500;
}

/* ==========================================================================
   MODULE 6: REPORTS & EARNINGS CATALYST
   ========================================================================== */
.reports-macro-indicators {
    display: flex;
    gap: 2rem;
    margin-top: 1.25rem;
}

.reports-indicator-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.reports-indicator-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reports-indicator-item strong {
    font-size: 1.1rem;
    color: #fff;
}

.probability-high {
    color: var(--color-primary);
    font-weight: bold;
}

.probability-low {
    color: var(--color-danger);
    font-weight: bold;
}

/* Responsive configurations */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        padding: 1.5rem;
    }
    .grid-layout, .expanded-body-grid, .portfolio-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LANDING PAGE COMERCIAL (OPCIÓN A) - ESTILOS
   ========================================================================== */
.landing-portal {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 45%),
                #080c14;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.landing-logo svg {
    width: 22px;
    height: 22px;
}

.landing-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-brand-text span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.landing-nav {
    display: flex;
    gap: 2.5rem;
}

.landing-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.landing-nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
}

.btn-lang {
    background: none;
    border: none;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-lang.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: calc(85vh - 75px);
    align-items: center;
    padding: 2rem 8%;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.glowing-tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.hero-text-block h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-text-block p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.canvas-globe-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

#landing-globe-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.15));
}

/* Landing sections standard styling */
.landing-section {
    padding: 5rem 8%;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Methodology cards design */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.methodology-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.methodology-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    background: rgba(23, 37, 66, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.methodology-card:first-child::before {
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.methodology-card:last-child::before {
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.method-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.method-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.method-icon svg {
    width: 26px;
    height: 26px;
}

.methodology-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.methodology-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.methodology-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.methodology-bullets li {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodology-bullets li::before {
    content: '➔';
    font-size: 0.75rem;
    opacity: 0.5;
}

.methodology-card:first-child .methodology-bullets li::before {
    color: var(--color-primary);
}

.methodology-card:last-child .methodology-bullets li::before {
    color: var(--color-accent);
}

/* Features Showcase */
.features-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition-fast);
}

.feature-item-box:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-sm);
}

.feat-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feat-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pricing Grid */
.pricing-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1rem;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 1.5px solid var(--color-accent);
    background: rgba(20, 31, 56, 0.4);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.featured-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.pricing-card.featured .plan-header h3 {
    color: #fff;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.plan-price span {
    font-size: 1.75rem;
    font-weight: 600;
    vertical-align: super;
}

.plan-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.pricing-card:first-child .plan-features li::before {
    background-color: var(--color-primary);
}

.pricing-card:last-child .plan-features li::before {
    background-color: var(--color-purple);
}

.btn-buy-plan {
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Footer Section */
.landing-footer-sec {
    padding: 4rem 8% 3rem;
    background: #05080e;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Stripe Checkout Modal Styling */
.stripe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 14, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.stripe-card {
    background: #121a2c;
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-lg);
    width: 460px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stripe-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.stripe-close:hover {
    color: #fff;
}

.stripe-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stripe-logo {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.stripe-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.stripe-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.stripe-summary span {
    font-weight: 600;
    color: #e2e8f0;
}

.stripe-summary strong {
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
}

.stripe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stripe-form-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
}

.stripe-pay-btn {
    margin-top: 1.25rem;
    padding: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

/* Spinner loader */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* Success screen */
.stripe-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow-primary);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.stripe-success h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.stripe-success p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.revealed-key-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
}

.revealed-key-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.revealed-key-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
}

/* Responsive configurations for Landing Page */
@media (max-width: 990px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-text-block {
        align-items: center;
    }
    .hero-text-block h1 {
        font-size: 2.4rem;
    }
    .methodology-grid, .pricing-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    .landing-nav {
        display: none; /* simple burger menu or hide for simplicity */
    }
}



