/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1f2537;
    --border: #2a3042;
    --text-primary: #f0f2f5;
    --text-secondary: #8b95a5;
    --text-muted: #5a6377;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --gradient-bull: linear-gradient(135deg, #10b981, #34d399);
    --gradient-bear: linear-gradient(135deg, #ef4444, #f87171);
    --gradient-neutral: linear-gradient(135deg, #f59e0b, #fbbf24);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.get-key-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.get-key-link:hover { color: var(--accent-cyan); }

.modal-content input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 16px;
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.modal-content input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

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

/* ===== Header ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-center {
    flex: 1;
    position: relative;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo i {
    color: var(--accent-blue);
    font-size: 22px;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    width: 100%;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon { color: var(--text-muted); margin-right: 8px; }

.search-container input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}

.search-container input::placeholder { color: var(--text-muted); }

.btn-analyze {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-analyze:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

.market-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

/* ===== Loading Overlay ===== */
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.loader-container { text-align: center; }

.loader-ring {
    width: 64px;
    height: 64px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.loader-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.progress-bar {
    width: 280px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

/* ===== Ticker Bar ===== */
.ticker-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    gap: 32px;
    animation: scroll 40s linear infinite;
    padding: 0 16px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

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

.ticker-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-item .change.up { color: var(--accent-green); }
.ticker-item .change.down { color: var(--accent-red); }

.ticker-loading {
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 16px;
}

/* ===== Main Content ===== */
main {
    padding: 24px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ===== Summary Row ===== */
.summary-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.summary-card:hover::after { opacity: 1; }

.summary-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-card h3 i {
    color: var(--accent-blue);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

/* Verdict Card */
.verdict-card {
    position: relative;
    overflow: hidden;
}

.verdict-card.bullish {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--bg-card));
}

.verdict-card.bearish {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), var(--bg-card));
}

.verdict-card.neutral {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-card));
}

.verdict-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: var(--border);
    color: var(--text-secondary);
}

