/* ============================================================
   AQI Checker Vietnam – IQAir-style Frontend Styles
   ✅ Cleaned: removed dead-code selectors, merged duplicate
      responsive blocks, added heading margin reset (A7/A8)
   ============================================================ */

:root {
    --aqi-bg: #0b0e18;
    --aqi-card: #141825;
    --aqi-card-hover: #1a1f30;
    --aqi-border: rgba(255,255,255,0.08);
    --aqi-text: #e8eaed;
    --aqi-muted: #8b8fa3;
    --aqi-accent: #60a5fa;
    --aqi-radius: 16px;
    --aqi-radius-sm: 10px;
    --aqi-c-good: #22c55e;
    --aqi-c-moderate: #eab308;
    --aqi-c-usg: #f97316;
    --aqi-c-unhealthy: #ef4444;
    --aqi-c-very-unhealthy: #a855f7;
    --aqi-c-hazard: #6b21a8;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---- Wrapper ---- */
.aqi-checker-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--aqi-text);
    background: var(--aqi-bg);
    line-height: 1.5;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 0;
}
.aqi-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Search Bar ---- */
.aqi-search-bar {
    background: var(--aqi-card);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius);
    padding: 16px 20px;
}
.aqi-search-inner {
    display: flex;
    gap: 10px;
    align-items: stretch;
    position: relative;
}
.aqi-input {
    flex: 1;
    min-width: 0;
    height: 44px !important;
    padding: 0 16px !important;
    border: 1px solid var(--aqi-border) !important;
    border-radius: var(--aqi-radius-sm);
    background: rgba(9, 12, 22, 0.55) !important;
    color: #fff !important;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    margin: 0;
}
.aqi-input:focus { border-color: var(--aqi-accent); }
.aqi-input::placeholder { color: rgba(255, 255, 255, 0.4);}

.button-group { display: flex; flex-shrink: 0; }

.aqi-btn {
    border: none;
    border-radius: var(--aqi-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 44px;
}
.aqi-btn-primary { background: linear-gradient(135deg, rgb(195, 0, 0), rgb(255, 2, 2) 55%, rgb(158, 2, 2)); color: #fff; }
.aqi-btn-primary:hover { transform: translateY(-1px); }
.aqi-btn-secondary { background: linear-gradient(135deg, rgb(0, 76, 195), rgb(8, 81, 198) 55%, rgb(2, 5, 158)); color: #fff; }
.aqi-btn-secondary:hover { transform: translateY(-1px); }
.aqi-btn-outline { background: transparent; border: 1px solid var(--aqi-border); color: var(--aqi-muted); }
.aqi-btn-outline:hover { border-color: var(--aqi-accent); color: var(--aqi-text); }
.aqi-btn-sm { padding: 8px 16px; font-size: 12px; }

/* Search suggestions */
.aqi-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aqi-card);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius-sm);
    margin-top: 4px;
    z-index: 100;
    display: none;
    min-height: 200px;
    overflow-y: auto;
}
.aqi-search-suggestions .suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.aqi-search-suggestions .suggestion-item:hover { background: var(--aqi-card-hover); }

/* Chips */
.aqi-quickbar { margin-top: 12px; }
.aqi-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--aqi-muted); margin-bottom: 8px; }
.aqi-chips { display: grid; flex-wrap: wrap; gap: 6px; }
.aqi-chips.aqi-collapsed { max-height: 100%; overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.aqi-chips .chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    color: var(--aqi-muted);
    border: 1px solid var(--aqi-border);
    transition: all 0.2s;
    white-space: nowrap;
}
.chip.active {
    background: linear-gradient(135deg, rgb(0, 76, 195), rgb(8, 81, 198) 55%, rgb(2, 5, 158));
    color: white;
}
.aqi-chips .chip:hover { background: rgba(255,255,255,0.12); color: var(--aqi-text); }
.aqi-view-more-btn {
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--aqi-accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Notices & Loading ---- */
.aqi-notice { padding: 12px 16px; border-radius: var(--aqi-radius-sm); font-size: 13px; display: none; }
.aqi-error { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.aqi-success { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.aqi-loading { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 40px; }
.aqi-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--aqi-border);
    border-top-color: var(--aqi-accent);
    border-radius: 50%;
    animation: aqi-spin 0.8s linear infinite;
}
@keyframes aqi-spin { to { transform: rotate(360deg); } }

/* ---- Breadcrumb ---- */
.aqi-breadcrumb {
    font-size: 13px;
    color: var(--aqi-muted);
}
.aqi-breadcrumb a { color: var(--aqi-accent); text-decoration: none; }
.aqi-breadcrumb a:hover { text-decoration: underline; }

/* ---- Section Box ---- */
.aqi-section-box {
    background: var(--aqi-card);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius);
    padding: 24px;
}
.aqi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.aqi-section-title { font-size: 16px; font-weight: 800; color: #fff; margin: 0; padding: 0; }
.aqi-section-subtitle { font-size: 12px; color: var(--aqi-muted); font-style: italic; }
.aqi-section-intro {
    font-size: 13px;
    color: #e6e9f4;
    margin: -8px 0 14px 0;
    line-height: 1.5;
}

/* ============================================================
   HERO – IQAir card layout (dark theme)
   ============================================================ */
.aqi-hero-section { padding: 0; }

.aqi-hero-row {
    display: grid;
    grid-template-columns: 377px 1fr;
    gap: 56px;
    align-items: start;
}

/* ---- LEFT: Card column ---- */
.aqi-hero-card-col {
    display: flex;
    flex-direction: column;
}

/* Card container */
.aqi-hero-card {
    border-radius: 20px;
    overflow: hidden;
    transition: background 0.5s, box-shadow 0.5s;
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 100%);
    box-shadow:
        0 14px 44px -8px rgba(34, 197, 94, 0.4),
        0 4px 14px -2px rgba(34, 197, 94, 0.18);
}

