/* ═══════════════════════════════════════════════════════════
   E23BMY Weather Station — Cyber-Aviation View Stylesheet
   Theme: Dark Mode / Cyberpunk / Aviation Instrument Panel
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg0: #080c14;
  --bg1: #0d1520;
  --bg2: #121c2c;
  --card: rgba(13, 21, 32, 0.82);
  --card-hover: rgba(18, 28, 44, 0.9);
  --border: rgba(46, 224, 204, 0.12);
  --border-accent: rgba(46, 224, 204, 0.25);
  --text: #e6eef5;
  --text-dim: #6b8299;
  --text-muted: #4a6178;
  --cyan: #00e5ff;
  --teal: #2ee0c0;
  --teal-dark: #1a9e8e;
  --amber: #f0a030;
  --amber-dark: #c87e18;
  --red: #ff4060;
  --green: #30e888;
  --blue: #4488ff;
  --crimson: #ff2060;
  --glow-cyan: rgba(0, 229, 255, 0.15);
  --glow-teal: rgba(46, 224, 192, 0.12);
  --glow-amber: rgba(240, 160, 48, 0.12);
  --glow-red: rgba(255, 64, 96, 0.15);
  --glow-green: rgba(48, 232, 136, 0.12);
  --r: 14px;
  --r-sm: 8px;
  --font: "IBM Plex Sans", "IBM Plex Sans Thai", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Background Effects ── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(46, 224, 192, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 224, 192, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px
  );
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.cyber-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 50;
}
.cyber-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--teal), transparent);
  opacity: 0.3;
}

.header-left .logo-group { display: flex; align-items: center; gap: 0.75rem; }
.logo-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--glow-cyan), inset 0 0 8px var(--glow-cyan);
  position: relative;
  animation: ring-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
.logo-ring::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--cyan); opacity: 0.6;
}

.brand-label {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin: 0;
}
.station-name {
  font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 700;
  margin: 0; letter-spacing: -0.02em; color: var(--text-bright);
}
.station-sub { font-size: 0.72rem; color: var(--text-dim); margin: 0.1rem 0 0; }

.header-center .live-clock { text-align: center; }
.clock-time {
  font-family: var(--mono); font-size: 1.3rem; font-weight: 700;
  color: var(--cyan); text-shadow: 0 0 8px var(--glow-cyan);
  letter-spacing: 0.05em;
}
.clock-date { font-size: 0.72rem; color: var(--text-dim); display: block; margin-top: 0.05rem; }

.header-right { display: flex; align-items: center; gap: 0.5rem; }

/* ── View Switcher ── */
.view-switcher {
  display: inline-flex; gap: 0.2rem; padding: 0.2rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.view-btn {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--text-dim); text-decoration: none; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem; border-radius: 8px;
  transition: all 0.2s; cursor: pointer;
  background: transparent; border: none;
  font-family: var(--font);
}
.view-btn.is-active { background: var(--cyan); color: #060c14; }
.view-btn:hover:not(.is-active) { color: var(--text); }

/* Language Switcher */
.lang-switcher {
  display: inline-flex; gap: 0.3rem; padding: 0.2rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}
.lang-btn {
  color: var(--text-dim); text-decoration: none; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.1em; padding: 0.3rem 0.65rem;
  border-radius: 999px; transition: all 0.2s;
}
.lang-btn.is-active { background: var(--teal); color: #060c14; }
.lang-btn:hover:not(.is-active) { color: var(--text); }

/* TV Button */
.tv-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0.3rem 0.6rem;
  border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none;
  font-size: 0.7rem; font-weight: 700;
  transition: all 0.2s;
}
.tv-btn:hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px var(--glow-amber); }

