@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Host Grotesk Font - Add your font files or use a font service */
/* If using local font files, uncomment and update paths:
@font-face {
    font-family: 'Host Grotesk';
    src: url('path/to/HostGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Host Grotesk';
    src: url('path/to/HostGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
*/

:root {
    /* Primary Colors - Deeper, more sophisticated purples */
    --primary-color: #6D28D9;
    --primary-dark: #5B21B6;
    --primary-deeper: #4C1D95;
    --primary-light: #8B5CF6;

    /* Accent Colors */
    --gold-accent: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8960F;

    /* Text Colors - Warmer neutrals */
    --text-color: #2D2D2D;
    --text-color-medium: #5A5A5A;
    --text-color-light: #8B8B8B;

    /* Background Colors */
    --background-color: #F8F9FB;
    --card-background-color: #ffffff;
    --border-color: #e9ecef;

    /* Gradients */
    --gradient-background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 50%, #EDE9FE 100%);
    --gradient-card: linear-gradient(135deg, #FFFBF0 0%, #FFFFFF 100%);
    --gradient-card-alt: linear-gradient(135deg, #FAF5FF 0%, #FFFFFF 100%);
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    --gradient-gold: linear-gradient(135deg, #F4D03F 0%, #D4AF37 100%);

    /* Shadow System - Layered shadows for depth */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-prominent: 0 12px 32px rgba(109, 40, 217, 0.15), 0 4px 12px rgba(109, 40, 217, 0.08);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.2), 0 4px 8px rgba(212, 175, 55, 0.1);
}

body {
    background: var(--gradient-background);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    position: relative;
}

/* Subtle texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(109, 40, 217, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.main-content {
    padding: 2rem;
    margin: auto;
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-color) !important;
}


.card {
    background: var(--gradient-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

/* Subtle texture on cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-deeper);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Optional adjustments section styling */
.card-body hr + h6 + .row {
    opacity: 0.7;
}

.card-body hr + h6 + .row .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-medium);
}

.card-body hr + h6 + .row .form-control,
.card-body hr + h6 + .row .input-group-text {
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label i {
    margin-left: 4px;
    color: var(--text-color-light);
    cursor: help;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-group-text {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-prominent);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), 0 8px 16px rgba(109, 40, 217, 0.3);
    color: white;
}

.btn-success {
    background: var(--gradient-gold);
    border: none;
    box-shadow: var(--shadow-gold);
    color: var(--primary-deeper);
    font-weight: 700;
}

.btn-success:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960F 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), 0 8px 16px rgba(212, 175, 55, 0.4);
    color: var(--primary-deeper);
}

.btn-outline-secondary {
    color: var(--text-color);
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-subtle);
}

.btn-outline-secondary:hover {
    background: var(--gradient-card);
    border-color: var(--primary-light);
    color: var(--text-color);
    box-shadow: var(--shadow-medium);
}

#results-container {
    text-align: center;
}

#results-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Results Two-Panel Box */
.results-box {
    background: #5B21B6;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-prominent);
    margin-bottom: 2rem;
}

.disclaimer-card {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-subtle);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 15px;
    text-align: left;
}

.disclaimer-header i {
    font-size: 18px;
    color: #6B7280;
}

.disclaimer-body {
    color: #4B5563;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

.disclaimer-body p {
    margin-bottom: 0.5rem;
    text-align: left;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
}

.results-box-content {
    display: grid;
    grid-template-columns: 0.40fr 0.60fr;
    gap: 2rem;
    min-height: 650px;
    background: #5B21B6;
    padding: 2rem;
}

.results-left-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
    gap: 0;
}

.results-right-panel {
    background: #FFF;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0.75rem;
    min-height: 0;
}

