/* ============================================================ */
/* 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;
    scroll-padding-top: 104px;
}

.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;
    }
}

/* ============================================================ */
/* TUTORIAL PAGES STYLES                                        */
/* ============================================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #06b6d4, #67e8f9);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
    z-index: 1000;
    transition: width 0.08s linear;
    pointer-events: none;
}

.tutorial-hero,
.tutorial-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 48px;
}

.tutorial-hero {
    padding: 36px;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.52));
    overflow: hidden;
}

.tutorial-detail-hero {
    position: static;
    top: auto;
    z-index: auto;
    padding: 36px;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.45));
    background-size: 28px 28px, 28px 28px, auto;
    scroll-margin-top: 104px;
}

.tutorial-eyebrow {
    color: #94a3b8;
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tutorial-hero h1,
.tutorial-detail-hero h1 {
    max-width: 760px;
}

.tutorial-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.38);
    background: rgba(6, 182, 212, 0.08);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 232, 249, 0.72);
    background: rgba(6, 182, 212, 0.14);
}

.tutorial-hero-panel,
.tutorial-summary-card,
.tutorial-info-card,
.tutorial-warning-card {
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.tutorial-hero-panel {
    align-self: stretch;
}

.panel-label {
    display: inline-block;
    color: #06b6d4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.tutorial-hero-panel ol,
.tutorial-info-card ul,
.tutorial-warning-card ul {
    list-style: none;
}

.tutorial-hero-panel ol {
    position: relative;
    padding-left: 4px;
}

.tutorial-hero-panel ol::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 7px;
    width: 2px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.55), rgba(6, 182, 212, 0.08));
    z-index: 0;
}

.tutorial-hero-panel li {
    position: relative;
    padding: 14px 0 14px 32px;
    color: #cbd5e1;
    z-index: 1;
}

.tutorial-hero-panel li::before,
.tutorial-info-card li::before,
.tutorial-warning-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #06b6d4;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.8);
}

.tutorial-hero-panel li::before {
    left: 4px;
    width: 8px;
    height: 8px;
    background: #0f172a;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 0 3px rgba(2, 6, 23, 0.92), 0 0 14px rgba(6, 182, 212, 0.7);
}

.tutorial-stats {
    margin-bottom: 56px;
}

.tutorial-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    counter-reset: tcard;
}

.tutorial-card-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tutorial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(8, 47, 73, 0.38));
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    counter-increment: tcard;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tutorial-card::before {
    content: counter(tcard, decimal-leading-zero);
    position: absolute;
    bottom: -28px;
    right: -8px;
    color: rgba(6, 182, 212, 0.07);
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 0;
}

.tutorial-card > * {
    position: relative;
    z-index: 1;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 16px 42px rgba(6, 182, 212, 0.14);
}

.tutorial-card:hover::before {
    color: rgba(6, 182, 212, 0.14);
}

.tutorial-card-top,
.tutorial-card-footer,
.tutorial-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tutorial-card-top {
    justify-content: space-between;
    margin-bottom: 18px;
}

.tutorial-card-kicker,
.tutorial-card-time,
.tutorial-meta-row span {
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.32);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.08);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tutorial-card h3 {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.tutorial-card p {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.tutorial-card-footer {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(51, 65, 85, 0.42);
}

.tutorial-card-footer span {
    color: #94a3b8;
    font-size: 13px;
}

.tutorial-card-footer strong {
    color: #fb923c;
    font-size: 13px;
}

.tutorial-workflow {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    margin: 64px 0;
    padding: 32px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.tutorial-workflow h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 12px;
}

.tutorial-workflow p {
    color: #cbd5e1;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.workflow-steps div {
    padding: 20px;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.38);
}

.workflow-steps span {
    display: block;
    color: #67e8f9;
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.workflow-steps strong {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
}

.workflow-steps p {
    color: #94a3b8;
    font-size: 14px;
}

.tutorial-article {
    max-width: 1080px;
    margin: 0 auto;
}

.tutorial-summary-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tutorial-summary-card strong {
    color: #ffffff;
    font-size: 20px;
}

.tutorial-summary-card p {
    color: #cbd5e1;
}

.tutorial-prep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 36px 0 56px;
    scroll-margin-top: 104px;
}

.tutorial-info-card h2,
.tutorial-warning-card h2 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 18px;
}

.tutorial-info-card li,
.tutorial-warning-card li {
    position: relative;
    color: #cbd5e1;
    padding: 0 0 14px 24px;
}

.tutorial-info-card li::before,
.tutorial-warning-card li::before {
    top: 8px;
}

.tutorial-coming-soon {
    margin: 32px 0 48px;
    padding: 36px;
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.14), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(6, 182, 212, 0.12), transparent 36%),
        rgba(15, 23, 42, 0.62);
}

.tutorial-coming-soon h2 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    margin: 12px 0 16px;
}

.tutorial-coming-soon p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}

.tutorial-coming-soon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.tutorial-step {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.1), transparent 34%),
        rgba(15, 23, 42, 0.54);
    scroll-margin-top: 104px;
}

.tutorial-step:nth-child(even) {
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.06), transparent 30%),
        rgba(15, 23, 42, 0.54);
}

.tutorial-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 56px;
    top: calc(100% + 1px);
    width: 2px;
    height: 27px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.55), rgba(6, 182, 212, 0.05));
    pointer-events: none;
}

.tutorial-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #020617;
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
    border-radius: 16px;
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.24);
}

.tutorial-step-content h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 12px;
}

.tutorial-step-content p {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.tutorial-action {
    color: #e2e8f0;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.tutorial-action strong {
    color: #67e8f9;
}

.tutorial-screenshot {
    margin: 0;
}

.tutorial-screenshot-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 16px 16px 0 0;
    background: rgba(2, 6, 23, 0.64);
}

.screenshot-placeholder {
    border: 1px dashed rgba(103, 232, 249, 0.46);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(103, 232, 249, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.04) 1px, transparent 1px),
        rgba(2, 6, 23, 0.64);
    background-size: 24px 24px;
}

.screenshot-placeholder-inner {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.screenshot-placeholder-inner span {
    color: #67e8f9;
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screenshot-placeholder-inner code {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    white-space: normal;
}

.tutorial-screenshot figcaption {
    color: #94a3b8;
    border-top: 1px solid rgba(51, 65, 85, 0.52);
    padding: 12px 16px;
    font-size: 13px;
    background: rgba(2, 6, 23, 0.64);
    border-radius: 0 0 16px 16px;
}

.tutorial-warning-card {
    margin: 48px 0 24px;
    border-color: rgba(251, 146, 60, 0.5);
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.18), transparent 38%),
        rgba(15, 23, 42, 0.6);
    scroll-margin-top: 104px;
}

.tutorial-warning-card h2 {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tutorial-warning-card h2::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #fb923c;
    background: rgba(251, 146, 60, 0.16);
    border: 1.5px solid rgba(251, 146, 60, 0.55);
    border-radius: 999px;
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.tutorial-warning-card li::before {
    background: #fb923c;
    box-shadow: 0 0 14px rgba(251, 146, 60, 0.72);
}

.cta-section.tutorial-cta {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.28);
    background:
        radial-gradient(circle at 12% 110%, rgba(6, 182, 212, 0.22), transparent 42%),
        radial-gradient(circle at 88% -20%, rgba(251, 146, 60, 0.12), transparent 42%),
        linear-gradient(rgba(103, 232, 249, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.6));
    background-size: auto, auto, 28px 28px, 28px 28px, auto;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
}

.cta-section.tutorial-cta > * {
    position: relative;
    z-index: 1;
}

.cta-section.tutorial-cta .cta-button {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.32);
}

.cta-section.tutorial-cta .cta-button:hover {
    box-shadow: 0 14px 36px rgba(6, 182, 212, 0.5);
}

.cta-section.tutorial-cta-final::before {
    content: "FILTRIX";
    position: absolute;
    right: -16px;
    bottom: -22px;
    color: rgba(6, 182, 212, 0.09);
    font-family: 'Orbitron', Inter, ui-sans-serif;
    font-size: 130px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.cta-section.tutorial-cta-final::after {
    content: "";
    position: absolute;
    left: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .cta-section.tutorial-cta-final::before {
        font-size: 80px;
        bottom: -14px;
        right: -10px;
    }
}

@media (max-width: 1024px) {
    .tutorial-hero,
    .tutorial-detail-hero,
    .tutorial-workflow {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tutorial-hero,
    .tutorial-detail-hero,
    .tutorial-workflow,
    .tutorial-step {
        padding: 22px;
    }

    .tutorial-prep-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tutorial-step-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
        margin-bottom: -4px;
    }

    .tutorial-step:not(:last-child)::after {
        left: 42px;
        height: 27px;
    }

    .screenshot-placeholder-inner {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .tutorial-hero-actions,
    .tutorial-meta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .tutorial-hero-actions .cta-button,
    .tutorial-hero-actions .secondary-button,
    .tutorial-summary-card .cta-button {
        width: 100%;
        text-align: center;
    }

    .tutorial-card {
        min-height: auto;
    }
}

/* ============================================================
   /play page styles
   ============================================================ */
