/* BTE — Stilim publik */
:root {
  --navy: #1e3a5f;
  --navy-dark: #16294a;
  --brand-green: #1e9e5a;
  --brand-green-dark: #178a4d;
  --text: #1a2434;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--navy); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--brand-green); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* TOP BAR */
.topbar { background: var(--navy-dark); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1.25rem; }
.topbar-social { display: flex; gap: .75rem; }
.topbar-social a { color: rgba(255,255,255,.8); display: inline-flex; }
.topbar-social a:hover { color: var(--brand-green); }
.topbar-phone { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .4rem; }
.topbar-phone:hover { color: var(--brand-green); }

/* HEADER */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.logo img { height: 44px; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { color: var(--navy); font-weight: 600; font-size: .875rem; letter-spacing: .03em; position: relative; padding: .25rem 0; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand-green); transition: width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--brand-green); }
.nav-cta { background: var(--brand-green); color: #fff; padding: .6rem 1.2rem; border-radius: var(--radius); font-weight: 700; font-size: .875rem; letter-spacing: .03em; transition: background .2s; }
.nav-cta:hover { background: var(--brand-green-dark); color: #fff; }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; box-shadow: var(--shadow-lg); display: none; }
  .menu-open .main-nav { display: flex; }
  .nav-link, .nav-cta { padding: .75rem 1rem; text-align: center; }
}

/* HERO */
.hero { position: relative; min-height: 480px; background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,58,95,.85), rgba(30,58,95,.55)); }
.hero-content { position: relative; padding: 4rem 0; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }

/* BUTTONS */
.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: 0; cursor: pointer; font-size: .95rem; transition: all .2s; }
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* SECTIONS */
section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { display: inline-block; position: relative; padding-bottom: .5rem; }
.section-title h2::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; background: var(--brand-green); border-radius: 2px; }

/* GRIDS */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* CARDS */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card { text-align: center; border-top: 4px solid var(--brand-green); }
.pricing-card .price { font-size: 2.25rem; font-weight: 800; color: var(--navy); margin: .5rem 0; }
.pricing-card .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.pricing-card .tier { color: var(--brand-green); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.pricing-card .speeds { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-card .speeds strong { display: block; color: var(--navy); font-size: 1.15rem; }
.pricing-card .speeds span { font-size: .75rem; color: var(--muted); text-transform: uppercase; }

/* Package speed-test links */
.package-speedtest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef6f2);
  box-shadow: var(--shadow);
}
.package-speedtest h2 { margin: .1rem 0 .2rem; font-size: 1.35rem; }
.package-speedtest p { margin: 0; color: var(--muted); font-size: .88rem; }
.package-speedtest-eyebrow {
  color: var(--brand-green);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.package-speedtest-actions { display: flex; align-items: center; gap: .75rem; }
.ookla-speedtest-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: #0b0a1a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 10, 26, .18);
}
.ookla-speedtest-button:hover { color: #fff; transform: translateY(-1px); }
.ookla-speedtest-button img { width: 40px; height: 40px; object-fit: contain; }
.ookla-speedtest-button span { display: block; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.ookla-speedtest-button small { display: block; color: rgba(255, 255, 255, .55); font-size: .58rem; letter-spacing: .1em; }
.ookla-speedtest-button .package-speedtest-arrow { color: rgba(255, 255, 255, .62); font-size: 1rem; }
.package-speedtest-button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
@media (max-width: 760px) {
  .package-speedtest { align-items: stretch; flex-direction: column; gap: 1.25rem; }
  .package-speedtest-actions { align-items: stretch; flex-direction: column; }
  .ookla-speedtest-button, .package-speedtest-button { width: 100%; }
}

/* STATS */
.stats { background: var(--navy); color: #fff; }
.stats .grid { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--brand-green); }
.stat-label { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; opacity: .85; }

/* FORM */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--navy); font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.15); }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* VALUES / LISTS */
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: .75rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--brand-green); font-weight: 700; font-size: 1.2rem; }

