/* ============================================
   OPCNY Simulator - Main Stylesheet
   ============================================

   DESIGN NOTE - ICONS/EMOJIS:
   Do NOT use emoji icons in the UI unless explicitly requested.
   Previously used icons have been removed for cleaner design.

   List of removed icons for future reference:
   - 📊 Dashboard, charts, analytics
   - 🤖 AI Mentor, AUTOMAT mode
   - ⏹️ Stop button
   - ⚠️ Warnings
   - 🔄 Refresh, reset
   - 🔒 Lock icons
   - 💰 Money, budget
   - 📈📉 Trends
   - ✓✗ Check/cross marks (keep in tables)

   ============================================ */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Vue v-cloak - hide elements until Vue is ready */
[v-cloak] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: var(--text-primary);
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: 55% 10% 35%;
    /* Graf | Ovládanie | Simulátor (rozšírený) */
    grid-template-rows: 55vh 45vh;
    gap: 1px;
    height: 100vh;
    width: 100vw;
    background: var(--bg-primary);
}

/* Block Base Styles */
.block {
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
}

/* Graph Block */
.block-graph {
    grid-column: 1;
    grid-row: 1;
}

.block-header {
    background: var(--bg-secondary);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-primary);
}

/* Info Panel */
.info-panel {
    background: #1a1d28;
    padding: 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 10px;
    color: var(--text-secondary);
    height: 18px;
    line-height: 18px;
    overflow: hidden;
}

/* Marquee scrolling container */
.info-marquee {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.info-marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
    padding: 0 12px;
}

.info-marquee-content span {
    white-space: nowrap;
    padding-right: 100px;
    /* Space between loops */
}

.info-marquee:hover .info-marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Static info (for synthetic data) */
.info-static {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
    height: 100%;
}

.info-item {
    white-space: nowrap;
}

.info-item strong {
    color: #9598a1;
    font-weight: 500;
    margin-right: 4px;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
	margin-left: 5%;
}

.model-select {
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 130px;
    transition: all var(--transition-normal);
}

.model-select:hover {
    background: var(--bg-hover);
}

.model-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.time-select {
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 80px;
    transition: all var(--transition-normal);
}

.time-select:hover {
    background: var(--bg-hover);
}

.time-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Ticker Search Group */
.ticker-search-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ticker-search-wrapper {
    position: relative;
}

.ticker-input {
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    width: 180px;
    transition: all var(--transition-normal);
}

.ticker-input:hover {
    background: var(--bg-hover);
}

.ticker-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.ticker-input::placeholder {
    color: #666;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: var(--bg-tertiary);
    border: 1px solid #3a3e49;
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #3a3e49;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-hover);
}

.search-result-item.no-results {
    cursor: default;
    color: #666;
    font-style: italic;
}

.search-result-item.no-results:hover {
    background: var(--bg-tertiary);
}

.search-result-item strong {
    color: var(--accent-primary);
    font-size: 14px;
}

.search-result-item .result-name {
    color: var(--text-primary);
    font-size: 12px;
}

.search-result-item .result-exchange {
    color: #888;
    font-size: 11px;
}

.options-indicator {
    margin-left: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.load-ticker-btn {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.load-ticker-btn:hover:not(:disabled) {
    background: var(--accent-primary-hover);
}

.load-ticker-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.period-select {
    padding: 6px 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 60px;
    transition: all var(--transition-normal);
}

.period-select:hover {
    background: var(--bg-hover);
}

.period-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Timeframe Buttons */
.tf-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-right: 1px solid var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.tf-btn:last-child {
    border-right: none;
}

.tf-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tf-btn.active {
    background: var(--accent-primary);
    color: var(--text-white);
    font-weight: 600;
}

.tf-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Chart Type Buttons */
.chart-type-btn {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: none;
    border-right: 1px solid var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.chart-type-btn:last-child {
    border-right: none;
}

.chart-type-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chart-type-btn.active {
    background: var(--accent-primary);
    color: var(--text-white);
    font-weight: 600;
}

.chart-type-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.generate-btn {
    padding: 6px 16px;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.generate-btn:hover:not(:disabled) {
    background: var(--accent-primary-hover);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.block-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-secondary);
}

/* TradingView Charts Container */
.tradingview-charts {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
}

.chart-main {
    flex: 1;
    min-height: 0;
    background: var(--bg-secondary);
}

.chart-volume {
    display: none;
    flex: 0;
    min-height: 0;
    background: var(--bg-secondary);
}

/* Control Column Wrapper */
.control-column {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Control Block */
.block-control {
    flex: 1 1 60%;
    /* Increased from flex: 1 to give more space */
    min-height: 0;
}

/* Trade Block */
.block-trade {
    flex: 1 1 40%;
    /* Changed from flex: 0 0 auto to flex proportion */
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Current Candle Date Display */
.current-candle-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary-light);
    text-align: center;
    padding: 8px 10px;
    margin: 0 10px 3px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
}

/* Simulation Block */
.block-simulation {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.simulation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding:5px 15px 5px 5px;
    overflow-y: auto;
}

/* Simulator Sections */
.sim-section {
    padding: 2px 10px 2px 2px;
	/*background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);*/
}

.sim-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Vertical Title Layout */
.sim-section.has-vertical-title {
    display: flex;
    flex-direction: row;
}

.sim-section-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: var(--bg-secondary);
    border-right: 1px solid #363a45;*/
    min-width: 22px;
}

.sim-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Budget Section - Horizontal Layout */
.budget-section {
    flex-shrink: 0;
}

/* Budget Grid 2x2 */
.budget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
}

/* Budget Input Row */
.budget-input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    /*border: 1px solid var(--border-secondary);*/
}

.budget-input-row .budget-label {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-input-group {
    display: flex;
    gap: 4px;
}

.budget-input {
    flex: 1;
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.budget-input:focus {
    outline: none;
    border-color: var(--accent-primary-light);
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.1);
}

.budget-btn {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-btn:hover {
    background: #2962ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(41, 98, 255, 0.3);
}

.budget-btn:active {
    transform: translateY(0);
}

/* Budget Display Group (replaces input) */
.budget-display-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.budget-display-value {
    flex: 1;
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.budget-btn-vklad {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--color-success) 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-btn-vklad:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.budget-btn-vklad:active {
    transform: translateY(0);
}

.budget-info-tooltip {
    cursor: help;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.budget-info-tooltip:hover {
    opacity: 1;
}

/* Budget Stat Items - Grid cells */
.budget-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    transition: all var(--transition-normal);
    position: relative;
}

/* Blue style for Total Value */
.budget-stat-item.blue {
    background: var(--gradient-primary);
    border-color: var(--accent-primary-light);
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.2);
}

.budget-stat-item.positive {
    background: var(--gradient-success);
    border-color: var(--color-success);
    box-shadow: 0 2px 8px rgba(8, 153, 129, 0.2);
}

.budget-stat-item.negative {
    background: var(--gradient-error);
    border-color: var(--color-error);
    box-shadow: 0 2px 8px rgba(242, 54, 69, 0.2);
}

/* Reserved Cash - yellow/orange indicator */
.budget-stat-item.reserved {
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.15), rgba(255, 159, 64, 0.05));
    border-color: rgba(255, 159, 64, 0.3);
}