.play-page { max-width: 880px; margin: 0 auto; padding: 24px 16px; }
.play-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: #06b6d4; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 6px;
}
.play-eyebrow-gold { color: #facc15; }
.play-hero { padding: 28px 0 20px; }
.play-h1 {
  font-family: 'Orbitron', Inter, ui-sans-serif;
  font-size: 32px; font-weight: 700; margin: 0 0 12px; line-height: 1.15; color: #f8fafc;
}
.play-h1-accent {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.play-sub { font-size: 15px; color: #94a3b8; max-width: 620px; margin: 0 0 16px; }
.play-hero-ctas { display: flex; gap: 10px; }
.play-cta-primary {
  padding: 10px 22px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #020617; font-weight: 700; text-decoration: none; border-radius: 2px;
  display: inline-block;
}
.play-cta-secondary {
  padding: 10px 22px; border: 1px solid #334155; color: #cbd5e1;
  text-decoration: none; border-radius: 2px;
}
.play-widget-section {
  background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 14px; margin: 18px 0 22px; border-radius: 2px;
}
.play-widget-headline { font-size: 14px; color: #f8fafc; font-weight: 600; margin: 4px 0 10px; }
.play-tracks { margin: 22px 0; }
.play-tracks-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .play-tracks-grid { grid-template-columns: 1fr; } }
.play-track-card { background: #0e2a43; padding: 14px; border: 1px solid #16415f; }
.play-track-title { font-size: 16px; font-weight: 700; color: #f8fafc; margin-bottom: 4px; }
.play-track-desc { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.play-track-stats {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #facc15;
}
.play-leaderboard {
  background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 14px; margin: 22px 0; border-radius: 2px;
}
.play-leaderboard-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.play-lb-toggle { display: flex; gap: 4px; }
.play-lb-tab {
  background: transparent; border: 1px solid #334155; color: #64748b;
  padding: 2px 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  cursor: pointer;
}
.play-lb-tab.active {
  background: rgba(250, 204, 21, 0.18); color: #facc15;
  border-color: rgba(250, 204, 21, 0.45);
}
.play-lb-table { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.play-lb-table th { color: #64748b; font-size: 10px; letter-spacing: 0.08em; padding: 4px 6px; text-align: left; }
.play-lb-table td { padding: 6px; border-top: 1px solid #1e293b; }
.play-lb-table td:nth-child(3) { color: #06b6d4; font-weight: 700; }
.play-lb-cta { margin-top: 10px; font-size: 12px; text-align: center; }
.play-lb-cta a { color: #2bb7da; text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
.play-lb-cta a:hover { color: #facc15; text-decoration: underline; }

.play-discussed { margin: 22px 0; }
.play-discussed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.play-discussed-card {
    display: block;
    padding: 12px 14px;
    background: rgba(2, 8, 23, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.18);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.play-discussed-card:hover {
    border-color: #2bb7da;
    transform: translateY(-1px);
}
.play-discussed-ticker {
    font-family: 'Orbitron', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}
.play-discussed-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.play-discussed-count {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #06b6d4;
    font-weight: 600;
}

/* Per-ticker /stock/{T} 'Playable setups' section */
.ticker-playable-setups { margin: 28px 0; }
.ticker-playable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.ticker-playable-card {
    display: block;
    padding: 10px 12px;
    background: rgba(2, 8, 23, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.18);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}
.ticker-playable-card:hover { border-color: #2bb7da; }
.ticker-playable-date {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: #f8fafc;
    margin-bottom: 4px;
}
.ticker-playable-track {
    font-size: 11px;
    color: #94a3b8;
}
.ticker-playable-count {
    margin-top: 6px;
    font-size: 11px;
    color: #06b6d4;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.play-faq { margin: 28px 0; }
.play-faq details { padding: 8px 0; border-bottom: 1px solid #1e293b; cursor: pointer; }
.play-faq summary { font-weight: 600; color: #f8fafc; }
.play-faq p { font-size: 13px; color: #94a3b8; margin: 8px 0 0; }
.play-footer-cta {
  margin: 22px 0; padding: 18px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(59,130,246,0.1));
  border: 1px solid rgba(6, 182, 212, 0.3); text-align: center;
}
.play-footer-cta-title {
  font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 700;
  color: #f8fafc; margin-bottom: 10px;
}
