/* ==============================================================================
   ZANDWEB LIVE — Telemetria Domowa Dark Slate Tech Design System
   Spójny ze stylem zandweb.pl (Inter, JetBrains Mono, Deep Slate, Glassmorphism)
   ============================================================================== */

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

:root {
  /* Kolorystyka Ciemna / Deep Slate */
  --bg-base: #060913;
  --bg-surface: rgba(12, 18, 34, 0.75);
  --bg-surface-elevated: rgba(17, 26, 48, 0.85);
  --bg-surface-hover: rgba(24, 35, 63, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(56, 189, 248, 0.35);

  /* Kolory Akcentujące */
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --primary-dark: #0284c7;
  
  --secondary: #6366f1;
  --secondary-glow: rgba(99, 102, 241, 0.25);
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.25);

  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);

  /* Typografia */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Układ */
  --header-height: 4.5rem;
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Cienie & Efekty */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow-cyan: 0 0 25px rgba(56, 189, 248, 0.2);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.2);

  color-scheme: dark;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Tło siatkowe i poświaty */
.grid-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black 40%, transparent 85%);
}

.glow-spot-1 {
  position: fixed;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-spot-2 {
  position: fixed;
  top: 30%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* NAGŁÓWEK */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-status-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Pulsująca dioda LIVE */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  transition: all 0.3s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tariff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tariff-pill.cheap {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--primary);
}

/* GŁÓWNA TREŚĆ */
main {
  padding: 2rem 0 4rem;
}

/* BANER TYTUŁOWY */
.hero-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.sync-time-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* LIVE POWER FLOW — INTERAKTYWNY PRZEPŁYW MOCY */
.power-flow-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.power-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
  position: relative;
}

@media (max-width: 1150px) {
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* WĘZŁY PRZEPŁYWU ENERGII */
.flow-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-node:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-cyan);
}

.node-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.node-pv .node-icon-circle {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.node-battery .node-icon-circle {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.node-house .node-icon-circle {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.node-hvac .node-icon-circle {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

.node-grid .node-icon-circle {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.node-tesla .node-icon-circle {
  background: rgba(232, 33, 39, 0.15);
  border: 1px solid rgba(232, 33, 39, 0.4);
  color: #ff4d4f;
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.node-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.node-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

/* SIATKA KART KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.kpi-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.kpi-value-row {
  margin-bottom: 0.75rem;
}

.kpi-main-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.kpi-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.25rem;
}

.kpi-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.kpi-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--primary) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.kpi-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-family: var(--font-mono);
}

.kpi-footer-val {
  color: var(--text-main);
  font-weight: 600;
}

/* SEKCJA WYKRESÓW INTERAKTYWNYCH */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

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

/* WSKAŹNIK COP */
.cop-gauge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.cop-number-big {
  font-family: var(--font-mono);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--emerald);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--emerald-glow);
}

.cop-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  margin-bottom: 1.25rem;
}

.cop-details-list {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.cop-detail-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.cop-detail-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

/* ==============================================================================
   TESLA CYBER COCKPIT — FUTURYSTYCZNY PANEL POJAZDU EV
   ============================================================================== */
.tesla-cockpit-section {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(12, 18, 34, 0.95) 100%);
  border: 1px solid rgba(232, 33, 39, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(232, 33, 39, 0.12);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.tesla-cockpit-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e82127, #38bdf8, transparent);
}

.tesla-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tesla-brand-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tesla-logo-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: linear-gradient(135deg, #e82127 0%, #b91c1c 100%);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(232, 33, 39, 0.4);
}

.tesla-model-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.tesla-status-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tesla-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tesla-badge-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald);
}

.tesla-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

/* LEWA KOLUMNA: WIZUALIZACJA AUTA I BATERIA */
.tesla-car-visual-box {
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tesla-car-svg-wrap {
  text-align: center;
  margin: 0.5rem 0 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tesla-photo-img {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tesla-photo-img:hover {
  transform: scale(1.04) translateY(-2px);
}

.tesla-car-svg-wrap:hover svg {
  transform: scale(1.03);
}

.tesla-battery-dial-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.tesla-soc-huge {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.tesla-soc-huge span {
  font-size: 1.25rem;
  color: #e82127;
}

.tesla-range-huge {
  text-align: right;
}

.tesla-range-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.tesla-range-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* PRAWA KOLUMNA: STATYSTYKI TELEMETRII I EKONOMIA PV */
.tesla-stats-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tesla-subcard {
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.tesla-subcard-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tesla-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tesla-mini-kpi {
  display: flex;
  flex-direction: column;
}

.tesla-mini-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.tesla-mini-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.solar-badge-highlight {
  color: #f59e0b;
}

/* ==============================================================================
   DEYE POWER DISTRIBUTION DIAGRAM (SUNSYNK / DEYE HYBRID WIRING)
   ============================================================================== */
.deye-synk-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.synk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.synk-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.synk-diagram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
}

@media (max-width: 900px) {
  .synk-diagram-container {
    grid-template-columns: 1fr;
  }
}

.synk-box {
  background: rgba(12, 18, 34, 0.9);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.synk-box:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.synk-box.pv-box {
  border-color: rgba(245, 158, 11, 0.4);
}

.synk-box.battery-box {
  border-color: rgba(244, 63, 94, 0.4);
}

.synk-box.inverter-box {
  border-color: var(--primary);
  background: rgba(17, 26, 48, 0.95);
  text-align: center;
}

.synk-box.load-box {
  border-color: rgba(16, 185, 129, 0.4);
}

.synk-box.grid-box {
  border-color: rgba(148, 163, 184, 0.4);
}

.synk-box-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.synk-box-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.synk-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.synk-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.synk-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.inverter-icon-device {
  width: 72px;
  height: 90px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  position: relative;
}

.inverter-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  margin-bottom: 6px;
  animation: pulse-live 1.5s infinite;
}

/* ==============================================================================
   HYDRO & AQUASTILLA WATER TELEMETRY SECTION
   ============================================================================== */
.hydro-water-section {
  background: linear-gradient(135deg, rgba(8, 22, 45, 0.85) 0%, rgba(12, 18, 34, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hydro-water-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #0284c7, transparent);
}

.hydro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.hydro-card {
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hydro-flow-gauge {
  text-align: center;
  padding: 1.5rem 0;
}

.water-flow-huge {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.water-flow-unit {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.35rem;
}

.water-wave-anim {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: var(--radius-pill);
  margin: 1rem auto;
  opacity: 0.6;
}

/* STOPKA */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}