.recommendation-summary {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 54px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    min-height: 360px;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

.understand-results-btn {
    background: white;
    border-color: #D4AF37;
    border-width: 3px;
    color: var(--primary-deeper);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    margin-top: 0.75rem;
    text-align: left;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.understand-results-btn:hover {
    background: #FEF9E7;
    border-color: #B8960F;
    color: var(--primary-deeper);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

@media (max-width: 992px) {
    .main-content {
        padding: 2rem 0.5rem;
    }

    #results-content {
        padding: 0 0.5rem;
    }

    .results-box-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }

    /* Mobile: direct children of box-content */
    .results-box-content > .recommendation-summary {
        font-size: 32px;
        min-height: auto;
        margin-bottom: 2rem;
    }

    .results-box-content > .chart-panel {
        background: white;
        padding: 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 2rem;
    }

    .results-box-content > .understand-results-btn {
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        background: #FEF9E7;
    }

    .results-box-content > .scenarios-in-left {
        background: white;
        padding: 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 2rem;
        margin-top: 0;
    }

    .results-box-content > .scenarios-in-left .scenario-explorer-container h5 {
        color: var(--primary-deeper);
    }

    .results-box-content > .sliders-title {
        color: white;
        margin-bottom: 1rem;
    }

    .results-box-content > .sliders-in-box {
        background: white;
    }

    .recommendation-summary .preview-years-input {
        width: 35px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 2rem 0.25rem;
    }

    #results-content {
        padding: 0 0.25rem;
    }

    .results-box-content {
        padding: 1rem;
    }

    .results-box-content > .recommendation-summary {
        font-size: 28px;
        min-height: auto;
    }

    .results-box-content > .chart-panel {
        padding: 1rem;
    }

    .results-box-content > .scenarios-in-left {
        padding: 1rem;
    }

    .results-box-content > .sliders-in-box {
        padding: 1rem;
    }

    .recommendation-summary .preview-years-input {
        width: 30px;
    }

    .scenarios-in-left .scenario-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

.recommendation {
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.recommendation.sell {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.recommendation.let {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.value-emphasis {
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--gradient-card-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: left;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.result-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-color-medium);
    font-weight: 500;
}

.metric-value {
    font-weight: 700;
    color: var(--primary-deeper);
}

.key-factors-container {
    text-align: left;
    background: rgba(250, 245, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-medium);
}

@supports not (backdrop-filter: blur(10px)) {
    .key-factors-container {
        background: rgba(250, 245, 255, 0.95);
    }
}

.key-factors-container h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.key-factors-container ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.key-factors-container li {
    margin-bottom: 0.5rem;
}

.scenario-btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-start;
}

.scenario-btn {
    text-align: center;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background-color: var(--card-background-color);
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    white-space: nowrap;
}

.scenario-btn:hover {
    background-color: rgba(109, 40, 217, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.scenario-btn.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-prominent);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .scenario-btn {
        flex: 1 1 calc(50% - 0.375rem);
        text-align: center;
        min-width: 0;
    }
}

.scenario-explorer-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scenario-explorer-container h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-align: left;
}

.scenarios-panel .scenario-explorer-container h5 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sliders-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    flex: 1;
}

.slider-item {
    width: 100%;
    position: relative;
    padding-bottom: 2rem;
}

.slider-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
    display: block;
    text-align: left;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-value {
    position: absolute;
    top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-deeper);
    white-space: nowrap;
    transform: translateX(-50%);
    transition: left 0.1s ease-out;
}

.slider-item .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

/* Prettier slider styling */
.slider-item .form-range {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-item .form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 4px;
}

.slider-item .form-range::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
}

.slider-item .form-range::-moz-range-progress {
    height: 8px;
    background: var(--primary-light);
    border-radius: 4px;
}

.slider-item .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-deeper);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.slider-item .form-range::-webkit-slider-thumb:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(109, 40, 217, 0.5);
}

.slider-item .form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-deeper);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
    transition: all 0.2s ease;
    margin-top: 0;
}

.slider-item .form-range::-moz-range-thumb:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(109, 40, 217, 0.5);
}

@media (max-width: 992px) {
    .sliders-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sliders-in-box .sliders-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .sliders-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .sliders-in-box .sliders-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}


