/* Paniki / Polahi 2027 web theme. The background remains fixed while content scrolls. */
:root {
  color-scheme: light;
  --portal-ink: #102a47;
  --portal-muted: #52657d;
  --portal-paper: #f7fbff;
  --portal-cyan: #14779b;
  --portal-violet: #7656d1;
  --portal-line: rgba(34, 100, 143, .16);
  --portal-glass: rgba(255, 255, 255, .78);
}

html {
  min-height: 100%;
  background: var(--portal-paper);
}

body.theme-site {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: clip;
  color: var(--portal-ink);
  background: transparent !important;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body.theme-paniki {
  --brand-primary: #14779b;
  --brand-deep: #0c587b;
  --brand-bright: #55bfd3;
  --brand-secondary: #7656d1;
  --brand-wash: rgba(20, 119, 155, .10);
}

body.theme-polahi {
  --brand-primary: #6652bd;
  --brand-deep: #49388f;
  --brand-bright: #54b6d3;
  --brand-secondary: #14779b;
  --brand-wash: rgba(102, 82, 189, .10);
}

body.theme-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(104, 174, 224, .14), transparent 36%),
    radial-gradient(ellipse at 92% 82%, rgba(145, 119, 219, .12), transparent 38%),
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, .72), transparent 66%),
    linear-gradient(135deg, #f7fbff 0%, #f3f8fe 52%, #f8f7ff 100%);
}

body.theme-site > .theme-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background: transparent;
}

.theme-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.42), transparent 58%),
    linear-gradient(90deg, rgba(20,119,155,.025), transparent 30%, transparent 70%, rgba(118,86,209,.025));
}

.theme-canvas[data-palette="1"] { --scene-cyan: #268ba8; --scene-violet: #8071d5; --scene-blue: #5799cf; }
.theme-canvas[data-palette="2"] { --scene-cyan: #39a5bd; --scene-violet: #7461c2; --scene-blue: #6385cf; }
.theme-canvas[data-palette="3"] { --scene-cyan: #168eaa; --scene-violet: #8b6bd0; --scene-blue: #498fca; }
.theme-canvas[data-palette="0"] { --scene-cyan: #14779b; --scene-violet: #7656d1; --scene-blue: #4e91c7; }

.theme-hex {
  position: absolute;
  display: none;
  width: var(--hex-size, 92px);
  height: 80px;
  transform: translate(-50%, -50%) rotate(var(--hex-turn, 0deg));
  opacity: var(--hex-opacity, .2);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(145deg, var(--scene-cyan), var(--scene-violet));
}

.theme-hex::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(250, 253, 255, .88);
}

.theme-hex.is-glass {
  background: linear-gradient(145deg, var(--scene-cyan), var(--scene-blue) 48%, var(--scene-violet));
  box-shadow: inset 0 0 18px rgba(255,255,255,.72);
}

.theme-hex.is-glass::before {
  inset: 3px;
  background: linear-gradient(140deg, rgba(255,255,255,.82), rgba(224,241,252,.68) 58%, rgba(237,231,255,.78));
}

.theme-hex.is-filled {
  background: linear-gradient(135deg, var(--scene-cyan), var(--scene-violet));
  box-shadow: inset 0 0 24px rgba(255,255,255,.65);
}

.theme-hex.is-filled::before {
  inset: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,.08) 58%, rgba(16,42,71,.12));
}

.theme-node {
  position: absolute;
  z-index: 1;
  width: var(--node-size, 7px);
  height: var(--node-size, 7px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: var(--scene-cyan);
  box-shadow: 0 1px 4px rgba(16,42,71,.16);
  transform: translate(-50%, -50%);
}

.theme-trace {
  position: absolute;
  display: none;
  height: 1px;
  transform-origin: left center;
  opacity: .18;
  background: linear-gradient(90deg, var(--scene-cyan), var(--scene-violet));
}

.theme-trace::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scene-violet);
  transform: translateY(-50%);
}

@supports (clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%)) {
  .theme-hex { display: block; }
  .theme-trace { display: block; }
}