/* MAP */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3rem 0 0; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--brand-green); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-social { display: flex; gap: .5rem; margin-top: .5rem; }
.footer-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: .75rem; font-weight: 700; }
.footer-social a:hover { background: var(--brand-green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.admin-link { opacity: .55; font-size: .8rem; }
.admin-link:hover { opacity: 1; }

/* PDF cards */
.doc-card { display: flex; gap: 1rem; align-items: flex-start; cursor: zoom-in; }
.doc-icon { width: 48px; height: 48px; background: #fee2e2; color: #b91c1c; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-weight: 700; font-size: .75rem; flex-shrink: 0; }
.doc-meta { color: var(--muted); font-size: .85rem; }

/* Full-screen PDF viewer */
body.pdf-modal-open { overflow: hidden; }
.pdf-modal[hidden] { display: none; }
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(9, 18, 32, .82);
  backdrop-filter: blur(6px);
}
.pdf-modal-panel {
  width: min(96vw, 1600px);
  height: min(94vh, 1050px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.pdf-modal-heading,
.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.pdf-modal-heading { min-width: 0; }
.pdf-modal-heading .doc-icon { width: 38px; height: 38px; }
.pdf-modal-title,
.pdf-modal-heading h2 {
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal-action {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.pdf-modal-action:hover { border-color: var(--brand-green); color: var(--brand-green-dark); }
.pdf-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.pdf-modal-close:hover { background: var(--brand-green-dark); }
.pdf-modal-close:focus-visible,
.pdf-modal-action:focus-visible {
  outline: 3px solid rgba(30, 158, 90, .35);
  outline-offset: 2px;
}
.pdf-modal-viewer {
  width: 100%;
  height: 100%;
  border: 0;
  background: #525659;
}
@media (max-width: 700px) {
  .pdf-modal { padding: 0; }
  .pdf-modal-panel { width: 100vw; height: 100dvh; border-radius: 0; }
  .pdf-modal-header { align-items: flex-start; }
  .pdf-modal-heading .doc-icon { display: none; }
  .pdf-modal-actions { gap: .35rem; }
  .pdf-modal-action { padding: .45rem .55rem; font-size: .74rem; }
  .pdf-modal-action[data-pdf-new-tab] { display: none; }
}

/* SPEED TEST */
.speedtest-section {
  min-height: calc(100vh - 110px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(30, 158, 90, .18), transparent 28rem),
    radial-gradient(circle at 85% 75%, rgba(47, 105, 168, .24), transparent 32rem),
    linear-gradient(145deg, #0c1d33, #152f50 55%, #0c223d);
  color: #fff;
}
.speedtest-section .container { max-width: 1050px; }
.speedtest-intro { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.speedtest-eyebrow {
  display: inline-flex;
  margin-bottom: .65rem;
  color: #5ee49a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.speedtest-intro h1 { margin-bottom: .65rem; color: #fff; }
.speedtest-intro p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; }
.speedtest-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  max-width: 760px;
  margin: 0 auto 1rem;
}
.speedtest-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(9, 25, 45, .58);
  color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
}
a.speedtest-choice:hover {
  border-color: rgba(94, 228, 154, .55);
  background: rgba(16, 43, 69, .82);
  color: #fff;
}
.speedtest-choice.is-active {
  border-color: rgba(94, 228, 154, .52);
  background: rgba(30, 158, 90, .12);
}
.speedtest-choice-number {
  color: #5ee49a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.speedtest-choice strong { display: block; color: #fff; font-size: .88rem; }
.speedtest-choice small { display: block; color: rgba(255, 255, 255, .48); font-size: .68rem; }
.speedtest-choice-status {
  padding: .2rem .45rem;
  border-radius: 999px;
  background: rgba(94, 228, 154, .14);
  color: #5ee49a;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.speedtest-choice-arrow { color: rgba(255, 255, 255, .7); font-size: 1.1rem; }
.speedtest-app {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(9, 25, 45, .68);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}
.speedtest-stage {
  display: grid;
  justify-items: center;
  padding: .25rem 0 .5rem;
}
.speedtest-dial {
  --test-progress: 0deg;
  width: clamp(210px, 34vw, 300px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #42db8a var(--test-progress), rgba(255, 255, 255, .09) 0);
  box-shadow: 0 0 55px rgba(30, 158, 90, .13);
  transition: background .25s ease, box-shadow .25s ease;
}
.speedtest-app.is-running .speedtest-dial { box-shadow: 0 0 65px rgba(66, 219, 138, .3); }
.speedtest-dial-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #183b61, #0d223a 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.speedtest-phase { color: #6deaa5; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.speedtest-current { margin: .15rem 0; color: #fff; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1; }
.speedtest-unit { min-height: 1.5em; color: rgba(255, 255, 255, .62); font-size: .85rem; }
.speedtest-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: min(100%, 410px);
  margin-top: 1.2rem;
}
.speedtest-step {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .38);
  font-size: .66rem;
  font-weight: 700;
  transition: color .25s ease;
}
.speedtest-step i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  font-size: .58rem;
  font-style: normal;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.speedtest-step-line {
  width: clamp(18px, 4vw, 44px);
  height: 1px;
  background: rgba(255, 255, 255, .13);
}
.speedtest-step.is-active { color: #fff; }
.speedtest-step.is-active i {
  border-color: #5ee49a;
  background: rgba(94, 228, 154, .14);
  color: #5ee49a;
  box-shadow: 0 0 18px rgba(94, 228, 154, .2);
}
.speedtest-step.is-complete { color: #7fe9ae; }
.speedtest-step.is-complete i {
  border-color: #39cb7d;
  background: #219a5a;
  color: transparent;
  font-size: 0;
}
.speedtest-step.is-complete i::after { color: #fff; content: "✓"; font-size: .68rem; }
.speedtest-start {
  min-width: 170px;
  margin-top: 1.15rem;
  padding: .78rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: linear-gradient(135deg, #28bd70, #17884c);
  box-shadow: 0 10px 30px rgba(20, 130, 72, .34);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.speedtest-start:hover { transform: translateY(-1px); filter: brightness(1.08); }
.speedtest-start:focus-visible { outline: 3px solid rgba(94, 228, 154, .38); outline-offset: 3px; }
.speedtest-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .62);
  text-align: center;
  font-size: .86rem;
}
.speedtest-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.speedtest-result {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}
.speedtest-result-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 800;
}
.speedtest-result-icon.latency { background: rgba(96, 165, 250, .14); color: #86bdfd; }
.speedtest-result-icon.download { background: rgba(66, 219, 138, .14); color: #5ee49a; }
.speedtest-result-icon.upload { background: rgba(192, 132, 252, .14); color: #d4a5ff; }
.speedtest-result span { display: block; color: rgba(255, 255, 255, .6); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.speedtest-result strong { display: block; overflow: hidden; color: #fff; font-size: 1.65rem; line-height: 1.2; text-overflow: ellipsis; }
.speedtest-result strong span { display: inline; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.speedtest-result small { color: rgba(255, 255, 255, .56); font-size: .72rem; font-weight: 600; }
.speedtest-result em { display: block; color: rgba(255, 255, 255, .42); font-size: .7rem; font-style: normal; }
.speedtest-result em span { display: inline; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.speedtest-experience {
  margin-top: 2rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.speedtest-experience-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.speedtest-experience-kicker {
  display: block;
  margin-bottom: .25rem;
  color: #5ee49a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.speedtest-experience-head h2 { margin: 0; color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.speedtest-experience-head p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .48);
  text-align: right;
  font-size: .72rem;
}
.speedtest-experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.speedtest-quality {
  --quality-color: #8090a2;
  position: relative;
  min-width: 0;
  min-height: 170px;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--quality-color) 24%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--quality-color) 14%, transparent), transparent 48%),
    rgba(255, 255, 255, .035);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.speedtest-quality::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 105px;
  height: 105px;
  border: 1px solid color-mix(in srgb, var(--quality-color) 14%, transparent);
  border-radius: 50%;
  content: "";
}
.speedtest-app.is-complete .speedtest-quality { animation: speedtest-card-in .45s ease both; }
.speedtest-app.is-complete .speedtest-quality:nth-child(2) { animation-delay: .06s; }
.speedtest-app.is-complete .speedtest-quality:nth-child(3) { animation-delay: .12s; }
.speedtest-app.is-complete .speedtest-quality:nth-child(4) { animation-delay: .18s; }
@keyframes speedtest-card-in {
  from { opacity: .55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.speedtest-quality-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.speedtest-quality-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--quality-color) 30%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--quality-color) 12%, transparent);
  color: var(--quality-color);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--quality-color) 10%, transparent);
}
.speedtest-quality-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.speedtest-quality-status {
  padding: .28rem .52rem;
  border: 1px solid color-mix(in srgb, var(--quality-color) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--quality-color) 10%, transparent);
  color: var(--quality-color);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.speedtest-quality h3 { margin: .9rem 0 .35rem; color: #fff; font-size: .96rem; }
.speedtest-quality p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: .7rem;
  line-height: 1.5;
}
.speedtest-quality[data-state="excellent"] { --quality-color: #5ee49a; }
.speedtest-quality[data-state="good"] { --quality-color: #72b7ff; }
.speedtest-quality[data-state="fair"] { --quality-color: #ffc66d; }
.speedtest-quality[data-state="poor"] { --quality-color: #ff7f8a; }
.speedtest-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, .5);
  text-align: center;
  font-size: .8rem;
}
.speedtest-note strong { color: rgba(255, 255, 255, .72); }
.speedtest-note p { margin: .25rem 0 0; }
@media (max-width: 720px) {
  .speedtest-section { padding: 2.75rem 0; }
  .speedtest-picker { grid-template-columns: 1fr; }
  .speedtest-app { padding: 1.2rem .85rem; border-radius: 18px; }
  .speedtest-results { grid-template-columns: 1fr; gap: .65rem; margin-top: 1.5rem; }
  .speedtest-result { padding: .8rem 1rem; }
  .speedtest-result strong { font-size: 1.4rem; }
  .speedtest-steps { gap: .35rem; margin-top: 1rem; }
  .speedtest-step { gap: .28rem; font-size: .58rem; }
  .speedtest-step-line { width: 12px; }
  .speedtest-experience-head { align-items: start; flex-direction: column; }
  .speedtest-experience-head p { max-width: none; text-align: left; }
  .speedtest-experience-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .speedtest-quality { min-height: 160px; padding: .85rem; }
  .speedtest-quality-top { align-items: start; flex-direction: column; }
}

/* ADMIN */
.admin-body { background: #f1f5f9; min-height: 100vh; display: flex; }
.admin-sidebar { width: 260px; background: var(--navy); color: #fff; padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.admin-sidebar .brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 2rem; letter-spacing: .05em; }
.admin-sidebar .brand small { display: block; font-size: .7rem; opacity: .65; letter-spacing: .2em; }
.admin-nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; border-radius: var(--radius); color: rgba(255,255,255,.75); margin-bottom: .25rem; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav .badge { margin-left: auto; background: var(--brand-green); color: #fff; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: #f8fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr.unread td { background: #eff6ff; font-weight: 600; }
.table td.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.icon-btn { border: 1px solid var(--border); background: #fff; padding: .35rem .6rem; border-radius: 6px; cursor: pointer; font-size: .8rem; }
.icon-btn:hover { background: #f8fafc; }
.icon-btn.danger { color: #b91c1c; border-color: #fecaca; }
.icon-btn.danger:hover { background: #fee2e2; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 2rem; }
.login-card { background: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: 100%; max-width: 420px; }
.login-card h1 { text-align: center; }
@media (max-width: 800px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; transition: left .3s; z-index: 100; }
  .admin-body.sidebar-open .admin-sidebar { left: 0; }
  .admin-main { width: 100%; padding-top: 4rem; }
  .admin-toggle { position: fixed; top: 1rem; left: 1rem; z-index: 101; background: var(--navy); color: #fff; border: 0; padding: .5rem .75rem; border-radius: 6px; }
}
.admin-toggle { display: none; }
@media (max-width: 800px) { .admin-toggle { display: block; } }

.badge-pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.badge-pill.on { background: #d1fae5; color: #065f46; }
.badge-pill.off { background: #fee2e2; color: #991b1b; }
