/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #0a0b0f;
  --bg-surface: #12141a;
  --bg-card: #191c24;
  --bg-elevated: #1f222d;
  --text-primary: #e8e6e1;
  --text-secondary: #8a8880;
  --text-muted: #5a584f;
  --accent-green: #3dd68c;
  --accent-green-dim: rgba(61, 214, 140, 0.12);
  --accent-amber: #f5a623;
  --accent-amber-dim: rgba(245, 166, 35, 0.12);
  --accent-red: #ef4444;
  --accent-red-dim: rgba(239, 68, 68, 0.12);
  --accent-blue: #60a5fa;
  --accent-blue-dim: rgba(96, 165, 250, 0.10);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-display);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* === STARS BACKGROUND === */
.stars {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: var(--peak, 0.6); }
}

/* === LAYOUT === */
.header, .main, .footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}

/* === HEADER === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo__icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green), 0 0 20px rgba(61, 214, 140, 0.3);
  animation: pulse-orb 3s ease-in-out infinite;
  transform-origin: center center;
  flex-shrink: 0;
}

.logo__icon.loading {
  background: var(--text-muted);
  box-shadow: none;
  animation: none;
  opacity: 0.5;
}

.logo__icon.storm {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber), 0 0 20px rgba(245, 166, 35, 0.3);
}

.logo__icon.severe {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red), 0 0 20px rgba(239, 68, 68, 0.3);
  animation: pulse-orb-fast 1.5s ease-in-out infinite;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes pulse-orb-fast {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

.logo__text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo__dot {
  color: var(--text-muted);
  font-weight: 300;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text-primary); }

.lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.lang-toggle:hover { border-color: var(--border-hover); }

.lang-toggle__active {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* === TRAFFIC LIGHT BANNER === */
.banner {
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.banner__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.banner__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.banner__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 0.5rem;
}

.banner__tip {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: none;
}

.banner__tip:not(:empty) {
  display: block;
}

.banner__updated {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.75rem;
}

.banner__reason {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.375rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #8a8880;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.share-btn:hover {
  color: #b5b3aa;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.share-btn--copied {
  color: #3dd68c;
  border-color: rgba(61, 214, 140, 0.3);
}

.share-btn svg {
  flex-shrink: 0;
}

/* Banner states */
.banner.banner--ok .banner__title { color: var(--accent-green); }
.banner.banner--ok .banner__icon { color: var(--accent-green); }

.banner.banner--warn .banner__title { color: var(--accent-amber); }
.banner.banner--warn .banner__icon { color: var(--accent-amber); }
.banner.banner--warn { background: rgba(245, 166, 35, 0.04); }

.banner.banner--alert .banner__title { color: var(--accent-red); }
.banner.banner--alert .banner__icon { color: var(--accent-red); }
.banner.banner--alert { background: rgba(239, 68, 68, 0.06); }

.banner.banner--severe .banner__title { color: var(--accent-red); }
.banner.banner--severe .banner__icon { color: var(--accent-red); }
.banner.banner--severe { background: rgba(239, 68, 68, 0.1); }

.banner.banner--recovery .banner__title { color: var(--accent-blue); }
.banner.banner--recovery .banner__icon { color: var(--accent-blue); }
.banner.banner--recovery { background: rgba(96, 165, 250, 0.04); }

.banner.banner--warn .banner__tip,
.banner.banner--alert .banner__tip,
.banner.banner--severe .banner__tip,
.banner.banner--recovery .banner__tip { display: block; }

.banner.banner--warn .banner__tip { color: var(--accent-amber); }
.banner.banner--alert .banner__tip,
.banner.banner--severe .banner__tip { color: var(--accent-red); }
.banner.banner--recovery .banner__tip { color: var(--accent-blue); }

/* === DETAILS TOGGLE === */
/* removed — no longer used */

/* === GAUGES === */
.gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.gauge__status {
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  max-width: 200px;
}

.gauge--kp .gauge__status { color: var(--accent-green); }
.gauge--kp .gauge__status.quiet { color: var(--accent-green); }
.gauge--kp .gauge__status.moderate { color: var(--accent-amber); }
.gauge--kp .gauge__status.storm { color: var(--accent-red); }

.gauge__desc {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* X-ray gauge — uses same .kp-ring styles */

/* Scales section compact */
.scales-section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === HERO (legacy — keep Kp ring styles) === */
.hero {
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.kp-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.kp-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.kp-ring__bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 5;
}

.kp-ring__fill {
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 6px currentColor);
}

.kp-ring__inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.kp-ring__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
}

.kp-ring__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Old hero level classes — now gauge__status */

.hero__updated {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* === SCALES === */
.scales {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  width: 100%;
  max-width: 520px;
}

.scale-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 0.5rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.scale-card.active-green { border-color: rgba(61, 214, 140, 0.3); background: var(--accent-green-dim); }
.scale-card.active-amber { border-color: rgba(245, 166, 35, 0.3); background: var(--accent-amber-dim); }
.scale-card.active-red { border-color: rgba(239, 68, 68, 0.3); background: var(--accent-red-dim); }

.scale-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.scale-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  margin: 0.25rem 0;
  min-height: 1.8rem;
  line-height: 1.3;
}

.scale-card__desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.scales-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* === SECTIONS === */
.section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.section__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b6a63);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* === HEALTH CARD === */
.health-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.health-card.ok { border-color: rgba(61, 214, 140, 0.25); background: var(--accent-green-dim); }
.health-card.warn { border-color: rgba(245, 166, 35, 0.25); background: var(--accent-amber-dim); }
.health-card.alert { border-color: rgba(239, 68, 68, 0.25); background: var(--accent-red-dim); }
.health-card.recovery { border-color: rgba(96, 165, 250, 0.25); background: var(--accent-blue-dim); }