/* Navigation */
.theme-site .site-header-slot {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.theme-site .nav {
  position: relative;
  top: auto;
  z-index: auto;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(39, 94, 136, .12);
  border-radius: 0;
  background: rgba(250, 253, 255, .88);
  box-shadow: 0 8px 28px rgba(23, 54, 86, .07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.theme-site .nav-inner { max-width: 1180px; min-height: 48px; }
.theme-site .logo {
  gap: 10px;
  color: var(--portal-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .01em;
  transform: none;
  text-decoration: none;
}
.theme-site .brand-mark {
  width: 36px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(16,42,71,.12));
}
.theme-site .logo-mikrotik { gap: 9px; }
.theme-site .logo-mikrotik .brand-mark { width: 38px; height: 30px; }
.theme-site .logo-lockup { display: flex; align-items: center; }
.theme-site .logo-mikrotik .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--portal-ink);
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  text-shadow: 0 1px 0 rgba(255,255,255,.94), 0 3px 0 rgba(18,72,96,.24), 0 6px 10px rgba(25,79,105,.16);
  transform: skewX(-4deg);
}
.theme-site .logo-mikrotik .wordmark b {
  display: inline-block;
  padding: 4px 6px 5px;
  border: 1px solid rgba(255,235,227,.65);
  border-radius: 6px 4px 6px 4px;
  color: #fff;
  background: linear-gradient(145deg, #f44a45, #b30d18 66%, #760912);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.54), 0 3px 0 rgba(76,7,13,.68), 0 5px 8px rgba(0,0,0,.25);
  font-size: .62em;
  font-style: italic;
  letter-spacing: -.05em;
  line-height: .8;
  transform: rotate(-4deg) skewX(-3deg);
}
.theme-site .nav-member-link { gap: 8px; }
.theme-site .nav-member-link [data-member-label] {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-site .nav-member-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9baabd;
  box-shadow: 0 0 0 3px rgba(125, 145, 170, .12);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.theme-site .nav-member-link[data-member-state="checking"] .nav-member-indicator {
  background: #d5a331;
  box-shadow: 0 0 0 3px rgba(213, 163, 49, .15);
}
.theme-site .nav-member-link[data-member-state="member"] .nav-member-indicator {
  background: #28a46d;
  box-shadow: 0 0 0 3px rgba(40, 164, 109, .15);
}
.theme-site .nav-member-link[data-member-state="unverified"] .nav-member-indicator {
  background: #d58231;
  box-shadow: 0 0 0 3px rgba(213, 130, 49, .15);
}
.theme-site .nav-menu { gap: 6px; }
.theme-site .nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #38516c;
  font-size: 14px;
  font-weight: 650;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.theme-site .nav-link:hover,
.theme-site .nav-link:focus-visible {
  color: var(--brand-deep);
  background: var(--brand-wash);
  box-shadow: none;
}

/* The desktop hero uses the wide left/right composition from the portal screens. */
.theme-site .hero {
  padding: clamp(56px, 8vw, 104px) 24px clamp(52px, 7vw, 84px);
  text-align: left;
  background: transparent;
}
.theme-site .hero-luxury {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}
.theme-site .hero-luxury::before { display: none; }
.theme-site .hero-inner.hero-layout {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  align-items: center;
  gap: clamp(30px, 7vw, 104px);
}
.theme-site .hero-copy { max-width: 680px; }
.theme-site .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand-deep);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
}
.theme-site .hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 5px rgba(65,174,202,.12);
}
.theme-site .hero-title {
  max-width: 700px;
  margin: 0;
  color: var(--portal-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .99;
  text-wrap: balance;
}
.theme-site .hero-title span { color: var(--brand-primary); font-style: italic; }
.theme-site .hero-tagline {
  max-width: 590px;
  margin: 22px 0 0;
  color: #425b73;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
}
.theme-site .hero-description {
  max-width: 570px;
  margin: 14px 0 0;
  color: var(--portal-muted);
  font-size: 15px;
  line-height: 1.7;
}
.theme-site .hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.theme-site .cta-container { margin: 0; }
.theme-site .cta-btn-pro {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  color: var(--brand-deep);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(230,243,250,.92));
  box-shadow: 0 9px 24px rgba(22,68,105,.11), inset 0 1px rgba(255,255,255,.96);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.theme-site .cta-btn-pro:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(22,68,105,.15); }