.scenarios-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.scenarios-in-left {
    margin-top: 2rem;
    width: 100%;
}

.scenarios-in-left .scenario-explorer-container {
    align-items: flex-start;
}

.scenarios-in-left .scenario-explorer-container h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
    text-align: left;
}

.scenarios-in-left .scenario-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #EDE9FE;
    border-color: #D8B4FE;
    color: var(--primary-deeper);
    border-width: 2px;
}

.scenarios-in-left .scenario-btn:hover {
    background: #DDD6FE;
    border-color: #C4B5FD;
    transform: translateY(-2px);
}

.scenarios-in-left .scenario-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--gold-accent);
    border-width: 2px;
    font-weight: 600;
    transform: none;
    box-shadow: var(--shadow-prominent);
}

.scenarios-in-box {
    margin-top: 1rem;
}

.scenarios-in-box .scenario-explorer-container {
    align-items: flex-start;
}

.scenarios-in-box .scenario-explorer-container h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-align: left;
}

.scenarios-in-box .scenario-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.sliders-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    color: var(--primary-deeper);
    text-align: left;
}

.sliders-in-box {
    margin-top: 0;
    padding: 1.5rem;
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 0.75rem;
    flex-shrink: 0;
}


.sliders-in-box .sliders-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.chart-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    flex: 1;
}

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

/* Mobile: Prevent chart expansion with explicit height constraints */
@media (max-width: 992px) {
    .results-box-content > .chart-panel {
        height: 400px;
        max-height: 400px;
        flex: 0 0 auto;
    }

    .chart-panel canvas {
        height: 400px !important;
        max-height: 400px !important;
    }
}

/* Sliders below box */
.sliders-below-box {
    background: var(--gradient-card);
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-elevated);
    margin-bottom: 2rem;
}

.sliders-below-box .scenario-explorer-container h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-deeper);
}

.sliders-in-chart {
    margin-top: 1rem;
}

.sliders-in-chart .scenario-explorer-container h5 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sliders-panel {
    background: var(--gradient-card);
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
}

#netWorthChart {
    width: 100% !important;
    height: 100% !important;
}

.results-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scenarios-panel, .sliders-panel {
        padding: 1.5rem;
    }

    .scenarios-panel .scenario-explorer-container h5 {
        font-size: 1.25rem;
    }

    .scenarios-in-left .scenario-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Add separator between explanation cards on mobile */
    .row.mt-4 .col-md-6:first-child {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 3px solid var(--border-color);
    }
}

.img-fluid.rounded {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    text-align: left;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Typography Enhancements for Visual Hierarchy */
.display-5 {
    color: var(--primary-deeper);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    color: var(--text-color-medium);
    font-weight: 500;
}

h5 {
    color: var(--primary-deeper);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Enhanced input group styling */
.input-group-text {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border-color);
    color: var(--text-color-medium);
    font-weight: 600;
}


/* Vertical sidebar layout for results view - REMOVED (no longer using sidebar) */
/* body.results-view-active .progress-steps {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 200px;
    padding: 2rem 1rem;
    margin: 0;
    gap: 0;
    min-height: 400px;
}

body.results-view-active .progress-steps::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background-color: var(--border-color);
    transform: none;
    z-index: 0;
}

body.results-view-active .step {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 0;
    width: 100%;
    background: transparent;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.results-view-active .step:hover {
    background: rgba(109, 40, 217, 0.05);
    border-radius: 0.5rem;
}

body.results-view-active .step-label {
    margin-left: 0;
    margin-top: 0;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
}

body.results-view-active .step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

body.results-view-active .col-lg-10 {
    padding-left: 260px;
}

body.results-view-active .page-header {
    position: fixed;
    left: 2rem;
    top: 2rem;
    width: 200px;
    margin-bottom: 0;
    z-index: 10;
}

body.results-view-active .page-title {
    font-size: 1.2rem;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    body.results-view-active .progress-steps {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    body.results-view-active .progress-steps::before {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }

    body.results-view-active .step {
        flex-direction: row;
        align-items: center;
        padding: 0 0.5rem;
        width: auto;
        gap: 0;
    }

    body.results-view-active .step-label {
        margin-left: 0.5rem;
        margin-top: 0;
        font-size: 0.875rem;
    }

    body.results-view-active .step-number {
        width: 40px;
        height: 40px;
    }

    body.results-view-active .col-lg-10 {
        padding-left: inherit;
    }

    body.results-view-active .page-header {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        margin-bottom: 1rem;
    }

    body.results-view-active .page-title {
        font-size: 1.5rem;
    }
} */

/* Chart container enhancement */
#netWorthChart {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
}