.budget-stat-item.reserved .budget-stat-value {
    color: #ff9f40;
}

/* Available Cash - green indicator */
.budget-stat-item.available {
    background: linear-gradient(135deg, rgba(8, 153, 129, 0.15), rgba(8, 153, 129, 0.05));
    border-color: rgba(8, 153, 129, 0.3);
}

.budget-stat-item.available .budget-stat-value {
    color: var(--color-success);
}

/* Realized P/L - uses positive/negative colors */
.budget-stat-item.realized {
    font-size: 0.9em;
}

/* Unrealized P/L - uses positive/negative colors */
.budget-stat-item.unrealized {
    font-size: 0.9em;
}

.budget-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-stat-item.blue .budget-stat-label,
.budget-stat-item.positive .budget-stat-label,
.budget-stat-item.negative .budget-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.budget-stat-value {
    font-size: 16px;
    color: var(--text-white);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.budget-stat-percent {
    font-size: 10px;
    opacity: 0.9;
    margin-left: 3px;
}

/* Info Icon for Budget Stats */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 9px;
    font-style: italic;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
    transition: all 0.2s;
    vertical-align: middle;
}

.info-icon:hover {
    background: var(--accent-primary);
    color: white;
}

/* Info Tooltip */
.info-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
}

.info-tooltip-header {
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 6px;
    font-size: 13px;
}

.info-tooltip-desc {
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-tooltip-calc {
    color: var(--text-muted);
    font-size: 11px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

.info-tooltip-calc strong {
    color: var(--text-secondary);
}

/* Portfolio Section */
.portfolio-section {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-secondary);
}

.portfolio-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.portfolio-tab:hover {
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
}

.portfolio-tab.active {
    color: var(--accent-primary-light);
    border-bottom-color: var(--accent-primary-light);
}

.portfolio-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom scrollbar for Portfolio */
.portfolio-content::-webkit-scrollbar {
    width: 8px;
}

.portfolio-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.portfolio-content::-webkit-scrollbar-thumb {
    background: #4a4e5a;
    border-radius: var(--radius-md);
}

.portfolio-content::-webkit-scrollbar-thumb:hover {
    background: #5a5e6a;
}

.portfolio-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 8px;
    transition: all var(--transition-fast);
}

.portfolio-item:hover {
    border-color: var(--text-muted);
    background: #242933;
}

.portfolio-item.short-position {
    border-color: #ff9800;
    border-left: 3px solid #ff9800;
}

.portfolio-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.item-symbol {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
}

.item-symbol.call {
    background: var(--color-success);
}

.item-symbol.put {
    background: var(--color-error);
}

.item-strike {
    font-size: 10px;
    color: var(--text-secondary);
}

.item-position {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    color: var(--text-white);
}

.item-position.long {
    background: var(--accent-primary);
}

.item-position.short {
    background: #ff6d00;
}

.item-qty {
    font-size: 10px;
    color: var(--text-secondary);
    margin-left: auto;
    font-weight: 600;
}

.portfolio-item-details {
    display: flex;
    gap: 8px;
    font-size: 10px;
    flex-wrap: wrap;
}

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

.item-detail.small {
    font-size: 9px;
}

.item-pnl {
    margin-left: auto;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.item-pnl.positive {
    color: var(--color-success);
}

.item-pnl.negative {
    color: var(--color-error);
}

.close-position-btn {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 600;
    background: var(--color-error);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.close-position-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.close-position-btn:active {
    transform: translateY(0);
}

.portfolio-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

/* Portfolio Tables */
.trades-table-wrapper,
.cashflow-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
}

.trades-table,
.cashflow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.trades-table thead,
.cashflow-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.trades-table th,
.cashflow-table th {
    padding: 8px 6px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-secondary);
    font-size: 9px;
    text-transform: uppercase;
}

.trades-table td,
.cashflow-table td {
    padding: 6px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-tertiary);
}

.trades-table tbody tr:hover,
.cashflow-table tbody tr:hover {
    background: #242933;
}

/* Trade badges */
.trade-badge,
.cf-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.trade-badge.buy,
.cf-badge.buy {
    background: var(--color-success);
    color: var(--text-white);
}

.trade-badge.sell,
.cf-badge.sell {
    background: var(--color-error);
    color: var(--text-white);
}

.cf-badge.exercise {
    background: #2962ff;
    color: var(--text-white);
}

.cf-badge.expire {
    background: #787b86;
    color: var(--text-white);
}

.cf-badge.neutral {
    background: var(--bg-hover);
    color: var(--text-tertiary);
}

/* Table cells */
.trade-date,
.cf-date {
    color: var(--text-secondary);
    font-size: 9px;
}

.trade-symbol {
    color: var(--text-white);
    font-weight: 600;
}

.trade-qty {
    text-align: center;
    color: var(--text-tertiary);
}