/* Classic Link */
.classic-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.2s; text-decoration: none;
}
.classic-link:hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px var(--glow-amber); }

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.cyber-main {
  width: min(1440px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem 0 2rem;
}

/* Glass Mixin */
.glass {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-section { margin-bottom: 1rem; }
.hero-glass {
  display: grid; grid-template-columns: 1fr 160px; gap: 1.5rem;
  padding: 1.5rem 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.hero-glass::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-teal), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin: 0 0 0.3rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.live-dot {
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-temp {
  font-size: clamp(3.5rem, 9vw, 5.5rem); font-weight: 700;
  letter-spacing: -0.06em; line-height: 0.95; margin: 0;
}
.hero-temp .val {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-temp .unit { font-size: 0.3em; vertical-align: super; margin-left: 0.1em; }

.hero-feels { color: var(--text-dim); font-size: 0.9rem; margin: 0.3rem 0 0; }
.hero-feels strong { color: var(--text); font-weight: 600; }

.hero-updated {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem;
}

.hero-gauge {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.hero-gauge canvas { width: 160px; height: 160px; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-teal); opacity: 1; }
  50% { box-shadow: 0 0 0 8px transparent; opacity: 0.6; }
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--glow-cyan), inset 0 0 8px var(--glow-cyan); }
  50% { box-shadow: 0 0 20px var(--glow-cyan), inset 0 0 14px var(--glow-cyan); }
}

/* ═══════════════════════════════════════════════════════════
   QUICK STATS ROW
   ═══════════════════════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem; margin-bottom: 1rem;
}
.stat-card {
  padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.65rem;
  animation: fade-up 0.5s ease both;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--cyan);
  border-radius: 0 2px 2px 0;
}
.stat-card[data-metric="humidity"]::before { background: var(--cyan); }
.stat-card[data-metric="pressure"]::before { background: var(--teal); }
.stat-card[data-metric="wind"]::before { background: var(--amber); }
.stat-card[data-metric="rain"]::before { background: var(--blue); }
.stat-card[data-metric="pm25"]::before { background: var(--red); }
.stat-card[data-metric="uv"]::before { background: var(--green); }

.stat-icon { font-size: 1.4rem; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; min-width: 0; }
.stat-label {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
}
.stat-value {
  font-size: 1.2rem; font-weight: 700; font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-unit { font-size: 0.62rem; color: var(--text-dim); font-weight: 500; margin-left: 0.15rem; }
.stat-spark { flex-shrink: 0; width: 70px; height: 28px; opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════
   DETAIL METRICS
   ═══════════════════════════════════════════════════════════ */
.detail-metrics {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem; margin-bottom: 1rem;
}
.detail-card { padding: 0.85rem 1rem; text-align: center; }
.detail-card h3 {
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 0.4rem;
}
.detail-value {
  font-size: 1.4rem; font-weight: 700; font-family: var(--mono);
  letter-spacing: -0.02em; margin: 0;
}
.detail-value .detail-unit { font-size: 0.65rem; color: var(--text-dim); font-weight: 500; margin-left: 0.1rem; }

/* ═══════════════════════════════════════════════════════════
   CHARTS
   ═══════════════════════════════════════════════════════════ */
.chart-section { padding: 1rem; margin-bottom: 1rem; }
.chart-section h3 {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 0.8rem;
}

.charts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.chart-card { padding: 1rem; animation: fade-up 0.6s ease both; }
.chart-card:nth-child(2) { animation-delay: 0.05s; }
.chart-card:nth-child(3) { animation-delay: 0.1s; }
.chart-card:nth-child(4) { animation-delay: 0.15s; }
.chart-card:nth-child(5) { animation-delay: 0.2s; }
.chart-card:nth-child(6) { animation-delay: 0.25s; }

.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.chart-header h3 {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin: 0;
}
.chart-unit { font-size: 0.68rem; color: var(--text-muted); font-family: var(--mono); }
.chart-legend { display: flex; gap: 0.6rem; }
.legend-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; color: var(--text-dim); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.temp-dot { background: var(--cyan); }
.indoor-dot { background: var(--amber); }
.rad-dot { background: var(--amber); }
.uv-dot { background: var(--green); }

canvas { display: block; width: 100%; height: auto; }
.chart-full { grid-column: 1 / -1; }

/* Wind Rose */
.wind-rose-container {
  display: flex; align-items: center; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap;
}
.wind-rose-info p { text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.info-label { font-weight: 600; color: var(--text); }
.info-value { font-family: var(--mono); color: var(--cyan); font-weight: 500; }

/* AQ Layout */
.aq-layout { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.aq-spark-wrap { flex: 1; min-width: 200px; }
.aq-spark-wrap canvas { border-radius: var(--r-sm); }

.solar-legend { display: flex; gap: 0.6rem; margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════════════════════
   LOWER SECTION: Webcam + Reports
   ═══════════════════════════════════════════════════════════ */
.lower-section {
  display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 0.8rem;
  margin-top: 1rem;
}
.webcam-box { overflow: hidden; animation: fade-up 0.7s ease both; }
.webcam-box figcaption {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.8rem 1rem 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin: 0;
}
.webcam-icon { font-size: 0.9rem; }
.webcam-box img {
  display: block; width: 100%; aspect-ratio: 16/10;
  object-fit: cover; background: var(--bg1);
}
.reports-box {
  padding: 1.2rem; display: flex; flex-direction: column; justify-content: center;
  animation: fade-up 0.8s ease both;
}
.reports-box h2 {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 0.4rem;
}
.reports-box p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.8rem; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #060c14; text-decoration: none; font-weight: 700; font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow-cyan); }

.refresh-hint { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--text-muted); }
.live-dot-sm { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════
   LIGHTNING MONITORING TILE
   ═══════════════════════════════════════════════════════════ */
.lightning-panel {
  padding: 1rem; margin-bottom: 1rem;
}
.lightning-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.8rem;
}
.lightning-header h3 {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 0.4rem;
}
.lightning-leds { display: flex; gap: 0.5rem; align-items: center; }
.led {
  width: 10px; height: 10px; border-radius: 50%;
  transition: all 0.5s;
}
.led-off { background: #333; box-shadow: none; }
.led-green { background: #30e888; box-shadow: 0 0 8px var(--glow-green), 0 0 16px var(--glow-green); }
.led-amber { background: #f0a030; box-shadow: 0 0 8px var(--glow-amber), 0 0 16px var(--glow-amber); }
.led-red { background: #ff4060; box-shadow: 0 0 8px var(--glow-red), 0 0 16px var(--glow-red); animation: led-pulse 1s infinite; }

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lightning-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.lightning-cell {
  text-align: center; padding: 0.6rem;
  border-radius: 8px; background: rgba(240, 160, 48, 0.04);
  border: 1px solid rgba(240, 160, 48, 0.1);
}
.lightning-cell-label {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 0.3rem;
}
.lightning-cell-value {
  font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--amber);
}
.lightning-cell-unit { font-size: 0.6rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   CAMERA / APRS TOGGLE
   ═══════════════════════════════════════════════════════════ */
.cam-toggle-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.8rem;
}
.cam-toggle-label {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.cam-toggle-btns { display: flex; gap: 0.25rem; }
.cam-toggle-btn {
  font-size: 0.62rem; font-weight: 700; padding: 0.25rem 0.5rem;
  border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.cam-toggle-btn.active { background: var(--teal); color: #060c14; border-color: var(--teal); }
.cam-toggle-btn:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
.cam-image-wrap {
  position: relative; overflow: hidden; border-radius: 0 0 var(--r) var(--r);
}
.cam-image-wrap img {
  display: block; width: 100%; aspect-ratio: 16/10;
  object-fit: cover; background: var(--bg1);
}
.cam-live-badge {
  position: absolute; top: 0.5rem; left: 0.6rem;
  display: flex; align-items: center; gap: 0.3rem;
  background: rgba(0,0,0,0.7); padding: 0.2rem 0.5rem;
  border-radius: 6px; font-size: 0.65rem; font-weight: 700;
  color: #fff; border: 1px solid rgba(48, 232, 136, 0.3);
}
.cam-live-badge .live-dot { width: 0.35rem; height: 0.35rem; }

.aprs-image-wrap {
  display: none; border-radius: 0 0 var(--r) var(--r);
  background: var(--bg1); text-align: center;
  padding: 2rem; border: 1px solid var(--border);
}
.aprs-image-wrap.active { display: block; }
.aprs-image-wrap img {
  max-width: 100%; border-radius: 8px;
}
.aprs-placeholder {
  color: var(--text-muted); font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════
   AI WEATHER SUMMARY (BOTTOM SECTION)
   ═══════════════════════════════════════════════════════════ */
.ai-summary-section {
  margin-top: 1.2rem;
  padding: 0;
}
.ai-summary-container {
  position: relative;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(46, 224, 192, 0.03));
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), inset 0 0 30px rgba(0, 229, 255, 0.03);
  overflow: hidden;
}
.ai-summary-container::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--teal), var(--green));
  border-radius: 0 2px 2px 0;
}
.ai-summary-container::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--r);
  pointer-events: none;
  animation: ai-border-pulse 3s ease-in-out infinite;
}
@keyframes ai-border-pulse {
  0%, 100% { opacity: 0.5; box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.02); }
  50% { opacity: 1; box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.05); }
}

.ai-summary-top {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.ai-status-badge {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
}
.ai-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--glow-teal);
  animation: ai-pulse 2s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--glow-teal); }
  50% { opacity: 0.4; box-shadow: 0 0 12px var(--glow-teal); }
}