/* ===================================
   Pill Navigation
   =================================== */

.pill-nav {
    position: relative;
    z-index: 1000;
    background: transparent;
    padding: 1.125rem 0;
    border-bottom: none;
}

.pill-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.pill-nav-pills {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.28rem;
    gap: 0.19rem;
    box-shadow: var(--shadow-medium);
}

.pill-btn {
    padding: 0.56rem 1.5rem;
    border: none;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-color-medium);
    font-weight: 600;
    font-size: 1.00rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pill-btn:hover:not(.active) {
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary-deeper);
}

.pill-btn.active {
    /* background: var(--primary-deeper); */
    background: transparent;
    /* border-color: var(--primary-deeper); */
    border-color: var(--primary-deeper);
    /* color: white; */
    color: var(--primary-deeper);
    box-shadow: var(--shadow-medium);
    opacity: 1;
}

.pill-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pill-btn.active:disabled {
    opacity: 1;
    cursor: pointer;
}

body {
    padding-top: 0;
}

@media (max-width: 992px) {
    .pill-btn {
        padding: 0.45rem 1.125rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .pill-nav {
        padding: 0.75rem 0;
    }

    .pill-nav-container {
        padding: 0 1rem;
    }

    .pill-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    body {
        padding-top: 0;
    }
}

@media (max-width: 576px) {
    .pill-nav-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
    }

    .pill-btn {
        padding: 0.375rem 0.656rem;
        font-size: 0.7rem;
    }
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Country Selector */
.country-selector {
    position: relative;
    z-index: 1001;
}

.country-flag-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.country-flag-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-prominent);
    border-color: var(--primary-color);
}

.flag-icon {
    font-size: 28px;
    line-height: 1;
}

.country-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-prominent);
    min-width: 220px;
    display: none;
    overflow: hidden;
}

.country-dropdown.show {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.country-option:hover {
    background: #F3F4F6;
}

.country-option.active {
    background: #EDE9FE;
}

.country-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.country-check {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.hero-headline {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 90px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--primary-deeper);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subheadline {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color-medium);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.underlined-text {
    position: relative;
    display: inline;
    white-space: nowrap;
}

.underlined-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='8' viewBox='0 0 200 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4 Q5 0, 10 4 T20 4 T30 4 T40 4 T50 4 T60 4 T70 4 T80 4 T90 4 T100 4 T110 4 T120 4 T130 4 T140 4 T150 4 T160 4 T170 4 T180 4 T190 4 T200 4' stroke='%2310B981' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0 100%;
}

@media (max-width: 768px) {
    .underlined-text {
        white-space: normal;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta-btn {
    font-size: 1.125rem;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
}

.hero-guide-btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-headline {
        font-size: 56px;
    }

    .hero-subheadline {
        font-size: 28px;
    }

    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-headline {
        font-size: 42px;
    }

    .hero-subheadline {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

/* ===================================
   Welcome Page Styling (Legacy - keep for now)
   =================================== */

.welcome-card {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-content {
    text-align: center;
    padding: 1rem 0;
}

.welcome-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.welcome-subheading {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-deeper);
    margin-bottom: 1.5rem;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(109, 40, 217, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.welcome-feature-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-feature-item.fade-in:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(109, 40, 217, 0.2);
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-medium);
    opacity: 1;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
    line-height: 1.6;
    color: var(--text-color);
}

.feature-content strong {
    color: var(--primary-deeper);
    font-weight: 600;
}

.welcome-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}

.welcome-cta-hint {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0;
    font-weight: 500;
}

/* Hero Button Pulse Animation */
.hero-cta-btn {
    animation: none;
}

.hero-cta-btn.pulse-once {
    animation: gentlePulse 1.5s ease-out;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-prominent);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-elevated), 0 12px 24px rgba(109, 40, 217, 0.35);
    }
}

