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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 0 40px 40px 40px;
}

.header-wrapper {
    display: block;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
    width: 100%;
    position: relative;
}

header {
    text-align: left;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
    border-bottom: none;
    width: 100%;
}

header h1 {
    color: #00A5E5;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 4px;
    padding-bottom: 0;
    text-align: left;
    line-height: 1.1;
}

.disclaimer-note {
    font-size: 0.833em;
    color: #666666;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.4;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.disclaimer-note a {
    color: #00A5E5;
    text-decoration: none;
    font-weight: 500;
}

.disclaimer-note a:hover {
    text-decoration: underline;
}

.subtitle {
    color: #333333;
    font-size: 1.2em;
}

section {
    margin-bottom: 50px;
    background-color: #ffffff;
}

.valuation-section {
    margin-top: 20px;
    padding-top: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    font-size: 0.8em;
    position: relative;
    top: 0;
}

.valuation-section::before {
    content: none;
    display: none;
}

.assumptions-right-column {
    flex: 0 0 297.5px;
    margin-top: 55px;
    margin-bottom: 0;
    align-self: flex-start;
    max-height: fit-content;
    padding-top: 0;
    position: relative;
}

.charts-and-controls-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
    width: 100%;
}

.charts-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.valuation-section h2.section-title-with-price {
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 0;
    padding-bottom: 10px;
    font-size: 1.44em;
    line-height: 1.2;
    border-bottom: 1px solid #e0e0e0 !important;
}

.financial-projections {
    background-color: #ffffff;
}

.financial-projections h2 {
    color: #000000;
    background-color: #ffffff;
    padding: 10px 0;
    margin-top: 0;
}

h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    background-color: transparent;
}

section h2 {
    color: #000000;
    background-color: #ffffff;
}

/* Fast fix for spacing */
h1, h2 {
    margin-bottom: 12px;
}

.note-section {
    margin-bottom: 16px;
}

.hero, .container {
    min-height: auto;
}

.main-container {
    justify-content: flex-start;
}

.section-title-with-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.inline-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.84em;
    font-weight: normal;
    margin-left: 20px;
    white-space: nowrap;
}

.price-label-inline {
    color: #00A5E5;
    font-size: 0.8em;
    font-weight: 500;
}

.price-value-inline {
    color: #00A5E5;
    font-size: 1.04em;
    font-weight: bold;
}

.price-change-inline {
    color: #666666;
    font-size: 0.9em;
    opacity: 0.8;
}

.model-controls {
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    flex: 0 0 auto;
    width: 14%;
    max-width: 170px;
    min-width: 140px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.model-controls-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.58em;
    margin-bottom: 3px;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 2px;
    border-bottom: 1px solid #00A5E5;
    width: 100%;
}

.model-controls-title .btn-small {
    margin-left: auto;
    padding: 2px 6px;
    font-size: 0.75em;
}

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

.filters-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.filter-container {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    padding: 2px 6px;
    gap: 0;
    width: 100%;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
}

