/* StabilitaInternetu.cz — Redesign Stylesheet matching exact reference mockup */
:root {
  color-scheme: dark;
  --bg-0: #02040e;
  --bg-1: #040718;
  --bg-2: #070c26;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --purple: #c084fc;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --critical: #ef4444;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 90px rgba(2, 6, 23, 0.7);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    url("/assets/aurora-bg.webp"),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #02040e 100%);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1920px 1086px, 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.band {
  position: absolute;
  left: -25vw;
  width: 150vw;
  height: 38vh;
  filter: blur(80px);
  opacity: 0.35;
  background: linear-gradient(90deg, transparent 5%, rgba(34, 211, 238, 0.28) 30%, rgba(129, 140, 248, 0.25) 60%, rgba(192, 132, 252, 0.18) 80%, transparent 95%);
  animation: bandSway 28s ease-in-out infinite alternate;
}
.band-a { top: 4vh; transform: rotate(-7deg); }
@keyframes bandSway {
  from { transform: translate3d(-3vw, 0, 0); }
  to { transform: translate3d(3vw, 2vh, 0); }
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(1.8px 1.8px at 84% 38%, rgba(165, 243, 252, 0.55), transparent 50%),
    radial-gradient(1.1px 1.1px at 32% 54%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(1.6px 1.6px at 52% 28%, rgba(199, 210, 254, 0.5), transparent 50%),
    radial-gradient(1.3px 1.3px at 8% 70%, rgba(255, 255, 255, 0.3), transparent 50%),
    radial-gradient(1.4px 1.4px at 92% 74%, rgba(153, 246, 228, 0.45), transparent 50%);
}

@media (prefers-reduced-motion: reduce) {
  .band { animation: none; }
  html { scroll-behavior: auto; }
}

::selection { background: rgba(34, 211, 238, 0.35); color: #ffffff; }

html { scrollbar-color: rgba(129, 140, 248, 0.45) rgba(255, 255, 255, 0.04); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(129, 140, 248, 0.5)); border-radius: 999px; border: 2px solid var(--bg-0); }

a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.75);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.top { position: relative; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.1rem 3.5rem 0.2rem;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 6, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  flex: none;
}
.brand-text strong { font-weight: 750; }
.brand-mark { width: 34px; height: 28px; flex: none; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0 auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #ffffff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}
.nav-lang:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}
.nav-cta:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}
.nav-cta svg { width: 16px; height: 16px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(4, 8, 22, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  z-index: 50;
}
.mobile-drawer:not([hidden]) {
  display: flex;
}
.mobile-drawer[hidden] {
  display: none !important;
}
.drawer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.drawer-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.drawer-cta {
  color: var(--cyan);
  font-weight: 700;
  margin-top: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  text-align: center;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.08);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.8rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 850px;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.22), 0 2px 20px rgba(0, 0, 0, 0.6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:active { transform: translateY(1px) scale(0.99); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

/* The iconic glowing hero CTA button */
.hero-btn {
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.72rem 2.25rem;
  background: #f4f6fa;
  color: #101827;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  box-shadow:
    0 0 35px rgba(150, 230, 255, 0.55),
    0 0 75px rgba(34, 211, 238, 0.8),
    inset 0 1px 2px #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 50px rgba(150, 230, 255, 0.85),
    0 0 95px rgba(34, 211, 238, 1),
    inset 0 1px 2px #ffffff;
}
.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #101827;
}

/* ==========================================================================
   Speedometer Stage (Harmonious Aurora Glass Gauge & Orbs)
   ========================================================================== */
.gauge-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.speedometer,
.orbit {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 560px;
  margin: 0 auto 0.5rem;
}

/* Glowing Fiber Optic Stream Overlay across the dials */
.orbital-network-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 557px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.98;
}
.orbital-network-svg,
.orbit-trails-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.45));
}