/* Legacy - keep for backward compatibility */
.get-started-btn {
    animation: none;
}

.get-started-btn.pulse-once {
    animation: gentlePulse 1.5s ease-out;
}

/* Quick Glimpse Inline */
.quick-glimpse-inline {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-glimpse-header {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.quick-glimpse-example {
    font-size: 1.1rem;
    color: var(--primary-deeper);
    margin-bottom: 0.5rem;
    text-align: center;
}

.quick-glimpse-example strong {
    color: var(--gold-dark);
}

.quick-glimpse-note {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
}

/* ===================================
   Preview Insight Container
   =================================== */

.preview-sticky-wrapper {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.preview-insight-container {
    background: var(--gradient-card);
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-elevated);
    text-align: center;
    transition: all 0.3s ease;
}

.preview-insight-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(109, 40, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 0.75rem;
}

.preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-prominent);
    position: relative;
    z-index: 1;
}

.preview-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.preview-value {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.preview-description {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    line-height: 1.5;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.preview-description span {
    font-weight: 600;
    color: var(--primary-deeper);
}

.preview-years-input {
    width: 50px;
    text-align: center;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
    font-weight: 600;
    color: var(--primary-deeper);
    font-size: inherit;
    padding: 2px 4px;
    transition: all 0.2s ease;
}

.preview-years-input:hover {
    border-bottom-color: var(--gold-accent);
    background: rgba(109, 40, 217, 0.05);
}

.preview-years-input:focus {
    outline: none;
    border-bottom-color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.1);
}

/* Special styling for input in results view (on purple background) */
.recommendation-summary .preview-years-input {
    color: white;
    border-bottom-color: var(--gold-accent);
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    font-size: inherit;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 4px;
}

.recommendation-summary .preview-years-input:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--gold-accent);
}

.recommendation-summary .preview-years-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-bottom-color: var(--gold-dark);
}

.preview-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    text-align: left;
}

.preview-warning i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.warning-cashflow-value {
    font-weight: 700;
    color: #d32f2f;
}

/* Animation for value updates */
@keyframes valueUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.preview-value.updating {
    animation: valueUpdate 0.4s ease;
}

/* Preview buttons */
.preview-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.preview-buttons .btn-link {
    color: var(--text-color-medium);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
    transition: color 0.2s ease;
}

.preview-buttons .btn-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.calculate-btn {
    position: relative;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
}

.calculate-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.calculate-btn:active {
    transform: translateY(0) !important;
}

.calculate-btn i {
    font-size: 1.25rem;
}

/* Ledger-style explanation lists */
#sell-explanation-list,
#rent-explanation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ledger divider */
.ledger-divider {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid var(--border-color);
    opacity: 0.5;
}

/* Ledger section styling */
.ledger-section {
    margin-bottom: 2rem;
    position: relative;
    padding-top: 0.5rem;
}

.ledger-section-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0.5rem;
    background: white;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0.75rem;
    z-index: 1;
}

.ledger-section-content {
    border: 1px solid var(--primary-color);
    border-radius: 0.375rem;
    padding: 1.5rem 1rem 1rem 1rem;
    background: transparent;
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ledger-description {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
    color: var(--text-color);
}

.ledger-value {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-deeper);
}

/* BASE row styling */
.ledger-base {
    background: #F3F4F6;
    font-weight: 500;
}

.ledger-base .ledger-value {
    font-size: 1.05rem;
    color: var(--primary-deeper);
}

