/* ============================================================ */
/* FILTRIX SEO PAGES - Global Styles                           */
/* Version: 1.0 | Last Updated: 2026-01-27                     */
/* ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Custom Scrollbar - Cyber Style (matches landing page) */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2bb7da #0b2236;
}

/* WebKit (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: #0b2236;
    border-left: 1px solid #16415f;
}

*::-webkit-scrollbar-thumb {
    background: #2bb7da;
    border: 2px solid #0b2236;
    border-radius: 0; /* sharp corners for cyber style */
    box-shadow: inset 0 0 0 1px #22a0bf;
}

*::-webkit-scrollbar-thumb:hover {
    background: #22a0bf;
}

*::-webkit-scrollbar-corner {
    background: #0b2236;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #020617;
    color: #e2e8f0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 16px;
    max-width: 1152px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
}

/* Legacy .logo class for backward compatibility */
.logo {
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.cta-button {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 60px 0;
    min-height: 60vh;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #06b6d4, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section {
    margin: 60px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.data-table {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.data-table th {
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(30, 41, 59, 0.3);
}

/* ============================================================ */
/* FOOTER - Enhanced Design                                     */
/* ============================================================ */

.site-footer {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo span {
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
}

.brand-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 6px;
    color: #94a3b8;
    transition: all 0.2s;
}

.social-links a:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-2px);
}

/* Footer Links Sections */
.footer-links h3 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #06b6d4;
}

.footer-links .badge {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer Disclaimer */
.footer-disclaimer {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.footer-disclaimer p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.footer-disclaimer strong {
    color: #fbbf24;
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright {
    color: #64748b;
    font-size: 13px;
}

.made-with {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ */
/* BREADCRUMBS                                                  */
/* ============================================================ */

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #64748b;
}

.breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #06b6d4;
}

.breadcrumbs span {
    color: #e2e8f0;
    font-weight: 500;
}

/* Last Updated / Latest Signal */
.last-updated {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.last-updated time {
    color: #94a3b8;
}

/* Sample Size Warning (YMYL compliance) */
.sample-warning {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}

/* ============================================================ */
/* COMPANY PROFILE SECTION                                      */
/* ============================================================ */

.company-profile {
    margin: 40px 0;
}

.company-profile h2 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.company-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.company-header {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.company-sector {
    font-size: 13px;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.company-sector-link {
    font-size: 13px;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.2s;
}

.company-sector-link:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.company-details {
    display: contents;
}

.company-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    color: #cbd5e1;
    font-size: 14px;
}

.detail-item a {
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-item a:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.company-description {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .company-card {
        grid-template-columns: 1fr;
    }

    .company-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================================ */
/* TICKER PAGE STYLES                                          */
/* ============================================================ */

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.metric-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(51, 65, 85, 0.8);
}

.metric-card.positive {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.metric-card.negative {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.metric-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Performance Section */
.performance-section,
.patterns-section,
.time-section,
.market-context-section,
.recent-activity-section {
    margin: 60px 0;
}

.performance-section h2,
.patterns-section h2,
.time-section h2,
.market-context-section h2,
.recent-activity-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 32px;
}

.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.timeframe-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeframe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.timeframe-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #06b6d4;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    color: #cbd5e1;
}

.stat-row:last-child {
    border-bottom: none;
}

.positive {
    color: #10b981;
    font-weight: 600;
}

.negative {
    color: #ef4444;
    font-weight: 600;
}

/* Pattern Cards */
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pattern-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pattern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
}

.pattern-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.pattern-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.pattern-stats .stat {
    text-align: center;
    flex: 1;
}

.pattern-stats .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pattern-stats .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

/* Time of Day Cards */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.time-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s;
}

.time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.time-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #06b6d4;
    margin-bottom: 16px;
}

.time-stats p {
    color: #cbd5e1;
    margin: 8px 0;
}

.time-stats strong {
    color: white;
}

/* Market Context Cards */
.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.context-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s;
}

.context-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.context-card.positive-card {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.context-card.negative-card {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.context-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.context-stats p {
    color: #cbd5e1;
    margin: 8px 0;
}

.context-stats strong {
    color: white;
}

/* Insight Box */
.insight-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.insight-box p {
    color: #fbbf24;
    margin: 0;
    line-height: 1.6;
}

.insight-box strong {
    color: #fcd34d;
}

/* Recent Activity Cards */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.activity-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.activity-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #06b6d4;
    margin-bottom: 16px;
}

.activity-card p {
    color: #cbd5e1;
    margin: 8px 0;
}

.activity-card strong {
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    margin: 80px 0;
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

/* Warning CTA for negative expectancy tickers */
.cta-section.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background: white;
    color: #06b6d4;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-section.warning .cta-button {
    color: #f59e0b;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Why Analyze Section */
.why-analyze-section {
    margin: 80px 0;
}

.why-analyze-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.feature-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.5);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.feature-item p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 15px;
}

.feature-item strong {
    color: #06b6d4;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeframe-grid,
    .patterns-grid,
    .time-grid,
    .context-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 24px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 16px;
    }

    /* Why Analyze Section - Mobile */
    .why-analyze-section h2 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item h3 {
        font-size: 18px;
    }

    .feature-item p {
        font-size: 14px;
    }

    /* Make table scrollable on mobile */
    .table-container {
        overflow-x: auto;
    }
}

