/* stock_pages.css – styles for all stock/* templates */


/* ═══ Pe Ratio ═══ */

/* PE Ratio Specific Styles */
        .pe-ratio-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .pe-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .pe-info-row {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .current-pe-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
            flex: 0 0 auto;
            min-width: 200px;
        }

        .pe-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }

        .pe-value {
            font-size: 36px;
            font-weight: 800;
            color: var(--white);
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .pe-value.not-applicable {
            color: #FF5993;
            background: none;
            -webkit-text-fill-color: #FF5993;
            font-size: 24px;
        }

        .pe-details {
            font-size: 16px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 6px;
            margin-top: 8px;
        }

        .pe-details.low {
            background-color: rgba(82, 202, 150, 0.2);
            color: #52CA96;
        }

        .pe-details.moderate {
            background-color: rgba(255, 193, 7, 0.2);
            color: #FFC107;
        }

        .pe-details.high {
            background-color: rgba(255, 89, 147, 0.2);
            color: #FF5993;
        }

        .pe-details.not-applicable {
            background-color: rgba(255, 89, 147, 0.2);
            color: #FF5993;
        }

        .pe-interpretation {
            font-size: 13px;
            color: var(--das-text);
            margin-top: 8px;
            max-width: 250px;
        }

        /* Negative EPS Warning */
        .negative-eps-warning {
            background-color: rgba(255, 89, 147, 0.1);
            border: 1px solid rgba(255, 89, 147, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .warning-title {
            font-size: 18px;
            font-weight: 600;
            color: #FF5993;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .warning-content {
            color: var(--white);
            line-height: 1.6;
        }

        /* Losses Table */
        .losses-table {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .losses-table-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .quarters-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .quarters-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 12px 15px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .quarters-table th:first-child {
            border-top-left-radius: 8px;
            text-align: left;
        }

        .quarters-table th:last-child {
            border-top-right-radius: 8px;
        }

        .quarters-table td {
            padding: 12px 15px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            text-align: center;
        }

        .quarters-table td:first-child {
            text-align: left;
            font-weight: 500;
        }

        .quarters-table td.loss {
            color: #FF5993;
            font-weight: 600;
        }

        .quarters-table td.profit {
            color: #52CA96;
            font-weight: 600;
        }

        /* PE Analysis Cards */
        .pe-analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .analysis-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .analysis-card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .analysis-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .analysis-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .analysis-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .analysis-value.positive {
            color: #52CA96;
        }

        .analysis-value.negative {
            color: #FF5993;
        }

        .analysis-value.neutral {
            color: #FFC107;
        }

        /* Insights Section */
        .insights-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .insights-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .insights-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .insights-list li {
            padding: 12px 0;
            color: var(--white);
            font-size: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: flex-start;
            gap: 12px;
            line-height: 1.5;
        }

        .insights-list li:last-child {
            border-bottom: none;
        }

        .insights-list li::before {
            content: "💡";
            font-size: 16px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .chart-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

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

        /* Historical Table */
        .historical-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .historical-table-container {
            overflow-x: auto;
            border-radius: 8px;
        }

        .historical-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .historical-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .historical-table th:first-child {
            border-top-left-radius: 8px;
            text-align: left;
        }

        .historical-table th:last-child {
            border-top-right-radius: 8px;
        }

        .historical-table td {
            padding: 15px 20px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            text-align: center;
        }

        .historical-table td:first-child {
            text-align: left;
            font-weight: 600;
        }

        .historical-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .historical-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .historical-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        /* Sector Comparison */
        .sector-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .sector-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
            text-align: center;
        }

        .sector-subtitle {
            text-align: center;
            margin-bottom: 20px;
            color: var(--das-text);
            font-size: 14px;
        }

        .sector-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .sector-stat {
            text-align: center;
        }

        .sector-stat-label {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .sector-stat-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* Company Link */
        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            transition: color 0.2s;
            font-weight: 500;
        }

        .company-link:hover {
            color: #85FFC4;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .pe-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .current-pe-section {
                align-items: flex-start;
                text-align: left;
                min-width: auto;
                width: 100%;
            }

            .company-title {
                font-size: 24px;
            }

            .pe-value {
                font-size: 28px;
            }

            .pe-analysis-grid {
                grid-template-columns: 1fr;
            }

            .analysis-grid {
                grid-template-columns: 1fr;
            }

            .sector-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .pe-ratio-hero {
                padding: 20px;
            }

            .pe-value {
                font-size: 24px;
            }

            .sector-stats {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Pb Ratio ═══ */

/* PB Ratio Specific Styles */
        .pb-ratio-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .pb-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .pb-info-row {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .current-pb-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
            flex: 0 0 auto;
            min-width: 200px;
        }

        .pb-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }

        .pb-value {
            font-size: 36px;
            font-weight: 800;
            color: var(--white);
            background: linear-gradient(45deg, #9C27B0, #E91E63);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .pb-details {
            font-size: 16px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 6px;
            margin-top: 8px;
        }

        .pb-details.low {
            background-color: rgba(82, 202, 150, 0.2);
            color: #52CA96;
        }

        .pb-details.moderate {
            background-color: rgba(255, 193, 7, 0.2);
            color: #FFC107;
        }

        .pb-details.high {
            background-color: rgba(255, 89, 147, 0.2);
            color: #FF5993;
        }

        .pb-interpretation {
            font-size: 13px;
            color: var(--das-text);
            margin-top: 8px;
            max-width: 250px;
        }

        /* PB Analysis Cards */
        .pb-analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .analysis-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .analysis-card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .analysis-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .analysis-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .analysis-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .analysis-value.positive {
            color: #52CA96;
        }

        .analysis-value.negative {
            color: #FF5993;
        }

        .analysis-value.neutral {
            color: #FFC107;
        }

        /* Book Value Breakdown */
        .book-value-breakdown {
            background-color: rgba(156, 39, 176, 0.1);
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }

        .breakdown-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
        }

        .breakdown-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .breakdown-item:last-child {
            border-bottom: none;
            font-weight: 600;
            margin-top: 5px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

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

        .breakdown-value {
            font-size: 13px;
            color: var(--white);
        }

        /* Insights Section */
        .insights-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .insights-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .insights-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .insights-list li {
            padding: 12px 0;
            color: var(--white);
            font-size: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: flex-start;
            gap: 12px;
            line-height: 1.5;
        }

        .insights-list li:last-child {
            border-bottom: none;
        }

        .insights-list li::before {
            content: "📊";
            font-size: 16px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .chart-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

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

        /* Historical Table */
        .historical-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .historical-table-container {
            overflow-x: auto;
            border-radius: 8px;
        }

        .historical-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .historical-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .historical-table th:first-child {
            border-top-left-radius: 8px;
            text-align: left;
        }

        .historical-table th:last-child {
            border-top-right-radius: 8px;
        }

        .historical-table td {
            padding: 15px 20px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            text-align: center;
        }

        .historical-table td:first-child {
            text-align: left;
            font-weight: 600;
        }

        .historical-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .historical-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .historical-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        /* Sector Comparison */
        .sector-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .sector-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
            text-align: center;
        }

        .sector-subtitle {
            text-align: center;
            margin-bottom: 20px;
            color: var(--das-text);
            font-size: 14px;
        }

        .sector-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .sector-stat {
            text-align: center;
        }

        .sector-stat-label {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .sector-stat-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* Company Link */
        .company-link {
            color: #9C27B0;
            text-decoration: none;
            transition: color 0.2s;
            font-weight: 500;
        }

        .company-link:hover {
            color: #E91E63;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #9C27B0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .pb-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .current-pb-section {
                align-items: flex-start;
                text-align: left;
                min-width: auto;
                width: 100%;
            }

            .company-title {
                font-size: 24px;
            }

            .pb-value {
                font-size: 28px;
            }

            .pb-analysis-grid {
                grid-template-columns: 1fr;
            }

            .analysis-grid {
                grid-template-columns: 1fr;
            }

            .sector-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .pb-ratio-hero {
                padding: 20px;
            }

            .pb-value {
                font-size: 24px;
            }

            .sector-stats {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Dividends ═══ */

/* File: Add these styles to the <style> section in stock_dividends.html */

    /* Enhanced Dividend Page Styles */
    .dividend-hero {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 30px;
        margin-bottom: 20px;
    }

    .dividend-header-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .dividend-info-row {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .company-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .company-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--white);
        margin: 0 0 5px 0;
        line-height: 1.2;
    }

    .company-subtitle {
        font-size: 16px;
        color: var(--das-text);
        margin-bottom: 10px;
    }

    .company-link {
        color: #5CC6FF;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .company-link:hover {
        color: #85FFC4;
        text-decoration: none;
    }

    /* No Data States */
    .no-data-message {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 20px;
        color: var(--das-text);
        font-size: 18px;
        gap: 15px;
        text-align: center;
    }

    .no-data-icon {
        font-size: 64px;
        opacity: 0.5;
        color: #5CC6FF;
    }

    .no-data-title {
        font-size: 24px;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 10px;
    }

    .no-data-description {
        font-size: 16px;
        line-height: 1.6;
        max-width: 500px;
    }

    /* Enhanced No Dividend Content Styles */
    .enhanced-no-dividend-content {
        margin-top: 30px;
    }

    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 16px;
        color: var(--das-text);
        line-height: 1.5;
        max-width: 600px;
        margin: 0 auto;
    }

    .data-card {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .data-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .data-card-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
    }

    .performance-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .performance-card {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .performance-card:hover {
        transform: translateY(-2px);
        border-color: rgba(92, 198, 255, 0.3);
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .card-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        margin: 0;
    }

    .card-header i {
        font-size: 24px;
        color: #5CC6FF;
        opacity: 0.7;
    }

    .card-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .metric-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .metric-label {
        font-size: 14px;
        color: var(--das-text);
    }

    .metric-value {
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
    }

    .metric-value.positive {
        color: #52CA96;
    }

    .metric-value.negative {
        color: #FF5993;
    }

    .investment-note {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
        padding: 10px;
        background-color: rgba(92, 198, 255, 0.1);
        border-radius: 6px;
        font-size: 14px;
        color: #5CC6FF;
    }

    .current-price {
        text-align: center;
        margin-bottom: 15px;
    }

    .price-value {
        font-size: 32px;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 5px;
    }

    .price-context {
        font-size: 14px;
        color: var(--das-text);
        margin-top: 5px;
    }

    .range-indicator {
        margin-top: 15px;
    }

    .range-bar {
        position: relative;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .range-fill {
        height: 100%;
        background: linear-gradient(90deg, #FF5993, #52CA96);
        border-radius: 4px;
        position: relative;
    }

    .current-marker {
        position: absolute;
        top: -2px;
        right: 0;
        width: 12px;
        height: 12px;
        background-color: var(--white);
        border-radius: 50%;
        border: 2px solid #5CC6FF;
    }

    .range-labels {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--das-text);
    }

    .alternatives-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .alternative-card {
        background-color: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .alternative-card:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(92, 198, 255, 0.3);
        transform: translateY(-2px);
    }

    .alt-icon {
        font-size: 48px;
        color: #5CC6FF;
        margin-bottom: 15px;
    }

    .alternative-card h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 10px;
    }

    .alternative-card p {
        font-size: 14px;
        color: var(--das-text);
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .alt-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #5CC6FF;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

    .alt-link:hover {
        color: #85FFC4;
    }

    .sector-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-box {
        text-align: center;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-number {
        font-size: 32px;
        font-weight: 700;
        color: #5CC6FF;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 14px;
        color: var(--das-text);
    }

    .company-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .company-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .company-name {
        font-weight: 500;
        color: var(--white);
    }

    .company-yield {
        font-weight: 600;
        color: #52CA96;
    }

    .faq-section {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .faq-item {
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .faq-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .faq-question {
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 8px;
    }

    .faq-answer {
        font-size: 14px;
        color: var(--das-text);
        line-height: 1.6;
    }

    .faq-answer ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .faq-answer li {
        margin-bottom: 5px;
    }

    /* Chart container fixes */
    .chart-container {
        height: 400px;
        width: 100%;
        position: relative;
        margin-top: 20px;
        background-color: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        padding: 10px;
    }

    .chart-canvas {
        height: 100% !important;
        width: 100% !important;
    }

    /* Existing dividend analysis styles */
    .dividend-summary {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 0 0 auto;
        min-width: 200px;
    }

    .summary-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 5px;
    }

    .summary-info {
        font-size: 14px;
        color: var(--das-text);
    }

    .latest-dividend-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 0 0 auto;
        min-width: 200px;
        margin-left: 0;
    }

    .dividend-label {
        font-size: 12px;
        color: var(--das-text);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }

    .dividend-amount {
        font-size: 32px;
        font-weight: 800;
        color: var(--white);
        background: linear-gradient(45deg, #52CA96, #85FFC4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .dividend-details {
        font-size: 16px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        background-color: rgba(82, 202, 150, 0.2);
        color: #52CA96;
        margin-top: 8px;
    }

    .dividend-timestamp {
        font-size: 13px;
        color: var(--das-text);
        margin-top: 5px;
    }

    /* Controls section for dividend-paying companies */
    .controls-section {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .controls-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .controls-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--white);
    }

    .download-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .download-btn {
        background: linear-gradient(45deg, #5CC6FF, #85FFC4);
        color: var(--primary-color);
        border: none;
        border-radius: 6px;
        padding: 10px 20px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(92, 198, 255, 0.3);
    }

    .download-btn.excel {
        background: linear-gradient(45deg, #52CA96, #85FFC4);
    }

    .download-btn.excel:hover {
        box-shadow: 0 4px 8px rgba(82, 202, 150, 0.3);
    }

    .download-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .download-btn.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        margin: auto;
        border: 2px solid transparent;
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

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

    .dividend-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-card {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
    }

    .stat-card-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .stat-value {
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
    }

    .stat-value.positive {
        color: #52CA96;
    }

    .stat-value.negative {
        color: #FF5993;
    }

    .stat-value.highlight {
        color: #5CC6FF;
        font-size: 18px;
    }

    .chart-section {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .chart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .chart-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--white);
    }

    .data-table-section {
        background-color: var(--secondary-color);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .data-table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .data-table-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--white);
    }

    .data-table-container {
        overflow-x: auto;
        border-radius: 8px;
        max-height: 600px;
        overflow-y: auto;
    }

    .dividend-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        min-width: 600px;
    }

    .dividend-table th {
        background-color: rgba(0, 0, 0, 0.3);
        color: var(--das-text);
        font-weight: 600;
        font-size: 13px;
        padding: 15px 12px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .dividend-table th:first-child {
        border-top-left-radius: 8px;
    }

    .dividend-table th:last-child {
        border-top-right-radius: 8px;
        text-align: right;
    }

    .dividend-table th.text-right {
        text-align: right;
    }

    .dividend-table td {
        padding: 12px;
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }

    .dividend-table td.text-right {
        text-align: right;
    }

    .dividend-table tr:hover {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .dividend-table tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .dividend-table tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }

    .year-column {
        font-weight: 600;
        color: var(--white);
    }

    .amount-column {
        font-family: 'Roboto Mono', monospace;
        text-align: right;
        font-weight: 600;
    }

    .yield-column {
        text-align: right;
        color: #52CA96;
        font-weight: 600;
    }

    /* Toast notification styles */
    .toast {
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: var(--secondary-color);
        color: var(--white);
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.3s ease;
        pointer-events: auto;
    }

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast.success {
        border-left: 4px solid #52CA96;
    }

    .toast.error {
        border-left: 4px solid #FF5993;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .dividend-info-row {
            flex-wrap: wrap;
        }

        .company-info {
            min-width: 300px;
            max-width: 100%;
        }
    }

    @media (max-width: 768px) {
        .dividend-info-row {
            flex-direction: column;
            gap: 20px;
        }

        .company-info {
            min-width: auto;
            max-width: 100%;
        }

        .latest-dividend-section {
            margin-left: 0;
            margin-top: 15px;
            width: 100%;
        }

        .dividend-summary, .current-yield-section {
            align-items: flex-start;
            text-align: left;
        }

        .dividend-stats-grid {
            grid-template-columns: 1fr;
        }

        .stat-grid {
            grid-template-columns: 1fr;
        }

        .chart-header,
        .data-table-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .download-buttons {
            width: 100%;
            justify-content: stretch;
        }

        .download-btn {
            flex: 1;
            justify-content: center;
        }

        .dividend-table th,
        .dividend-table td {
            padding: 8px;
            font-size: 13px;
        }

        .performance-grid {
            grid-template-columns: 1fr;
        }

        .alternatives-grid {
            grid-template-columns: 1fr;
        }

        .sector-stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .chart-container {
            height: 300px;
            padding: 5px;
        }

        .page-title {
            font-size: 24px;
        }
    }

    @media (max-width: 480px) {
        .dividend-hero {
            padding: 20px;
        }

        .company-title {
            font-size: 24px;
        }

        .controls-section,
        .data-table-section {
            padding: 15px;
        }

        .chart-container {
            height: 250px;
        }

        .sector-stats-grid {
            grid-template-columns: 1fr;
        }

        .page-header {
            padding: 15px 20px;
        }

        .page-title {
            font-size: 20px;
        }
    }

section -->
<style>
/* Dividend Education Styles */
.dividend-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dividend-type-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.dividend-type-card:hover {
    border-color: rgba(92, 198, 255, 0.3);
    transform: translateY(-2px);
}

.type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.type-icon.regular {
    background-color: rgba(92, 198, 255, 0.2);
    color: #5CC6FF;
}

.type-icon.special {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.type-icon.interim {
    background-color: rgba(255, 89, 147, 0.2);
    color: #FF5993;
}

.type-icon.final {
    background-color: rgba(82, 202, 150, 0.2);
    color: #52CA96;
}

.type-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.type-content p {
    font-size: 14px;
    color: var(--das-text);
    line-height: 1.5;
    margin-bottom: 12px;
}

.type-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.feature-tag {
    font-size: 12px;
    color: var(--das-text);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.type-example {
    font-size: 13px;
    color: #5CC6FF;
    background-color: rgba(92, 198, 255, 0.1);
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.dividend-insights {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: rgba(82, 202, 150, 0.2);
    color: #52CA96;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.insight-content {
    font-size: 14px;
    color: var(--das-text);
    line-height: 1.5;
}

.insight-content strong {
    color: var(--white);
}

.insight-example {
    color: #5CC6FF;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dividend-types-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ Fair Value ═══ */

/* Fair Value Specific Styles */
        .fair-value-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .fair-value-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .fair-value-info-row {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .current-valuation-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
            flex: 0 0 auto;
            min-width: 250px;
        }

        .valuation-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }

        .average-fair-value {
            font-size: 36px;
            font-weight: 800;
            color: var(--white);
            background: linear-gradient(45deg, #52CA96, #85FFC4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .valuation-vs-market {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 10px;
        }

        .market-price-line {
            font-size: 14px;
            color: var(--das-text);
        }

        .price-difference {
            font-size: 18px;
            font-weight: 700;
            margin-top: 5px;
        }

        .price-difference.positive {
            color: #52CA96;
        }

        .price-difference.negative {
            color: #FF5993;
        }

        /* Controls Section */
        .controls-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .controls-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
        }

        .download-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .download-btn {
            background: linear-gradient(45deg, #52CA96, #85FFC4);
            color: var(--primary-color);
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(82, 202, 150, 0.3);
        }

        .download-btn.excel {
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
        }

        /* Valuation Methods Grid */
        .valuation-methods-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .method-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            border-left: 4px solid #52CA96;
        }

        .method-card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .method-card-title i {
            color: #52CA96;
        }

        .method-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }

        .method-detail-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .detail-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .detail-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .detail-value.highlight {
            font-size: 20px;
            color: #52CA96;
        }

        .method-fair-value {
            background-color: rgba(82, 202, 150, 0.1);
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(82, 202, 150, 0.3);
        }

        .method-fair-value-label {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .method-fair-value-amount {
            font-size: 24px;
            font-weight: 800;
            color: #52CA96;
            margin-bottom: 5px;
        }

        /* Summary Section */
        .valuation-summary-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 20px;
            border: 2px solid rgba(82, 202, 150, 0.3);
        }

        .summary-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .summary-item {
            text-align: center;
            padding: 15px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .summary-label {
            font-size: 14px;
            color: var(--das-text);
            margin-bottom: 8px;
        }

        .summary-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
        }

        .summary-value.positive {
            color: #52CA96;
        }

        .summary-value.negative {
            color: #FF5993;
        }

        /* Analysis Overview Section */
        .analysis-overview-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .overview-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .analysis-factors {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .analysis-factors li {
            padding: 8px 0;
            color: var(--white);
            font-size: 14px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .analysis-factors li::before {
            content: "📊";
            font-size: 14px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        /* Peer Comparison */
        .peer-comparison-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .peer-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .peer-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .peer-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .peer-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
        }

        .peer-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .company-link {
            color: #52CA96;
            text-decoration: none;
            font-weight: 500;
        }

        .company-link:hover {
            color: #85FFC4;
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #52CA96;
        }

        .no-data-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
        }

        .no-data-description {
            font-size: 16px;
            line-height: 1.6;
            max-width: 500px;
        }

        .download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #52CA96;
}

.toast.error {
    border-left: 4px solid #FF5993;
}

        /* Responsive Design */
        @media (max-width: 768px) {
            .fair-value-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .current-valuation-section {
                align-items: flex-start;
                text-align: left;
                min-width: auto;
                width: 100%;
            }

            .company-title {
                font-size: 24px;
            }

            .average-fair-value {
                font-size: 28px;
            }

            .valuation-methods-section {
                grid-template-columns: 1fr;
            }

            .method-details {
                grid-template-columns: 1fr;
            }

            .summary-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .fair-value-hero {
                padding: 20px;
            }

            .average-fair-value {
                font-size: 24px;
            }

            .summary-grid {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Shareholding Pattern ═══ */

/* Shareholding Pattern Specific Styles */
        .shareholding-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
            text-align: center;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 18px;
            color: var(--das-text);
            margin-bottom: 20px;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        .latest-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .summary-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
        }

        .summary-value.promoter {
            color: #5CC6FF;
        }

        .summary-value.fii {
            color: #85FFC4;
        }

        .summary-value.dii {
            color: #FF9A2E;
        }

        .summary-value.public {
            color: #FF5993;
        }

        .shareholding-description {
            color: var(--white);
            line-height: 1.6;
            opacity: 0.9;
        }

        /* Stats Grid */
        .shareholding-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
        }

        .trend-up {
            color: #52CA96;
        }

        .trend-down {
            color: #FF5993;
        }

        .trend-neutral {
            color: #FFC107;
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .chart-container {
            height: 400px;
            width: 100%;
            position: relative;
            margin-bottom: 20px;
        }

        .chart-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 15px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 3px;
        }

        .legend-label {
            font-size: 14px;
            color: var(--white);
        }

        /* Data Tables */
        .data-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .download-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .download-btn {
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
            color: var(--primary-color);
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            position: relative;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(92, 198, 255, 0.3);
        }

        .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .download-btn.excel {
            background: linear-gradient(45deg, #52CA96, #85FFC4);
        }

        .download-btn.loading::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .shareholding-table-container {
            overflow-x: auto;
            border-radius: 8px;
            max-height: 600px;
            overflow-y: auto;
        }

        .shareholding-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 800px;
        }

        .shareholding-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .shareholding-table th:first-child {
            border-top-left-radius: 8px;
            text-align: left;
        }

        .shareholding-table th:last-child {
            border-top-right-radius: 8px;
        }

        .shareholding-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            text-align: center;
        }

        .shareholding-table td:first-child {
            text-align: left;
            font-weight: 600;
        }

        .shareholding-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .shareholding-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .shareholding-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        .percentage-cell {
            font-weight: 600;
        }

        .high-holding {
            background-color: rgba(82, 202, 150, 0.1);
            color: #52CA96;
        }

        .medium-holding {
            background-color: rgba(255, 193, 7, 0.1);
            color: #FFC107;
        }

        .low-holding {
            background-color: rgba(255, 89, 147, 0.1);
            color: #FF5993;
        }

        .period-column {
            font-weight: 600;
            color: var(--white);
            white-space: nowrap;
        }

        /* Trend Analysis */
        .trend-analysis {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .trend-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .trend-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .trend-info {
            display: flex;
            flex-direction: column;
        }

        .trend-label {
            font-size: 14px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .trend-category {
            font-size: 12px;
            color: var(--white);
            opacity: 0.8;
        }

        .trend-change {
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Tab Navigation */
        .tab-navigation {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn {
            background: none;
            border: none;
            color: var(--das-text);
            padding: 12px 20px;
            font-weight: 500;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .tab-btn.active {
            color: var(--white);
            border-bottom-color: #5CC6FF;
        }

        .tab-content {
            display: none;
        }

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

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        /* No Data Message */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
            margin-bottom: 20px;
        }

        /* Toast notification styles */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--secondary-color);
            color: var(--white);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .toast.success {
            border-left: 4px solid #52CA96;
        }

        .toast.error {
            border-left: 4px solid #FF5993;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .shareholding-hero {
                padding: 20px;
            }

            .company-title {
                font-size: 24px;
            }

            .latest-summary {
                grid-template-columns: repeat(2, 1fr);
            }

            .shareholding-stats {
                grid-template-columns: 1fr;
            }

            .trend-grid {
                grid-template-columns: 1fr;
            }

            .shareholding-table th,
            .shareholding-table td {
                padding: 8px;
                font-size: 12px;
            }

            .tab-navigation {
                overflow-x: auto;
                padding-bottom: 5px;
            }

            .download-buttons {
                width: 100%;
                justify-content: stretch;
            }

            .download-btn {
                flex: 1;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .company-title {
                font-size: 20px;
            }

            .latest-summary {
                grid-template-columns: 1fr;
            }

            .data-section,
            .chart-section,
            .trend-analysis {
                padding: 15px;
            }
        }

/* ═══ Quarterly Results ═══ */

/* Quarterly Results Specific Styles */
        .quarterly-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .quarterly-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .quarterly-info-row {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .latest-profit-section {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            flex: 0 0 auto;
            min-width: 200px;
            margin-left: 0;
        }

        .profit-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }

        .profit-amount {
            font-size: 32px;
            font-weight: 800;
            color: var(--white);
            background: linear-gradient(45deg, #52CA96, #85FFC4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
        }

        .profit-details {
            font-size: 16px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 6px;
            background-color: rgba(82, 202, 150, 0.2);
            color: #52CA96;
            margin-top: 8px;
        }

        .profit-timestamp {
            font-size: 13px;
            color: var(--das-text);
            margin-top: 5px;
        }

        /* Key Highlights Section */
        .highlights-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .highlights-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .highlights-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .highlights-list li {
            padding: 8px 0;
            color: var(--white);
            font-size: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .highlights-list li:last-child {
            border-bottom: none;
        }

        .highlights-list li::before {
            content: "▶";
            color: #5CC6FF;
            font-size: 12px;
        }

        /* Quarterly Analysis Table */
        .analysis-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .analysis-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .analysis-table-container {
            overflow-x: auto;
            border-radius: 8px;
        }

        .analysis-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 800px;
        }

        .analysis-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
        }

        .analysis-table th.metric-header {
            text-align: left;
            background-color: rgba(92, 198, 255, 0.1);
            color: var(--white);
            font-weight: 700;
        }

        .analysis-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            text-align: center;
        }

        .analysis-table td.metric-name {
            text-align: left;
            font-weight: 600;
            background-color: rgba(255, 255, 255, 0.03);
        }

        .analysis-table td.latest-quarter {
            background-color: rgba(92, 198, 255, 0.1);
            font-weight: 600;
        }

        .analysis-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .change-positive {
            color: #52CA96;
            font-weight: 600;
        }

        .change-negative {
            color: #FF5993;
            font-weight: 600;
        }

        .change-value {
            display: block;
            font-size: 12px;
            margin-top: 2px;
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .chart-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

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

        /* Financial Widgets Grid */
        .widgets-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .widget-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .widget-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .widget-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .widget-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .widget-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .widget-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .widget-value.positive {
            color: #52CA96;
        }

        .widget-value.negative {
            color: #FF5993;
        }

        .widget-value.highlight {
            color: #5CC6FF;
            font-size: 18px;
        }

        /* Simplified Peer Comparison Section */
        .peer-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .peer-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
            text-align: center;
        }

        .peer-subtitle {
            text-align: center;
            margin-bottom: 20px;
            color: var(--das-text);
            font-size: 14px;
        }

        .peer-table-container {
            overflow-x: auto;
            border-radius: 12px;
            background-color: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .peer-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 1000px;
            font-size: 13px;
        }

        .peer-table thead {
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .peer-table th {
            padding: 15px 10px;
            text-align: right;
            color: var(--white);
            font-weight: 600;
            border-bottom: 2px solid rgba(92, 198, 255, 0.3);
            background: linear-gradient(135deg, rgba(92, 198, 255, 0.15), rgba(133, 255, 196, 0.15));
        }

        .peer-table th:first-child {
            text-align: left;
            position: sticky;
            left: 0;
            background: linear-gradient(135deg, rgba(92, 198, 255, 0.2), rgba(133, 255, 196, 0.2));
            min-width: 180px;
            font-weight: 700;
        }

        .peer-table th small {
            display: block;
            font-weight: 400;
            color: var(--das-text);
            font-size: 11px;
        }

        .peer-table td {
            padding: 12px 10px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            text-align: right;
            font-weight: 500;
        }

        .peer-table td:first-child {
            text-align: left;
            position: sticky;
            left: 0;
            background-color: var(--secondary-color);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            font-weight: 600;
        }

        .peer-table tr:hover {
            background-color: rgba(255, 255, 255, 0.08);
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        .company-link:hover {
            color: #85FFC4;
        }

        .peer-summary {
            margin-top: 15px;
            padding: 15px;
            background: linear-gradient(135deg, rgba(92, 198, 255, 0.05), rgba(133, 255, 196, 0.05));
            border-radius: 8px;
            border: 1px solid rgba(92, 198, 255, 0.2);
        }

        .peer-summary-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .peer-summary-info {
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
        }

        .peer-summary-legend {
            display: flex;
            gap: 15px;
            font-size: 11px;
            flex-wrap: wrap;
        }

        .peer-summary-note {
            text-align: right;
            color: var(--das-text);
            font-size: 10px;
        }

        /* Trends Section */
        .trends-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .trend-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .trend-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            text-align: center;
        }

        .trend-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .trend-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
        }

        .trend-period {
            font-size: 14px;
            color: var(--das-text);
        }

        .trend-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--white);
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .quarterly-info-row {
                flex-wrap: wrap;
            }

            .company-info {
                min-width: 300px;
                max-width: 100%;
            }

            .peer-table {
                min-width: 900px;
            }
        }

        @media (max-width: 768px) {
            .quarterly-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .company-info {
                min-width: auto;
                max-width: 100%;
            }

            .latest-profit-section {
                min-width: auto;
                width: 100%;
            }

            .company-title {
                font-size: 24px;
            }

            .profit-amount {
                font-size: 28px;
            }

            .widgets-section {
                grid-template-columns: 1fr;
            }

            .widget-grid {
                grid-template-columns: 1fr;
            }

            .trends-section {
                grid-template-columns: 1fr;
            }

            .analysis-table th,
            .analysis-table td,
            .peer-table th,
            .peer-table td {
                padding: 8px;
                font-size: 12px;
            }

            .peer-summary-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .peer-summary-legend {
                justify-content: flex-start;
            }

            .peer-summary-note {
                text-align: left;
            }
        }

        @media (max-width: 480px) {
            .quarterly-hero {
                padding: 20px;
            }

            .profit-amount {
                font-size: 24px;
            }

            .peer-table {
                min-width: 800px;
            }

            .peer-table th,
            .peer-table td {
                padding: 6px 8px;
                font-size: 11px;
            }
        }

/* ═══ Financial Statements ═══ */

/* Financial Statements Specific Styles */
        .financial-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .financial-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .financial-info-row {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        .financial-summary {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            flex: 0 0 auto;
            min-width: 200px;
        }

        .summary-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 5px;
        }

        .summary-info {
            font-size: 14px;
            color: var(--das-text);
        }

        /* Controls Section */
        .controls-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .controls-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
        }

        .download-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .download-btn {
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
            color: var(--primary-color);
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(92, 198, 255, 0.3);
        }

        .download-btn.excel {
            background: linear-gradient(45deg, #52CA96, #85FFC4);
        }

        .download-btn.excel:hover {
            box-shadow: 0 4px 8px rgba(82, 202, 150, 0.3);
        }

        /* Financial Ratios Grid */
        .ratios-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .ratio-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            transition: transform 0.2s ease;
        }

        .ratio-card:hover {
            transform: translateY(-2px);
        }

        .ratio-card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ratio-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .ratio-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .ratio-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .ratio-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .ratio-value.positive {
            color: #52CA96;
        }

        .ratio-value.negative {
            color: #FF5993;
        }

        .ratio-value.highlight {
            color: #5CC6FF;
            font-size: 18px;
        }

        .ratio-context {
            font-size: 11px;
            color: var(--das-text);
            margin-top: 2px;
        }

        /* YoY Analysis Section */
        .yoy-analysis-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .yoy-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            text-align: center;
        }

        .yoy-subtitle {
            text-align: center;
            color: var(--das-text);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .yoy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .yoy-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .yoy-metric {
            font-size: 14px;
            color: var(--das-text);
            margin-bottom: 8px;
        }

        .yoy-value {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .yoy-value.positive {
            color: #52CA96;
        }

        .yoy-value.negative {
            color: #FF5993;
        }

        .yoy-value.neutral {
            color: var(--white);
        }

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

        /* Financial Tables Section */
        .financial-statements-section {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .statement-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .statement-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .statement-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--white);
        }

        .statement-summary {
            display: flex;
            gap: 20px;
            font-size: 14px;
            color: var(--das-text);
            flex-wrap: wrap;
        }

        .financial-table-container {
            overflow-x: auto;
            border-radius: 8px;
            max-height: 600px;
            overflow-y: auto;
        }

        .financial-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 600px;
        }

        .financial-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 12px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .financial-table th:first-child {
            border-top-left-radius: 8px;
            min-width: 200px;
        }

        .financial-table th:last-child {
            border-top-right-radius: 8px;
            text-align: right;
        }

        .financial-table th.text-right {
            text-align: right;
        }

        .financial-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
        }

        .financial-table td.text-right {
            text-align: right;
        }

        .financial-table td.row-header {
            font-weight: 600;
            background-color: rgba(255, 255, 255, 0.02);
            position: sticky;
            left: 0;
            background-color: var(--secondary-color);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }

        .financial-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .financial-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .financial-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        .section-header {
            background-color: rgba(92, 198, 255, 0.1) !important;
            font-weight: 700 !important;
            color: var(--white) !important;
        }

        .subsection-header {
            background-color: rgba(255, 255, 255, 0.05) !important;
            font-weight: 600 !important;
        }

        .total-row {
            font-weight: 700 !important;
            background-color: rgba(255, 255, 255, 0.05) !important;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
        }

        .no-data-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 10px;
        }

        .no-data-description {
            font-size: 16px;
            line-height: 1.6;
            max-width: 500px;
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* Toast notification styles */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--secondary-color);
            color: var(--white);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
            pointer-events: auto;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .toast.success {
            border-left: 4px solid #52CA96;
        }

        .toast.error {
            border-left: 4px solid #FF5993;
        }

        /* Download button loading and disabled states */
        .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .download-btn.loading::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Responsive Design */
        @media (max-width: 1200px) {
            .financial-info-row {
                flex-wrap: wrap;
            }

            .company-info {
                min-width: 300px;
                max-width: 100%;
            }
        }

        @media (max-width: 768px) {
            .financial-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .company-info {
                min-width: auto;
                max-width: 100%;
            }

            .financial-summary {
                min-width: auto;
                width: 100%;
            }

            .company-title {
                font-size: 24px;
            }

            .ratios-section {
                grid-template-columns: 1fr;
            }

            .ratio-grid {
                grid-template-columns: 1fr;
            }

            .yoy-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .statement-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .download-buttons {
                width: 100%;
                justify-content: stretch;
            }

            .download-btn {
                flex: 1;
                justify-content: center;
            }

            .financial-table th,
            .financial-table td {
                padding: 8px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .financial-hero {
                padding: 20px;
            }

            .controls-section,
            .statement-card {
                padding: 15px;
            }

            .yoy-grid {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Intrinsic Value ═══ */

.intrinsic-hero {
            background: linear-gradient(135deg, #1a1d29 0%, #2d1b69 50%, #1a1d29 100%);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            text-align: center;
        }

        .company-header h1 {
            font-size: 28px;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 8px;
        }

        .company-info {
            color: var(--das-text);
            font-size: 16px;
            margin-bottom: 20px;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        .price-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .price-item {
            text-align: center;
        }

        .price-label {
            font-size: 14px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .price-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
        }

        .upside-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 20px;
            margin-top: 15px;
        }

        .upside-badge.positive {
            background-color: rgba(82, 202, 150, 0.2);
            color: #52CA96;
        }

        .upside-badge.negative {
            background-color: rgba(255, 89, 147, 0.2);
            color: #FF5993;
        }

        .upside-badge.neutral {
            background-color: rgba(255, 193, 7, 0.2);
            color: #FFC107;
        }

        /* Summary Stats */
        .summary-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .stat-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-label {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--white);
        }

        /* Description Section */
        .description-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .section-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .description-box {
            background: rgba(92, 198, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* Valuation Table */
        .valuation-table-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .valuation-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .valuation-table th {
            background-color: rgba(92, 198, 255, 0.2);
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
            padding: 15px 12px;
            text-align: left;
        }

        .valuation-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            background-color: rgba(255, 255, 255, 0.02);
        }

        .valuation-table tr:hover td {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .valuation-table tr.selected td {
            background-color: rgba(92, 198, 255, 0.1);
            border-left: 3px solid #5CC6FF;
        }

        .method-name {
            font-weight: 600;
            color: var(--white);
        }

        .intrinsic-value {
            font-weight: 700;
            font-size: 16px;
            color: #5CC6FF;
        }

        .method-type {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .method-type.earnings { background-color: rgba(82, 202, 150, 0.2); color: #52CA96; }
        .method-type.asset { background-color: rgba(255, 193, 7, 0.2); color: #FFC107; }
        .method-type.revenue { background-color: rgba(147, 51, 234, 0.2); color: #9333ea; }
        .method-type.dcf { background-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .method-type.growth { background-color: rgba(16, 185, 129, 0.2); color: #10b981; }
        .method-type.profitability { background-color: rgba(245, 101, 101, 0.2); color: #f56565; }
        .method-type.dividend { background-color: rgba(167, 139, 250, 0.2); color: #a78bfa; }
        .method-type.comparative { background-color: rgba(251, 146, 60, 0.2); color: #fb923c; }
        .method-type.conservative { background-color: rgba(156, 163, 175, 0.2); color: #9ca3af; }

        .upside-cell {
            font-weight: 600;
        }

        .upside-positive { color: #52CA96; }
        .upside-negative { color: #FF5993; }
        .upside-neutral { color: #FFC107; }

        .details-cell {
            font-size: 12px;
            color: var(--das-text);
            max-width: 200px;
        }

        /* Chart Container */
        .chart-container {
            height: 300px;
            width: 100%;
            margin-bottom: 20px;
            background-color: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
            padding: 15px;
        }

        /* Financial Analysis Tables */
        .financial-analysis {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .analysis-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .analysis-table th {
            background-color: rgba(92, 198, 255, 0.2);
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
            padding: 12px;
            text-align: left;
        }

        .analysis-table td {
            padding: 10px 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            background-color: rgba(255, 255, 255, 0.02);
            font-size: 14px;
        }

        .analysis-table tr:hover td {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .ratio-good { color: #52CA96; }
        .ratio-warning { color: #FFC107; }
        .ratio-poor { color: #FF5993; }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        /* Download Button */
        .download-btn {
            background: linear-gradient(45deg, #5CC6FF, #52CA96);
            color: var(--white);
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            position: relative;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(92, 198, 255, 0.3);
        }

        .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .download-btn.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: var(--white);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Toast notification styles */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--secondary-color);
            color: var(--white);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .toast.success {
            border-left: 4px solid #52CA96;
        }

        .toast.error {
            border-left: 4px solid #FF5993;
        }

        /* No Data Message */
        .no-data-message {
            text-align: center;
            padding: 60px 20px;
            color: var(--das-text);
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
            margin-bottom: 20px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .price-info {
                flex-direction: column;
                gap: 15px;
            }

            .valuation-table, .analysis-table {
                font-size: 12px;
            }

            .valuation-table th, .valuation-table td,
            .analysis-table th, .analysis-table td {
                padding: 8px;
            }

            .summary-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .intrinsic-hero {
                padding: 20px;
            }

            .summary-stats {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Price Chart ═══ */

/* Price Chart Specific Styles */
        .price-chart-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .price-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .price-info-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 30px;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .current-price-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
        }

        .price-display {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .current-price {
            font-size: 32px;
            font-weight: 800;
            color: var(--white);
            line-height: 1;
        }

        .price-change {
            font-size: 16px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .price-change.positive {
            background-color: rgba(82, 202, 150, 0.2);
            color: #52CA96;
        }

        .price-change.negative {
            background-color: rgba(255, 89, 147, 0.2);
            color: #FF5993;
        }

        .price-change.neutral {
            background-color: rgba(156, 159, 175, 0.2);
            color: #9C9FAF;
        }

        .price-timestamp {
            font-size: 13px;
            color: var(--das-text);
            margin-top: 5px;
        }

        /* Price Summary Grid */
        .price-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .summary-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .summary-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .chart-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
        }

        .chart-timeframes {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .timeframe-button {
            background-color: var(--primary-color);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--white);
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .timeframe-button.active,
        .timeframe-button:hover {
            background-image: var(--color-shadow);
            color: var(--primary-color);
            transform: translateY(-1px);
        }

        .chart-container {
            height: 500px;
            width: 100%;
            position: relative;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            overflow: hidden;
        }

        /* Statistics Cards */
        .statistics-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .stat-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
        }

        .stat-card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .stat-value.positive {
            color: #52CA96;
        }

        .stat-value.negative {
            color: #FF5993;
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* Loading States */
        .chart-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: var(--das-text);
            font-size: 16px;
        }

        .loading-spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 3px solid #5CC6FF;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .price-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .current-price-section {
                align-items: flex-start;
                text-align: left;
            }

            .price-summary {
                grid-template-columns: repeat(2, 1fr);
            }

            .chart-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .chart-timeframes {
                width: 100%;
                overflow-x: auto;
                padding-bottom: 5px;
            }

            .statistics-section {
                grid-template-columns: 1fr;
            }

            .stat-grid {
                grid-template-columns: 1fr;
            }

            .current-price {
                font-size: 28px;
            }
        }

        @media (max-width: 480px) {
            .price-chart-hero {
                padding: 20px;
            }

            .company-title {
                font-size: 24px;
            }

            .current-price {
                font-size: 24px;
            }

            .price-summary {
                grid-template-columns: 1fr;
            }

            .chart-container {
                height: 400px;
            }
        }

        /* Error States */
        .error-message {
            background-color: rgba(255, 89, 147, 0.1);
            border: 1px solid rgba(255, 89, 147, 0.3);
            color: #FF5993;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
        }

        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: var(--das-text);
            font-size: 16px;
            gap: 10px;
        }

        .no-data-icon {
            font-size: 48px;
            opacity: 0.5;
        }

/* ═══ Historical Data ═══ */

/* Share Price History Specific Styles */
        .share-price-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .share-price-header-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .share-price-info-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 30px;
        }

        .company-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 16px;
            color: var(--das-text);
            margin-bottom: 10px;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        .data-summary {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
        }

        .summary-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 5px;
        }

        .summary-info {
            font-size: 14px;
            color: var(--das-text);
        }

        /* Controls Section */
        .controls-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .controls-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
        }

        .download-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .download-btn {
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
            color: var(--primary-color);
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            position: relative;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(92, 198, 255, 0.3);
        }

        .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .download-btn.excel {
            background: linear-gradient(45deg, #52CA96, #85FFC4);
        }

        .download-btn.excel:hover {
            box-shadow: 0 4px 8px rgba(82, 202, 150, 0.3);
        }

        .download-btn.loading {
            pointer-events: none;
        }

        .download-btn.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .controls-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            align-items: end;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--white);
        }

        .form-select {
            background-color: var(--primary-color);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            padding: 10px 15px;
            color: var(--white);
            font-size: 14px;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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 10px center;
            background-size: 16px;
            padding-right: 40px;
        }

        .form-select:focus {
            outline: none;
            border-color: #5CC6FF;
            box-shadow: 0 0 0 2px rgba(92, 198, 255, 0.2);
        }

        .form-select option {
            background-color: var(--primary-color);
            color: var(--white);
        }

        .update-btn {
            background-color: var(--primary-color);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--white);
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s;
        }

        .update-btn:hover {
            background-image: var(--color-shadow);
            color: var(--primary-color);
        }

        /* Statistics Section */
        .statistics-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .statistics-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .statistics-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 10px;
        }

        .statistics-subtitle {
            font-size: 16px;
            color: var(--das-text);
        }

        .statistics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(92, 198, 255, 0.1), rgba(133, 255, 196, 0.1));
            border: 1px solid rgba(92, 198, 255, 0.2);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(92, 198, 255, 0.15);
            border-color: rgba(92, 198, 255, 0.4);
        }

        .stat-card-icon {
            font-size: 32px;
            color: #5CC6FF;
            margin-bottom: 15px;
        }

        .stat-card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 8px;
        }

        .stat-card-value {
            font-size: 24px;
            font-weight: 700;
            color: #5CC6FF;
            margin-bottom: 5px;
        }

        .stat-card-subtitle {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 8px;
        }

        .stat-card-exchange {
            font-size: 11px;
            background: rgba(92, 198, 255, 0.2);
            color: #5CC6FF;
            padding: 2px 8px;
            border-radius: 10px;
            display: inline-block;
        }

        /* Data Table Section */
        .data-table-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .data-table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .data-table-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
        }

        .data-stats {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
        }

        .data-table-container {
            overflow-x: auto;
            border-radius: 8px;
            max-height: 600px;
            overflow-y: auto;
        }

        .share-price-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 600px;
        }

        .share-price-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 12px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .share-price-table th:first-child {
            border-top-left-radius: 8px;
        }

        .share-price-table th:last-child {
            border-top-right-radius: 8px;
            text-align: right;
        }

        .share-price-table th.text-right {
            text-align: right;
        }

        .share-price-table td {
            padding: 12px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
        }

        .share-price-table td.text-right {
            text-align: right;
        }

        .share-price-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .share-price-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .share-price-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        .date-column {
            font-weight: 600;
            color: var(--white);
            white-space: nowrap;
        }

        .price-column {
            font-family: 'Roboto Mono', monospace;
            text-align: right;
        }

        .volume-column {
            text-align: right;
            color: var(--das-text);
        }

        /* FAQ Section */
        .faq-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .faq-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 10px;
        }

        .faq-subtitle {
            font-size: 16px;
            color: var(--das-text);
        }

        .faq-item {
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        .faq-question {
            background: rgba(92, 198, 255, 0.1);
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .faq-question h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--white);
            margin: 0;
        }

        .faq-answer {
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
        }

        .faq-answer p {
            color: var(--das-text);
            line-height: 1.6;
            margin: 0;
        }

        /* Loading and Error States */
        .loading-message {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--das-text);
            font-size: 16px;
        }

        .loading-spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 3px solid #5CC6FF;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin-right: 15px;
        }

        .error-message {
            background-color: rgba(255, 89, 147, 0.1);
            border: 1px solid rgba(255, 89, 147, 0.3);
            color: #FF5993;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
        }

        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--das-text);
            font-size: 16px;
            gap: 10px;
        }

        .no-data-icon {
            font-size: 48px;
            opacity: 0.5;
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* Toast notification styles */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--secondary-color);
            color: var(--white);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .toast.success {
            border-left: 4px solid #52CA96;
        }

        .toast.error {
            border-left: 4px solid #FF5993;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .share-price-info-row {
                flex-direction: column;
                gap: 20px;
            }

            .data-summary {
                align-items: flex-start;
                text-align: left;
            }

            .controls-form {
                grid-template-columns: 1fr;
            }

            .download-buttons {
                width: 100%;
                justify-content: stretch;
            }

            .download-btn {
                flex: 1;
                justify-content: center;
            }

            .data-stats {
                flex-direction: column;
                gap: 10px;
            }

            .share-price-table th,
            .share-price-table td {
                padding: 8px;
                font-size: 13px;
            }

            .statistics-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .share-price-hero {
                padding: 20px;
            }

            .company-title {
                font-size: 24px;
            }

            .controls-section,
            .data-table-section,
            .statistics-section,
            .faq-section {
                padding: 15px;
            }
        }

/* ═══ 52Week ═══ */

/* 52-Week Specific Styles */
        .week-52-hero {
            background: linear-gradient(135deg, #1a1d29 0%, #2d1b69 50%, #1a1d29 100%);
            border-radius: 15px;
            padding: 40px;
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
        }

        .week-52-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(92, 198, 255, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255, 89, 147, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .company-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .company-title {
            font-size: 32px;
            font-weight: 800;
            color: var(--white);
            margin: 0 0 8px 0;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 18px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        .current-price-display {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 30px;
            text-align: center;
        }

        /* Dual Metric Display - Side by Side */
        .dual-metrics-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .metric-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .metric-card.high-card {
            background: linear-gradient(135deg, rgba(82, 202, 150, 0.15) 0%, rgba(133, 255, 196, 0.1) 100%);
            border: 1px solid rgba(82, 202, 150, 0.3);
        }

        .metric-card.low-card {
            background: linear-gradient(135deg, rgba(255, 89, 147, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
            border: 1px solid rgba(255, 89, 147, 0.3);
        }

        .metric-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .metric-label {
            font-size: 16px;
            font-weight: 600;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }

        .metric-value {
            font-size: 48px;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 15px;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .high-card .metric-value {
            background: linear-gradient(45deg, #52CA96, #85FFC4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .low-card .metric-value {
            background: linear-gradient(45deg, #FF5993, #FFC107);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .metric-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .metric-date {
            font-size: 14px;
            color: var(--das-text);
            font-weight: 500;
        }

        .metric-ago {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-style: italic;
        }

        /* Position Indicator */
        .position-indicator {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            text-align: center;
        }

        .position-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 15px;
        }

        .position-bar-container {
            position: relative;
            height: 12px;
            background: linear-gradient(90deg, #FF5993 0%, #FFC107 25%, #52CA96 75%, #85FFC4 100%);
            border-radius: 6px;
            margin: 15px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .position-marker {
            position: absolute;
            top: -8px;
            width: 28px;
            height: 28px;
            background: var(--white);
            border: 3px solid #5CC6FF;
            border-radius: 50%;
            transform: translateX(-50%);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            z-index: 2;
        }

        .position-marker::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 8px;
            background: #5CC6FF;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        .position-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 12px;
            color: var(--das-text);
        }

        .position-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .position-stat {
            text-align: center;
        }

        .position-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
            display: block;
        }

        .position-stat-label {
            font-size: 12px;
            color: var(--das-text);
            margin-top: 5px;
        }

        /* Analysis Cards */
        .analysis-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .analysis-card {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .analysis-card-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(92, 198, 255, 0.3);
        }

        .signal-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .signal-icon {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .signal-icon.success { background-color: #52CA96; }
        .signal-icon.warning { background-color: #FFC107; }
        .signal-icon.info { background-color: #5CC6FF; }
        .signal-icon.danger { background-color: #FF5993; }

        .signal-text {
            color: var(--white);
            font-size: 14px;
            line-height: 1.4;
        }

        .risk-reward-display {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 15px;
        }

        .risk-reward-item {
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .risk-reward-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
        }

        .risk-reward-label {
            font-size: 12px;
            color: var(--das-text);
            margin-top: 5px;
        }

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .chart-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

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

        /* Historical Data Section */
        .historical-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .section-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .historical-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .historical-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .historical-year {
            font-size: 18px;
            font-weight: 700;
            color: #5CC6FF;
            margin-bottom: 10px;
        }

        .historical-range {
            font-size: 14px;
            color: var(--das-text);
            margin-bottom: 8px;
        }

        .historical-values {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .historical-high, .historical-low {
            font-size: 12px;
            font-weight: 600;
        }

        .historical-high {
            color: #52CA96;
        }

        .historical-low {
            color: #FF5993;
        }

        .historical-return {
            font-size: 14px;
            font-weight: 700;
            color: var(--white);
        }

        /* Sector Comparison */
        .sector-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .sector-companies {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .sector-company {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .company-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 8px;
        }

        .company-position {
            font-size: 12px;
            color: var(--das-text);
            margin-bottom: 5px;
        }

        .company-return {
            font-size: 12px;
            font-weight: 600;
            color: #52CA96;
        }

        /* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--das-text);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color 0.2s;
            font-weight: 500;
        }

        .back-link:hover {
            color: var(--white);
        }

        .back-link i {
            font-size: 14px;
        }

        /* No Data States */
        .no-data-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            color: var(--das-text);
            font-size: 18px;
            gap: 15px;
            text-align: center;
        }

        .no-data-icon {
            font-size: 64px;
            opacity: 0.5;
            color: #5CC6FF;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .dual-metrics-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .metric-value {
                font-size: 36px;
            }

            .company-title {
                font-size: 26px;
            }

            .position-stats {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .analysis-section {
                grid-template-columns: 1fr;
            }

            .risk-reward-display {
                grid-template-columns: 1fr;
            }

            .historical-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .sector-companies {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .week-52-hero {
                padding: 25px;
            }

            .metric-value {
                font-size: 28px;
            }

            .company-title {
                font-size: 22px;
            }

            .historical-grid {
                grid-template-columns: 1fr;
            }
        }

/* ═══ Marketcap ═══ */

/* Market Cap Specific Styles */
        .marketcap-hero {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
            text-align: center;
        }

        .company-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .company-subtitle {
            font-size: 18px;
            color: var(--das-text);
            margin-bottom: 20px;
        }

        .current-marketcap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .marketcap-label {
            font-size: 14px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .marketcap-value {
            font-size: 36px;
            font-weight: 800;
            color: var(--white);
            background: linear-gradient(45deg, #5CC6FF, #85FFC4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .marketcap-value-usd {
            font-size: 24px;
            font-weight: 600;
            color: var(--das-text);
            margin-top: 5px;
        }

        .marketcap-date {
            font-size: 13px;
            color: var(--das-text);
        }

        .marketcap-description {
            color: var(--white);
            line-height: 1.6;
            opacity: 0.9;
        }

        .company-link {
            color: #5CC6FF;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .company-link:hover {
            color: #85FFC4;
            text-decoration: none;
        }

        /* Stats Grid */
        .marketcap-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
        }

        .stat-label {
            font-size: 12px;
            color: var(--das-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
        }

        .stat-value.rank {
            color: #5CC6FF;
        }

        /* Historical Table */
        .historical-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
            text-align: center;
        }

        .historical-table-container {
            overflow-x: auto;
            border-radius: 8px;
        }

        .historical-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .historical-table th {
            background-color: rgba(0, 0, 0, 0.3);
            color: var(--das-text);
            font-weight: 600;
            font-size: 13px;
            padding: 15px 20px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .historical-table th:first-child {
            border-top-left-radius: 8px;
        }

        .historical-table th:last-child {
            border-top-right-radius: 8px;
            text-align: right;
        }

        .historical-table td {
            padding: 15px 20px;
            color: var(--white);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
        }

        .historical-table td:last-child {
            text-align: right;
        }

        .historical-table tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        .historical-table tr:last-child td:first-child {
            border-bottom-left-radius: 8px;
        }

        .historical-table tr:last-child td:last-child {
            border-bottom-right-radius: 8px;
        }

        .change-positive {
            color: #52CA96;
            font-weight: 600;
        }

        .change-negative {
            color: #FF5993;
            font-weight: 600;
        }

        .year-column {
            font-weight: 600;
            color: var(--white);
        }

        .marketcap-dual {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

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

        /* Chart Section */
        .chart-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

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

        /* Sources Section */
        .sources-section {
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .sources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }

        .source-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
        }

        .source-name {
            color: var(--white);
            font-weight: 500;
        }

        .source-value {
            color: #5CC6FF;
            font-weight: 600;
        }

        /* No Price Data Styles */
        .no-price-warning {
            background: rgba(255, 89, 147, 0.1);
            border: 1px solid rgba(255, 89, 147, 0.3);
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            text-align: center;
        }

        .no-price-warning h3 {
            color: #FF5993;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .no-price-warning p {
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 0;
        }

        .description-section {
            background-color: var(--secondary-color);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .description-box {
            background: rgba(92, 198, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            color: var(--white);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .description-box strong {
            color: #5CC6FF;
        }

        .description-box ul {
            margin: 15px 0;
            padding-left: 25px;
        }

        .description-box li {
            margin-bottom: 8px;
        }

        .alternative-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .alternative-link {
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            text-decoration: none;
            transition: all 0.2s;
            display: block;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .alternative-link:hover {
            background-color: rgba(92, 198, 255, 0.1);
            transform: translateY(-2px);
            border-color: rgba(92, 198, 255, 0.3);
        }

        .alternative-link-title {
            color: #5CC6FF;
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .alternative-link-desc {
            color: var(--das-text);
            font-size: 12px;
            line-height: 1.4;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .marketcap-hero {
                padding: 20px;
            }

            .company-title {
                font-size: 24px;
            }

            .marketcap-value {
                font-size: 28px;
            }

            .marketcap-stats {
                grid-template-columns: 1fr;
            }

            .historical-table th,
            .historical-table td {
                padding: 10px 12px;
                font-size: 13px;
            }

            .alternative-links {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .company-title {
                font-size: 20px;
            }

            .marketcap-value {
                font-size: 24px;
            }
        }

/* ═══════════════════════════════════════════════════════════════════════
   CANONICAL TYPOGRAPHY  –  matches stock_detail.html (must stay last)
   ═══════════════════════════════════════════════════════════════════════ */

/* H1 page title */
.company-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 8px;
}

/* Lead / intro paragraph — matches .company-description-header in stock_detail */
.company-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}
.company-subtitle a {
    color: #5CC6FF;
    text-decoration: none;
    transition: color 0.2s ease;
}
.company-subtitle a:hover {
    color: #85FFC4;
    text-decoration: underline;
}

/* H2 section titles — matches .data-card-title in stock_detail (26px/600) */
.section-title,
.chart-title,
.insights-title,
.controls-title,
.summary-title,
.peer-title,
.sector-title,
.data-table-title,
.highlights-title,
.analysis-title,
.overview-title,
.yoy-title,
.statement-title,
.statistics-title,
.faq-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
}

/* H3 card / sub-section titles — matches .stats-section-title in stock_detail (16px/600) */
.analysis-card-title,
.stat-card-title,
.method-card-title,
.widget-title,
.trend-title,
.ratio-card-title,
.position-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