/* MINUS row styling - light red */
.ledger-minus {
    background: #FEF2F2;
}

.ledger-minus .ledger-value {
    color: #DC2626;
}

/* PLUS row styling - light green */
.ledger-plus {
    background: #F0FDF4;
}

.ledger-plus .ledger-value {
    color: #16A34A;
}

/* PLUS-BOLD row styling - light green with emphasis */
.ledger-plus-bold {
    background: #F0FDF4;
    font-weight: 500;
}

.ledger-plus-bold .ledger-value {
    color: #16A34A;
    font-size: 1.05rem;
}

/* MINUS-BOLD row styling - light red with emphasis */
.ledger-minus-bold {
    background: #FEF2F2;
    font-weight: 500;
}

.ledger-minus-bold .ledger-value {
    color: #DC2626;
    font-size: 1.05rem;
}

/* INCREMENT row styling - light green with arrow */
.ledger-increment {
    background: #F0FDF4;
}

.ledger-increment .ledger-value {
    color: #16A34A;
}

/* INCREMENT-BOLD row styling - light green with arrow and emphasis */
.ledger-increment-bold {
    background: #F0FDF4;
    font-weight: 500;
}

.ledger-increment-bold .ledger-value {
    color: #16A34A;
    font-size: 1.05rem;
}

/* Notice icon and tooltip */
.ledger-row.has-notice {
    position: relative;
    cursor: help;
}

.ledger-info-icon {
    margin-left: 0.5rem;
    color: #F59E0B;
    font-size: 0.875rem;
    cursor: help;
}

.ledger-notice-tooltip {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: #FFF7ED;
    border: 2px solid #F59E0B;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #92400E;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ledger-row.has-notice:hover .ledger-notice-tooltip {
    display: block;
}

/* RESULT row styling - emphasized */
.ledger-result {
    background: #EDE9FE;
    border-top: 2px solid var(--primary-color);
    margin-top: 1rem;
    padding: 1rem;
    font-weight: 600;
}

.ledger-result .ledger-description {
    font-weight: 600;
    color: var(--primary-deeper);
}

.ledger-result .ledger-value {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .preview-sticky-wrapper {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .preview-buttons {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .preview-value {
        font-size: 2.5rem;
    }

    .preview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .calculate-btn {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }
}

/* ===================================
   Screenshot Carousel
   =================================== */

.screenshot-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0;
    margin-top: 2rem;
}

.screenshot-track {
    display: flex;
    gap: 2rem;
    animation: infiniteScroll 30s linear infinite;
    width: fit-content;
}

.screenshot-track:hover {
    animation-play-state: paused;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-360px * 3 - 6rem));
    }
}

.screenshot-card {
    flex: 0 0 auto;
    width: 360px;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #D1D5DB;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.screenshot-card:hover .screenshot-placeholder {
    box-shadow: var(--shadow-elevated);
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .screenshot-card {
        width: 360px;
    }

    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-360px * 3 - 6rem));
        }
    }
}

@media (max-width: 768px) {
    .screenshot-card {
        width: 280px;
    }

    .screenshot-track {
        gap: 1.5rem;
    }

    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 3 - 4.5rem));
        }
    }
}

/* ===================================
   Legal Footer
   =================================== */

.legal-footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links span {
    color: var(--border-color);
}

.legal-footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .legal-footer {
        padding: 1.5rem 0;
    }

    .footer-links {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }
}

/* ===================================
   Legal Pages (Terms of Service & Privacy Policy)
   =================================== */

body:has(.legal-page) {
    margin: 0;
    padding: 0;
}

.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0 4rem 0;
}

.legal-header {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #5a1fb8;
    transform: translateX(-4px);
}

.legal-header h1 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
    line-height: 1.8;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

.legal-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: #5a1fb8;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 1rem 0 2rem 0;
    }

    .legal-header, .legal-content {
        padding: 1.5rem;
    }

    .legal-content {
        font-size: 0.95rem;
    }
}