.trade-price,
.trade-total {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.trade-pnl,
.cf-pnl {
    text-align: right;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.trade-pnl.positive,
.cf-pnl.positive {
    color: var(--color-success);
}

.trade-pnl.negative,
.cf-pnl.negative {
    color: var(--color-error);
}

.cf-total {
    text-align: right;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.cf-total.positive {
    color: var(--color-success);
}

.cf-total.negative {
    color: var(--color-error);
}

.cf-notes {
    color: var(--text-secondary);
    font-size: 9px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chart Section */
.chart-section {
    flex-shrink: 0;
    height: 240px;
    display: flex;
    flex-direction: column;
}

.pl-chart {
    flex: 1;
    min-height: 0;
}

/* Simulator Actions */
.sim-actions {
    flex-shrink: 0;
    padding: 10px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-primary);
}

.sim-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-btn {
    background: var(--color-error);
    color: var(--text-white);
}

.reset-btn:hover {
    background: var(--color-error-hover);
}

/* Scrollbar for simulator */
.simulation-content::-webkit-scrollbar,
.portfolio-content::-webkit-scrollbar {
    width: 6px;
}

.simulation-content::-webkit-scrollbar-track,
.portfolio-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.simulation-content::-webkit-scrollbar-thumb,
.portfolio-content::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.simulation-content::-webkit-scrollbar-thumb:hover,
.portfolio-content::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Options Block */
.block-options {
    grid-column: 1 / 3;
    grid-row: 2;
}

/* Inactive Block Styles */
.block.inactive {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.block-title {
    font-size: 14px;
    font-weight: 600;
    /*margin-bottom: 10px;*/
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.inactive-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Control Content */
.control-content {
    padding: 8px 6px 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.control-row {
    display: flex;
    gap: 4px;
}

.control-btn {
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.control-btn-small {
    padding: 6px;
    font-size: 13px;
}

.control-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.control-btn.play-btn {
    background: var(--color-success);
    color: var(--text-white);
    border-color: var(--color-success);
}

.control-btn.play-btn.active {
    background: var(--color-error);
    border-color: var(--color-error);
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* AUTOMAT MÓD Button */
.btn-automat {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-automat:hover {
    background: linear-gradient(135deg, #ff7b45, #f9a32e);
    transform: translateY(-1px);
}

.btn-automat.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: automat-pulse 1.5s infinite;
}

.btn-automat:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.automat-stats {
    color: #f7931e;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

@keyframes automat-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 10px 3px rgba(231, 76, 60, 0.3); }
}

.progress-info {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    outline: none;
    border-radius: 2px;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    cursor: pointer;
    border-radius: 50%;
}

.progress-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.progress-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.control-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-select {
    padding: 5px 4px;
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    font-size: 10px;
    cursor: pointer;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.speed-select:hover:not(:disabled) {
    background: var(--bg-hover);
}

.speed-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Trade Group (Buy/Sell) */
/* Trade Content */
.trade-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.current-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}

.price-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-value {
    font-size: 15px;
    color: var(--accent-primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.trade-buttons {
    display: flex;
    gap: 4px;
}

.trade-btn {
    flex: 1;
    padding: 8px 6px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trade-btn.buy-btn {
    background: var(--color-success);
    color: var(--text-white);
}

.trade-btn.buy-btn:hover:not(:disabled) {
    background: var(--color-success-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(8, 153, 129, 0.3);
}

.trade-btn.sell-btn {
    background: var(--color-error);
    color: var(--text-white);
}

.trade-btn.sell-btn:hover:not(:disabled) {
    background: var(--color-error-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(242, 54, 69, 0.3);
}

.trade-btn.short-btn {
    background: var(--color-warning);
    color: var(--text-white);
}

.trade-btn.short-btn:hover:not(:disabled) {
    background: var(--color-warning-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.trade-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading Message */
.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: var(--bg-tertiary);
    padding: 30px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2a2e39;
    border-top: 4px solid #193fa8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Error Message */
.error-message {
    padding: 12px;
    background: var(--bg-tertiary);
    border-left: 3px solid #f23645;
    color: var(--color-error);
    font-size: 12px;
    margin: 10px;
    border-radius: var(--radius-md);
}

/* Option Chain Styles */
.option-chain-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.option-chain-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.option-loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: var(--bg-tertiary);
    padding: 25px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-secondary);
}

/* Option Chain Header - Single Row */
.option-chain-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: nowrap;
    min-height: 40px;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.option-chain-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 120px;
}

/* Expiration Tabs */
.expiration-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow-x: auto;  /* Allow horizontal scrolling for many expirations */
    overflow-y: hidden;
    flex-shrink: 0;
    max-width: 100%;  /* Prevent overflow beyond container */
}

/* Scrollbar styling for expiration tabs */
.expiration-tabs::-webkit-scrollbar {
    height: 4px;
}

.expiration-tabs::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.expiration-tabs::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 2px;
}

.expiration-tabs::-webkit-scrollbar-thumb:hover {
    background: #4a4e59;
}

.expiration-tab {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-right: 1px solid var(--bg-primary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    white-space: nowrap;
}

.expiration-tab:last-child {
    border-right: none;
}

.expiration-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.expiration-tab.active {
    background: var(--accent-primary);
    color: var(--text-white);
    font-weight: 600;
}

/* Expiration Modal Trigger (EXP button) */
.expiration-modal-trigger {
    background: var(--accent-primary) !important;
    color: var(--text-white) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.expiration-modal-trigger:hover {
    background: #2151c4 !important;
    color: var(--text-white) !important;
}

/* Expiration Modal Popup (positioned above EXP button) */
.expiration-tabs-container {
    position: relative;
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: visible;
    /* Allow modal to overflow */
    flex-shrink: 0;
}

.expiration-modal-popup {
    position: absolute;
    top: 100%;
    /* Position below the button */
    left: 0;
    margin-top: 8px;
    /* Gap between button and modal */
    background: var(--bg-tertiary);
    border: 1px solid #131722;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 400px;
}

/* Expiration Modal Overlay (transparent, click outside to close) */
.expiration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    cursor: default;
}


/* Modal Action Buttons (inline, top-right) */
.modal-action-buttons-inline {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.modal-btn-confirm,
.modal-btn-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modal-btn-confirm {
    background: rgba(34, 197, 94, 0.15);
    color: rgb(34, 197, 94);
}

.modal-btn-confirm:hover {
    background: rgba(34, 197, 94, 0.25);
}

.modal-btn-close {
    background: rgba(239, 68, 68, 0.15);
    color: rgb(239, 68, 68);
}

.modal-btn-close:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Expirations Grid (5 columns) */
.expirations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.expiration-grid-item {
    background: var(--bg-secondary);
    border: 1px solid #131722;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expiration-grid-item:hover {
    background: #252935;
    border-color: var(--border-secondary);
}

.expiration-grid-item.active {
    background: var(--accent-primary);
    border-color: #2151c4;
}

.expiration-grid-item .exp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.expiration-grid-item.active .exp-label {
    color: var(--text-white);
}

.expiration-grid-item .exp-days {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.expiration-grid-item.active .exp-days {
    color: var(--text-white);
    opacity: 0.9;
}

/* Strikes Selector */
.strikes-selector {
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.strikes-btn {
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border: none;
    border-right: 1px solid var(--bg-primary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 32px;
}

.strikes-btn:last-child {
    border-right: none;
}

.strikes-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.strikes-btn.active {
    background: var(--color-success);
    color: var(--text-white);
    font-weight: 600;
}

/* Greeks Controls */
.greeks-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.greek-checkbox {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.greek-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--accent-primary);
    margin: 0;
}

.greek-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.greek-checkbox span {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    cursor: help;
}

/* Custom tooltip for Greek letters */
.greek-checkbox span[data-tooltip] {
    position: relative;
}

.greek-checkbox span[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    border: 1px solid #3a3e49;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.greek-checkbox span[data-tooltip]::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border: 5px solid transparent;
    border-bottom-color: #2a2e39;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.greek-checkbox span[data-tooltip]:hover::before,
.greek-checkbox span[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

.greek-checkbox span[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(-1px);
}

/* Option Chain Table */
.option-chain-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-secondary);
    scroll-behavior: smooth;
}

.option-chain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: auto;  /* Changed from fixed to allow proper column sizing */
}

.option-chain-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.option-chain-table th {
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.header-call {
    background: var(--color-success);
    color: var(--text-white);
    font-size: 12px;
    text-transform: uppercase;
}

.header-strike {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    width: 80px;
}

.header-put {
    background: var(--color-error);
    color: var(--text-white);
    font-size: 12px;
    text-transform: uppercase;
}

.subheader th {
    background: var(--bg-tertiary);
    font-size: 10px;
    color: var(--text-secondary);
    padding: 6px 4px;
}

.btn-label-buy,
.btn-label-sell {
    display: inline-block;
    padding: 2px 4px;
    margin: 0 2px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 2px;
}

.btn-label-buy {
    background: var(--color-success);
    color: var(--text-white);
}

.btn-label-sell {
    background: var(--color-error);
    color: var(--text-white);
}

/* Greeks header styles are below in CSS Grid section */

/* Table Body */
.option-chain-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
    transition: background 0.1s;
}

.option-chain-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.option-chain-table tbody tr.row-atm {
    background: rgba(41, 98, 255, 0.1);
    border-top: 1px solid #193fa8;
    border-bottom: 1px solid #193fa8;
}

.option-chain-table tbody tr.row-atm:hover {
    background: rgba(41, 98, 255, 0.15);
}

.option-chain-table td {
    padding: 6px 4px;
    text-align: center;
    color: var(--text-primary);
}

.col-actions {
    width: 50px;
    min-width: 50px;
    padding: 2px 4px;
    white-space: nowrap;
}

/* Combined K P + buttons cell */
.col-actions-combined {
    width: 75px;
    min-width: 75px;
    padding: 2px 4px;
    white-space: nowrap;
}

.col-actions-combined .btn-label-add {
    color: var(--accent-primary-light);
    margin-left: 2px;
}

.col-greeks {
    padding: 4px 8px;
    white-space: nowrap;
}

.col-strike-value {
    width: 70px;
    min-width: 70px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
    background: var(--bg-tertiary);
}

/* Greeks Header - CSS Grid for alignment */
.greeks-header {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    align-items: center;
    font-size: 11px;
}

.greeks-header span {
    text-align: center;
    min-width: 42px;
}

/* Greeks Values - CSS Grid for alignment with header */
.greeks-values {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    align-items: center;
    font-size: 11px;
}

/* Price values - centered */
.greeks-values .price {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 42px;
    text-align: center;
}

.greeks-values .greek {
    min-width: 42px;
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

/* Moneyness highlighting */
.moneyness-itm {
    background: rgba(8, 153, 129, 0.08);
}

.moneyness-atm {
    background: rgba(41, 98, 255, 0.12);
}

.moneyness-otm {
    background: transparent;
}

/* Action Buttons */
.action-btn {
    padding: 3px 6px;
    margin: 0 2px;
    font-size: 9px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-buy {
    background: var(--color-success);
    color: var(--text-white);
}

.btn-buy:hover {
    background: var(--color-success-hover);
}

.btn-sell {
    background: var(--color-error);
    color: var(--text-white);
}

.btn-sell:hover {
    background: var(--color-error-hover);
}

/* Option Chain Footer */
.option-chain-footer {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-secondary);
}

.footer-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.footer-info span {
    white-space: nowrap;
}

.footer-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Scrollbar for option chain table */
.option-chain-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.option-chain-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.option-chain-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.option-chain-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    .block-graph {
        grid-column: 1;
        grid-row: auto;
        min-height: 400px;
    }

    .block-control,
    .block-simulation,
    .block-options {
        grid-column: 1;
        grid-row: auto;
        min-height: 200px;
    }

    .option-chain-table {
        font-size: 10px;
    }

    .greeks-values {
        font-size: 9px;
        gap: 4px;
    }

    .option-chain-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .option-chain-title {
        width: 100%;
        text-align: center;
    }

    .greeks-controls {
        margin-left: 0;
    }
}

/* ========================================
   Preview Modal
   ======================================== */

/* Preview button */
.preview-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid #3a3e49;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.preview-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: #4a4e59;
}

.preview-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Export button */
.export-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid #3a3e49;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.export-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: #4a4e59;
}

.export-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal overlay */
.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal window */
.preview-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90vw;
    max-width: 1400px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-primary);
}

/* Modal header */
.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-primary);
}

.preview-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

/* Close button */
.preview-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal) ease;
    padding: 0;
}

.preview-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Modal controls */
.preview-modal-controls {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.preview-timeframe-buttons {
    display: flex;
    gap: 4px;
}

.preview-tf-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.preview-tf-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.preview-tf-btn.active {
    background: var(--accent-primary);
    color: var(--text-white);
    border-color: var(--accent-primary);
}

/* Modal body */
.preview-modal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

.preview-chart-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ============================================
   MODEL SETTINGS MODAL
   ============================================ */

/* Main button "Nastavenie modelu" */
.model-settings-btn {
    padding: 6px 18px;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    min-width: 150px;
}

.model-settings-btn:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

.model-settings-btn:active {
    transform: translateY(0);
}

/* Modal Overlay and content moved to src/model-settings-modal.css (lazy loaded) */

/* Trade Modal CSS moved to src/trade-modal.css (lazy loaded) */

/* ============================================
   STRATEGIES SECTION
   ============================================ */

/* Strategies Tab Content */
.strategies-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

/* Strategies Sidebar + Detail Layout */
.strategies-layout {
    display: flex;
    height: 380px;
    gap: 0;
}

/* Left Sidebar */
.strategies-sidebar {
    width: 180px;
    min-width: 180px;
    background: var(--bg-secondary);
    border-right: 1px solid #363a45;
    overflow-y: auto;
    padding: 8px 0;
}

/* Level Groups */
.strategy-level-group {
    margin-bottom: 2px;
}

.strategy-level-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s;
}

.strategy-level-header:hover {
    background: var(--bg-tertiary);
}

.level-arrow {
    width: 16px;
    font-size: 10px;
    color: var(--text-secondary);
}

.level-title {
    flex: 1;
}

.level-count {
    background: var(--bg-hover);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

/* Strategy List Items */
.strategy-level-items {
    padding-left: 8px;
}

.strategy-list-item {
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.strategy-list-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.strategy-list-item.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary-light);
    border-left-color: var(--accent-primary-light);
}

.item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-risk {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
}

.item-risk.risk-low {
    background: #4caf50;
}

.item-risk.risk-medium {
    background: var(--color-warning);
}

.item-risk.risk-high {
    background: #f44336;
}

/* Right Detail Panel */
.strategies-detail {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.detail-empty,
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-loading .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #363a45;
    border-top-color: var(--accent-primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

/* Detail Content */
.detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-risk {
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-risk.risk-low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.detail-risk.risk-medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.detail-risk.risk-high {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.ai-mentor-btn-small {
    padding: 4px 10px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ai-mentor-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.detail-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Analysis Results */
.detail-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.analysis-header {
    margin-bottom: 10px;
}

.analysis-status {
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
}

.analysis-status.viable {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.analysis-status.not-viable {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.analysis-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.analysis-metrics .metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.analysis-metrics .metric-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.analysis-metrics .metric-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.analysis-metrics .metric-value.profit {
    color: #26a69a;
}

.analysis-metrics .metric-value.loss {
    color: #ef5350;
}

/* Action Buttons */
.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.detail-actions .strategy-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.detail-actions .analyze-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.detail-actions .analyze-btn:hover:not(:disabled) {
    background: var(--bg-hover);
}

.detail-actions .execute-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.detail-actions .execute-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.detail-actions .strategy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Keep old styles for backward compatibility */
.ai-mentor-btn {
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ai-mentor-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.ai-mentor-btn:active {
    transform: translateY(0);
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* Strategy Card */
.strategy-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-left: 4px solid #26a69a;
    border-radius: var(--radius-xl);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition-normal);
}

.strategy-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.strategy-card.not-viable {
    border-left-color: #ef5350;
    opacity: 0.7;
}

/* Strategy Card Header */
.strategy-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-icon {
    font-size: 20px;
}

.strategy-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.strategy-risk {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.strategy-risk.risk-low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.strategy-risk.risk-medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.strategy-risk.risk-high {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Strategy Card Body */
.strategy-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strategy-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Strategy Analysis Preview */
.strategy-analysis-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 11px;
}

.analysis-viable {
    color: #26a69a;
    font-weight: 600;
}

.analysis-not-viable {
    color: #ef5350;
    font-weight: 600;
}

.analysis-profit {
    color: #4caf50;
}

.analysis-loss {
    color: #ef5350;
}

/* Strategy Card Footer */
.strategy-card-footer {
    display: flex;
    gap: 6px;
}

.strategy-btn {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.analyze-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.analyze-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: #42a5f5;
}

.execute-btn {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    color: var(--text-white);
    border-color: #26a69a;
}

.execute-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 166, 154, 0.4);
}

.execute-btn:disabled {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-color: #2a2e39;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.strategy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty States */
.strategies-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-hint {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Loading State */
.strategies-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #2a2e39;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Strategies Tip */
.strategies-tip {
    padding: 10px;
    background: rgba(25, 63, 168, 0.1);
    border: 1px solid rgba(25, 63, 168, 0.2);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.strategies-tip strong {
    color: var(--text-primary);
}

/* ============================================
   STRATEGY DETAIL MODAL
   Moved to src/strategy-detail-modal.css for lazy loading
   ============================================ */

/* ============================================
   AI MENTOR CHAT MODAL
   Moved to src/ai-mentor-modal.css for lazy loading
   ============================================ */

/* ============================================
   P/L CHART TAB
   ============================================ */

.plchart-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.pl-chart-tab {
    width: 100%;
    height: 100%;
}

/* ============================================
   ANALYTICS & EXPORT BLOCK
   ============================================ */

.analytics-section {
    flex-shrink: 0;
}

.analytics-block {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
    overflow: hidden;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #1a1e28 0%, #1e222d 100%);
    transition: background var(--transition-fast);
}

.analytics-header:hover {
    background: linear-gradient(135deg, #1e222d 0%, #252a36 100%);
}

.analytics-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.analytics-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-tertiary);
}

.analytics-buttons-row {
    display: flex;
    gap: 6px;
}

.analytics-btn {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.analytics-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.analytics-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.analytics-btn-full {
    background: linear-gradient(135deg, #2a3a5c 0%, #1e2a42 100%);
    border-color: var(--accent-primary);
}

.analytics-btn-full:hover:not(:disabled) {
    background: linear-gradient(135deg, #324a70 0%, #263552 100%);
}

.analytics-divider {
    height: 1px;
    background: var(--border-secondary);
    margin: 4px 0;
}

.analytics-btn-save {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #3d5a80 0%, #2a4a6d 100%);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analytics-btn-save:hover:not(:disabled):not(.btn-locked) {
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 100%);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.analytics-btn-save:disabled,
.analytics-btn-save.btn-locked {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: var(--text-secondary);
    border: 1px dashed var(--border-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.analytics-save-row {
    display: flex;
    gap: 8px;
}

.analytics-btn-dashboard {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #60a5fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytics-btn-dashboard:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #93c5fd;
    transform: translateY(-1px);
}

/* ============================================
   AI MENTOR STANDALONE BLOCK
   ============================================ */

.ai-mentor-section {
    flex-shrink: 0;
}

.ai-mentor-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e222d 0%, #252a36 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
}

.ai-mentor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-mentor-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-mentor-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.ai-mentor-open-btn {
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ai-mentor-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* ============================================
   PAYOFF DIAGRAM
   ============================================ */

.payoff-diagram-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 8px;
    height: 120px;
}

.payoff-canvas {
    width: 100%;
    height: 100%;
}

/* Analysis metrics inline layout */
.detail-analysis .analysis-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-analysis .metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.viable-status {
    color: #4caf50 !important;
}

.not-viable-status {
    color: #f44336 !important;
}

/* ========================================
   CUSTOM STRATEGY BUILDER STYLES
   ======================================== */

/* Add to Strategy Button in Option Chain */
.col-add-strategy {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    text-align: center;
    padding: 2px 1px !important;
}

.btn-add-strategy {
    width: 18px;
    height: 18px;
    border: 1px solid #4a4e5a;
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-add-strategy:hover {
    background: #2962ff;
    border-color: var(--accent-primary-light);
    color: white;
}

.btn-add-strategy.has-leg {
    background: #2962ff;
    border-color: var(--accent-primary-light);
    color: white;
}

/* Scroll Indicator for Strategy Builder */
.strategy-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.15), rgba(41, 98, 255, 0.05));
    border: 1px solid rgba(41, 98, 255, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    animation: pulse-indicator 2s ease-in-out infinite;
}

.strategy-scroll-indicator:hover {
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.25), rgba(41, 98, 255, 0.15));
    border-color: var(--accent-primary-light);
}

.scroll-indicator-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary-light);
}

.scroll-indicator-arrow {
    font-size: 12px;
    color: var(--accent-primary-light);
    animation: bounce-arrow 1s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(41, 98, 255, 0.3);
    }
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Custom Strategy Section (outside Option Chain block) */
.custom-strategy-section {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 35%;
    max-height: 50vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-bottom: none;
    border-radius: var(--radius-xl) 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-strategy-section .strategy-scroll-indicator {
    margin: 0;
    border-radius: var(--radius-xl) 8px 0 0;
    border: none;
    border-bottom: 1px solid var(--border-secondary);
}

.custom-strategy-section .strategy-builder-panel {
    flex: 1;
    overflow-y: auto;
    margin-top: 0;
    border-top: none;
}

/* Strategy Builder Panel */
.strategy-builder-panel {
    background: #1a1d26;
    border-top: 1px solid var(--border-secondary);
    padding: 8px;
    margin-top: 8px;
}

.strategy-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.strategy-builder-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-builder-clear-btn {
    padding: 3px 8px;
    font-size: 10px;
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.strategy-builder-clear-btn:hover {
    background: #f44336;
    color: white;
}

/* Strategy Builder Table */
.strategy-builder-table-wrapper {
    max-height: 150px;
    overflow-y: auto;
}

.strategy-builder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.strategy-builder-table th {
    background: #252830;
    color: var(--text-secondary);
    padding: 4px 6px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid var(--border-secondary);
    position: sticky;
    top: 0;
}

.strategy-builder-table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.strategy-builder-table tr.leg-buy {
    background: rgba(76, 175, 80, 0.05);
}

.strategy-builder-table tr.leg-sell {
    background: rgba(244, 67, 54, 0.05);
}

/* Leg Type Cell */
.leg-type {
    display: flex;
    gap: 4px;
}

.leg-action {
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
}

.leg-action.buy {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.leg-action.sell {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.leg-option-type {
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
}

.leg-option-type.call {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.leg-option-type.put {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

/* Leg Quantity Controls */
.leg-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.leg-qty-controls .qty-btn {
    width: 16px;
    height: 16px;
    border: 1px solid #4a4e5a;
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leg-qty-controls .qty-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.leg-qty {
    min-width: 16px;
    text-align: center;
}

/* Leg Remove Button */
.leg-remove-btn {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.leg-remove-btn:hover {
    background: #f44336;
    color: white;
}

/* Debit/Credit styling */
.debit {
    color: #f44336 !important;
}

.credit {
    color: #4caf50 !important;
}

/* Strategy Builder Summary */
.strategy-builder-summary {
    margin-top: 8px;
    padding: 8px;
    background: #252830;
    border-radius: var(--radius-md);
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 4px;
}

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

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

.summary-value {
    color: var(--text-primary);
    font-weight: 500;
}

.summary-separator {
    color: #4a4e5a;
}

.greeks-row {
    flex-wrap: wrap;
}

.greek-item {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 10px;
}

/* Strategy Builder Actions */
.strategy-builder-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.execute-strategy-btn {
    padding: 8px 16px;
    background: #2962ff;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.execute-strategy-btn:hover:not(:disabled) {
    background: #1e4bd8;
}

.execute-strategy-btn:disabled {
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ========================================
   SHARED MODAL STYLES
   Used by multiple modal components
   ======================================== */

.modal-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) ease;
}

.modal-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-value {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-option-row {
    margin-bottom: 12px;
}

.modal-radio-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.modal-radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #252830;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.modal-radio-group label.active {
    background: #2962ff;
    border-color: var(--accent-primary-light);
    color: white;
}

.modal-radio-group label:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-radio-group input[type="radio"] {
    display: none;
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.modal-qty-controls .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #4a4e5a;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.modal-qty-controls .qty-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-row {
    padding-top: 12px;
    border-top: 1px solid var(--border-secondary);
}

.modal-cancel-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #4a4e5a;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.modal-cancel-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-confirm-btn {
    padding: 8px 16px;
    background: #2962ff;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.modal-confirm-btn:hover {
    background: #1e4bd8;
}

/* ==========================================
   INLINE MENTOR CHAT PANELS
   Trade Modal mentor styles moved to src/trade-modal.css
   ========================================== */

/* Strategy Mentor Button */
.strategy-mentor-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2962ff 0%, #1e4bd8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strategy-mentor-btn:hover {
    background: linear-gradient(135deg, #1e4bd8 0%, #1539a8 100%);
    transform: translateY(-1px);
}

.strategy-mentor-btn.active {
    background: linear-gradient(135deg, #f23645 0%, #d62d3b 100%);
}

.strategy-builder-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-secondary);
}

/* Inline Mentor Panel - Shared Styles */
.inline-mentor-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Trade Mentor Panel styles moved to src/trade-modal.css */

/* Strategy Mentor Panel - appears below the strategy builder */
.strategy-mentor-panel {
    margin-top: 12px;
    height: 350px;
    animation: slideInFromTop 0.3s ease;
}

/* @keyframes slideInFromRight moved to src/trade-modal.css */

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

/* Inline Mentor Header */
.inline-mentor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.15) 0%, rgba(41, 98, 255, 0.05) 100%);
    border-bottom: 1px solid var(--border-secondary);
}

.inline-mentor-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.inline-mentor-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.inline-mentor-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Inline Mentor Messages */
.inline-mentor-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mentor-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 13px;
}

.mentor-message {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    max-width: 95%;
}

.mentor-message.user-msg {
    background: linear-gradient(135deg, #2962ff 0%, #1e4bd8 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mentor-message.ai-msg {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mentor-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    opacity: 0.8;
}

.mentor-message-time {
    font-size: 10px;
}

.mentor-message-content {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.mentor-message-content strong {
    font-weight: 600;
}

.mentor-message-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* Typing Indicator */
.mentor-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.mentor-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.mentor-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.mentor-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.mentor-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Inline Mentor Input Area */
.inline-mentor-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-primary);
}

.inline-mentor-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    resize: none;
    min-height: 40px;
    max-height: 80px;
    font-family: inherit;
}

.inline-mentor-input:focus {
    outline: none;
    border-color: #2962ff;
}

.inline-mentor-input::placeholder {
    color: var(--text-secondary);
}

.inline-mentor-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2962ff 0%, #1e4bd8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-mentor-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e4bd8 0%, #1539a8 100%);
    transform: scale(1.05);
}

.inline-mentor-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================
   SIMULATION STATE MANAGEMENT STYLES
   ==================================== */

/* Idle State Overlay - simplified */
.idle-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.idle-state-content {
    text-align: center;
    padding: 20px;
}

.idle-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.idle-state-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.idle-state-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.idle-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.step-number {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-primary);
    font-size: 13px;
}

/* Hidden charts class */
.hidden-charts {
    opacity: 0;
    pointer-events: none;
}

/* Reset Simulation Button in sim-actions */
.sim-actions .reset-simulation-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.sim-actions .reset-simulation-btn:hover:not(:disabled) {
    background: var(--color-error-bg);
    border-color: var(--color-error);
    color: var(--color-error);
}

.sim-actions .reset-simulation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Warning Modal Styles */
.warning-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.warning-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.warning-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.warning-icon-large {
    font-size: 32px;
}

.warning-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.warning-modal-body {
    padding: 24px;
}

.warning-modal-body p {
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.warning-modal-body .warning-text {
    color: var(--warning-text);
    background: var(--warning-bg);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warning-border);
}

.positions-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.positions-summary li {
    padding: 6px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.positions-summary li:last-child {
    border-bottom: none;
}

.positions-summary .positive {
    color: var(--success-text);
}

.positions-summary .negative {
    color: var(--error-text);
}

.reset-effects {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 16px 0;
}

.reset-effects li {
    color: var(--text-secondary);
    padding: 4px 0;
    line-height: 1.5;
}

.current-positions-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 16px;
}

.current-positions-warning strong {
    color: var(--warning-text);
    display: block;
    margin-bottom: 8px;
}

.current-positions-warning .positions-summary {
    background: transparent;
    padding: 0;
    margin: 0;
}

.warning-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    white-space: nowrap;
}

.modal-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.modal-btn-cancel:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
}

.modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.modal-btn-danger:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Dashboard Save Placeholder */
.dashboard-save-placeholder {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.dashboard-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
}

.dashboard-checkbox-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: inherit;
}

.coming-soon-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--accent-primary-bg);
    color: var(--accent-primary-light);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =============================================================================
   ERROR MODAL STYLES (styled replacement for browser alerts)
   ============================================================================= */

.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(4px);
}

.error-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--color-warning);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
}

.error-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
}

.error-modal-icon {
    font-size: 24px;
}

.error-modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-warning);
}