/* ============================================================ */
/* TRADES TABLE STYLES (THE PROOF)                             */
/* ============================================================ */

.trades-table-section {
    margin: 60px 0;
}

.trades-table-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.table-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
}

.trades-table thead {
    background: rgba(30, 41, 59, 0.8);
}

.trades-table th {
    padding: 16px 12px;
    text-align: left;
    color: #94a3b8;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.trades-table td {
    padding: 14px 12px;
    color: #cbd5e1;
    font-size: 14px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.trades-table tbody tr {
    transition: background-color 0.2s;
}

.trades-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

.trades-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell specific styles */
.date-cell {
    font-weight: 500;
    color: white;
}

.time-cell {
    color: #94a3b8;
    font-family: 'Courier New', monospace;
}

.price-cell {
    font-weight: 600;
    color: white;
}

.rvol-cell {
    font-weight: 500;
}

.rsi-cell {
    font-weight: 500;
}

.rsi-oversold {
    color: #10b981;
    font-weight: 600;
}

.rsi-overbought {
    color: #ef4444;
    font-weight: 600;
}

.gap-cell,
.change-cell,
.spy-cell {
    font-weight: 600;
}

/* Result badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-neutral {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Table legend */
.table-legend {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    padding: 20px 24px;
}

.table-legend p {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.table-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-legend li {
    color: #cbd5e1;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.table-legend li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
}

.table-legend strong {
    color: white;
}

/* ============================================================ */
/* INTERNAL LINKING STYLES (SEO)                               */
/* ============================================================ */

/* Related Tickers Section */
.related-tickers-section {
    margin: 60px 0;
}

.related-tickers-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
    border-color: #06b6d4;
}

.related-ticker {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.related-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.related-stat {
    text-align: center;
    flex: 1;
}

.related-stat .label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-stat .value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-top: 4px;
}

.related-sector {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Sidebar Widgets */
.sidebar {
    margin: 60px 0;
}

.sidebar-widget {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.ticker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticker-list li {
    margin-bottom: 12px;
}

.ticker-list li:last-child {
    margin-bottom: 0;
}

.ticker-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.ticker-list a:hover {
    background: rgba(30, 41, 59, 0.6);
}

.ticker-name {
    font-weight: 600;
    color: white;
}

.ticker-metric {
    font-size: 14px;
    color: #94a3b8;
}

/* Ticker Index Page - Letter Groups */
.letter-group {
    margin-bottom: 40px;
}

.letter-heading {
    color: #06b6d4;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

/* Ticker Grid */
.section .ticker-grid,
.ticker-grid,
div.section div.letter-group div.ticker-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Ticker Card Link */
.ticker-card-link {
    display: block;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.ticker-card-link:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.ticker-symbol {
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.ticker-count {
    color: #64748b;
    font-size: 12px;
}

/* Mobile responsive for internal linking */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-ticker {
        font-size: 20px;
    }

    .related-stat .value {
        font-size: 16px;
    }

    /* Ticker grid responsive */
    .ticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
}

/* ============================================================ */
/* MFE/MAE SECTION STYLES                                      */
/* ============================================================ */

.mfe-mae-section,
.gap-section,
.sector-section {
    margin: 60px 0;
}

.mfe-mae-section h2,
.gap-section h2,
.sector-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.mfe-mae-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.mfe-card,
.mae-card,
.rr-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 24px;
}

.mfe-card.positive-card {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.mae-card.negative-card {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.rr-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mfe-card h3,
.mae-card h3,
.rr-card h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 16px;
}

.mfe-stats .stat-row,
.mae-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.stat-description {
    margin-top: 16px;
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
}

.rr-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 16px 0;
}

.rr-value.excellent { color: #10b981; }
.rr-value.good { color: #06b6d4; }
.rr-value.poor { color: #f59e0b; }

/* Gap Section */
.gap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.gap-stat {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.gap-stat .label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gap-stat .value {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

/* Sector Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.comparison-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 20px;
}

.comparison-item .metric-name {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.comparison-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-values .ticker-value,
.comparison-values .sector-value {
    font-size: 14px;
    color: #cbd5e1;
}

.comparison-values .diff {
    font-size: 18px;
    font-weight: 600;
}

/* Table updates for MFE/MAE columns */
.mfe-cell,
.mae-cell {
    font-weight: 500;
}

@media (max-width: 768px) {
    .mfe-mae-grid {
        grid-template-columns: 1fr;
    }

    .gap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rr-value {
        font-size: 36px;
    }
}

/* ============================================================ */
/* SECTOR PAGES STYLES                                          */
/* ============================================================ */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sector-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.sector-card:hover {
    transform: translateY(-2px);
    border-color: #06b6d4;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sector-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.sector-sic {
    font-size: 11px;
    color: #64748b;
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: monospace;
}

.sector-stats {
    display: flex;
    gap: 16px;
}

.sector-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sector-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #06b6d4;
}

.sector-stat .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }
}