.filter-container:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.filter-label-header {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.58em;
    padding-bottom: 1px;
    border-bottom: 1px solid #00A5E5;
    margin-bottom: 1px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.year-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.year-row:last-child {
    border-bottom: none;
}

.year-label {
    font-weight: 600;
    font-size: 0.75em;
    min-width: 42px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.slider-group-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.slider-value {
    font-size: 0.8em;
    font-weight: 700;
    color: #00A5E5;
    min-width: 48px;
    text-align: right;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.filters-vertical-list input[type="range"] {
    flex: 1;
    min-width: 100px;
    height: 4px;
    margin: 0;
    background: linear-gradient(to right, #e0e0e0, #d0d0d0);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    touch-action: pan-y;
    cursor: pointer;
}

.filters-vertical-list input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filters-vertical-list input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.filters-vertical-list input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filters-vertical-list input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #e0e0e0, #d0d0d0);
    height: 4px;
    border-radius: 4px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.7em;
    margin-top: 0;
    line-height: 1.2;
    align-self: center;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-small:hover {
    background: #333;
    transform: translateY(-1px);
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.control-group input[type="text"],
.control-group input[type="number"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: #ffffff;
    color: #000000;
    transition: border-color 0.3s;
}

.control-group input[type="text"]:focus,
.control-group input[type="number"]:focus {
    outline: none;
    border-color: #000000;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #333333;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    background: #333333;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group label span {
    color: #000000;
    font-weight: bold;
    font-size: 1.1em;
}

.controls-description {
    color: #666666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.btn-primary {
    background: #000000;
    color: white;
    border: 1px solid #000000;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1200px) {
    .table-container {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

thead {
    background: #000000;
    color: white;
}

th {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
    color: #ffffff;
    background-color: #000000;
}

td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
    color: #000000;
    background-color: transparent;
}

th:first-child, td:first-child {
    text-align: left;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* Color coding for table rows - improved contrast */
tbody tr.past-performance {
    background-color: #e8f5e9;
    border-left: 3px solid #4caf50;
}

tbody tr.company-guidance {
    background-color: #fff3e0;
    border-left: 3px solid #ff9800;
}

tbody tr.projection {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

tbody tr.past-performance:hover {
    background-color: #c8e6c9;
    transform: scale(1.01);
    transition: all 0.2s;
}

tbody tr.company-guidance:hover {
    background-color: #ffe0b2;
    transform: scale(1.01);
    transition: all 0.2s;
}

tbody tr.projection:hover {
    background-color: #bbdefb;
    transform: scale(1.01);
    transition: all 0.2s;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.legend-color.past-performance {
    background-color: #4caf50;
    border: 1px solid #388e3c;
}

.legend-color.company-guidance {
    background-color: #ff9800;
    border: 1px solid #f57c00;
}

.legend-color.projection {
    background-color: #2196f3;
    border: 1px solid #1976d2;
}

.dataset-credit {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85em;
    color: #666666;
    font-style: italic;
}

.dataset-credit a {
    color: #00A5E5;
    text-decoration: none;
    font-weight: 500;
}

.dataset-credit a:hover {
    text-decoration: underline;
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.valuation-card {
    background: #ffffff;
    color: #000000;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.valuation-card h3 {
    font-size: 0.75em;
    margin-bottom: 4px;
    color: #000000;
    opacity: 1;
    white-space: nowrap;
}

.valuation-card .metric-value {
    font-size: 1.4em;
    font-weight: 700;
    margin: 4px 0;
    color: #00A5E5 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: none;
    display: block;
}

.metric-label {
    font-size: 0.68em;
    color: #666666;
    opacity: 1;
    margin-top: 2px;
}

.charts-section {
    margin-top: 0;
    margin-bottom: 0;
}

.charts-section .trend-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 0;
    margin-left: -25px;
}


.trend-charts-section {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.trend-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 0;
    margin-left: -25px;
}

/* Extend first column charts toward left margin */
.trend-charts-grid .chart-container:nth-child(odd) {
    padding-left: 10px;
}

.chart-container {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.trend-charts-section .chart-container,
.charts-section .chart-container {
    padding: 10px;
}

.chart-container h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #000000;
}

.chart-container h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #000000;
}

.trend-charts-section .chart-container h3,
.charts-section .chart-container h3 {
    font-size: 1em;
    margin-bottom: 4px;
}

.chart-container canvas {
    max-height: 414px;
}

.trend-charts-grid .chart-container canvas,
.charts-section .chart-container canvas {
    max-height: 322px;
    width: 100% !important;
}

.charts-section .chart-container:has(#salesMarketingChart) canvas,
.charts-section .chart-container:has(#memberAcquisitionChart) canvas {
    max-height: 386px;
}

.additional-charts-section .chart-container canvas {
    max-height: 322px;
    width: 100% !important;
}

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

.current-price-display {
    background: #000000;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #000000;
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.price-label {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.price-value {
    color: white;
    font-size: 2em;
    font-weight: bold;
    white-space: nowrap;
}

.price-change {
    color: white;
    font-size: 1em;
    opacity: 0.8;
    white-space: nowrap;
}

.full-width {
    grid-column: 1 / -1;
}

.pe-assumption-note {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 5px;
}

.pe-assumption-note p {
    margin: 0;
    color: #000000;
    font-size: 1em;
    line-height: 1.6;
}

.pe-assumption-note strong {
    color: #000000;
}

.pe-ratio-label {
    background: #00A5E5;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    margin-right: 5px;
}

.scenario-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scenario-card h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.scenario-metric {
    margin: 10px 0;
    font-size: 1.1em;
    color: #000000;
}

.scenario-metric span {
    font-weight: bold;
    color: #000000;
}

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

.metric-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.metric-name {
    color: #000000;
    font-weight: 500;
}

.metric-value {
    color: #000000;
    font-weight: bold;
    font-size: 1.1em;
}

.assumptions-section {
    background: #f8f9fa;
    padding: 15px 20px 20px 20px;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.72em;
    width: 100%;
}

.assumptions-section h2 {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
    padding-bottom: 4px;
    font-size: 1.296em;
    line-height: 1.2;
    border-bottom: 1px solid #e0e0e0;
}

.assumptions-section #assumptionsContent {
    font-size: 1em;
    margin: 0;
    padding: 0;
    margin-top: 0;
}

.assumptions-section .assumptions-list {
    font-size: 1em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.assumptions-section .assumptions-list li {
    margin-bottom: 3px;
    padding-bottom: 2px;
    line-height: 1.3;
    margin-top: 0;
    padding-top: 0;
}

.assumptions-section .assumptions-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.assumption-group {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.assumption-group h4 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.assumption-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assumption-group li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #000000;
}

.assumption-group li:last-child {
    border-bottom: none;
}

@media (max-width: 1200px) {
    .header-wrapper {
        flex-direction: column;
    }

    .assumptions-right-column {
        flex: 1;
        width: 100%;
        margin-top: 10px;
    }

    .charts-and-controls-container {
        flex-direction: column;
    }

    .model-controls {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .trend-charts-grid {
        grid-template-columns: 1fr !important;
        margin-left: 0;
    }
    
    .trend-charts-grid .chart-container:nth-child(odd) {
        padding-left: 12px;
    }

    /* Force all trend-charts-grid to single column on tablet */
    .trend-charts-section .trend-charts-grid,
    .charts-section .trend-charts-grid,
    .trend-charts-section > .trend-charts-grid,
    .charts-section > .trend-charts-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        width: 100% !important;
    }

    /* Ensure chart containers take full width */
    .trend-charts-section .trend-charts-grid .chart-container,
    .charts-section .trend-charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .valuation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .valuation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px 15px 15px;
    }

    body {
        padding: 0 10px 10px 10px;
    }

    header h1 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .disclaimer-note {
        font-size: 0.78em;
        max-width: 100%;
        padding: 0 5px;
    }

    .valuation-section {
        margin-bottom: 15px;
    }

    .valuation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .valuation-card {
        padding: 12px;
    }

    .valuation-card h3 {
        font-size: 0.68em;
        margin-bottom: 8px;
    }

    .valuation-card .metric-value {
        font-size: 0.96em;
    }

    .valuation-card .metric-label {
        font-size: 0.6em;
    }

    .section-title-with-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .inline-price {
        font-size: 0.9em;
        margin-left: 0;
    }

    .charts-and-controls-container {
        flex-direction: column;
        gap: 15px;
    }

    .charts-column {
        width: 100%;
    }

    .model-controls {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: relative;
        top: 0;
        padding: 10px;
    }

    .model-controls-title {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .filter-container {
        width: 100%;
        padding: 8px;
    }

    .filter-label-header {
        font-size: 0.85em;
    }

    .year-label {
        font-size: 0.75em;
        min-width: 40px;
        padding: 2px 4px;
    }

    .slider-value {
        font-size: 0.75em;
        min-width: 45px;
    }

    .filters-vertical-list input[type="range"] {
        min-width: 80px;
        height: 4px;
    }

    .filters-vertical-list input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .filters-vertical-list input[type="range"]::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }

    /* Force all charts to single column - must be very specific */
    .charts-section {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .trend-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Force all trend-charts-grid to single column on mobile - highest specificity */
    .trend-charts-section .trend-charts-grid,
    .charts-section .trend-charts-grid,
    .trend-charts-section > .trend-charts-grid,
    .charts-section > .trend-charts-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        width: 100% !important;
    }

    /* Ensure chart containers take full width and are grid items */
    .trend-charts-section .trend-charts-grid .chart-container,
    .charts-section .trend-charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .trend-charts-section {
        margin-bottom: 15px;
    }

    .chart-container {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .chart-container h2,
    .chart-container h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }

    /* Ensure all chart containers are properly sized on mobile */
    .trend-charts-section .chart-container,
    .charts-section .chart-container,
    .trend-charts-section .trend-charts-grid .chart-container,
    .charts-section .trend-charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .chart-container canvas {
        max-height: 300px !important;
        width: 100% !important;
    }

    .trend-charts-grid .chart-container canvas,
    .charts-section .chart-container canvas,
    .trend-charts-section .trend-charts-grid .chart-container canvas,
    .charts-section .trend-charts-grid .chart-container canvas {
        max-height: 300px !important;
        width: 100% !important;
    }

    /* Ensure all specific charts are optimized */
    #scenarioChart,
    #revenueChart,
    #marketCapChart,
    #profitabilityChart,
    #memberChart,
    #epsChart,
    #salesMarketingChart,
    #memberAcquisitionChart {
        max-height: 250px !important;
        width: 100% !important;
    }

    .charts-section .chart-container:has(#salesMarketingChart) canvas,
    .charts-section .chart-container:has(#memberAcquisitionChart) canvas {
        max-height: 280px;
    }

    #salesMarketingChart,
    #memberAcquisitionChart {
        max-height: 280px !important;
    }

    .btn-small {
        font-size: 0.75em;
        padding: 6px 12px;
    }

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


    .assumptions-section {
        font-size: 0.72em;
    }

    .assumptions-list {
        font-size: 1em;
    }

    .assumptions-list li {
        padding: 8px 0;
        line-height: 1.5;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.75em;
    }

    th, td {
        padding: 8px 4px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px 10px 10px;
    }

    body {
        padding: 0 5px 5px 5px;
    }

    header h1 {
        font-size: 1.3em;
    }

    .disclaimer-note {
        font-size: 0.73em;
    }

    .valuation-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .valuation-card .metric-value {
        font-size: 0.88em;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .trend-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* Force all trend-charts-grid to single column on small mobile - highest specificity */
    .trend-charts-section .trend-charts-grid,
    .charts-section .trend-charts-grid,
    .trend-charts-section > .trend-charts-grid,
    .charts-section > .trend-charts-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Ensure chart containers take full width and are grid items */
    .trend-charts-section .trend-charts-grid .chart-container,
    .charts-section .trend-charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    /* Ensure all chart containers are properly sized on small mobile */
    .trend-charts-section .chart-container,
    .charts-section .chart-container,
    .trend-charts-section .trend-charts-grid .chart-container,
    .charts-section .trend-charts-grid .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .chart-container canvas {
        max-height: 250px !important;
        width: 100% !important;
    }

    .trend-charts-grid .chart-container canvas,
    .charts-section .chart-container canvas,
    .trend-charts-section .trend-charts-grid .chart-container canvas,
    .charts-section .trend-charts-grid .chart-container canvas {
        max-height: 250px !important;
        width: 100% !important;
    }

    /* Ensure all specific charts are optimized for small mobile */
    #scenarioChart,
    #revenueChart,
    #marketCapChart,
    #profitabilityChart,
    #memberChart,
    #epsChart,
    #salesMarketingChart,
    #memberAcquisitionChart {
        max-height: 200px !important;
        width: 100% !important;
    }

    .charts-section .chart-container:has(#salesMarketingChart) canvas,
    .charts-section .chart-container:has(#memberAcquisitionChart) canvas {
        max-height: 220px;
    }

    #salesMarketingChart,
    #memberAcquisitionChart {
        max-height: 220px !important;
    }

    .filter-label-header {
        font-size: 0.8em;
    }

    .year-label {
        font-size: 0.7em;
        min-width: 35px;
    }

    .slider-value {
        font-size: 0.7em;
        min-width: 40px;
    }

    table {
        font-size: 0.7em;
    }

    th, td {
        padding: 6px 3px;
        font-size: 0.7em;
    }
}