/* ---- Card Top Row ---- */
.aqi-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    gap: 12px;
}

.aqi-card-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}
.aqi-card-badge-number {
    font-size: 70px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}
.aqi-card-badge-sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 2px;
}

.aqi-card-level-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.aqi-card-level {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.aqi-card-emoji {
    font-size: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aqi-card-emoji svg {
    width: 56px;
    height: 56px;
    display: block;
}

/* ---- Card Bottom Row: Dominant ---- */
.aqi-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
    gap: 8px;
}
.aqi-card-dom-label { opacity: 0.85; }
.aqi-card-dom-label strong { font-weight: 800; }
.aqi-card-dom-val { font-weight: 700; opacity: 0.9; }

/* ============================================================
   Card color themes via data-level (set by JS/PHP SSR)
   ============================================================ */
.aqi-hero-card[data-level="1"] {
    background: linear-gradient(160deg, #4eff5e 0%, #22cc00 100%);
    color: #052e16;
    box-shadow: 0 14px 44px 20px rgba(34,197,94,0.4), 0 4px 14px -2px rgba(34,197,94,0.18);
}
.aqi-hero-card[data-level="2"] {
    background: linear-gradient(160deg, #fde68a 0%, #facc15 100%);
    color: #422006;
    box-shadow: 0 14px 44px 20px rgba(250,204,21,0.4), 0 4px 14px -2px rgba(250,204,21,0.18);
}
.aqi-hero-card[data-level="3"] {
    background: linear-gradient(160deg, #fdba74 0%, #f97316 100%);
    color: #431407;
    box-shadow: 0 14px 44px 20px rgba(249,115,22,0.4), 0 4px 14px -2px rgba(249,115,22,0.18);
}
.aqi-hero-card[data-level="4"] {
    background: linear-gradient(160deg, #fca5a5 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 14px 44px 20px rgba(239,68,68,0.4), 0 4px 14px -2px rgba(239,68,68,0.18);
}
.aqi-hero-card[data-level="5"] {
    background: linear-gradient(160deg, #d8b4fe 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 14px 44px 20px rgba(168,85,247,0.4), 0 4px 14px -2px rgba(168,85,247,0.18);
}
.aqi-hero-card[data-level="6"] {
    background: linear-gradient(160deg, #c2657a 0%, #7e1d3e 100%);
    color: #fff;
    box-shadow: 0 14px 44px -8px rgba(126,29,62,0.45), 0 4px 14px -2px rgba(126,29,62,0.25);
}

/* ---- RIGHT: Info ---- */
.aqi-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}
/* ✅ FIX A7/A8: margin/padding reset cho <h2> hero title */
.aqi-hero-title {
    text-align:left;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}
.aqi-hero-desc {
    font-size: 14px;
    color: #dadada;
    margin: 0;
    line-height: 1.6;
}
.aqi-hero-source { font-size: 12px; color: #cacaca; }
.aqi-hero-source a { color: var(--aqi-accent); text-decoration: none; }
.aqi-hero-source a:hover { text-decoration: underline; }

/* ============================================================
   HOURLY FORECAST – Horizontal scroll
   ============================================================ */
.aqi-hourly-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(96,165,250,0.3) transparent;
}
.aqi-hourly-scroll::-webkit-scrollbar { height: 5px; }
.aqi-hourly-scroll::-webkit-scrollbar-track { background: transparent; }
.aqi-hourly-scroll::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.3); border-radius: 3px; }

.aqi-hourly-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}
.aqi-hourly-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 56px;
    min-height: 131px;
    flex-shrink: 0;
    border-left: dashed 1px #ffffff6e;
    padding-left: 8px;
}
.aqi-hourly-col-first {
    border-left: 2px solid rgba(96,165,250,0.3);
    padding-left: 8px;
    margin-left: 4px;
}
.aqi-hourly-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.2s;
}
.aqi-hourly-pm25 { font-size: 10px; color: white; white-space: nowrap; }
.aqi-hourly-time { font-size: 11px; color: white; font-weight: 600; }
.aqi-hourly-day-label {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(96,165,250,0.25);
    padding: 2px 10px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
}

/* ============================================================
   TWO-COLUMN: Daily + Pollutants
   ============================================================ */
.aqi-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Daily rows */
.aqi-daily-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aqi-daily-row {
    display: grid;
    grid-template-columns: 70px 48px 90px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--aqi-radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.aqi-daily-row:hover { background: rgba(255,255,255,0.06); }
.aqi-daily-day { font-size: 13px; font-weight: 700; color: #ccc; }
.aqi-daily-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}
.aqi-daily-pm25 { font-size: 12px; color: var(--aqi-muted); }
.aqi-daily-label { font-size: 12px; font-weight: 600; color: #ffffff; text-align: right; }

/* Pollutant Cards – 2x3 grid */
.aqi-pollutant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.aqi-poll-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius-sm);
    padding: 14px;
    transition: background 0.15s;
}
.aqi-poll-card:hover { background: rgba(255,255,255,0.07); }
.aqi-poll-card-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.aqi-poll-name { font-size: 14px; font-weight: 800; color: #fff; }
.aqi-poll-sub { font-size: 11px; color: var(--aqi-muted); }
.aqi-poll-card-body { display: flex; align-items: center; gap: 8px; }
.aqi-poll-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.aqi-poll-val { font-size: 14px; font-weight: 700; color: var(--aqi-text); }

/* ============================================================
   WHO PM2.5 Compare Box
   ============================================================ */
.aqi-who-box { padding: 20px 24px; background: rgba(239, 68, 68, .08);border: 1px solid rgba(239, 68, 68, .2);}
.aqi-who-content { display: flex; align-items: flex-start; gap: 14px; }
.aqi-who-icon { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.aqi-who-text { font-size: 14px; color: var(--aqi-text); line-height: 1.7; }
.aqi-who-text strong { color: #fff; font-weight: 800; }
.aqi-who-text a { color: var(--aqi-accent); text-decoration: none; }
.aqi-who-text a:hover { text-decoration: underline; }
.aqi-right-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 2 cột bằng nhau */
.aqi-two-col {
    align-items: stretch;
}
.aqi-two-col > .aqi-section-box,
.aqi-two-col > .aqi-right-stack {
    min-height: 0;
}
/* ✅ FIX: 2 cột bằng nhau */
.aqi-two-col {
    align-items: stretch;
}

.aqi-two-col > .aqi-section-box,
.aqi-two-col > .aqi-right-stack {
    display: flex;
    flex-direction: column;
}

/* Pollutant box giãn lấp đầy */
.aqi-right-stack > .aqi-section-box:first-child {
    flex: 1;
}

/* Pollutant grid giãn đều */
.aqi-right-stack > .aqi-section-box:first-child .aqi-pollutant-grid {
    flex: 1;
    align-content: stretch;
}

.aqi-right-stack > .aqi-section-box:first-child .aqi-poll-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ✅ FIX: Pollutant cards giãn đều theo chiều cao */
.aqi-right-stack > .aqi-section-box:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aqi-right-stack > .aqi-section-box:first-child .aqi-pollutant-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 12px;
}


/* ============================================================
   HEALTH SECTION
   ============================================================ */
.aqi-health-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.aqi-health-icon { font-size: 48px; line-height: 1; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.aqi-health-icon svg { width: 48px; height: 48px; display: block; }
.aqi-health-text { flex: 1; }
/* ✅ FIX A7/A8: margin/padding reset cho <div> health level */
.aqi-health-level { font-size: 20px; font-weight: 900; margin: 0 0 4px 0; padding: 0; }
.aqi-health-advice { font-size: 14px; color: #e6e9f4; line-height: 1.6; }
.aqi-health-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.aqi-health-tip-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius-sm);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--aqi-text);
    line-height: 1.5;
}
.aqi-health-tip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.aqi-hchart-empty {
    padding: 32px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* ============================================================
   FOOTER BAR
   ============================================================ */
.aqi-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 11px;
    color: var(--aqi-muted);
    border-top: 1px solid var(--aqi-border);
    flex-wrap: wrap;
    gap: 8px;
}
.aqi-footer-bar a { color: var(--aqi-accent); text-decoration: none; }
.aqi-footer-left { display: flex; align-items: center; gap: 6px; }

/* Status dot */
.aqi-status { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.aqi-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--aqi-c-good);
    animation: aqi-pulse 2s infinite;
}
@keyframes aqi-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
[data-state="error"] .aqi-dot { background: var(--aqi-c-unhealthy); }

/* ============================================================
   RESPONSIVE – ✅ Merged: 3 breakpoints only, no dead selectors
   ============================================================ */
@media (max-width: 820px) {
    .aqi-hero-row { grid-template-columns: 1fr; gap: 20px; }
    .aqi-hero-card-col { max-width: 320px; }
    .aqi-hero-card { max-width: 360px; }
    .aqi-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .button-group { gap: 14px; }
    .aqi-input { padding: 14px !important; }
    .aqi-checker-wrapper { padding: 12px; }
    .aqi-search-inner { flex-direction: column; }
    .button-group { width: 100%; }
    .button-group .aqi-btn { flex: 1; margin: 0; }
    .aqi-hero-row { gap: 16px; }
    .aqi-hero-card-col { max-width: 100%; }
    .aqi-hero-card { max-width: 100%; }
    .aqi-card-top { padding: 16px 18px 12px; }
    .aqi-card-badge-number { font-size: 26px; }
    .aqi-card-level { font-size: 16px; }
    .aqi-card-emoji { font-size: 26px; }
    .aqi-card-emoji svg { width: 40px; height: 40px; }
    .aqi-card-bottom { padding: 10px 18px; font-size: 12px; }
    .aqi-hero-title { font-size: 18px; }
    .aqi-section-box { padding: 16px; }
    .aqi-daily-row { grid-template-columns: 60px 40px 80px 1fr; gap: 8px; }
    .aqi-hourly-badge { width: 36px; height: 36px; font-size: 13px; }
    .aqi-health-tips { grid-template-columns: 1fr; }
    .aqi-container{ padding: 0;}
}

@media (max-width: 380px) {
    .aqi-card-badge-number { font-size: 22px; }
    .aqi-card-level { font-size: 14px; }
    .aqi-hero-title { font-size: 16px; }
    .aqi-daily-row { grid-template-columns: 50px 36px 1fr; }
    .aqi-daily-label { display: none; }
}
/* ============================================================
   SECTION 5: Auto Description + Cigarette + Compare
   ============================================================ */
.aqi-auto-desc-text {
    font-size: 15px;
    color: #e6e9f4;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

/* Cigarette box */
.aqi-cigarette-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--aqi-radius-sm);
    padding: 18px;
    margin-bottom: 16px;
}
.aqi-cigarette-icon { font-size: 32px; flex-shrink: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.aqi-cigarette-icon svg { width: 32px; height: 32px; display: block; }
.aqi-cigarette-text { font-size: 14px; color: var(--aqi-text); line-height: 1.7; }
.aqi-cigarette-text strong { color: #fca5a5; font-weight: 800; }
.aqi-cigarette-source { display: block; margin-top: 6px; font-size: 11px; color: var(--aqi-muted); }
.aqi-cigarette-source a { color: var(--aqi-accent); text-decoration: none; }

/* Compare box */
.aqi-compare-box { margin-top: 4px; }
.aqi-compare-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--aqi-radius-sm);
    border: 1px solid var(--aqi-border);
}
.aqi-compare-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.aqi-compare-label { font-size: 12px; color: var(--aqi-muted); font-weight: 700; text-transform: uppercase; }
.aqi-compare-badge {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900;
}
.aqi-compare-pm25 { font-size: 12px; color: var(--aqi-muted); }
.aqi-compare-arrow { font-size: 18px; font-weight: 900; }