.health-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.health-card.ok .health-card__icon { background: rgba(61, 214, 140, 0.15); }
.health-card.warn .health-card__icon { background: rgba(245, 166, 35, 0.15); }
.health-card.alert .health-card__icon { background: rgba(239, 68, 68, 0.15); }
.health-card.recovery .health-card__icon { background: rgba(96, 165, 250, 0.15); }

.health-card__level {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.health-card.ok .health-card__level { color: var(--accent-green); }
.health-card.warn .health-card__level { color: var(--accent-amber); }
.health-card.alert .health-card__level { color: var(--accent-red); }
.health-card.recovery .health-card__level { color: var(--accent-blue); }

.health-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.health-tips:empty {
  display: none;
}

.health-tips:empty + .section,
#health:has(.health-tips:empty) {
  padding: 0;
  border: none;
}

.health-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.health-tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.health-tip__label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
}

/* === X-RAY FLUX === */
.xray-container {
  position: relative;
}

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

.xray-status__class {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.03em;
}

.xray-status__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.xray-chart-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  overflow: hidden;
}

.xray-chart-wrap canvas {
  width: 100%;
  height: 180px;
  display: block;
}

.xray-note {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* === CHART === */
.chart-container {
  position: relative;
  padding-bottom: 1rem;
}

.chart-bar-group {
  display: flex;
  gap: 2px;
  width: 100%;
}

.chart-bar {
  border-radius: 2px 2px 0 0;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: default;
  min-width: 0;
}

.chart-now-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.chart-now-arrow {
  font-size: 0.5rem;
  color: var(--accent-green);
  line-height: 1;
}

.chart-now-text {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.chart-time-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  min-height: 24px;
}

.chart-time-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.chart-time-label--day {
  font-size: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.chart-bar:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  white-space: nowrap;
  color: var(--text-primary);
  z-index: 10;
}

.chart-threshold {
  position: absolute;
  top: calc(120px * (1 - 5/9));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.chart-threshold__line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-red) 0 4px, transparent 4px 8px);
  opacity: 0.4;
}

.chart-threshold__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent-red);
  opacity: 0.6;
  white-space: nowrap;
}

/* === FORECAST === */
.forecast-grid {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.forecast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.forecast-row__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 100px;
}

.forecast-row__bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  margin: 0 1rem;
  overflow: hidden;
}

.forecast-row__bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.forecast-row__kp {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}

/* === ALERTS === */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}

.alert-item__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.alert-item__icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.alert-item__type {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.alert-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-item__time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.alert-item__rel {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.alert-item__explain-btn {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.alert-item__explain-btn:hover { opacity: 1; }

.alert-item__explain {
  display: none;
  padding-top: 0.625rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.alert-item__explain.open {
  display: block;
}

.alert-item__explain p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.no-alerts {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* === PREPARE === */
.prepare-intro {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.prepare-levels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prepare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.prepare-card--yellow { border-left: 3px solid var(--accent-amber); }
.prepare-card--orange { border-left: 3px solid #f97316; }
.prepare-card--red { border-left: 3px solid var(--accent-red); }

.prepare-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.prepare-card__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.prepare-card__badge--yellow {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.prepare-card__badge--orange {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.prepare-card__badge--red {
  background: var(--accent-red-dim);
  color: var(--accent-red);
}

.prepare-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.prepare-card__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

/* === CTA === */
.cta-section { border-top: none; }

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}

.cta-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--primary {
  background: var(--accent-blue-dim);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--accent-blue);
}

.btn--primary:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn--soon {
  background: none;
  color: var(--text-muted);
  border-color: var(--border);
  opacity: 0.65;
  cursor: default;
}

/* === AD SLOT === */
.ad-section {
  border-top: none;
  padding: 1rem 0;
}

.ad-placeholder {
  min-height: 90px;
  border-radius: var(--radius-md);
  /* AdSense will fill this */
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__source, .footer__copy {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.footer__refresh {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.footer__refresh:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

/* === FOOTER LINKS === */
.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-secondary);
}

/* === CONTENT PAGES (About, FAQ, Privacy) === */
.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

.page-content h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-content .subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.page-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.page-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.page-content ul {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 0 0 1rem 1.25rem;
}

.page-content li {
  margin-bottom: 0.375rem;
}

.page-content a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-content a:hover {
  border-bottom-color: var(--accent-blue);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-secondary);
}

.data-source-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.data-source-box p {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  margin-bottom: 1.75rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.faq-a p {
  margin-bottom: 0.75rem;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.page-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === LOADING STATE === */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* Hide banner until real data arrives (prevents checkmark flash) */
.banner--loading {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.75; }
}

@keyframes loading-arc-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.45; }
}

/* === KEYBOARD FOCUS === */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible,
.lang-toggle:focus-visible,
.footer__refresh:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.alert-item__explain-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  opacity: 1;
}

.share-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* === STAGGERED ENTRANCE === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .section, .cta-section {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero { animation-delay: 0.1s; }
.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.25s; }
.section:nth-of-type(3) { animation-delay: 0.3s; }
.section:nth-of-type(4) { animation-delay: 0.35s; }
.section:nth-of-type(5) { animation-delay: 0.4s; }
.section:nth-of-type(6) { animation-delay: 0.45s; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .header__right { gap: 0.75rem; }
  .nav-link { display: none; }
  .kp-ring { width: 100px; height: 100px; }
  .kp-ring__value { font-size: 1.5rem; }
  .scales { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
  .gauges { gap: 1rem; padding: 1.5rem 1.25rem 1rem; }
  .cta-card { padding: 1.5rem 1rem; }
}