.ai-summary-text {
  font-family: 'JetBrains Mono', var(--mono);
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text);
  margin: 0;
  min-height: 1.5em;
}
.ai-summary-text .ai-loading {
  color: var(--text-dim); font-style: italic;
  animation: ai-blink 1.5s ease-in-out infinite;
}
@keyframes ai-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ai-summary-error {
  color: var(--red); font-style: italic;
}

.ai-summary-footer {
  display: flex; justify-content: flex-end;
  margin-top: 0.5rem; padding-top: 0.4rem;
  border-top: 1px solid rgba(46, 224, 204, 0.08);
}
.ai-summary-time {
  font-size: 0.65rem; color: var(--text-muted);
  font-family: var(--mono);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-glass { grid-template-columns: 1fr; text-align: center; padding: 1.2rem; }
  .hero-gauge { display: none; }
  .hero-updated { justify-content: center; }
  .charts-grid { grid-template-columns: 1fr; }
  .lower-section { grid-template-columns: 1fr; }
  .lightning-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cyber-header { flex-wrap: wrap; gap: 0.4rem; justify-content: center; padding: 0.6rem 0.8rem; }
  .header-center { order: -1; width: 100%; text-align: center; }
  .header-right { flex-wrap: wrap; justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 0.7rem; }
  .stat-icon { display: none; }
  .stat-spark { display: none; }
  .hero-temp { font-size: 3rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .view-switcher { display: none; }
}