/* Central Main Speed Gauge (380px Enlarged Diameter) */
.gauge-wrap {
  position: absolute;
  width: 380px;
  height: 380px;
  left: calc(50% - 190px);
  top: -30px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 35%,
      #132e4e 0%,
      #0b213b 45%,
      #061326 70%,
      #020b1c 100%
    );
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 8px rgba(18, 48, 80, 0.7),
    0 0 0 18px rgba(4, 17, 36, 0.85),
    0 0 70px rgba(0, 220, 255, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -16px 40px rgba(129, 140, 248, 0.18);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-wrap.testing .gauge-ring {
  animation: gaugePulse 1.6s ease-in-out infinite;
}
@keyframes gaugePulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
  overflow: visible;
}
.gauge-track {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}
.gauge-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 5;
  stroke-dasharray: 1.6 10.2;
  transform-origin: center;
  transform: rotate(4deg);
}
.gauge-ring {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 741.4;
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: url(#gaugeGlow);
}
.gauge-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-18px);
}
.gauge-dir {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.gauge-icon {
  width: 32px;
  height: 32px;
  color: #13d6f4;
  filter: drop-shadow(0 0 10px rgba(19, 214, 244, 0.7));
}
.gauge-value {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.45);
}
.gauge-value small {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}
.gauge-phase {
  margin: 0.35rem 0 0;
  color: #67e8f9;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ==========================================================================
   3 Satellite Stat Orbs (212px Full Diameter)
   ========================================================================== */
.orbs-cluster {
  position: static;
}

.orb,
.stat {
  position: absolute;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
  background:
    radial-gradient(
      circle at 50% 40%,
      #0e2642 0%,
      #051226 70%,
      #020917 100%
    );
  border: 1.5px solid rgba(0, 220, 255, 0.28);
  box-shadow:
    inset 0 0 35px rgba(0, 180, 255, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    0 16px 45px rgba(2, 6, 23, 0.85),
    0 0 28px rgba(0, 100, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 10;
  overflow: visible;
}

/* Satellite Orb Dial Gauge SVGs */
.orb-gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
  pointer-events: none;
}
.orb-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}
.orb-gauge-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3.5;
  stroke-dasharray: 1.2 7.5;
  transform-origin: center;
}
.orb-gauge-ring {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 427.26;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: url(#gaugeGlow);
}
.orb-gauge-ring-purple {
  stroke: url(#logoPurple);
  filter: url(#purpleGlow);
}

.orb.testing .orb-gauge-ring {
  animation: orbRingPulse 1.4s ease-in-out infinite;
}
@keyframes orbRingPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.orb::after,
.stat::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #22d3ee, 0 0 16px #38bdf8;
  z-index: 5;
}

.orb:hover,
.stat:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    inset 0 0 45px rgba(0, 180, 255, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    0 24px 65px rgba(2, 6, 23, 0.9),
    0 0 45px rgba(34, 211, 238, 0.4);
}

.orb-icon,
.stat-icon {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d9f5;
  margin-bottom: 0.2rem;
}
.orb-icon svg,
.stat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.65));
}

.orb-label,
.stat span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa7bd;
  margin-bottom: 0.15rem;
}

.orb-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.orb-value,
.stat strong {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.orb-unit,
.stat small {
  font-size: 13px;
  font-weight: 750;
  color: #00d9f5;
  margin-top: 0.12rem;
}

/* Left Orb: Jitter (Shifted slightly down & right, +2px size) */
.orb-left,
.stat-jitter {
  left: calc(50% - 464px);
  top: 296px;
}
.orb-left:hover { transform: translateY(-4px); }

/* Right Orb: Latence (Shifted slightly down & right/inwards, +2px size) */
.orb-right,
.stat-latency {
  left: calc(50% + 258px);
  top: 296px;
  border-color: rgba(192, 132, 252, 0.35);
  background:
    radial-gradient(
      circle at 50% 40%,
      #1d1040 0%,
      #0d0626 70%,
      #060317 100%
    );
  box-shadow:
    inset 0 0 35px rgba(192, 132, 252, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    0 16px 45px rgba(2, 6, 23, 0.85),
    0 0 28px rgba(192, 132, 252, 0.2);
}
.orb-right:hover { transform: translateY(-4px); }
.orb-right::after,
.stat-latency::after {
  box-shadow: 0 0 8px #c084fc, 0 0 16px #818cf8;
}

/* Bottom Orb: Packet Loss */
.orb-bottom,
.stat-packet {
  left: calc(50% - 106px);
  top: 326px;
  z-index: 12;
}
.orb-bottom:hover { transform: translateY(-4px); }

/* ==========================================================================
   Trust Bar Dock
   ========================================================================== */
.trust {
  margin-top: 3.8rem;
  margin-bottom: 2.5rem;
  width: min(1440px, 94vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(4, 8, 22, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 24px 70px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  padding: 0.4rem 0.6rem;
}
.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  text-align: left;
}
.trust-item + .trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.22), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}
.trust-icon svg {
  width: 19px;
  height: 19px;
  color: #7defdc;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.4));
}
.trust-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}
.trust-item span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ==========================================================================
   Main & Common Sections
   ========================================================================== */
main { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 4.2rem 0 1rem; }
.section-heading { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
.section-heading p { color: var(--muted); line-height: 1.65; margin: 0; }
.eyebrow {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 0.9rem;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 60%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--shadow);
}

.panel { padding: 1.8rem; }
.panel h3 { margin: 0 0 0.8rem; font-size: 1.2rem; }

.advanced-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--shadow);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  margin: 1.5rem 0 2rem;
}
.advanced-panel[open] {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 90px rgba(2, 6, 23, 0.6), 0 0 40px rgba(34, 211, 238, 0.1);
}
.advanced-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.advanced-panel summary::-webkit-details-marker { display: none; }
.advanced-panel summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.advanced-panel[open] summary::after {
  transform: translateY(2px) rotate(225deg);
  border-color: var(--teal);
}
.advanced-panel summary:hover { background: rgba(255, 255, 255, 0.03); color: #ffffff; }
.advanced-content {
  padding: 0 1.6rem 1.6rem;
  animation: panelFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-btn.secondary {
  background: rgba(14, 22, 48, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.hero-btn.secondary:hover {
  background: rgba(22, 34, 72, 0.9);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.2);
}

/* Dedicated Advanced & Monitoring Section */
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 920px) {
  .advanced-grid {
    grid-template-columns: 1fr;
  }
}
.advanced-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(8, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.advanced-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.advanced-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.monitor-icon-accent {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
}
.advanced-card-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
}
.advanced-card-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}
.monitor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-monitor-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.settings-monitor-badge.off {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.settings-monitor-badge.on {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.settings-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0.8rem 0 0.6rem;
}
.settings-scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.scenario-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 22, 48, 0.6);
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scenario-pill:hover {
  background: rgba(24, 38, 80, 0.8);
  border-color: rgba(34, 211, 238, 0.35);
  color: #ffffff;
}
.scenario-pill.active {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #030816;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}
.settings-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 600px) {
  .settings-fields {
    grid-template-columns: 1fr;
  }
}
.full-width-field {
  grid-column: 1 / -1;
}
.settings-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.settings-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 30, 0.85);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.settings-select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.monitor-info-box {
  margin-bottom: 1.2rem;
}
.monitor-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}
.monitor-status.on {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}
.advanced-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}
.monitor-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.monitor-actions-row .button {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.progress-wrap {
  margin: 1.5rem 0 1rem;
  animation: fadeIn 0.3s ease;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(92deg, var(--cyan), var(--teal), var(--indigo));
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.55);
  transition: width 0.3s ease;
}
.progress-text { color: var(--muted); font-size: 0.9rem; margin: 0.7rem 0 0.4rem; text-align: center; }
.note { color: var(--muted); font-size: 0.8rem; line-height: 1.55; margin: 0.6rem 0 0; }

[hidden],
.progress-wrap,
#progressWrap,
.results[hidden],
#results[hidden] {
  display: none !important;
}

/* ==========================================================================
   Heading with Close button & Nav active states
   ========================================================================== */
.heading-with-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.history-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all 0.2s ease;
}
.history-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
}
.nav-cta.active,
.drawer-cta.active {
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.5), inset 0 0 10px rgba(34, 211, 238, 0.25);
  border-color: rgba(34, 211, 238, 0.85);
  color: #ffffff;
}