.verdict-badge.bullish {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.verdict-badge.bearish {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.verdict-badge.neutral {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.verdict-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
}

.price-change {
    font-size: 16px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
}

.price-change.up {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.price-change.down {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.stock-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 12px;
}
.btn-action-sm {
    width: 32px; height: 32px;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 50%; color: var(--text-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; transition: var(--transition);
}
.btn-action-sm:hover { color: var(--accent-yellow); border-color: var(--accent-yellow); transform: scale(1.1); }

.verdict-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Signal Meter */
.signal-meter { margin-bottom: 16px; }

.meter-bar {
    height: 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.meter-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow), var(--accent-green));
    opacity: 0.2;
    border-radius: 5px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow), var(--accent-green));
    border-radius: 5px;
    width: 50%;
    transition: width 1s ease;
    position: relative;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.signal-details {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Investment Suggestion */
.invest-suggestion { text-align: center; }

.invest-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.invest-details {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Charts Row ===== */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.chart-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.chart-card h3 i {
    color: var(--accent-blue);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.chart-card canvas {
    width: 100% !important;
    max-height: 280px;
    padding: 16px 20px 20px;
    box-sizing: border-box;
}

/* ===== Analysis Grid ===== */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.analysis-card:hover::before {
    opacity: 1;
}

.analysis-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.analysis-card h3 i {
    color: var(--accent-blue);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.analysis-card-body {
    padding: 16px 20px 20px;
}

/* Indicator Grid (Technical Analysis) */
.indicator-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.indicator-row:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.indicator-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.indicator-row .value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
}
.indicator-row .value.bullish { color: var(--accent-green); }
.indicator-row .value.bearish { color: var(--accent-red); }
.indicator-row .value.neutral { color: var(--accent-yellow); }

/* Fundamental Grid */
.fundamental-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
}

.fundamental-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.fundamental-row:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.fundamental-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.fundamental-row .value {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
}

.fundamental-row .status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    min-width: 44px;
    text-align: center;
}

.fundamental-row .status.good {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.fundamental-row .status.bad {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.fundamental-row .status.neutral {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Analysis content wrapper */
.analysis-content {
    min-height: 0;
}

/* Company Profile */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.company-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
}

.company-name-sector h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.company-name-sector span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.company-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 90px;
    overflow-y: auto;
    padding-right: 4px;
}

.company-desc::-webkit-scrollbar { width: 4px; }
.company-desc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.company-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.meta-item {
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.meta-item:hover {
    border-color: var(--border);
}

.meta-item .label {
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-item .value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
}

/* Dividend Info */
.dividend-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
}

.dividend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.dividend-row:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.dividend-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.dividend-row .value {
    font-weight: 700;
    color: var(--accent-cyan);
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
}

/* Market Grid */
.market-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.market-item:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.market-item .name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.market-item .name .flag {
    margin-right: 4px;
}

.market-item .price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.market-item .change {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

.market-item .change.up {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.market-item .change.down {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Hold Duration */
.hold-info {
    text-align: center;
    padding: 24px 20px 20px;
}

.hold-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    position: relative;
}

.hold-badge.short {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.hold-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.hold-badge.long {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.hold-reason {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 300px;
    margin: 0 auto;
}

/* ===== Report Card ===== */
.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.report-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    padding: 16px 24px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.report-card h3 i {
    color: var(--accent-purple);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

.report-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 20px 24px;
}

.report-content h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-content ul {
    list-style: none;
    padding-left: 0;
}

.report-content ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 13px;
}

.report-content ul li::before {
    content: '\203A';
    position: absolute;
    left: 4px;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 16px;
}

.report-section {
    padding: 18px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.2s ease;
}

.report-section:hover {
    background: rgba(255, 255, 255, 0.04);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* ===== Mode Toggle ===== */
.mode-toggle {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3px;
    gap: 2px;
}

.mode-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.mode-btn:hover { color: var(--text-secondary); }

.mode-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.mode-btn i { font-size: 11px; }

/* ===== Mode Switch Banner (Beginner → Pro) ===== */
.mode-switch-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px;
}

.mode-switch-text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 14px;
}

.mode-switch-text > i {
    font-size: 24px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.mode-switch-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}

.mode-switch-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-switch-pro {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-switch-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

/* Back to Simple View (in Pro mode) */
.mode-switch-back {
    padding: 12px 24px 0;
}

.mode-switch-back button {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mode-switch-back button:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ===== Beginner Mode ===== */
.beginner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.b-verdict-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    margin-bottom: 24px;
    animation: slideUp 0.5s ease;
}

.b-verdict-card.bullish { border-color: rgba(16, 185, 129, 0.4); background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), var(--bg-card)); }
.b-verdict-card.bearish { border-color: rgba(239, 68, 68, 0.4); background: linear-gradient(180deg, rgba(239, 68, 68, 0.06), var(--bg-card)); }
.b-verdict-card.neutral { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), var(--bg-card)); }

.b-verdict-emoji { font-size: 56px; margin-bottom: 12px; }

.b-stock-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.b-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.b-verdict-label {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.b-verdict-label.buy { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.b-verdict-label.sell { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.b-verdict-label.hold { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }

.b-verdict-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Beginner Cards Grid */
.b-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.b-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.b-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.b-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-blue);
}

.b-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.b-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.b-card.good .b-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.b-card.bad .b-card-icon { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.b-card.warn .b-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent-yellow); }

/* Health Check */
.b-health-section, .b-chart-section, .b-about-section, .b-summary-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.b-health-section h2, .b-chart-section h2, .b-about-section h2, .b-summary-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.b-health-section h2 i { color: var(--accent-red); }
.b-chart-section h2 i { color: var(--accent-blue); }
.b-about-section h2 i { color: var(--accent-purple); }
.b-summary-section h2 i { color: var(--accent-yellow); }

.b-health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.b-health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.b-health-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.b-health-icon.good { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.b-health-icon.bad { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.b-health-icon.ok { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }

.b-health-info { flex: 1; }
.b-health-info .label { font-size: 12px; color: var(--text-muted); display: block; }
.b-health-info .value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.b-chart-section canvas { max-height: 280px; }

.b-about-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.b-summary-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.b-summary-text .point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.b-summary-text .point:last-child { border-bottom: none; }

.b-summary-text .point-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.b-summary-text .point-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.b-summary-text .point-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.b-summary-text .point-icon.yellow { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.b-summary-text .point-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

/* Beginner News */
.b-news-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.b-news-section h2 {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.b-news-section h2 i { color: var(--accent-cyan); }
.b-news-verdict {
    padding: 16px; border-radius: 12px; margin-bottom: 16px;
    text-align: center; font-size: 15px; line-height: 1.6;
}
.b-news-verdict.bullish { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--accent-green); }
.b-news-verdict.bearish { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: var(--accent-red); }
.b-news-verdict.neutral { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--accent-yellow); }
.b-news-grid {
    display: flex; flex-direction: column; gap: 8px;
}
.b-news-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px; background: var(--bg-primary); border-radius: 10px;
    font-size: 13px; transition: var(--transition);
}
.b-news-item:hover { background: var(--bg-card-hover); }
.b-news-dot {
    width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
}
.b-news-dot.bullish { background: var(--accent-green); }
.b-news-dot.bearish { background: var(--accent-red); }
.b-news-dot.neutral { background: var(--text-muted); }
.b-news-item a { color: var(--text-primary); text-decoration: none; line-height: 1.4; }
.b-news-item a:hover { color: var(--accent-blue); }
.b-news-source { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Pro News */
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.news-card h3 {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.news-card h3 i { color: var(--accent-cyan); }
.news-sentiment-bar {
    display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.sentiment-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.sentiment-badge.bullish { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.sentiment-badge.bearish { background: rgba(239,68,68,0.1); color: var(--accent-red); }
.sentiment-badge.neutral { background: rgba(245,158,11,0.1); color: var(--accent-yellow); }
.sentiment-badge i { font-size: 10px; }
.news-grid-pro {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.news-column h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.news-pro-item {
    padding: 8px 0; border-bottom: 1px solid rgba(42,48,66,0.3);
    font-size: 12px; line-height: 1.5;
}
.news-pro-item:last-child { border-bottom: none; }
.news-pro-item a { color: var(--text-secondary); text-decoration: none; }
.news-pro-item a:hover { color: var(--accent-blue); }
.news-pro-item .src { color: var(--text-muted); font-size: 10px; }
.news-pro-item .tag {
    display: inline-block; padding: 1px 6px; border-radius: 3px;
    font-size: 9px; font-weight: 700; margin-left: 4px;
}
.news-pro-item .tag.bullish { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.news-pro-item .tag.bearish { background: rgba(239,68,68,0.15); color: var(--accent-red); }

/* ===== Auth Area ===== */
.auth-area { display: flex; align-items: center; gap: 8px; }
.btn-login {
    display: flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-primary); padding: 6px 14px;
    border-radius: var(--radius-sm); font-size: 13px;
    cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.btn-login:hover { background: var(--bg-card); border-color: var(--accent-blue); color: var(--accent-blue); }
.btn-login i { font-size: 16px; }

.user-menu { display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.user-name { font-size: 13px; color: var(--text-primary); font-weight: 500; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    min-width: 180px; z-index: 100; display: none;
    overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text-secondary);
    text-decoration: none; font-size: 13px;
    transition: var(--transition); cursor: pointer;
}
.user-dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.user-dropdown a i { width: 16px; text-align: center; }

/* ===== Modal Close Button ===== */
.modal-close-btn {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer; line-height: 1;
    width: 32px; height: 32px; display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%; transition: var(--transition);
}
.modal-close-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ===== Login Modal ===== */
.login-modal { max-width: 420px; position: relative; text-align: center; }
.login-header { margin-bottom: 24px; }
.login-header h2 { font-size: 22px; font-weight: 700; margin-top: 12px; color: var(--text-primary); }
.login-header p { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

.btn-google-login {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border-radius: var(--radius-sm);
    background: #fff; color: #333; border: 1px solid #ddd;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.btn-google-login:hover { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.phone-login-form { text-align: left; }
.phone-input-group {
    display: flex; align-items: center; border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px;
    background: var(--bg-primary);
}
.phone-prefix {
    padding: 10px 12px; background: var(--bg-secondary);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    border-right: 1px solid var(--border);
}
.phone-input-group input {
    flex: 1; padding: 10px 12px; background: transparent;
    border: none; color: var(--text-primary); font-size: 14px;
    outline: none; font-family: inherit;
}

.btn-send-otp, .btn-verify-otp {
    width: 100%; padding: 10px; border: none;
    border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.btn-send-otp { background: var(--accent-blue); color: #fff; margin-bottom: 12px; }
.btn-send-otp:hover { opacity: 0.9; }
.btn-send-otp:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-verify-otp { background: var(--accent-green); color: #fff; margin-top: 8px; }
.btn-verify-otp:hover { opacity: 0.9; }

.otp-section input {
    width: 100%; padding: 10px 12px; background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 16px; text-align: center;
    letter-spacing: 6px; outline: none; font-family: inherit;
}
.otp-section input:focus { border-color: var(--accent-blue); }

/* ===== Alert Modal ===== */
.alert-modal { max-width: 400px; position: relative; }
.alert-modal h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 16px; }
.alert-stock-info {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; background: var(--bg-primary);
    border-radius: var(--radius-sm); margin-bottom: 16px;
}
.alert-stock-info #alertStockName { font-weight: 600; color: var(--text-primary); font-size: 14px; }
.alert-stock-info #alertStockPrice { color: var(--text-secondary); font-size: 13px; }

.alert-form label { display: block; color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.alert-form select {
    width: 100%; padding: 10px 12px; background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 14px; margin-bottom: 12px;
    outline: none; cursor: pointer; font-family: inherit;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b95a5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.alert-price-input {
    display: flex; align-items: center; border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px;
    background: var(--bg-primary);
}
.alert-price-input span {
    padding: 10px 12px; background: var(--bg-secondary);
    color: var(--text-secondary); font-size: 16px; font-weight: 600;
    border-right: 1px solid var(--border);
}
.alert-price-input input {
    flex: 1; padding: 10px 12px; background: transparent;
    border: none; color: var(--text-primary); font-size: 14px;
    outline: none; font-family: inherit;
}
.alert-price-input input:focus { box-shadow: none; }

.btn-create-alert {
    width: 100%; padding: 12px; border: none;
    border-radius: var(--radius-sm); background: var(--accent-yellow);
    color: #000; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
}
.btn-create-alert:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== Dashboard ===== */
.dashboard-container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.dash-header h1 {
    font-size: 22px; font-weight: 700; display: flex;
    align-items: center; gap: 10px; color: var(--text-primary);
}
.btn-back-home {
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 8px 16px;
    border-radius: var(--radius-sm); font-size: 13px;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-back-home:hover { color: var(--text-primary); border-color: var(--accent-blue); }

.dash-grid-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-section:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dash-section h3 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 14px 20px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.dash-section h3 i {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px; font-size: 12px;
}
.dash-section h3 i[style*="yellow"] { background: rgba(245,158,11,0.12); }
.dash-section h3 i[style*="red"] { background: rgba(239,68,68,0.12); }
.dash-section h3 i[style*="blue"] { background: rgba(59,130,246,0.12); }
.dash-section h3 i[style*="purple"] { background: rgba(139,92,246,0.12); }

.dash-items {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 16px 16px;
}

.dash-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.dash-item.clickable { cursor: pointer; }
.dash-item.clickable:hover, .dash-item .clickable:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}
.dash-item-info {
    display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0;
}
.dash-item-info .symbol {
    font-weight: 700; font-size: 13px; color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.dash-item-info .name {
    font-size: 11px; color: var(--text-muted); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.dash-item-info .clickable { cursor: pointer; }

.dash-item-meta {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 11px;
}
.dash-item-meta i { font-size: 10px; opacity: 0.5; }

.dash-item-actions { display: flex; gap: 6px; }
.dash-btn {
    width: 30px; height: 30px; border-radius: 8px; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; font-size: 11px;
}
.dash-btn-alert { background: rgba(245,158,11,0.1); color: var(--accent-yellow); }
.dash-btn-alert:hover { background: rgba(245,158,11,0.25); transform: scale(1.1); }
.dash-btn-remove { background: rgba(239,68,68,0.1); color: var(--accent-red); }
.dash-btn-remove:hover { background: rgba(239,68,68,0.25); transform: scale(1.1); }
.dash-btn-cancel { background: rgba(239,68,68,0.1); color: var(--accent-red); }
.dash-btn-cancel:hover { background: rgba(239,68,68,0.25); transform: scale(1.1); }

.dash-item-count { flex-shrink: 0; }
.count-badge {
    background: rgba(139,92,246,0.12); color: var(--accent-purple);
    padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 800;
    border: 1px solid rgba(139,92,246,0.15);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Alert Item Progress */
.dash-alert-item { gap: 10px; }
.dash-alert-item .alert-condition {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--text-secondary);
}
.dash-alert-item.alert-up .alert-condition i { color: var(--accent-green); }
.dash-alert-item.alert-down .alert-condition i { color: var(--accent-red); }
.dash-alert-progress { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.alert-progress-bar {
    width: 70px; height: 5px; background: var(--border);
    border-radius: 3px; overflow: hidden;
}
.alert-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 3px; transition: width 0.3s ease;
}
.alert-progress-text { font-size: 10px; color: var(--text-muted); min-width: 28px; text-align: right; font-weight: 600; }

/* Dashboard Empty & Loading States */
.dash-empty {
    text-align: center; padding: 28px 20px; color: var(--text-muted);
    font-size: 13px; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
}
.dash-empty i { font-size: 24px; opacity: 0.3; }
.dash-loading {
    text-align: center; padding: 28px 20px; color: var(--text-muted);
    font-size: 13px;
}

/* Auth Toast */
.auth-toast {
    position: fixed; bottom: 24px; right: 24px;
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 14px; z-index: 10000; animation: fadeIn 0.3s ease;
    color: #fff; font-family: inherit;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .news-grid-pro { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .b-cards-grid { grid-template-columns: 1fr; }
    .b-health-grid { grid-template-columns: 1fr; }
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 40px 24px;
}

.welcome-content {
    text-align: center;
    max-width: 700px;
    animation: slideUp 0.6s ease;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.welcome-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.quick-picks {
    margin-bottom: 24px;
}

.quick-picks h3 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    min-width: 120px;
}

.pick-btn span {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
}

.pick-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.pick-btn.indian {
    border-color: rgba(245, 158, 11, 0.2);
}

.pick-btn.indian:hover {
    border-color: var(--accent-yellow);
}

.welcome-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-secondary);
}

.welcome-note i {
    color: var(--accent-blue);
}

/* ===== Suggestions Dropdown ===== */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: var(--bg-card-hover);
}

.suggestion-item .sym {
    font-weight: 700;
    color: var(--text-primary);
}

.suggestion-item .name {
    color: var(--text-secondary);
    font-size: 12px;
}

.suggestion-item .exchange {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.dropdown-section-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.dropdown-section-title i {
    margin-right: 4px;
    font-size: 10px;
}


/* Error toast */
.error-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    max-width: 500px;
    text-align: center;
}

/* ===== Footer ===== */
footer {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

footer i { color: var(--accent-yellow); }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* ===== Stock of the Day ===== */
.sotd-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    max-width: 620px;
    margin-left: auto; margin-right: auto;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}
.sotd-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue), var(--accent-purple));
}
.sotd-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent-yellow); margin-bottom: 12px;
}
.sotd-body { text-align: center; }
.sotd-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sotd-sector { font-size: 12px; color: var(--text-muted); }
.sotd-price-row { margin: 12px 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.sotd-price { font-size: 28px; font-weight: 700; }
.sotd-change { font-size: 15px; font-weight: 600; padding: 2px 10px; border-radius: 6px; }
.sotd-change.up { color: var(--accent-green); background: rgba(16,185,129,0.1); }
.sotd-change.down { color: var(--accent-red); background: rgba(239,68,68,0.1); }
.sotd-verdict { font-size: 14px; color: var(--accent-blue); font-weight: 600; margin: 8px 0; }
.sotd-metrics { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--text-secondary); margin: 12px 0; }
.btn-sotd-analyze {
    padding: 10px 28px; border: none; border-radius: 30px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-sotd-analyze:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }

/* ===== AI Chat Button (Header) ===== */
.btn-ai-chat {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none; border-radius: 8px;
    color: white; cursor: pointer;
    font-size: 12px; font-weight: 700; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.btn-ai-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}
.btn-ai-chat.active {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.5);
}
.btn-ai-chat i { font-size: 13px; }

.chat-panel {
    position: fixed; top: 60px; right: 24px; z-index: 899;
    width: 400px; max-height: 560px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 16px; display: flex; flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    animation: chatSlideDown 0.25s ease;
}
@keyframes chatSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-header {
    padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
    border-radius: 16px 16px 0 0;
    font-size: 14px; font-weight: 600;
}
.chat-header span { display: flex; align-items: center; gap: 8px; }
.chat-header button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
    min-height: 300px; max-height: 380px;
}
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; word-wrap: break-word; }
.chat-user { align-self: flex-end; background: var(--accent-blue); color: white; border-radius: 12px 12px 2px 12px; }
.chat-bot { align-self: flex-start; background: var(--bg-card); color: var(--text-secondary); border-radius: 12px 12px 12px 2px; border: 1px solid var(--border); }
.chat-bot b, .chat-bot strong { color: var(--text-primary); }
.chat-input-area {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 1px solid var(--border); background: var(--bg-primary); border-radius: 0 0 16px 16px;
}
.chat-input-area input {
    flex: 1; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; color: var(--text-primary); font-size: 13px; outline: none;
    font-family: 'Inter', sans-serif;
}
.chat-input-area input:focus { border-color: var(--accent-blue); }
.chat-input-area button {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--accent-blue); color: white; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.chat-input-area button:hover { background: var(--accent-purple); }
.chat-typing { display: flex; gap: 4px; padding: 8px 14px; align-self: flex-start; }
.chat-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); animation: chatDot 1.4s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot { 0%,80%,100%{opacity:0.3} 40%{opacity:1} }

/* ===== Screener ===== */
.btn-screener {
    padding: 7px 16px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 10px; color: var(--accent-blue); cursor: pointer;
    font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.btn-screener:hover {
    background: rgba(59,130,246,0.15); border-color: var(--accent-blue);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.screener-container {
    max-width: 1200px; margin: 0 auto; padding: 32px 24px;
}
.screener-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 28px;
}
.screener-header-info, .screener-title { display: flex; flex-direction: column; gap: 6px; }
.screener-header h1 {
    font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px;
    letter-spacing: -0.5px; color: var(--text-primary);
}
.screener-header h1 i {
    font-size: 22px; color: var(--accent-blue);
    background: rgba(59,130,246,0.1); width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.screener-subtitle {
    font-size: 13px; color: var(--text-muted); font-weight: 400;
    margin-left: 56px; line-height: 1.5;
}
.btn-back-home {
    padding: 9px 18px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-secondary); cursor: pointer;
    font-size: 13px; font-weight: 500; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease; display: flex; align-items: center; gap: 6px;
}
.btn-back-home:hover {
    border-color: var(--text-muted); color: var(--text-primary);
    transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Filter Panel */
.screener-filters {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.filter-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 16px;
}
.filter-row:last-of-type { margin-bottom: 0; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.filter-group label i {
    font-size: 11px; color: var(--accent-blue); opacity: 0.7;
}
.filter-group select, .filter-group input {
    width: 100%; padding: 10px 14px; background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-primary); font-size: 13px; font-weight: 500;
    font-family: 'Inter', sans-serif; outline: none;
    transition: all 0.2s ease; appearance: none;
    -webkit-appearance: none;
}
.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}
.filter-group select:focus, .filter-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.filter-group input::placeholder { color: var(--text-muted); opacity: 0.6; }

.filter-actions {
    display: flex; gap: 12px; margin-top: 20px;
    padding-top: 20px; border-top: 1px solid var(--border);
}
.btn-screen {
    flex: 1; padding: 12px 24px; border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s ease; letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.btn-screen:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.btn-screen:active { transform: translateY(0); }
.btn-screen:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
    box-shadow: none;
}
.btn-reset {
    padding: 12px 20px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-primary); color: var(--text-secondary); cursor: pointer;
    font-size: 13px; font-weight: 500; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease; display: flex; align-items: center; gap: 6px;
}
.btn-reset:hover {
    border-color: var(--accent-red); color: var(--accent-red);
    background: rgba(239,68,68,0.05);
}

/* Progress */
.screener-progress {
    margin-bottom: 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 20px;
}
.screener-progress .progress-bar {
    height: 6px; background: var(--border); border-radius: 3px;
    overflow: hidden; margin-bottom: 8px;
}
.screener-progress .progress-fill {
    height: 100%; border-radius: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(59,130,246,0.4);
}
.screener-progress span {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}

/* Sort Bar */
.screener-sort-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
    padding: 0 4px;
}
.screener-sort-bar > span {
    font-size: 14px; color: var(--text-primary); font-weight: 700;
    letter-spacing: -0.2px;
}
.sort-buttons {
    display: flex; align-items: center; gap: 6px;
}
.sort-label {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    margin-right: 4px;
}
.sort-btn {
    padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
    background: var(--bg-card); color: var(--text-muted); cursor: pointer;
    font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease; letter-spacing: 0.3px;
}
.sort-btn:hover {
    border-color: var(--accent-blue); color: var(--accent-blue);
    background: rgba(59,130,246,0.05);
}
.sort-btn.active {
    background: var(--accent-blue); color: white; border-color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

/* Results Grid */
.screener-results {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* Result Cards */
.screener-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.screener-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--text-muted); opacity: 0.5; transition: all 0.25s ease;
}
.screener-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
}
.screener-card:hover::before { opacity: 1; }
.screener-card.bullish::before { background: linear-gradient(90deg, var(--accent-green), #34d399); }
.screener-card.bearish::before { background: linear-gradient(90deg, var(--accent-red), #f87171); }
.screener-card.neutral::before { background: linear-gradient(90deg, var(--accent-yellow), #fbbf24); }

.screener-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 14px;
}
.screener-symbol {
    font-size: 16px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.3px;
}
.screener-name {
    display: block; font-size: 11px; color: var(--text-muted);
    margin-top: 3px; font-weight: 400; line-height: 1.3;
}
.screener-sector {
    display: inline-block; font-size: 10px; font-weight: 600;
    color: var(--accent-blue); background: rgba(59,130,246,0.08);
    padding: 2px 8px; border-radius: 6px; margin-top: 5px;
    letter-spacing: 0.3px;
}

.score-pill {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    letter-spacing: -0.5px;
}
.score-pill.bullish {
    background: rgba(16,185,129,0.12); color: var(--accent-green);
    box-shadow: inset 0 0 0 1px rgba(16,185,129,0.2);
}
.score-pill.bearish {
    background: rgba(239,68,68,0.12); color: var(--accent-red);
    box-shadow: inset 0 0 0 1px rgba(239,68,68,0.2);
}
.score-pill.neutral {
    background: rgba(245,158,11,0.12); color: var(--accent-yellow);
    box-shadow: inset 0 0 0 1px rgba(245,158,11,0.2);
}

.screener-card-price {
    margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px;
}
.screener-price {
    font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.screener-change {
    font-size: 12px; font-weight: 700; padding: 3px 8px;
    border-radius: 6px; letter-spacing: 0.2px;
}
.screener-change.up {
    color: var(--accent-green); background: rgba(16,185,129,0.1);
}
.screener-change.down {
    color: var(--accent-red); background: rgba(239,68,68,0.1);
}

.screener-card-metrics {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 6px; margin-bottom: 14px;
}
.screener-card-metrics div {
    text-align: center; padding: 8px 4px; background: var(--bg-primary);
    border-radius: 10px; border: 1px solid transparent;
    transition: all 0.2s ease;
}
.screener-card-metrics div:hover {
    border-color: var(--border); background: var(--bg-card);
}
.metric-label {
    display: block; font-size: 9px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
    margin-bottom: 3px;
}
.metric-val {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    letter-spacing: -0.3px;
}
.metric-val.up { color: var(--accent-green); }
.metric-val.down { color: var(--accent-red); }

.screener-card-verdict {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 14px;
    font-weight: 500; line-height: 1.5; padding: 8px 12px;
    background: var(--bg-primary); border-radius: 8px;
    border-left: 2px solid var(--text-muted);
}
.screener-card.bullish .screener-card-verdict { border-left-color: var(--accent-green); }
.screener-card.bearish .screener-card-verdict { border-left-color: var(--accent-red); }
.screener-card.neutral .screener-card-verdict { border-left-color: var(--accent-yellow); }

.screener-card-actions { display: flex; gap: 8px; }
.screener-card-actions button {
    flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-primary); color: var(--text-secondary); cursor: pointer;
    font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.screener-card-actions button:hover {
    border-color: var(--accent-blue); color: var(--accent-blue);
    background: rgba(59,130,246,0.05);
    transform: translateY(-1px);
}
.screener-card-actions button:last-child { flex: 0 0 auto; width: 40px; }

.screener-empty {
    text-align: center; padding: 64px 24px; color: var(--text-muted);
    grid-column: 1 / -1;
}
.screener-empty i {
    font-size: 48px; margin-bottom: 16px; display: block;
    opacity: 0.4;
}
.screener-empty p {
    font-size: 14px; font-weight: 500; max-width: 320px;
    margin: 0 auto; line-height: 1.6;
}

/* Screener responsive */
@media (max-width: 768px) {
    .screener-container { padding: 16px 12px; }
    .screener-header { flex-direction: column; gap: 12px; align-items: stretch; }
    .screener-header h1 { font-size: 20px; }
    .screener-subtitle { margin-left: 0; font-size: 12px; }
    .filter-row { grid-template-columns: 1fr; gap: 12px; }
    .screener-filters { padding: 16px; }
    .filter-actions { flex-direction: column; }
    .btn-screen { width: 100%; }
    .screener-results { grid-template-columns: 1fr; }
    .screener-card-metrics { grid-template-columns: repeat(3, 1fr); }
    .screener-sort-bar { flex-direction: column; align-items: flex-start; }
    .sort-buttons { flex-wrap: wrap; }
}

/* ===== IPO Analyzer ===== */
.btn-ipo {
    padding: 7px 16px; background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.2);
    border-radius: 10px; color: var(--accent-purple); cursor: pointer;
    font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s ease;
}
.btn-ipo:hover {
    background: rgba(168,85,247,0.15); border-color: var(--accent-purple);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(168,85,247,0.15);
}
.btn-ipo .ipo-label { white-space: nowrap; }

.ipo-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.ipo-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 28px;
}
.ipo-header-info { display: flex; flex-direction: column; gap: 6px; }
.ipo-header h1 {
    font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px;
    letter-spacing: -0.5px; color: var(--text-primary);
}
.ipo-header h1 i {
    font-size: 20px; color: var(--accent-purple);
    background: rgba(168,85,247,0.1); width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.ipo-subtitle {
    font-size: 13px; color: var(--text-muted); font-weight: 400;
    margin-left: 56px;
}
.ipo-header-actions { display: flex; gap: 10px; align-items: center; }
.ipo-refresh-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; font-size: 14px;
}
.ipo-refresh-btn:hover {
    border-color: var(--accent-purple); color: var(--accent-purple);
    transform: rotate(180deg);
}

/* IPO Tabs */
.ipo-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 4px; width: fit-content;
}
.ipo-tab-btn {
    padding: 10px 20px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s ease;
}
.ipo-tab-btn:hover { color: var(--text-primary); background: var(--bg-primary); }
.ipo-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white; box-shadow: 0 2px 8px rgba(168,85,247,0.3);
}
.ipo-tab-count {
    background: rgba(255,255,255,0.15); padding: 1px 8px;
    border-radius: 10px; font-size: 11px; font-weight: 700;
}
.ipo-tab-btn:not(.active) .ipo-tab-count {
    background: var(--bg-primary); color: var(--text-muted);
}
.ipo-live-dot { font-size: 8px; color: var(--accent-green); animation: ipoPulse 1.5s infinite; }
@keyframes ipoPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* IPO Loading */
.ipo-loading {
    text-align: center; padding: 64px 24px; color: var(--text-muted);
}
.ipo-loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--accent-purple); border-radius: 50%;
    margin: 0 auto 16px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ipo-loading p { font-size: 14px; font-weight: 500; }

.ipo-empty {
    text-align: center; padding: 64px 24px; color: var(--text-muted);
}
.ipo-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.4; }
.ipo-empty h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.ipo-empty p { font-size: 13px; margin-bottom: 16px; }
.ipo-retry-btn {
    padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer;
    background: var(--accent-purple); color: white; font-size: 13px;
    font-weight: 600; font-family: 'Inter', sans-serif;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.2s ease;
}
.ipo-retry-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(168,85,247,0.3); }

/* IPO Cards */
.ipo-list-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.ipo-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.ipo-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    opacity: 0; transition: opacity 0.25s ease;
}
.ipo-card:hover {
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
}
.ipo-card:hover::before { opacity: 1; }

.ipo-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.ipo-card-info { flex: 1; min-width: 0; }
.ipo-card-name-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.ipo-card-name-row h3 {
    font-size: 16px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.3px; margin: 0;
}
.ipo-card-industry {
    font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px;
}

/* Status badges */
.ipo-status-badge {
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; display: inline-flex; align-items: center; gap: 4px;
    letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap;
}
.ipo-status-badge.ongoing {
    background: rgba(16,185,129,0.1); color: var(--accent-green);
    border: 1px solid rgba(16,185,129,0.2);
}
.ipo-status-badge.ongoing i { font-size: 6px; animation: ipoPulse 1.5s infinite; }
.ipo-status-badge.upcoming {
    background: rgba(59,130,246,0.1); color: var(--accent-blue);
    border: 1px solid rgba(59,130,246,0.2);
}
.ipo-status-badge.listed {
    background: rgba(168,85,247,0.1); color: var(--accent-purple);
    border: 1px solid rgba(168,85,247,0.2);
}

/* GMP Badge */
.ipo-gmp-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
}
.ipo-gmp-badge.positive {
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
}
.ipo-gmp-badge.negative {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
}
.ipo-gmp-badge.neutral {
    background: var(--bg-primary); border: 1px solid var(--border);
}
.ipo-gmp-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px;
}
.ipo-gmp-value {
    font-size: 14px; font-weight: 800;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.ipo-gmp-badge.positive .ipo-gmp-value { color: var(--accent-green); }
.ipo-gmp-badge.negative .ipo-gmp-value { color: var(--accent-red); }
.ipo-gmp-badge.neutral .ipo-gmp-value { color: var(--text-muted); }

/* IPO Card Metrics */
.ipo-card-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 12px;
}
.ipo-metric {
    padding: 8px 10px; background: var(--bg-primary); border-radius: 10px;
    display: flex; flex-direction: column; gap: 3px;
}
.ipo-metric-label {
    font-size: 10px; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.ipo-metric-label i { font-size: 9px; opacity: 0.7; }
.ipo-metric-value {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    letter-spacing: -0.3px;
}

.ipo-card-footer {
    padding-top: 12px; border-top: 1px solid var(--border);
}
.ipo-analyze-hint {
    font-size: 12px; color: var(--accent-purple); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    opacity: 0.7; transition: all 0.2s ease;
}
.ipo-card:hover .ipo-analyze-hint { opacity: 1; }

/* ===== IPO Detail Panel ===== */
.ipo-detail-panel {
    position: relative; z-index: 10;
}
.ipo-detail-container {
    max-width: 900px; margin: 0 auto; padding: 0;
}
.ipo-detail-header {
    margin-bottom: 24px;
}
.ipo-detail-back {
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
    font-size: 13px; font-weight: 500; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 16px;
}
.ipo-detail-back:hover { border-color: var(--accent-purple); color: var(--text-primary); }

.ipo-detail-title-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.ipo-detail-title-row h2 {
    font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin: 0;
}
.ipo-detail-industry {
    font-size: 13px; color: var(--text-muted); display: flex; align-items: center;
    gap: 6px; margin-top: 4px;
}

/* Verdict Badge */
.ipo-verdict-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 16px; flex-shrink: 0;
    position: relative; overflow: hidden;
}
.ipo-verdict-badge.invest {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border: 2px solid rgba(16,185,129,0.3);
}
.ipo-verdict-badge.neutral {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 2px solid rgba(245,158,11,0.3);
}
.ipo-verdict-badge.avoid {
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
    border: 2px solid rgba(239,68,68,0.3);
}
.ipo-verdict-score {
    font-size: 24px; font-weight: 900; line-height: 1;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.ipo-verdict-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 2px;
}
.ipo-verdict-badge.invest .ipo-verdict-score,
.ipo-verdict-badge.invest .ipo-verdict-label { color: var(--accent-green); }
.ipo-verdict-badge.neutral .ipo-verdict-score,
.ipo-verdict-badge.neutral .ipo-verdict-label { color: var(--accent-yellow); }
.ipo-verdict-badge.avoid .ipo-verdict-score,
.ipo-verdict-badge.avoid .ipo-verdict-label { color: var(--accent-red); }

