:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #38bdf8;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --aqi-good: #10b981;
    --aqi-moderate: #f59e0b;
    --aqi-unhealthy-sensitive: #ef4444;
    --aqi-unhealthy: #b91c1c;
    --aqi-very-unhealthy: #7c3aed;
    --aqi-hazardous: #4c1d95;
}

body.light-theme {
    --bg-color: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --accent-blue: #0284c7;
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

.text-aqi-good {
    color: var(--aqi-good) !important;
}

.text-aqi-moderate {
    color: var(--aqi-moderate) !important;
}

.text-aqi-unhealthy-sensitive {
    color: var(--aqi-unhealthy-sensitive) !important;
}

.text-aqi-unhealthy {
    color: var(--aqi-unhealthy) !important;
}

.text-aqi-very-unhealthy {
    color: var(--aqi-very-unhealthy) !important;
}

.text-aqi-hazardous {
    color: var(--aqi-hazardous) !important;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    transition: background 1s ease;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.1), transparent);
    z-index: -1;
    transition: background 0.5s ease;
}

body.light-theme .background-overlay {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.05), transparent);
}

.dashboard-container {
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

header.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.logo-wrapper {
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.theme-toggle-container {
    position: absolute;
    top: -2.5rem;
    right: 0;
}

.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.light-theme .sun-icon {
    display: block;
}

body.light-theme .moon-icon {
    display: none;
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.city-name {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 0.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.brand-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    /* Optical alignment */
    width: 6.5rem;
    /* Constrain width to slightly larger than logo 6rem */
}

.brand-logo {
    width: 100%;
    /* Fill container width */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
    margin-bottom: 0.1rem;
}

.brand-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    /* Reduced size */
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-align: center;
    /* Center multi-line text */
    line-height: 1.2;
    width: 100%;
    opacity: 0.9;
    white-space: normal;
    /* Allow wrapping */
}

.brand-text-container {
    display: flex;
    align-items: baseline;
}

.brand-air {
    color: var(--accent-blue);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.brand-met {
    color: #fff;
    font-weight: 300;
}

.brand-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.1rem;
    font-weight: 200;
}

.brand-city {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .brand-met {
    color: var(--text-primary);
    font-weight: 500;
}

body.light-theme .brand-sep {
    color: rgba(0, 0, 0, 0.1);
}

body.light-theme .brand-text-container {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.logo-underline {
    height: 4px;
    width: 200px;
    /* Increased to balance the wider header with logo */
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    margin: 0.8rem auto;
    border-radius: 2px;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.disclaimer-alpha {
    font-size: 0.85rem;
    color: var(--aqi-unhealthy-sensitive);
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.last-update {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-header .icon {
    font-size: 1.5rem;
}

/* AQI Specific */
.aqi-value-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.aqi-value-container .value {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.aqi-status-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.status-label {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-sep {
    opacity: 0.4;
}

.aqi-link-mini {
    font-size: 0.75rem;
    opacity: 0.6;
    color: inherit;
    text-decoration: underline;
    font-weight: 400;
    transition: opacity 0.2s;
}

.aqi-link-mini:hover {
    opacity: 1;
}

.status-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.aqi-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.5s ease;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.recommendation-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border-left: 4px solid var(--accent-blue);
    text-align: left;
}

.rec-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

#recommendation-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Weather Specific */
.temp-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.temp-main {
    display: flex;
    align-items: baseline;
}

.temp-container .value {
    font-size: 4rem;
    font-weight: 700;
}

.temp-container .unit {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.temp-apparent {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: -0.5rem;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail .stat {
    font-size: 1.1rem;
    font-weight: 600;
}

.wind-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compass-mini {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.compass-mini .arrow {
    font-size: 12px;
    color: var(--accent-blue);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

/* Pollutants */
.pollutant-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pollutant-item {
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.emitters-emojis {
    font-size: 1.5rem;
    letter-spacing: 4px;
    opacity: 1;
    text-align: right;
    transition: opacity 0.3s ease;
}

.pollutant-item .label {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.emitters-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.emitters-legend span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.pollutant-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pollutant-item .limit {
    font-size: 0.7rem;
    color: var(--accent-blue);
    opacity: 0.8;
    margin-top: 2px;
}

.pollutant-item .stat small {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

.description.mini {
    font-size: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.thresholds .stat {
    color: var(--accent-blue);
}

.thresholds small {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* Mobility Section */
.mobility-section {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.mobility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.tcl-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem;
}

.tcl-category-header {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin: 1.2rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0.8;
}

.tcl-category-header:first-child {
    margin-top: 0;
}


.tcl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tcl-item.clickable {
    cursor: pointer;
}

.tcl-item.clickable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tcl-line {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
}

.card-footer-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.action-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.action-link-mini:hover {
    opacity: 1;
    background: rgba(56, 189, 248, 0.2);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.action-link-mini .arrow-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Velov Detailed Styles */
.velov-total-mini {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.velov-details-grid {
    display: grid;
    gap: 0.75rem;
}

.velov-station-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
}

.station-name-mini {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.station-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-group .label-tiny {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-group .val-small {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Counters Styles */
.counters-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.counter-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.bike-animation-container {
    width: 100%;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.bus-animation-container {
    width: 100%;
    margin: 0.2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.green-filter {
    filter: hue-rotate(70deg) saturate(1.5);
}

.status-ok {
    color: #10b981;
    font-weight: 600;
}

.status-warn {
    color: #ef4444;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-info {
    color: #f59e0b;
    font-weight: 600;
}

/* Autopartage (Citiz & Leo&Go) Styles */
.service-header-mini {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.service-header-mini h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--accent-blue);
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.citiz-global-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
    border-top: 3px solid var(--accent-blue);
    transition: border-color 0.3s ease;
}

.citiz-global-status .status-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.citiz-global-status .status-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.citiz-details-grid,
.leogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

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

.citiz-item,
.leogo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.citiz-item:hover,
.leogo-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.leogo-item {
    border-top: 3px solid #ff9800;
}

.stat {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.citiz-item .stat {
    color: var(--accent-blue);
}

.leogo-item .stat {
    color: #ff9800;
}

.label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.mobility-actions {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
}

.action-btn-mini {
    flex: 1;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn-mini.citiz {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-btn-mini.leogo {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.action-btn-mini:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.status-rain-none {
    color: #10b981;
}

.status-rain-expected {
    color: #f59e0b;
}

.status-rain-now {
    color: #ef4444;
}

/* Eco Card specific */
.eco-card {
    border-top: 4px solid #10b981;
}

.eco-container {
    padding: 1rem 0;
    text-align: center;
}

.eco-main-val {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.eco-main-val .value {
    font-size: 3rem;
    font-weight: 700;
    color: #10b981;
}

.eco-main-val .unit {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.eco-equivalence {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.eco-equivalence .icon {
    margin-right: 0.5rem;
}

.version-info {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1000;
}

.attribution {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.attribution a {
    color: var(--accent-blue);
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.attribution .creator {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.attribution .creator a {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dynamic Classes */
.bg-good {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-moderate {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-unhealthy {
    background-color: rgba(239, 68, 68, 0.1);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & small desktop */
@media (max-width: 768px) {
    .dashboard-container {
        width: 95%;
        padding: 1rem;
    }

    header.hero {
        margin-bottom: 2rem;
    }

    .city-name {
        font-size: 2.8rem;
        gap: 0.75rem;
        flex-direction: column;
        letter-spacing: -1px;
    }

    .brand-logo-container {
        width: 4.5rem;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .glass {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .card-header {
        margin-bottom: 1rem;
    }

    .aqi-value-container .value {
        font-size: 3.5rem;
    }

    .emitters-emojis {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .pollutant-item {
        grid-template-columns: 60px 65px 1fr;
        gap: 0.5rem;
    }

    .pollutant-item .label {
        font-size: 1.2rem;
    }

    .sources-section {
        padding: 1.25rem;
    }

    .recommendation-box {
        padding: 0.75rem;
    }

    .counter-item {
        padding: 0.75rem;
    }

    .health-main-msg {
        padding: 0.75rem;
    }

    .simulator-controls {
        padding: 1rem;
    }

    .transport-item {
        padding: 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .thresholds-table th,
    .thresholds-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .thresholds-table th {
        font-size: 0.7rem;
    }

    .sources-table {
        min-width: unset;
        font-size: 0.8rem;
    }

    .sources-table th,
    .sources-table td {
        padding: 0.75rem 0.5rem;
    }

    .eco-main-val .value {
        font-size: 2.2rem;
    }

    .mobility-section,
    .thresholds-section,
    .forecast-section {
        margin-top: 2rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .dashboard-container {
        width: 100%;
        padding: 0.6rem;
    }

    header.hero {
        margin-bottom: 1.5rem;
    }

    .city-name {
        font-size: 2.2rem;
        gap: 0.4rem;
    }

    .brand-logo-container {
        width: 3.5rem;
    }

    .brand-subtext {
        font-size: 0.55rem;
    }

    .tagline {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .disclaimer-alpha {
        font-size: 0.75rem;
    }

    .glass {
        padding: 1rem;
        border-radius: 14px;
    }

    .card-header h2 {
        font-size: 1.05rem;
    }

    .aqi-value-container .value {
        font-size: 3rem;
    }

    .status-label {
        font-size: 1rem;
    }

    .emitters-emojis {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .pollutant-item {
        grid-template-columns: 50px 55px 1fr;
        gap: 0.4rem;
    }

    .pollutant-item .label {
        font-size: 1rem;
    }

    .grid-container,
    .mobility-grid {
        gap: 1rem;
    }

    .temp-container .value {
        font-size: 3rem;
    }

    .forecast-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .forecast-weather {
        text-align: left;
        width: 100%;
    }

    .sources-section {
        padding: 1rem;
        border-radius: 16px;
    }

    .logo-underline {
        width: 120px;
    }

    .pollen-index-circle {
        width: 80px;
        height: 80px;
    }

    .pollen-index-circle .value {
        font-size: 2rem;
    }

    .uv-value-container .value {
        font-size: 2.5rem;
    }

    .eco-main-val .value {
        font-size: 2rem;
    }

    .mode-stats {
        gap: 0.5rem;
    }
}

/* Forecast Section */
.forecast-section {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.day-card .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.day-card .day-label {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.day-card .aqi-mini {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.day-card .status-mini {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* History Grid Inside Card */
.history-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.day-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
    transition: background 0.3s ease;
}

.day-card-mini:hover {
    background: rgba(255, 255, 255, 0.06);
}

.day-card-mini .date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.day-card-mini .day-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.day-card-mini .aqi-mini {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.day-card-mini .status-mini {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .history-grid-inner {
        grid-template-columns: 1fr;
    }
}

.loading-shimmer {
    height: 150px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* History Chart Styles */
.history-chart-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.history-chart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Forecast Card specific styles */
.forecast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forecast-main .value.small {
    font-size: 2.2rem;
    font-weight: 700;
}

.forecast-status {
    display: flex;
    flex-direction: column;
}

.forecast-status .status-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.forecast-status .label-mini {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.forecast-weather {
    text-align: right;
}

.forecast-temp {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.forecast-temp .unit {
    font-size: 0.9rem;
    margin-left: 2px;
}

/* Thresholds Section Styles */
.thresholds-section {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.threshold-table-card {
    padding: 1.5rem;
    width: 100%;
    overflow-x: auto;
}

.thresholds-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.thresholds-table th,
.thresholds-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thresholds-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thresholds-table td.label {
    font-weight: 700;
    color: var(--text-primary);
}

.thresholds-table td small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reg-val {
    color: #94a3b8;
}

.who-val {
    color: var(--accent-blue);
    font-weight: 600;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.mini-grid .detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 6px;
}

.mini-grid .detail .label {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.mini-grid .detail .stat {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sources Section */
.sources-section {
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interpellation-cta {
    text-align: center;
    margin: 1.5rem 0 3rem 0;
    padding: 2.5rem;
    background: rgba(56, 189, 248, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.cta-button.primary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    margin-bottom: 1.5rem;
    border: none;
}

.cta-button.primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

.cta-subtext {
    font-size: 1rem;
    opacity: 0.9;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: left;
}

.sources-table th {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.sources-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.sources-table tr:last-child td {
    border-bottom: none;
}

.sources-table td a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.sources-table td a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* sources-table responsive handled in main media query block above */

/* Pollen Styles */
.pollen-main {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pollen-index-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.5s ease;
}

.pollen-index-circle .value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.pollen-index-circle .label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 2px;
}

.pollen-forecast-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    margin-left: -15px;
    z-index: 1;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.pollen-forecast-badge .label {
    font-size: 0.5rem;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 600;
}

.pollen-forecast-badge .val {
    font-size: 1.2rem;
    font-weight: 700;
}

.pollen-taxons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pollen-taxon-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.taxon-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.taxon-name {
    font-weight: 500;
}

.taxon-val {
    opacity: 0.8;
}

.taxon-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.taxon-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease;
}

.loading-shimmer-mini {
    height: 20px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Split Card Container */
.card-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.mini-header {
    margin-bottom: 1rem !important;
}

.mini-header h2 {
    font-size: 1.1rem !important;
}

/* UV Section Styling */
.uv-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uv-value-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.uv-value-container .value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.uv-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label-mini {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.uv-meter-mini {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.uv-recommendation {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-blue);
}

.uv-section {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-bottom {
    margin-top: 1.5rem !important;
}

/* UV Specific Colors */
.uv-low {
    color: #10b981;
}

.uv-moderate {
    color: #f59e0b;
}

.uv-high {
    color: #f97316;
}

.uv-very-high {
    color: #ef4444;
}

.uv-extreme {
    color: #7c3aed;
}

@media (min-width: 850px) {
    .card-split-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .uv-section {
        padding-top: 0;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 1.5rem;
    }
}

/* Impact Simulator Styles */
.impact-card {
    border-top: 4px solid var(--accent-blue);
}

.simulator-controls {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.simulator-controls label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    display: block;
}

.simulator-controls label span {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.distance-summary {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.distance-summary span {
    color: var(--text-primary);
}

.transport-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transport-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.transport-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mode-header h3 {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    margin: 0;
    text-align: left;
}

.mode-icon {
    font-size: 1.25rem;
}

.eco-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    transition: background-color 0.3s ease;
}

.mode-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-align: left;
}

.stat-box.primary {
    grid-column: 1 / -1;
    align-items: center;
    padding: 0.75rem;
    text-align: center;
}

.stat-box .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.stat-box .val {
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-box .range {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 2px;
}

.savings-highlight {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #10b981;
}

.savings-highlight span {
    font-weight: 800;
}

.eco-A {
    background-color: #00a650 !important;
}

.eco-B {
    background-color: #97c02b !important;
}

.eco-C {
    background-color: #f49c00 !important;
}

.eco-D {
    background-color: #e67e22 !important;
}

.eco-E {
    background-color: #ed2b2d !important;
}

/* Health Benefits Section */
.health-card {
    border-top: 4px solid #10b981;
}

.health-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.health-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.health-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.health-mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.health-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.4rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.health-toggle-btn.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.health-main-msg {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    border-left: 4px solid #10b981;
    color: var(--text-primary);
}

.health-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.health-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.health-stat-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.health-stat-card .val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #10b981;
}

.health-risk-box {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(56, 189, 248, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.health-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.health-tip-box {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.9;
    text-align: center;
    padding: 0.25rem;
}