/* ==========================================================================
   Results & Recommendations Section
   ========================================================================== */
.results {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
  animation: resultsFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 960px) {
  .results {
    grid-template-columns: 1fr;
  }
}
@keyframes resultsFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verdict-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(8, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.verdict-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
}
.verdict-card.good::before { background: linear-gradient(90deg, #34d399, #10b981); }
.verdict-card.watch::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.verdict-card.bad::before { background: linear-gradient(90deg, #f87171, #ef4444); }
.verdict-card.critical::before { background: linear-gradient(90deg, #ef4444, #dc2626); }

.verdict-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.8rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.verdict-title-area {
  flex: 1;
  min-width: 240px;
}
.verdict-badge-row {
  margin-bottom: 0.6rem;
}
.verdict-severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.verdict-severity-badge.good {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}
.verdict-severity-badge.watch {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}
.verdict-severity-badge.bad,
.verdict-severity-badge.critical {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}
.verdict-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.verdict-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.score-block { text-align: center; flex: none; }
.score-ring-wrap { position: relative; width: 124px; height: 124px; margin: 0 auto; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 9; }
.score-arc {
  fill: none;
  stroke: var(--teal);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  stroke-dashoffset: 351.86;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.45));
}
.score-block.level-good .score-arc { stroke: var(--good); filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.5)); }
.score-block.level-decent .score-arc { stroke: var(--teal); }
.score-block.level-watch .score-arc { stroke: var(--warn); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.45)); }
.score-block.level-bad .score-arc { stroke: var(--bad); filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.5)); }
.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.score-num small { font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.score-label { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (max-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.metric-tile {
  background: rgba(14, 22, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  transition: all 0.25s ease;
  position: relative;
}
.metric-tile:hover {
  background: rgba(20, 32, 68, 0.75);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}
.metric-tile::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.metric-tile[data-level="good"]::before { background: var(--good); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.metric-tile[data-level="watch"]::before { background: var(--warn); box-shadow: 0 0 10px rgba(251, 191, 36, 0.7); }
.metric-tile[data-level="bad"]::before { background: var(--bad); box-shadow: 0 0 10px rgba(248, 113, 113, 0.7); }
.metric-tile[data-level="critical"]::before { background: var(--critical); box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }

.metric-tile-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
.metric-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric-tile-value {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.recommendations-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(8, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.recommendations-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}
.recommendations-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}
.recommendations-head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
}
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; color: #cbd5e1; line-height: 1.6; font-size: 0.93rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.7rem;
  background-position: center;
  background-repeat: no-repeat;
}
.recommendations-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.2rem;
}
.full-btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Jak to funguje (Steps Section)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(8, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(34, 211, 238, 0.15);
}
.step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.step-badge {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.step-badge.step-1 {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-badge.step-2 {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-badge.step-3 {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.step-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}
.step-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ==========================================================================
   Rozdíl (Comparison Section)
   ========================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
.compare-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(8, 14, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.3s ease;
}
.compare-card.highlight {
  background: rgba(10, 18, 44, 0.85);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(34, 211, 238, 0.15);
}
.compare-card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  border-radius: 24px 24px 0 0;
}
.compare-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.compare-badge.muted {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
}
.compare-badge.pro {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.4);
}
.compare-card-head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}
.compare-card-head p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.comp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}
.check-yes .comp-icon {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.check-no .comp-icon {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.check-no {
  color: #64748b !important;
}

/* ==========================================================================
   Slovník pojmů (Glossary Section)
   ========================================================================== */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
@media (max-width: 860px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }
}
.glossary-card {
  padding: 1.8rem;
  border-radius: 20px;
  background: rgba(8, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.glossary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}
.glossary-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.glossary-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.tag-speed { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.tag-latency { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.tag-jitter { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tag-spike { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.tag-loss { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.tag-monitor { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.glossary-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}
.glossary-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Časté otázky (FAQ Section)
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  border-radius: 18px;
  background: rgba(8, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(10, 18, 44, 0.85);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3.5rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: #22d3ee;
}
.faq-content {
  padding: 0 1.5rem 1.3rem;
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.65;
}
.faq-content p {
  margin: 0;
}

/* ==========================================================================
   History Section Upgraded
   ========================================================================== */
.history-card {
  padding: 2rem;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(14, 25, 48, 0.75) 0%, rgba(6, 12, 26, 0.9) 100%);
  border: 1px solid rgba(0, 220, 255, 0.22);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.history-empty {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.history-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #22d3ee;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}
.history-empty-icon svg {
  width: 32px;
  height: 32px;
}
.history-empty strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.history-empty p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

#historyPanel[data-empty="true"] .history-content { display: none; }
#historyPanel[data-empty="false"] .history-empty { display: none; }

/* 4 KPI Cards */
.history-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .history-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .history-kpi-grid { grid-template-columns: 1fr; }
}
.history-kpi-card {
  background: rgba(10, 19, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.history-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.15);
}
.history-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.history-kpi-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.history-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #22d3ee;
}
.history-kpi-icon svg {
  width: 16px;
  height: 16px;
}
.history-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.history-kpi-sub {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* History Toolbar & Filter Pills */
.history-toolbar {
  background: rgba(6, 13, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}
.toolbar-title svg {
  width: 16px;
  height: 16px;
  color: #22d3ee;
}
.toolbar-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toolbar-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toolbar-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #ffffff;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.metric-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric-filter-pill input {
  display: none;
}
.metric-filter-pill .filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.2s ease;
}
.metric-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.metric-filter-pill.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

/* Specific Pill Active Themes */
.metric-filter-pill.filter-download.active { background: rgba(52, 211, 153, 0.15); border-color: #34d399; }
.metric-filter-pill.filter-download.active .filter-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }

.metric-filter-pill.filter-upload.active { background: rgba(192, 132, 252, 0.15); border-color: #c084fc; }
.metric-filter-pill.filter-upload.active .filter-dot { background: #c084fc; box-shadow: 0 0 8px #c084fc; }

.metric-filter-pill.filter-latency.active { background: rgba(34, 211, 238, 0.15); border-color: #22d3ee; }
.metric-filter-pill.filter-latency.active .filter-dot { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }

.metric-filter-pill.filter-downping.active { background: rgba(56, 189, 248, 0.15); border-color: #38bdf8; }
.metric-filter-pill.filter-downping.active .filter-dot { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

.metric-filter-pill.filter-upping.active { background: rgba(129, 140, 248, 0.15); border-color: #818cf8; }
.metric-filter-pill.filter-upping.active .filter-dot { background: #818cf8; box-shadow: 0 0 8px #818cf8; }

.metric-filter-pill.filter-jitter.active { background: rgba(251, 191, 36, 0.15); border-color: #fbbf24; }
.metric-filter-pill.filter-jitter.active .filter-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

.metric-filter-pill.filter-spike.active { background: rgba(251, 146, 60, 0.15); border-color: #fb923c; }
.metric-filter-pill.filter-spike.active .filter-dot { background: #fb923c; box-shadow: 0 0 8px #fb923c; }

.metric-filter-pill.filter-loss.active { background: rgba(248, 113, 113, 0.15); border-color: #f87171; }
.metric-filter-pill.filter-loss.active .filter-dot { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* Chart Container */
.chart-wrap {
  border: 1px solid rgba(0, 220, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at 50% 0%, #0d172e 0%, #050b18 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.chart-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* History Table Upgraded */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  margin-bottom: 1.5rem;
  background: rgba(6, 12, 26, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 960px;
}
.history-table th {
  text-align: left;
  padding: 0.9rem 1.1rem;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  white-space: nowrap;
}
.history-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease;
}
.history-table tbody tr:hover td {
  background: rgba(34, 211, 238, 0.05);
}
.history-table .good { color: var(--good); }
.history-table .watch { color: var(--warn); }
.history-table .bad { color: var(--bad); }
.history-table .critical { color: var(--critical); }
.history-table .table-actions {
  display: flex;
  gap: 0.4rem;
}

/* Mobile history cards — the table hides under 720px and these take over. */
.history-cards {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
}
.history-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.history-card-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
}
.history-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.history-card-time {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.history-card-speeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.history-card-speed {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.history-card-speed-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.history-card-speed-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}
.history-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.history-card-metric {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.history-card-metric-label { color: #94a3b8; }
.history-card-metric-value { font-weight: 700; color: var(--ink); }
.history-card-metric-value.good { color: var(--good); }
.history-card-metric-value.watch { color: var(--warn); }
.history-card-metric-value.bad { color: var(--bad); }
.history-card-metric-value.critical { color: var(--critical); }

.table-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.table-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #ffffff;
}
.table-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

/* History Pagination & Page Size Bar */
.history-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(10, 19, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.pagination-info strong {
  color: #ffffff;
  font-weight: 700;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.page-numbers {
  display: flex;
  gap: 0.35rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #ffffff;
}
.page-btn.active {
  background: rgba(34, 211, 238, 0.25);
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}
.page-btn.nav-btn {
  gap: 0.35rem;
  padding: 0 0.75rem;
}

.pagination-pagesize {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pagination-pagesize label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}
.pagesize-select {
  background: rgba(6, 12, 26, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}
.pagesize-select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.history-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
  align-items: center;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 750;
  border: 1px solid;
}
.badge.good { color: var(--good); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.09); }
.badge.watch { color: var(--warn); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.09); }
.badge.bad { color: var(--bad); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.09); }
.badge.critical { color: var(--critical); border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.12); }

.footer {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 2.6rem 1.25rem 5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr;
  gap: 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 380px; margin: 0.9rem 0 0; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.92rem; width: fit-content; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-note { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin: 1.4rem 0 0.3rem; text-align: center; }
.footer-copy { color: rgba(154, 167, 199, 0.6); font-size: 0.8rem; margin: 0; text-align: center; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  display: none;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .button { width: 100%; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet & Medium Desktop */
@media (max-width: 1080px) and (min-width: 721px) {
  .nav-links { gap: 1.2rem; }
  .speedometer,
  .orbit {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -50px;
  }
  .trust {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 24px;
  }
  .trust-item:nth-child(2n+1) { border-left: none; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-lang { display: none; }
  .nav-burger { display: flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 0.45rem 0.65rem; border-radius: 50%; }
  /* The brand text yields before the nav ever overflows: a flex item's automatic
     min-width is its content width unless min-width:0 says otherwise, so without
     this the row can only ever be exactly as wide as the logo text demands. */
  #mainNav .brand { flex-shrink: 1; min-width: 0; }
  #mainNav .brand-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .form-grid { grid-template-columns: 1fr; }
  .cards-three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .history-summary { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sticky-cta { display: block; }
}

/* Mobile Screens (< 720px) — PRESERVES THE GLOWING CIRCULAR COSMIC DESIGN! */
@media (max-width: 720px) {
  body {
    background-size: cover, 100% 100%;
    background-position: center top;
  }
  .nav { padding: 1rem 1.25rem; }
  .brand-text { font-size: 0.95rem; }
  .hero { padding: 1.4rem 1rem 1.8rem; }
  .hero-title { font-size: 1.7rem; margin-bottom: 1.2rem; }
  .hero-btn { font-size: 0.9rem; padding: 0.65rem 1.6rem; margin-bottom: 1.4rem; }

  .orbit {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto 1.5rem;
    padding-bottom: 0.5rem;
  }

  .orbital-network-wrap { display: none; }

  .gauge-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(260px, 76vw);
    height: min(260px, 76vw);
    box-shadow:
      inset 0 1.5px 3px rgba(255, 255, 255, 0.35),
      inset 0 -14px 28px rgba(129, 140, 248, 0.15),
      0 16px 45px rgba(0, 0, 0, 0.85),
      0 0 35px rgba(34, 211, 238, 0.3);
  }
  .gauge-center { transform: translateY(-16px); }
  .gauge-value { font-size: 3rem; }
  .gauge-value small { font-size: 0.95rem; }
  .gauge-phase { font-size: 0.68rem; }
  .gauge-icon { width: 26px; height: 26px; }

  /* Circular Orbs in a sleek balanced row directly below gauge */
  .orbs-cluster {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2.5vw, 14px);
    width: 100%;
    position: relative;
    z-index: 4;
    margin-top: -1.2rem;
  }

  .orb {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none !important;
    width: min(100px, 29vw);
    height: min(100px, 29vw);
    padding: 0.35rem 0.2rem;
    border-radius: 50% !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      inset 0 -8px 18px rgba(129, 140, 248, 0.15),
      0 12px 30px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(34, 211, 238, 0.2);
  }
  .orb::after { bottom: 5px; width: 4px; height: 4px; }
  .orb-icon svg { width: 17px; height: 17px; }
  .orb-label { font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 0.1rem; }
  .orb-value { font-size: 1.18rem; }
  .orb-unit { font-size: 0.72rem; }

  /* Trust Bar on Mobile */
  .trust {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 0.4rem;
    margin-top: 1.5rem;
  }
  .trust-item {
    border-left: none !important;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .trust-item + .trust-item { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .trust-icon { width: 36px; height: 36px; }
  .trust-icon svg { width: 17px; height: 17px; }

  .cards-three { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .panel { padding: 1.3rem; }
  .compare { grid-template-columns: 1fr; }
  .score-block { margin: 0 auto; }
  .verdict-head { justify-content: center; text-align: center; }

  .table-wrap { display: none; }
  .history-cards { display: grid; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.55rem; }
  .orb {
    width: min(96px, 29vw);
    height: min(96px, 29vw);
  }
  .orb-value { font-size: 1.05rem; }
  .orb-label { font-size: 0.52rem; }
}

/* ==========================================================================
   Toast (sdílení výsledku)
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  /* Above every other overlay in this file (share panel and row menu both sit at 1300) --
     a toast is the app's top-most feedback layer and must never end up hidden behind one. */
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: min(92vw, 560px);
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  background: rgba(10, 20, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.2);
  color: #e2e8f0;
  font-size: 0.92rem;
}
.toast[hidden] { display: none; }
.toast-text { font-weight: 700; }
.toast-link { color: var(--cyan); word-break: break-all; user-select: all; }
.toast-download { color: var(--purple); font-weight: 700; text-decoration: none; }
.toast-download:hover { text-decoration: underline; }

/* ==========================================================================
   Sdílecí panel
   ========================================================================== */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.share-overlay[hidden] { display: none; }
.share-dialog {
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(10, 20, 42, 0.98);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.share-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.share-dialog-head h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.share-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.share-close:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.share-preview { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.share-note { margin: 0; font-size: 0.85rem; color: var(--warn); }
.share-url {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-size: 0.88rem;
}
.share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-actions .button { flex: 1 1 auto; text-align: center; text-decoration: none; }
.share-networks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.share-networks-label { color: #94a3b8; }
.share-networks a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.share-networks a:hover { text-decoration: underline; }

/* ==========================================================================
   Menu akcí v řádku historie
   ========================================================================== */
.table-btn-icon {
  padding: 0.35rem 0.5rem;
}
.row-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 260px;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(10, 19, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.row-menu-item svg { flex: none; }
.row-menu-item:hover,
.row-menu-item:focus-visible {
  background: rgba(34, 211, 238, 0.14);
  color: #ffffff;
}
.row-menu-item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 10px;
}
.row-menu-item.danger { color: #f87171; }
.row-menu-item.danger:hover,
.row-menu-item.danger:focus-visible {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.row-menu-sep {
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Pruh z výsledku do historie
   ========================================================================== */
.history-jump {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 60%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.history-jump:hover,
.history-jump:focus-visible {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}
.history-jump:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.history-jump-icon { color: var(--cyan); flex: none; display: inline-flex; }
.history-jump-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.history-jump-text strong { font-size: 1rem; font-weight: 750; }
.history-jump-text span { color: var(--muted); font-size: 0.88rem; }
.history-jump-arrow { color: var(--cyan); flex: none; display: inline-flex; transition: transform 0.2s ease; }
.history-jump:hover .history-jump-arrow { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) {
  .history-jump-arrow { transition: none; }
  .history-jump:hover .history-jump-arrow { transform: none; }
}