/* Summary */
.ipo-detail-summary {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 20px; margin-bottom: 20px;
    border-left: 4px solid var(--accent-purple);
}
.ipo-detail-summary p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
    font-weight: 500; margin: 0;
}

/* Quick Info Bar */
.ipo-quick-info {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.ipo-quick-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; flex: 1; min-width: 120px;
}
.ipo-quick-item i {
    font-size: 12px; color: var(--accent-purple); opacity: 0.7;
}
.ipo-quick-label {
    font-size: 10px; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.ipo-quick-value {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    margin-left: auto;
}

/* Detail Cards */
.ipo-detail-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; margin-bottom: 16px;
    overflow: hidden;
}
.ipo-detail-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ipo-detail-card-header h3 {
    font-size: 15px; font-weight: 700; display: flex; align-items: center;
    gap: 8px; margin: 0; color: var(--text-primary);
}
.ipo-detail-card-header h3 i {
    font-size: 14px; color: var(--accent-purple);
}
.ipo-detail-card-badge {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    background: var(--bg-primary); padding: 4px 12px; border-radius: 8px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.ipo-detail-card-badge.live {
    background: rgba(16,185,129,0.1); color: var(--accent-green);
    animation: ipoPulse 2s infinite;
}

.ipo-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}

/* Score Bars */
.ipo-score-bars { display: flex; flex-direction: column; gap: 12px; }
.ipo-score-bar-row { display: flex; flex-direction: column; gap: 4px; }
.ipo-score-bar-label {
    display: flex; justify-content: space-between; align-items: center;
}
.ipo-score-bar-label span {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.ipo-score-bar-nums {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.ipo-score-bar-track {
    height: 8px; background: var(--bg-primary); border-radius: 4px;
    overflow: hidden;
}
.ipo-score-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(168,85,247,0.3);
}

/* Pros & Cons */
.ipo-pros-card { border-left: 3px solid var(--accent-green); }
.ipo-cons-card { border-left: 3px solid var(--accent-red); }
.ipo-pros-list, .ipo-cons-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.ipo-pros-list li, .ipo-cons-list li {
    font-size: 13px; color: var(--text-secondary); font-weight: 500;
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.ipo-pros-list li i { color: var(--accent-green); margin-top: 3px; flex-shrink: 0; }
.ipo-cons-list li i { color: var(--accent-red); margin-top: 3px; flex-shrink: 0; }
.ipo-no-data { color: var(--text-muted) !important; font-style: italic; }

/* Financials Grid */
.ipo-financials-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.ipo-fin-metric {
    padding: 12px; background: var(--bg-primary); border-radius: 10px;
    text-align: center; border: 1px solid transparent;
    transition: all 0.2s ease;
}
.ipo-fin-metric:hover { border-color: var(--border); }
.ipo-fin-label {
    display: block; font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
    margin-bottom: 4px;
}
.ipo-fin-value {
    font-size: 16px; font-weight: 800; color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    letter-spacing: -0.5px;
}
.ipo-fin-value.positive { color: var(--accent-green); }
.ipo-fin-value.negative { color: var(--accent-red); }

/* Subscription Grid */
.ipo-subscription-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ipo-sub-category { display: flex; flex-direction: column; gap: 6px; }
.ipo-sub-header { display: flex; justify-content: space-between; align-items: center; }
.ipo-sub-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ipo-sub-value {
    font-size: 14px; font-weight: 800;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.ipo-sub-value.high { color: var(--accent-green); }
.ipo-sub-value.medium { color: var(--accent-yellow); }
.ipo-sub-value.low { color: var(--text-muted); }
.ipo-sub-bar {
    height: 6px; background: var(--bg-primary); border-radius: 3px;
    overflow: hidden;
}
.ipo-sub-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s ease;
}
.ipo-sub-bar-fill.high { background: var(--accent-green); }
.ipo-sub-bar-fill.medium { background: var(--accent-yellow); }
.ipo-sub-bar-fill.low { background: var(--text-muted); }

/* Sentiment */
.ipo-sentiment-badge {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ipo-sentiment-badge.positive { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.ipo-sentiment-badge.neutral { background: rgba(245,158,11,0.1); color: var(--accent-yellow); }
.ipo-sentiment-badge.negative { background: rgba(239,68,68,0.1); color: var(--accent-red); }

.ipo-sentiment-bar-container { margin-bottom: 16px; }
.ipo-sentiment-bar {
    display: flex; height: 28px; border-radius: 8px; overflow: hidden;
    font-size: 10px; font-weight: 700; line-height: 28px;
}
.ipo-sentiment-positive {
    background: rgba(16,185,129,0.2); color: var(--accent-green);
    text-align: center; min-width: 30px;
}
.ipo-sentiment-neutral {
    background: rgba(245,158,11,0.15); color: var(--accent-yellow);
    text-align: center; min-width: 30px;
}
.ipo-sentiment-negative {
    background: rgba(239,68,68,0.15); color: var(--accent-red);
    text-align: center; min-width: 30px;
}

/* News Items */
.ipo-news-list { display: flex; flex-direction: column; gap: 8px; }
.ipo-news-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; background: var(--bg-primary); border-radius: 10px;
    text-decoration: none; transition: all 0.2s ease;
    border: 1px solid transparent;
}
.ipo-news-item:hover { border-color: var(--border); background: var(--bg-card); }
.ipo-news-sentiment-dot {
    width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.ipo-news-sentiment-dot.positive { background: var(--accent-green); }
.ipo-news-sentiment-dot.neutral { background: var(--accent-yellow); }
.ipo-news-sentiment-dot.negative { background: var(--accent-red); }
.ipo-news-content { flex: 1; min-width: 0; }
.ipo-news-title {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
    line-height: 1.4; display: block;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ipo-news-meta {
    font-size: 10px; color: var(--text-muted); margin-top: 3px; display: block;
}

/* Company Description */
.ipo-description {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    margin: 0;
}

/* Analysis Steps Animation */
.ipo-detail-loading { text-align: center; padding: 40px 0; }
.ipo-analysis-steps {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 320px; margin: 24px auto 0; text-align: left;
}
.ipo-step {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 8px; transition: all 0.3s ease;
    opacity: 0.4;
}
.ipo-step.active {
    color: var(--accent-purple); opacity: 1;
    background: rgba(168,85,247,0.05);
}
.ipo-step i { width: 16px; text-align: center; }

/* Disclaimer */
.ipo-disclaimer {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 16px 20px; margin-top: 24px;
    background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 12px;
}
.ipo-disclaimer i { color: var(--accent-yellow); margin-top: 2px; flex-shrink: 0; }
.ipo-disclaimer p {
    font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0;
}

/* IPO Responsive */
@media (max-width: 768px) {
    .ipo-container { padding: 16px 12px; }
    .ipo-header { flex-direction: column; gap: 12px; }
    .ipo-header h1 { font-size: 20px; }
    .ipo-subtitle { margin-left: 0; }
    .ipo-tabs { width: 100%; overflow-x: auto; }
    .ipo-tab-btn { padding: 8px 14px; font-size: 12px; white-space: nowrap; }
    .ipo-list-container { grid-template-columns: 1fr; }
    .ipo-card-metrics { grid-template-columns: repeat(2, 1fr); }
    .ipo-detail-grid { grid-template-columns: 1fr; }
    .ipo-detail-title-row { flex-direction: column; gap: 12px; }
    .ipo-financials-grid { grid-template-columns: repeat(2, 1fr); }
    .ipo-subscription-grid { grid-template-columns: repeat(2, 1fr); }
    .ipo-quick-info { flex-direction: column; }
    .ipo-quick-item { min-width: unset; }
}

/* ===== Mobile Bottom Bar ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 6px 8px;
    z-index: 500;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
}

.mob-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.mob-btn i { font-size: 16px; }
.mob-btn span { font-size: 9px; font-weight: 500; }
.mob-btn.active { color: var(--accent-blue); background: rgba(59, 130, 246, 0.1); }
.mob-btn:hover { color: var(--text-primary); }

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    footer { padding-bottom: 70px; }
    main { padding-bottom: 60px; }
    .beginner-container { padding-bottom: 60px; }
}

/* ===== Responsive - Tablet (1200px) ===== */
@media (max-width: 1200px) {
    .analysis-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-row { grid-template-columns: 1fr; }
    .charts-row { grid-template-columns: 1fr; }
    .news-grid-pro { grid-template-columns: 1fr 1fr; }
    .search-container { max-width: 400px; }
}

/* ===== Responsive - Mobile (768px) ===== */
@media (max-width: 768px) {
    /* --- Header --- */
    header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }
    .header-left { order: 1; flex: 0 0 auto; }
    .header-center { order: 3; flex: 1 0 100%; }
    .header-right { order: 2; flex: 1; justify-content: flex-end; gap: 6px; }
    .logo span { font-size: 15px; }
    .logo i { font-size: 18px; }
    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 3px 4px 3px 12px;
    }
    .search-container input { font-size: 13px; }
    .btn-analyze { padding: 8px 14px; font-size: 12px; }
    .mode-toggle { display: none; }
    .mode-switch-banner { flex-direction: column; text-align: center; padding: 16px; }
    .mode-switch-text { flex-direction: column; gap: 8px; }
    .btn-switch-pro { width: 100%; justify-content: center; }
    .market-status { padding: 4px 8px; font-size: 10px; }
    .market-status .status-dot { width: 6px; height: 6px; }

    /* --- Auth area mobile --- */
    .auth-area { order: 2; }
    .btn-login { padding: 6px 10px; font-size: 12px; }
    .login-label { display: none; }
    .user-avatar { width: 28px; height: 28px; }
    .user-name { display: none; }
    .user-dropdown { right: 0; left: auto; min-width: 160px; }

    /* --- Ticker --- */
    .ticker-bar { padding: 6px 0; }
    .ticker-item { font-size: 11px; gap: 4px; }
    .ticker-item .name { font-size: 10px; }

    /* --- Main content --- */
    main { padding: 10px; }
    .summary-row { grid-template-columns: 1fr; gap: 12px; }
    .summary-card { padding: 16px; border-radius: 12px; }
    .charts-row { grid-template-columns: 1fr; gap: 12px; }
    .chart-card { border-radius: 12px; }
    .chart-card canvas { max-height: 220px; }
    .analysis-grid { grid-template-columns: 1fr; gap: 12px; }
    .analysis-card { border-radius: 12px; }
    .analysis-card h3 { padding: 12px 16px 10px; font-size: 11px; }
    .analysis-card h3 i { width: 24px; height: 24px; font-size: 12px; }
    .indicator-grid, .fundamental-grid, .dividend-grid, .market-grid { padding: 12px 14px 14px; }
    .company-info { padding: 12px 14px 14px; }
    .hold-info { padding: 16px 14px 14px; }
    .news-card { padding: 14px; }
    .news-grid-pro { grid-template-columns: 1fr; }
    .news-sentiment-bar { flex-direction: column; gap: 8px; }
    .report-card { padding: 14px; }
    .report-section { padding: 12px; }

    /* --- Verdict card mobile --- */
    .verdict-card h1 { font-size: 20px; }
    .current-price { font-size: 24px; }
    .price-change { font-size: 13px; padding: 2px 8px; }
    .verdict-text { font-size: 12px; }
    .stock-actions { display: flex; margin-left: 0; margin-top: 8px; }
    .price-display { flex-wrap: wrap; gap: 8px; }

    /* --- Signal meter --- */
    .invest-amount { font-size: 22px; }
    .invest-details { font-size: 12px; }

    /* --- Beginner mode mobile --- */
    .beginner-container { padding: 12px; }
    .b-verdict-card { padding: 24px 16px; }
    .b-verdict-emoji { font-size: 40px; }
    .b-stock-name { font-size: 18px; }
    .b-price { font-size: 28px; }
    .b-verdict-label { font-size: 14px; padding: 6px 20px; }
    .b-verdict-desc { font-size: 13px; }
    .b-cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .b-card { padding: 16px; }
    .b-card h3 { font-size: 14px; }
    .b-card p { font-size: 13px; }
    .b-card-icon { width: 44px; height: 44px; font-size: 18px; }
    .b-health-grid { grid-template-columns: 1fr; gap: 8px; }
    .b-health-section, .b-chart-section, .b-about-section, .b-summary-section, .b-news-section {
        padding: 16px; margin-bottom: 12px;
    }
    .b-chart-section canvas { max-height: 200px; }

    /* --- Company meta grid --- */
    .company-meta { grid-template-columns: 1fr 1fr; gap: 6px; }
    .meta-item { padding: 6px; font-size: 11px; }

    /* --- Welcome screen mobile --- */
    .welcome-screen { min-height: calc(100vh - 120px); padding: 20px 12px; }
    .welcome-content h1 { font-size: 24px; }
    .welcome-content > p { font-size: 13px; }
    .welcome-icon { width: 60px; height: 60px; font-size: 24px; }
    .pick-grid { gap: 8px; }
    .pick-btn { padding: 10px 14px; font-size: 12px; min-width: 90px; }
    .pick-btn span { font-size: 9px; }
    .welcome-note { padding: 8px 14px; font-size: 11px; }

    /* --- Dashboard mobile --- */
    .dashboard-container { padding: 12px; }
    .dash-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .dash-header h1 { font-size: 20px; }
    .dash-grid-layout { grid-template-columns: 1fr; gap: 12px; }
    .dash-section { border-radius: 12px; }
    .dash-section h3 { padding: 12px 14px 10px; font-size: 11px; }
    .dash-items { padding: 10px 12px 12px; }
    .dash-item { padding: 10px 12px; }

    /* --- Modals mobile --- */
    .modal-content { width: 95%; max-width: 400px; padding: 24px 16px; margin: 16px; }
    .login-modal { padding: 24px 16px; }
    .login-header h2 { font-size: 20px; }
    .btn-google-login { padding: 12px; font-size: 14px; }
    .phone-input-group input { font-size: 14px; }
    .alert-modal { padding: 20px 16px; }

    /* --- Footer --- */
    footer p { font-size: 10px; flex-direction: column; text-align: center; }

    /* --- Suggestions dropdown mobile --- */
    .suggestions-dropdown { max-height: 200px; }
    .suggestion-item { padding: 8px 12px; font-size: 12px; }

    /* --- Hold badge --- */
    .hold-badge { font-size: 14px; padding: 6px 18px; }
    .hold-reason { font-size: 12px; }

    /* --- Fundamental/indicator rows --- */
    .indicator-row, .fundamental-row, .dividend-row { padding: 6px 10px; font-size: 12px; }
    .fundamental-row .status { font-size: 10px; padding: 2px 6px; }

    /* --- SOTD mobile --- */
    .sotd-card { padding: 16px; margin-bottom: 20px; }
    .sotd-info h2 { font-size: 16px; }
    .sotd-price { font-size: 22px; }
    .sotd-metrics { flex-wrap: wrap; gap: 8px; }

    /* --- AI Chat mobile --- */
    .btn-ai-chat { padding: 6px 10px; font-size: 11px; }
    .ai-chat-label { display: none; }
    .btn-ai-chat::after { content: 'AI'; font-weight: 700; }
    .chat-panel { width: calc(100% - 16px); right: 8px; top: 56px; max-height: 70vh; }
    .chat-messages { min-height: 200px; max-height: 55vh; }

    /* --- Screener mobile --- */
    .btn-screener .screener-label { display: none; }
    .screener-container { padding: 12px; }
    .screener-header h1 { font-size: 18px; }
    .screener-filters { grid-template-columns: 1fr 1fr; }
    .screener-results { grid-template-columns: 1fr; }
    .screener-card-metrics { grid-template-columns: repeat(2, 1fr); }
    .screener-sort-bar { flex-direction: column; align-items: flex-start; }
    .sort-buttons { flex-wrap: wrap; }
}

/* ===== Responsive - Small Mobile (480px) ===== */
@media (max-width: 480px) {
    header { padding: 6px 8px; }
    .logo span { font-size: 13px; }
    .search-container { border-radius: 8px; }
    .btn-analyze { padding: 7px 10px; font-size: 11px; }
    .btn-analyze i { display: none; }

    .verdict-card h1 { font-size: 17px; }
    .current-price { font-size: 20px; }
    .b-price { font-size: 24px; }
    .b-stock-name { font-size: 16px; }
    .b-verdict-emoji { font-size: 32px; }

    .pick-grid { justify-content: center; }
    .pick-btn { min-width: 80px; padding: 8px 10px; font-size: 11px; }

    .company-meta { grid-template-columns: 1fr; }
    .modal-content { width: 98%; padding: 20px 12px; margin: 8px; }
    .b-health-item { padding: 10px 12px; }
    .b-health-icon { width: 30px; height: 30px; font-size: 13px; }
    .b-news-item { padding: 10px; font-size: 12px; }

    .sentiment-badge { font-size: 10px; padding: 4px 10px; }
    .news-pro-item { font-size: 11px; }
}