.error-modal-body {
    padding: 20px;
}

.error-modal-body p {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.error-modal-shortfall {
    margin-top: 16px;
    padding: 12px;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortfall-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.shortfall-value {
    color: var(--color-error);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.error-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-secondary);
    justify-content: flex-end;
}

.error-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.error-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.error-btn-cancel:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.error-btn-deposit {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
    color: white;
    border: none;
}

.error-btn-deposit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* =============================================================================
   NOTIFICATION MODAL STYLES (universal notification system)
   ============================================================================= */

.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(4px);
}

.notification-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.notification-modal.success {
    border-color: var(--color-success);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.notification-modal.warning {
    border-color: var(--color-warning);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
}

.notification-modal.error {
    border-color: var(--color-error);
    box-shadow: 0 8px 32px rgba(239, 83, 80, 0.2);
}

.notification-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
}

.notification-modal-icon {
    font-size: 24px;
}

.notification-modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary-light);
}

.notification-modal.success .notification-modal-header h3 {
    color: var(--color-success);
}

.notification-modal.warning .notification-modal-header h3 {
    color: var(--color-warning);
}

.notification-modal.error .notification-modal-header h3 {
    color: var(--color-error);
}

.notification-modal-body {
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-secondary);
}

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

.notification-item.success {
    border-left-color: var(--color-success);
    background: rgba(76, 175, 80, 0.1);
}