.theme-site .promo-badge-mini {
  position: static;
  padding: 4px 8px;
  color: white;
  background: var(--brand-primary);
  box-shadow: none;
  font-size: 10px;
}
.theme-site .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.theme-site .btn-main {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  box-shadow: 0 9px 22px rgba(32,78,121,.20), inset 0 1px rgba(255,255,255,.27);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.theme-site .btn-main:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 13px 28px rgba(32,78,121,.23); }
.theme-site .btn-main:focus-visible,
.theme-site .btn-ghost:focus-visible,
.theme-site .btn-map:focus-visible { outline: 3px solid rgba(118,86,209,.48); outline-offset: 3px; }
.theme-site .hero-note { color: #52657d; font-size: 14px; }
.theme-site .hero-note strong { color: var(--portal-ink); }

.hero-access {
  width: min(100%, 430px);
  justify-self: end;
  padding: 8px 0;
  color: var(--portal-ink);
}
.access-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}
.access-brand img { width: 42px; height: 32px; object-fit: contain; }
.access-brand strong {
  display: block;
  color: var(--portal-ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.access-brand strong span { color: var(--brand-primary); }
.access-brand small {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
}
.access-brand-mikrotik { display: block; text-align: center; }
.access-brand-mikrotik .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #102a47;
  color: var(--portal-ink);
  font-size: clamp(34px, 4vw, 48px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  text-shadow: 0 1px 0 rgba(255,255,255,.94), 0 4px 0 rgba(18,72,96,.28), 0 9px 15px rgba(25,79,105,.20);
  transform: skewX(-4deg);
}
.access-brand-mikrotik .wordmark b {
  display: inline-block;
  padding: 7px 11px 8px;
  border: 1px solid rgba(255,235,227,.65);
  border-radius: 9px 5px 10px 6px;
  color: #fff;
  background: linear-gradient(145deg, #f44a45, #b30d18 66%, #760912);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.54), 0 6px 0 rgba(76,7,13,.68), 0 10px 14px rgba(0,0,0,.38);
  font-size: .62em;
  font-style: italic;
  letter-spacing: -.05em;
  line-height: .8;
  transform: rotate(-4deg) skewX(-3deg);
}
.access-brand-mikrotik > p {
  margin: 8px 0 0;
  color: rgba(16,42,71,.72);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.access-partner { margin: 22px auto 0; text-align: center; }
.access-partner img { display: block; width: min(100%, 132px); height: auto; margin: 0 auto; }
.access-partner p {
  margin: 4px 0 0;
  color: #687b8f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.access-copy { margin-top: 22px; text-align: center; }
.access-kicker {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.access-copy h2 {
  margin: 0;
  color: var(--portal-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-wrap: balance;
}
.access-copy h2 em { color: var(--brand-secondary); font-weight: 500; }
.access-copy > p:last-child {
  margin: 8px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.55;
}
.access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 480px);
  margin: 22px auto 0;
}
.access-actions-single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 380px);
  margin-right: auto;
  margin-left: auto;
}
.access-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.access-button span { font-size: 19px; line-height: 1; }
.access-button:hover { transform: translateY(-2px); }
.access-button:focus-visible { outline: 3px solid rgba(118,86,209,.48); outline-offset: 3px; }
.access-button-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(30,79,119,.2), inset 0 1px rgba(255,255,255,.28), inset 0 -2px rgba(7,36,66,.15);
}
.access-button-primary:hover { box-shadow: 0 12px 24px rgba(30,79,119,.25), inset 0 1px rgba(255,255,255,.3); }
.access-button-secondary {
  color: var(--brand-deep);
  border-color: rgba(66,117,157,.19);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,247,252,.92));
  box-shadow: 0 5px 14px rgba(30,67,107,.07), inset 0 1px #fff;
}
.access-button-secondary:hover { box-shadow: 0 9px 20px rgba(30,67,107,.12), inset 0 1px #fff; }
.access-price {
  margin: 10px 0 0;
  color: var(--portal-muted);
  font-size: 12px;
  text-align: center;
}
.access-price strong { color: var(--portal-ink); }
.access-install-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 11px auto 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.access-install-title { color: var(--portal-muted); }
.access-install-action {
  color: var(--brand-deep);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--brand-primary);
  text-underline-offset: 3px;
}
.access-install-action b { margin-left: 2px; color: var(--brand-primary); font-size: 14px; }
.access-install-link:hover { color: var(--brand-deep); background: rgba(255,255,255,.34); }
.access-install-link:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* Page sections and content surfaces */
.theme-site .section,
.theme-site .section-bottom,
.theme-site .highlights { background: transparent; }
.theme-site .section { padding: clamp(24px, 4vw, 50px) 20px; }
.theme-site .section-inner { width: min(100%, 1120px); }
.theme-site .section-header { margin-bottom: 26px; }
.theme-site .section-header h2,
.theme-site h1,
.theme-site h2,
.theme-site h3,
.theme-site h4 { color: var(--portal-ink); letter-spacing: -.025em; }
.theme-site .section-header h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 38px); font-weight: 500; }
.theme-site .section-header p { color: var(--portal-muted); }
.theme-site .highlight-grid { gap: 16px; }
.theme-site .banana-card,
.theme-site .voucher-card,
.theme-site .form-container,
.theme-site .thank-box,
.theme-site .modal-box {
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  color: var(--portal-ink);
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(246,250,254,.82));
  box-shadow: 0 15px 38px rgba(25,64,101,.10), inset 0 1px 0 rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.theme-site .banana-card { padding: 24px; border-color: var(--portal-line); border-radius: 20px; }