/* ============================================================
   SECTION 6: Airdog Recommendation
   ============================================================ */
.aqi-airdog-box { overflow: hidden; }
.aqi-airdog-content { display: flex; align-items: flex-start; gap: 16px; }
.aqi-airdog-icon { font-size: 40px; flex-shrink: 0; }
.aqi-airdog-title { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.aqi-airdog-desc { font-size: 14px; color: #e6e9f4; line-height: 1.7; margin: 0 0 12px 0; }
.aqi-airdog-cta {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--aqi-radius-sm);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}
.aqi-airdog-low { border-left: 4px solid #22c55e; }
.aqi-airdog-low .aqi-airdog-cta { background: #22c55e; color: #052e16; }
.aqi-airdog-medium { border-left: 4px solid #eab308; }
.aqi-airdog-medium .aqi-airdog-cta { background: #eab308; color: #422006; }
.aqi-airdog-high { border-left: 4px solid #ef4444; }
.aqi-airdog-high .aqi-airdog-cta { background: #ef4444; color: #fff; }
.aqi-airdog-critical { border-left: 4px solid #7e0023; background: rgba(126,0,35,0.1); }
.aqi-airdog-critical .aqi-airdog-cta { background: #7e0023; color: #fff; }
.aqi-airdog-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ============================================================
   SECTION 7: Ranking
   ============================================================ */
.aqi-ranking-grid { display: flex; flex-direction: column; gap: 6px; }
.aqi-ranking-row {
    display: grid;
    grid-template-columns: 36px 1fr 50px 100px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--aqi-radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.aqi-ranking-row:hover { background: rgba(255,255,255,0.06); }
.aqi-ranking-current { border-color: var(--aqi-accent); background: rgba(96,165,250,0.08); }
.aqi-ranking-num { font-size: 14px; font-weight: 900; color: var(--aqi-muted); text-align: center; }
.aqi-ranking-city { font-size: 14px; color: #fff; }
.aqi-ranking-city a { color: var(--aqi-accent); text-decoration: none; }
.aqi-ranking-city a:hover { text-decoration: underline; }
.aqi-ranking-badge {
    width: 44px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
}
.aqi-ranking-pm25 { font-size: 12px; color: #ffffff; text-align: right; }

/* ============================================================
   SECTION 8: Hourly HTML Table
   ============================================================ */
.aqi-hourly-table-wrap { overflow-x: auto; }
.aqi-hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.aqi-hourly-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: var(--aqi-muted);
    font-weight: 700;
    font-size: 12px;
    border-bottom: 1px solid var(--aqi-border);
}
.aqi-hourly-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--aqi-text);
}
.aqi-hourly-table tr:hover td { background: rgba(255,255,255,0.03); }
.aqi-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 28px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

/* ============================================================
   SECTION 9: FAQ
   ============================================================ */
.aqi-faq-list { display: flex; flex-direction: column; gap: 8px; }
.aqi-faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--aqi-border);
    border-radius: var(--aqi-radius-sm);
    overflow: hidden;
}
.aqi-faq-q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aqi-faq-q::-webkit-details-marker { display: none; }
.aqi-faq-q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--aqi-muted); transition: transform 0.2s; }
details[open] .aqi-faq-q::after { content: '−'; }
details[open] .aqi-faq-q { border-bottom: 1px solid var(--aqi-border); }
.aqi-faq-a {
    padding: 16px 20px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
}

/* ============================================================
   RESPONSIVE cho các section mới
   ============================================================ */
@media (max-width: 600px) {
    .aqi-compare-row { flex-direction: column; gap: 12px; }
    .aqi-ranking-row { grid-template-columns: 28px 1fr 44px 80px; gap: 8px; }
    .aqi-airdog-content { flex-direction: column; }
    .aqi-cigarette-box { flex-direction: column; }
}
a.aqi-ranking-link {
    display: grid;
    grid-template-columns: 3px 1fr 50px 140px;
    gap: 22px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--aqi-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}
a.aqi-ranking-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   DASHBOARD STYLES (moved from inline widget template)
   ============================================================ */
.aqi-dashboard-top10 { margin-bottom: 20px; background: #1a1f2e; border-radius: 12px; padding: 20px; border: 1px solid #2a3040; }
.aqi-top-panel { min-height: 480px; }
.aqi-dashboard-heading { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; color: #f1f5f9; }
.aqi-dashboard-subtitle { margin: 0 0 16px; font-size: 0.8rem; color: #64748b; }
.aqi-clickable-row:hover { background: #1e2536 !important; }
.aqi-top-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.aqi-top-tab { flex: 1; padding: 10px 20px; border: none; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #fff; border-radius: 10px; transition: all 0.3s ease; text-align: center; }
.aqi-top-tab[data-target="dashPolluted"] { background: linear-gradient(135deg, rgb(195,0,0), rgb(255,2,2) 55%, rgb(158,2,2)); box-shadow: 0 4px 15px rgba(220,38,38,0.4); }
.aqi-top-tab[data-target="dashClean"] { background: linear-gradient(135deg, rgb(0,150,100), rgb(16,185,129) 55%, rgb(5,100,70)); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.aqi-top-tab.active[data-target="dashPolluted"] { background: linear-gradient(135deg, rgb(195,0,0), rgb(255,2,2) 55%, rgb(158,2,2)); box-shadow: 0 6px 20px rgba(220,38,38,0.6); transform: scale(1.02); }
.aqi-top-tab.active[data-target="dashClean"] { background: linear-gradient(135deg, rgb(0,150,100), rgb(16,185,129) 55%, rgb(5,100,70)); box-shadow: 0 6px 20px rgba(16,185,129,0.6); transform: scale(1.02); }
.aqi-top-tab:not(.active)[data-target="dashPolluted"] { background: linear-gradient(135deg, rgb(120,0,0), rgb(160,2,2) 55%, rgb(100,2,2)); box-shadow: 0 2px 8px rgba(220,38,38,0.15); }
.aqi-top-tab:not(.active)[data-target="dashClean"] { background: linear-gradient(135deg, rgb(0,90,60), rgb(10,115,80) 55%, rgb(3,65,45)); box-shadow: 0 2px 8px rgba(16,185,129,0.15); }
.aqi-top-tab:hover:not(.active)[data-target="dashPolluted"] { background: linear-gradient(135deg, rgb(160,0,0), rgb(210,2,2) 55%, rgb(130,2,2)); box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.aqi-top-tab:hover:not(.active)[data-target="dashClean"] { background: linear-gradient(135deg, rgb(0,120,80), rgb(13,150,105) 55%, rgb(4,80,55)); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.aqi-dashboard-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.aqi-dashboard-table thead { background: #151926; }
.aqi-dashboard-table th { padding: 10px 12px; text-align: left; font-weight: 600; color: #9ca3af; border-bottom: 2px solid #2a3040; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.aqi-dashboard-table td { padding: 10px 12px; border-bottom: 1px solid #1e2536; color: #e5e7eb; }
.aqi-dashboard-table tr:hover { background: #1e2536; }
.aqi-dashboard-table a { color: #60a5fa; text-decoration: none; font-weight: 500; }
.aqi-dashboard-table a:hover { text-decoration: underline; color: #93bbfc; }
.aqi-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; min-width: 36px; text-align: center; }
.aqi-dashboard-grid-box { background: #1a1f2e; border-radius: 12px; padding: 20px; border: 1px solid #2a3040; }
.aqi-dashboard-grid-box h2 { color: #e5e7eb; }
.aqi-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.aqi-dash-card { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 10px; background: #151926; border: 1px solid #2a3040; text-decoration: none; transition: all 0.2s; text-align: center; }
.aqi-dash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); transform: translateY(-2px); border-color: #3b4560; }
.aqi-dash-card-name { font-size: 0.82rem; font-weight: 600; color: #e5e7eb; margin-bottom: 6px; line-height: 1.3; }
.aqi-dash-card-badge { display: inline-block; padding: 4px 14px; border-radius: 8px; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; min-width: 40px; }
.aqi-dash-card-label { font-size: 0.75rem; font-weight: 600; }
@media (min-width: 769px) {
    .aqi-dashboard-table { max-width: 100%; }
    .aqi-dashboard-table th:nth-child(1), .aqi-dashboard-table td:nth-child(1) { width: 40px; text-align: center; }
    .aqi-dashboard-table th:nth-child(2), .aqi-dashboard-table td:nth-child(2) { width: 35%; }
    .aqi-dashboard-table th:nth-child(3), .aqi-dashboard-table td:nth-child(3) { width: 80px; text-align: center; }
    .aqi-dashboard-table th:nth-child(4), .aqi-dashboard-table td:nth-child(4) { width: 70px; text-align: center; }
    .aqi-dashboard-table th:nth-child(5), .aqi-dashboard-table td:nth-child(5) { width: 90px; }
}
@media (max-width: 768px) {
    .aqi-dashboard-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .aqi-dash-card { padding: 10px 4px; }
    .aqi-dash-card-name { font-size: 0.75rem; }
    .aqi-dash-card-badge { font-size: 0.95rem; padding: 3px 10px; }
    .aqi-top-tab { padding: 8px 12px; font-size: 0.8rem; }
    .aqi-dashboard-table { font-size: 0.8rem; table-layout: auto; }
    .aqi-dashboard-table th, .aqi-dashboard-table td { padding: 8px 4px; white-space: nowrap; }
    .aqi-dashboard-table th:nth-child(1), .aqi-dashboard-table td:nth-child(1) { width: 24px; }
    .aqi-dashboard-table th:nth-child(2), .aqi-dashboard-table td:nth-child(2) { width: 90px; white-space: normal; }
    .aqi-dashboard-table th:nth-child(3), .aqi-dashboard-table td:nth-child(3) { width: 58px; }
    .aqi-dashboard-table th:nth-child(4), .aqi-dashboard-table td:nth-child(4) { width: 58px; }
    .aqi-dashboard-table th:nth-child(5), .aqi-dashboard-table td:nth-child(5) { width: 65px; }
}

/* === SVG Icon Styles === */
.aqi-svg-icon { display: inline-block; vertical-align: middle; object-fit: contain; }
.aqi-svg-hero { width: 64px; height: 64px; }
.aqi-svg-health { width: 48px; height: 48px; }
.aqi-svg-tab { width: 20px; height: 20px; margin-right: 4px; }
.aqi-svg-inline { width: 18px; height: 18px; margin-right: 2px; vertical-align: -3px; }

/* ============================================================
   RANKING / HEALTH / SCALE / RELATED STYLES (moved from inline)
   ============================================================ */
.aqi-ranking-tabs{display:flex;gap:8px;margin-bottom:16px;}
.aqi-ranking-tab{padding:8px 20px;border:2px solid rgba(255,255,255,0.15);border-radius:25px;background:transparent;color:inherit;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;}
.aqi-ranking-tab.active{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.3);}
.aqi-ranking-tab:hover{background:rgba(255,255,255,0.08);}
.aqi-health-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.aqi-health-tab{display:flex;align-items:center;gap:6px;padding:8px 16px;border:2px solid rgba(255,255,255,0.15);border-radius:25px;background:transparent;color:inherit;cursor:pointer;font-size:13px;font-weight:600;transition:all .2s;}
.aqi-health-tab.active{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.3);}
.aqi-health-tab:hover{background:rgba(255,255,255,0.08);}
.aqi-health-tab-icon{font-size:16px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;}
.aqi-health-tab-icon svg{width:20px;height:20px;display:block;}
.aqi-health-detail-content{display:flex;gap:30px;flex-wrap:wrap;}
.aqi-health-detail-left{flex:1;min-width:280px;}
.aqi-health-detail-right{flex:1;min-width:280px;display:flex;gap:20px;flex-wrap:wrap;}
.aqi-health-risk-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:700;margin-bottom:12px;}
.aqi-health-risk-badge svg{width:18px;height:18px;display:block;flex-shrink:0;}
.aqi-health-detail-left h3{margin:8px 0;font-size:20px;}
.aqi-health-risk-desc{margin:8px 0;opacity:0.85;font-size:14px;}
.aqi-health-symptom{margin:8px 0;font-size:14px;line-height:1.6;}
.aqi-health-dos,.aqi-health-donts{flex:1;min-width:220px;}
.aqi-health-dos h4,.aqi-health-donts h4{margin:0 0 10px;font-size:14px;font-weight:700;}
.aqi-health-do-item{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;font-size:13px;line-height:1.5;}
.aqi-health-disclaimer{margin-top:20px;font-size:12px;opacity:0.6;line-height:1.5;}
.aqi-health-detail-box,.aqi-scale-box{color:#e2e8f0;}
.aqi-health-detail-box h3,.aqi-health-detail-box h4,.aqi-scale-table td strong{color:#fff;}
.aqi-health-risk-desc,.aqi-health-symptom,.aqi-health-do-item,.aqi-scale-table td{color:#cbd5e1;}
.aqi-health-dos h4{color:#4ade80;}
.aqi-health-donts h4{color:#f87171;}
.aqi-scale-table th{color:#94a3b8;}
.aqi-scale-table-wrap{overflow-x:auto;margin-bottom:16px;}
.aqi-scale-table{width:100%;border-collapse:collapse;font-size:14px;}
.aqi-scale-table th{padding:10px 12px;text-align:left;border-bottom:2px solid rgba(255,255,255,0.15);font-size:13px;}
.aqi-scale-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,0.08);}
.aqi-scale-badge{display:inline-block;padding:6px 14px;border-radius:12px;font-weight:700;font-size:13px;width:80px;text-align:center;box-sizing:border-box;}
.aqi-scale-table td:first-child{width:110px;white-space:nowrap;}
@media(max-width:600px){
    .aqi-scale-table thead{display:none;}
    .aqi-scale-table tr{display:flex;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.08);gap:6px;align-items:center;}
    .aqi-scale-table td{display:block;border:none;padding:2px 0;}
    .aqi-scale-table td:first-child{width:auto;}
    .aqi-scale-table td:nth-child(2){font-size:15px;flex:1;}
    .aqi-scale-table td:nth-child(3),.aqi-scale-table td:nth-child(4){width:100%;font-size:12px;color:#94a3b8;line-height:1.5;}
    .aqi-scale-badge{width:70px;font-size:12px;padding:4px 8px;}
}
.aqi-scale-bar{margin-top:12px;}
.aqi-scale-gradient{height:12px;border-radius:6px;background:linear-gradient(to right,#00e400 0%,#ffff00 17%,#ff7e00 33%,#ff0000 50%,#8f3f97 67%,#7e0023 100%);}
.aqi-scale-labels{display:flex;justify-content:space-between;font-size:11px;opacity:0.6;margin-top:4px;}
.aqi-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;}
.aqi-related-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 12px;border-radius:12px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);text-decoration:none;color:inherit;transition:all .2s;text-align:center;}
.aqi-related-card:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.2);transform:translateY(-2px);}
.aqi-related-city{font-weight:700;font-size:14px;}
.aqi-related-badge{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;min-width:48px;min-height:48px;}
.aqi-related-pm25{font-size:12px;opacity:0.7;}
.aqi-hourly-table th,.aqi-hourly-table td{white-space:nowrap;padding:8px 10px;font-size:13px;}
@media(max-width:768px){
    .aqi-health-detail-content{flex-direction:column;}
    .aqi-health-detail-right{flex-direction:column;}
    .aqi-related-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));}
    .aqi-health-tabs{gap:6px;}
    .aqi-health-tab{padding:6px 12px;font-size:12px;}
    .aqi-scale-table{font-size:12px;}
    .aqi-hourly-table th,.aqi-hourly-table td{padding:6px 6px;font-size:11px;}
}

/* WHO box — đạt chuẩn (safe) */
.aqi-who-box.aqi-who-safe { background: rgba(0, 228, 0, .08); border-color: rgba(0, 228, 0, .2); }
.aqi-who-safe .aqi-who-text strong { color: #00e400; }

/* ===== DASHBOARD HERO H1 ===== */
.aqi-dashboard-hero {
    text-align: center;
    padding: 32px 16px 20px;
}
.aqi-dashboard-h1 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #f1f5f9;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.aqi-dashboard-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .aqi-dashboard-hero { padding: 24px 12px 16px; }
    .aqi-dashboard-h1 { font-size: 1.35rem; }
    .aqi-dashboard-subtitle { font-size: 0.85rem; }
}

/* ========== SVG Line Chart — AQI theo giờ ========== */
.aqi-hourly-chart-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--aqi-border);
}
.aqi-hourly-chart-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 0 4px;
}
.aqi-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--aqi-muted);
}
.aqi-chart-legend-line {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--aqi-accent);
}
.aqi-chart-legend-dashed {
    background: transparent;
    border-top: 2px dashed var(--aqi-accent);
    height: 0;
    opacity: 0.5;
}
.aqi-chart-legend-who {
    background: transparent;
    border-top: 2px dashed var(--aqi-c-good);
    height: 0;
    opacity: 0.6;
}
.aqi-hourly-chart-svg {
    width: 100%;
    height: auto;
    min-height: 200px;
    display: block;
}
@media (max-width: 600px) {
    .aqi-hourly-chart-wrap { margin-top: 14px; padding-top: 12px; }
    .aqi-hourly-chart-legend { gap: 10px; }
    .aqi-chart-legend-item { font-size: 10px; }
    .aqi-hourly-chart-svg { min-height: 140px; }
}

/* ========== Chart Tooltip & Crosshair ========== */
.aqi-chart-container {
    position: relative;
    width: 100%;
    overflow: visible;
}
.aqi-chart-tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(20, 24, 37, 0.95);
    border: 1px solid var(--aqi-border);
    border-radius: 8px;
    padding: 6px 10px;
    pointer-events: none;
    z-index: 1000;
    min-width: 90px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.aqi-chart-tooltip-hour {
    font-size: 11px;
    color: var(--aqi-muted);
    margin-bottom: 4px;
    text-align: center;
}
.aqi-chart-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.aqi-chart-tooltip-label {
    color: var(--aqi-muted);
}
.aqi-chart-tooltip-val {
    font-weight: 700;
    color: #fff;
}
.aqi-chart-tooltip-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.aqi-chart-overlay {
    cursor: crosshair;
}
.aqi-chart-svg {
    width: 100%;
    height: auto;
}
@media (max-width: 600px) {
    .aqi-chart-tooltip {
        padding: 6px 8px;
        min-width: 80px;
        font-size: 11px;
    }
}

/* ========== Chart Header & Axis Labels ========== */
.aqi-chart-header {
    margin-bottom: 12px;
}
.aqi-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--aqi-text);
    margin: 0 0 4px 0;
}
.aqi-chart-desc {
    font-size: 11px;
    color: var(--aqi-muted);
    margin: 0;
    opacity: 0.8;
}
.aqi-chart-tooltip-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}
.aqi-chart-tooltip-level {
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .aqi-chart-title { font-size: 12px; }
    .aqi-chart-desc { font-size: 10px; }
}

/* ========== HTML Axis Labels ========== */
.aqi-chart-with-axes {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}
.aqi-axis-label {
    writing-mode: vertical-lr;
    font-size: 9px;
    color: var(--aqi-muted);
    font-family: Inter, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.aqi-axis-left {
    transform: rotate(180deg);
    color: #8b8fa3;
}
.aqi-axis-right {
    color: #60a5fa;
    opacity: 0.6;
}
.aqi-chart-container {
    flex: 1;
    min-width: 0;
}
@media (max-width: 600px) {
    .aqi-axis-label { font-size: 8px; }
}

/* SVG overflow visible for axis labels */
.aqi-hourly-chart-svg {
    overflow: visible;
}