.notification-item.warning {
    border-left-color: var(--color-warning);
    background: rgba(255, 152, 0, 0.1);
}

.notification-item.error {
    border-left-color: var(--color-error);
    background: rgba(239, 83, 80, 0.1);
}

.notification-item.info {
    border-left-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.notification-modal-footer {
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-secondary);
}

.notification-btn-ok {
    padding: 10px 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
    color: white;
    border: none;
}

.notification-btn-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.notification-shortfall {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-top: 12px;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
}

.notification-shortfall .shortfall-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.notification-shortfall .shortfall-value {
    color: var(--color-error);
    font-size: 16px;
    font-weight: 600;
}

.notification-btn-deposit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: linear-gradient(135deg, var(--color-success) 0%, #66bb6a 100%);
    color: white;
    border: none;
    margin-left: 8px;
}

.notification-btn-deposit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* =============================================================================
   CONFIRM MODAL STYLES (for warnings with continue/cancel)
   ============================================================================= */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(4px);
}

.confirm-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--color-warning);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
}

.confirm-modal-icon {
    font-size: 24px;
}

.confirm-modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-warning);
}

.confirm-modal-body {
    padding: 20px;
}

.confirm-modal-body p {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-secondary);
}

.confirm-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.confirm-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

.confirm-btn-cancel:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, var(--color-warning) 0%, #ffb74d 100%);
    color: #1a1a2e;
}