.theme-site .banana-card:hover,
.theme-site .voucher-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(25,64,101,.14), inset 0 1px white; }
.theme-site .banana-lime,
.theme-site .banana-mango,
.theme-site .banana-berry { background-image: none; }
.theme-site .highlight-card h3 { margin-bottom: 9px; font-size: 18px; }
.theme-site .highlight-card p,
.theme-site .voucher-duration,
.theme-site .voucher-features { color: var(--portal-muted); }
.theme-site .section-bottom {
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  padding-top: 30px;
  padding-bottom: 30px;
}
.theme-site .bottom-inner { gap: 22px; }
.theme-site .btn-ghost {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(20,119,155,.24);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255,255,255,.76);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.theme-site .btn-ghost:hover { background: white; box-shadow: 0 8px 22px rgba(25,64,101,.10); }

.theme-site .voucher-grid { gap: 18px; }
.theme-site .voucher-card {
  padding: 22px;
  border-color: var(--portal-line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.theme-site .voucher-card.highlight { border-color: rgba(118,86,209,.4); box-shadow: 0 16px 38px rgba(96,77,166,.15); }
.theme-site .voucher-chip { color: var(--brand-deep); background: var(--brand-wash); border: 1px solid rgba(20,119,155,.14); }
.theme-site .voucher-chip.chip-gold { color: #49388f; background: rgba(118,86,209,.12); }
.theme-site .voucher-card h3 { color: var(--brand-deep); font-size: 24px; }
.theme-site .voucher-card .btn-main { width: 100%; }

.theme-site .form-container { padding: clamp(22px, 4vw, 34px); }
.theme-site .form-container h2 { color: var(--portal-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.theme-site .form-container label,
.theme-site .modal-box label { color: #435a72; font-weight: 650; }
.theme-site .form-container input,
.theme-site .form-container textarea,
.theme-site .modal-box input,
.theme-site .modal-box select {
  min-height: 46px;
  border: 1px solid rgba(47,91,128,.20);
  border-radius: 12px;
  color: var(--portal-ink);
  background: rgba(255,255,255,.88);
  font: inherit;
}
.theme-site .form-container input:focus,
.theme-site .form-container textarea:focus,
.theme-site .modal-box input:focus,
.theme-site .modal-box select:focus { outline: 3px solid rgba(65,174,202,.20); border-color: var(--brand-primary); box-shadow: none; }
.theme-site .btn-map { color: var(--brand-deep); background: rgba(255,255,255,.9); border: 1px solid rgba(20,119,155,.22); box-shadow: 0 6px 18px rgba(25,64,101,.10); }
.theme-site #map { border-radius: 16px; }

.theme-site .modal { z-index: 2100; background: rgba(16,35,58,.42); }
.theme-site .modal-box { max-height: min(88vh, 760px); overflow-y: auto; }
.theme-site .modal-box h2,
.theme-site .modal-box h3 { color: var(--portal-ink); }
.theme-site .voucher-picker-modal {
  z-index: 2200;
  background: rgba(11, 28, 48, .54);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.theme-site .voucher-picker-dialog {
  width: min(100%, 560px);
  max-width: 560px;
  max-height: min(88vh, 700px);
  margin: 0;
  padding: 26px;
  border-radius: 24px;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(148deg, rgba(255,255,255,.99), rgba(244,248,253,.97));
  box-shadow: 0 28px 76px rgba(8,24,44,.30), inset 0 1px 0 #fff;
}
.voucher-picker-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.voucher-picker-kicker {
  margin: 0 0 7px;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .19em;
}
.theme-site .voucher-picker-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.voucher-picker-header > div > p:last-child { margin: 8px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.5; }
.voucher-picker-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--portal-line);
  border-radius: 50%;
  color: var(--portal-ink);
  background: rgba(255,255,255,.84);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.voucher-picker-close:hover { background: #fff; box-shadow: 0 5px 16px rgba(25,64,101,.12); }
.voucher-picker-close:focus-visible,
.voucher-picker-option:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.voucher-picker-options { display: grid; gap: 10px; margin-top: 22px; }
.voucher-picker-option {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(50,86,125,.16);
  border-radius: 17px;
  color: var(--portal-ink);
  background: rgba(255,255,255,.75);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.voucher-picker-option:hover { transform: translateY(-1px); border-color: var(--brand-primary); box-shadow: 0 9px 22px rgba(25,64,101,.10); }
.voucher-picker-option-featured { border-color: var(--brand-primary); background: linear-gradient(110deg, var(--brand-wash), rgba(255,255,255,.94)); }
.voucher-picker-duration {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-deep));
  box-shadow: 0 5px 12px rgba(25,64,101,.16), inset 0 1px rgba(255,255,255,.32);
  line-height: 1;
}
.voucher-picker-duration strong { font-size: 16px; font-weight: 850; }
.voucher-picker-duration small { margin-top: 3px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.voucher-picker-copy { min-width: 0; display: grid; gap: 4px; }
.voucher-picker-copy strong { color: var(--portal-ink); font-size: 14px; font-weight: 800; line-height: 1.2; }
.voucher-picker-copy small { color: var(--portal-muted); font-size: 12px; font-weight: 450; line-height: 1.35; }
.voucher-picker-tag { padding: 5px 9px; border-radius: 999px; color: var(--brand-deep); background: var(--brand-wash); font-size: 10px; font-weight: 800; white-space: nowrap; }
.voucher-picker-option-featured .voucher-picker-tag { color: #fff; background: var(--brand-primary); }
.voucher-picker-arrow { color: var(--brand-primary); font-size: 19px; font-weight: 750; text-align: right; }
.voucher-picker-note { margin: 16px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.theme-site .modal-sub,
.theme-site .modal-note { color: var(--portal-muted); }
.theme-site .footer-info { background: rgba(232,241,249,.64); border-top: 1px solid var(--portal-line); }
.theme-site .footer-container { width: min(100%, 1120px); }
.theme-site .footer-col h3 { color: var(--portal-ink); }
.theme-site .footer-col p,
.theme-site .footer-col a { color: #52657d; }
.theme-site .footer-col a:hover { color: var(--brand-primary); }
.theme-site .footer { color: var(--portal-muted); background: rgba(232,241,249,.64); }
.theme-site .support img { max-width: 150px; height: auto; }
.theme-site .thank-box { padding: clamp(24px, 5vw, 40px); }
.theme-site .card,
.theme-site .detail-card {
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  color: var(--portal-ink);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(241,248,253,.88));
  box-shadow: 0 16px 38px rgba(25,64,101,.11), inset 0 1px 0 rgba(255,255,255,.96);
}
.theme-site .badge { color: var(--brand-deep); background: var(--brand-wash); border: 1px solid rgba(20,119,155,.16); }
.theme-site #invoice_id { color: var(--brand-primary) !important; }
.theme-site #voucher_code { color: var(--brand-deep); }
.theme-site #startStopBtn {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(32,78,121,.18), inset 0 1px rgba(255,255,255,.30);
  font-weight: 750;
}
.theme-site #startStopBtn.running { color: white; background: linear-gradient(135deg, #dd5a67, #a93452); border-color: rgba(255,255,255,.7); }
.theme-site #progressBar { overflow: hidden; border-radius: 999px; background: rgba(55,90,128,.12); }
.theme-site #progress { border-radius: inherit; background: linear-gradient(90deg, var(--brand-bright), var(--brand-secondary)); }
.theme-site .testArea { border: 1px solid var(--portal-line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 10px 24px rgba(25,64,101,.08); }
.theme-site #dlText { color: var(--brand-primary); }
.theme-site #ulText { color: #2b8b75; }
.theme-site #pingText,
.theme-site #jitText { color: var(--brand-secondary); }
.theme-site .thank-box h1,
.theme-site .thank-box a { color: var(--brand-primary); }
.theme-site .thank-box p { color: var(--portal-muted); }

.theme-site :focus-visible { outline-color: rgba(118,86,209,.68); outline-offset: 3px; }
.theme-site .full { width: 100%; }

@media (min-width: 768px) {
  .theme-site .highlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-site .voucher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-site .footer-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .theme-site .hero-inner.hero-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .theme-site .hero-copy { max-width: 720px; }
  .hero-access { justify-self: center; }
  .access-actions { grid-template-columns: 1fr; max-width: 360px; gap: 10px; }
  .access-actions-single { width: min(100%, 380px); max-width: 380px; }
  .access-button-primary { min-height: 54px; }
  .access-button-secondary { min-height: 50px; }
}

@media (max-width: 680px) {
  .theme-canvas { opacity: .68; }
  .theme-site .nav-inner { padding: 0 16px; }
  .theme-site .nav-menu { gap: 2px; }
  .theme-site .nav-link { padding: 7px 7px; font-size: 12px; }
  .theme-site .logo-mikrotik { gap: 6px; }
  .theme-site .logo-mikrotik .wordmark { font-size: 20px; }
  .theme-site .logo-mikrotik .brand-mark { width: 28px; height: 22px; }
  .theme-site .hero { padding: clamp(30px, 7vw, 42px) 20px 30px; }
  .theme-site .hero-inner.hero-layout { grid-template-columns: 1fr; gap: 26px; }
  .theme-site .hero-copy { max-width: 100%; }
  .theme-site .hero-title { max-width: 540px; font-size: clamp(20px, 6vw, 24px); line-height: 1.08; }
  .theme-site .hero-description { max-width: 560px; margin-top: 10px; font-size: 14px; line-height: 1.48; }
  .theme-site .hero-note { margin-top: 10px; font-size: 12px; }
  .hero-access { width: 100%; max-width: 460px; padding: 8px 0; }
  .access-partner { margin-top: 18px; }
  .access-install-link { margin-top: 9px; }
  .access-brand-mikrotik .wordmark { font-size: clamp(32px, 10vw, 42px); }
  .access-copy { margin-top: 18px; }
  .theme-site .section { padding-right: 16px; padding-left: 16px; }
  .theme-site .bottom-inner { align-items: flex-start; }
}

@media (max-width: 620px) {
  .theme-site .voucher-picker-modal { align-items: flex-end; padding: 0; }
  .theme-site .voucher-picker-dialog {
    width: 100%;
    max-width: none;
    max-height: min(88vh, 700px);
    overflow-y: auto;
    padding: 22px 16px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 42px rgba(8,24,44,.24), inset 0 1px 0 #fff;
  }
  .voucher-picker-options { gap: 8px; margin-top: 17px; }
  .voucher-picker-option { min-height: 72px; grid-template-columns: 44px minmax(0,1fr) auto 16px; gap: 9px; padding: 9px 10px; border-radius: 15px; }
  .voucher-picker-duration { width: 44px; height: 44px; border-radius: 14px; }
  .voucher-picker-copy strong { font-size: 13px; }
  .voucher-picker-copy small { font-size: 11px; }
  .voucher-picker-tag { padding: 4px 7px; font-size: 9px; }
}

@media (max-width: 360px) {
  .voucher-picker-tag { display: none; }
  .voucher-picker-option { grid-template-columns: 42px minmax(0,1fr) 16px; gap: 9px; }
  .voucher-picker-duration { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .theme-site .logo { font-size: 15px; }
  .theme-site .nav-inner { padding: 0 10px; }
  .theme-site .nav-menu { gap: 0; }
  .theme-site .nav-link { padding: 5px 4px; font-size: 10.5px; }
  .theme-site .nav-member-link { gap: 5px; }
  .theme-site .logo-mikrotik { gap: 4px; }
  .theme-site .logo-mikrotik .wordmark { font-size: 17px; }
  .theme-site .logo-mikrotik .brand-mark { width: 22px; height: 18px; }
  .theme-site .logo-mikrotik .wordmark b { padding: 3px 5px 4px; }
  .theme-site .nav-link { padding: 7px 7px; font-size: 11px; }
  .theme-site .hero { padding-right: 16px; padding-left: 16px; }
  .theme-site .hero-title { font-size: clamp(20px, 6vw, 22px); }
  .hero-access { padding: 8px 0; }
  .access-brand-mikrotik .wordmark { font-size: 30px; }
  .theme-site .modal-box { width: calc(100% - 24px); padding: 20px; }
  .theme-site #buyModal .modal-box { width: 100%; padding: 16px; }
  .theme-site .voucher-picker-dialog { width: 100%; padding: 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-site *, .theme-site *::before, .theme-site *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