.confirm-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* =============================================================================
   LOGIN MODAL STYLES
   ============================================================================= */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.login-modal {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.login-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-modal-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.oauth-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

.oauth-btn svg {
    flex-shrink: 0;
}

.oauth-google:hover {
    border-color: #4285F4;
}

.oauth-microsoft:hover {
    border-color: #00a4ef;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

/* Admin Login Section */
.admin-login-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-login-toggle {
    background: transparent;
    border: 1px dashed var(--border-primary);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-login-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.admin-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-login-form label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-login-form input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.admin-login-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.login-error {
    color: var(--accent-warning);
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.admin-login-btn {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-login-btn:hover {
    background: var(--accent-primary-light);
}

.admin-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Guest Info */
.guest-info {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-primary);
}

.guest-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.guest-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s;
}

.guest-btn:hover {
    text-decoration: underline;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 4px 0;
}

.user-menu-item.logout {
    color: var(--accent-warning);
}

/* Tier Badge */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.guest {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.tier-badge.user {
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent-success);
}

.tier-badge.premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.tier-badge.admin {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-primary);
}

/* Login Button (in header) */
.login-btn {
    padding: 8px 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background: var(--accent-primary-light);
}

/* ====================================
   FEATURE-LOCKED ELEMENTS
   Elements disabled due to subscription tier
   ==================================== */

/* Feature-locked wrapper - for any element that should be locked */
.feature-locked {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

/* Feature-locked overlay - for sections */
.feature-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.feature-locked-message {
    background: var(--bg-tertiary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    text-align: center;
}

.feature-locked-message .upgrade-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.feature-locked-message .upgrade-link:hover {
    text-decoration: underline;
}

/* Tooltip for locked elements */
[data-tier-tooltip] {
    position: relative;
    cursor: not-allowed !important;
}

[data-tier-tooltip]::before {
    content: attr(data-tier-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tier-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: var(--bg-tertiary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1001;
}

[data-tier-tooltip]:hover::before,
[data-tier-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

[data-tier-tooltip]:hover::before {
    transform: translateX(-50%) translateY(-4px);
}

[data-tier-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Locked button style */
.btn-locked {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; /* Allow hover for tooltip */
}

.btn-locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Locked section style */
.section-locked {
    position: relative;
}

.section-locked > *:not(.feature-locked-overlay) {
    opacity: 0.4;
    pointer-events: none;
}

/* Premium badge for locked features */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #ffc107;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge::before {
    content: '⭐';
    font-size: 10px;
}

/* AI Mentor locked state */
.ai-mentor-block.locked {
    opacity: 0.6;
}

.ai-mentor-block.locked .ai-mentor-open-btn {
    pointer-events: auto;
    cursor: not-allowed;
}

/* Trading section locked */
.trade-group.locked .trade-btn {
    opacity: 0.5;
    pointer-events: auto;
    cursor: not-allowed;
}

/* Historical data locked */
.period-select.locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
}

/* Option chain locked overlay */
.option-chain-locked {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    gap: 12px;
}

.option-chain-locked .lock-icon {
    font-size: 32px;
    opacity: 0.7;
}

.option-chain-locked .lock-message {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.option-chain-locked .upgrade-btn {
    padding: 8px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-chain-locked .upgrade-btn:hover {
    background: var(--accent-primary-hover);
}

/* ====================================
   DEMO LIMIT MODAL
   Registration prompt for guests
   ==================================== */

.demo-limit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.demo-limit-modal {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.demo-limit-header {
    text-align: center;
    margin-bottom: 24px;
}

.demo-limit-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.demo-limit-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.demo-limit-body {
    text-align: center;
}

.demo-limit-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-limit-benefits {
    background: rgba(38, 166, 154, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.demo-limit-benefits h4 {
    margin: 0 0 12px 0;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
}

.demo-limit-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.demo-limit-benefits li {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.demo-limit-benefits li:last-child {
    margin-bottom: 0;
}

.demo-limit-free-note {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.demo-limit-free-note strong {
    color: var(--color-success);
}

.demo-limit-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.demo-limit-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.demo-limit-btn-later {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.demo-limit-btn-later:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.demo-limit-btn-register {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1e9e8f 100%);
    color: white;
    padding: 12px 32px;
}

.demo-limit-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(38, 166, 154, 0.4);
}

/* ====================================
   RESUME SESSION MODAL
   For Premium users with saved session
   ==================================== */

.resume-session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.resume-session-modal {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-session-header {
    text-align: center;
    margin-bottom: 20px;
}

.resume-session-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.resume-session-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 600;
}

.resume-session-body {
    text-align: center;
}

.resume-session-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.resume-session-info {
    background: rgba(38, 166, 154, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.session-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.resume-session-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.resume-session-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.resume-session-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resume-session-btn-new {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.resume-session-btn-new:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.resume-session-btn-resume {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1e9e8f 100%);
    color: white;
    padding: 12px 32px;
}

.resume-session-btn-resume:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(38, 166, 154, 0.4);
}

/* Demo mode indicator in header */
.demo-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #ffc107;
}

.demo-mode-indicator .demo-count {
    font-weight: 600;
}

/* Demo Mode Banner - fixed bottom, aligned with option chain block */
.demo-mode-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 65%; /* Match option chain block width (55% + 10%) */
    z-index: 999;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-top: 1px solid rgba(255, 193, 7, 0.4);
    border-right: 1px solid rgba(255, 193, 7, 0.4);
    backdrop-filter: blur(8px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.demo-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.demo-banner-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.demo-banner-text strong {
    color: #ffc107;
}

.demo-banner-link {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.demo-banner-link:hover {
    color: #ffca28;
}

/* ========================================
   PROTOTYPE WARNING MODAL
   ======================================== */

.prototype-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.prototype-modal {
    background: linear-gradient(135deg, #1a2233 0%, #0d1117 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a3441;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.prototype-modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
}

.prototype-modal-header h2 {
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.prototype-modal-body {
    padding: 24px;
}

.prototype-modal-body p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.prototype-modal-body p:last-child {
    margin-bottom: 0;
}

.prototype-modal-body strong {
    color: #ffffff;
}

.prototype-modal-body .warning-text {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: #fbbf24;
    font-size: 0.95rem;
}

.prototype-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
}

.dont-show-again input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a9eff;
    cursor: pointer;
}

.btn-understand {
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-understand:hover {
    background: linear-gradient(135deg, #5aa9ff 0%, #4a9eff 100%);
    transform: translateY(-1px);
}

.btn-understand:active {
    transform: translateY(0);
}

/* ============================================
   SKELETON LOADING STYLES
   Performance optimization for better UX
   ============================================ */

/* Skeleton animation */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.6;
    }
}

/* Base skeleton class */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary, #2a2d3a) 0%,
        var(--bg-secondary, #1e2130) 50%,
        var(--bg-tertiary, #2a2d3a) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton variants */
.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-button {
    height: 36px;
    width: 100px;
}

.skeleton-chart {
    height: 100%;
    min-height: 200px;
    width: 100%;
}

/* Chart loading placeholder */
.chart-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted, #6b7280);
    background: var(--bg-primary, #13151e);
}

.chart-loading-placeholder .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary, #2a2d3a);
    border-top-color: var(--accent-primary, #4a9eff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.chart-loading-placeholder .loading-text {
    font-size: 14px;
}

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

/* Lazy load fadeIn effect */
.lazy-loaded {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
