:root {
  --bg: #050816;
  --bg-deep: #02030a;
  --panel: rgba(10, 15, 38, 0.72);
  --panel-strong: rgba(9, 13, 31, 0.88);
  --line: rgba(132, 255, 244, 0.16);
  --text: #f4f7ff;
  --muted: #98a6d9;
  --cyan: #59fff5;
  --blue: #4ca6ff;
  --pink: #ff52c8;
  --lime: #d5ff5f;
  --shadow: 0 0 30px rgba(89, 255, 245, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 82, 200, 0.20), transparent),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(89, 255, 245, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(76, 166, 255, 0.08), transparent),
    linear-gradient(180deg, #09101f 0%, var(--bg) 50%, var(--bg-deep) 100%);
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
  pointer-events: none;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -8rem;
  left: -10rem;
  background: var(--pink);
}

.page-glow-right {
  right: -8rem;
  top: 18rem;
  background: var(--cyan);
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar,
.hero-content,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(89, 255, 245, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.15), rgba(76, 166, 255, 0.08));
  box-shadow: var(--shadow);
  color: var(--cyan);
}

.brand-name {
  font-size: 1rem;
  color: var(--text);
}

.topbar-link {
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(89, 255, 245, 0.26);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.25s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  border-color: rgba(89, 255, 245, 0.7);
  box-shadow: 0 0 22px rgba(89, 255, 245, 0.22);
}

.hero {
  padding-bottom: 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 3rem 0 4rem;
}

.hero-copy h1,
.section-heading h2,
.proxy-card h3,
.feature-card h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.9rem, 7vw, 5.5rem);
  line-height: 0.98;
  text-shadow: 0 0 28px rgba(89, 255, 245, 0.18);
}

.hero-text {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(89, 255, 245, 0.5);
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.16), rgba(255, 82, 200, 0.18));
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.16) inset,
    0 0 28px rgba(89, 255, 245, 0.18);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.button-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}
.button-google:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}
.button-google svg {
  flex-shrink: 0;
}

.button-full {
  width: 100%;
}

.button-cta {
  border: none;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #050816;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.2) inset,
    0 4px 24px rgba(89, 255, 245, 0.2),
    0 0 48px rgba(255, 82, 200, 0.1);
}

.button-cta:hover,
.button-cta:focus-visible {
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.3) inset,
    0 6px 32px rgba(89, 255, 245, 0.3),
    0 0 64px rgba(255, 82, 200, 0.15);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 2.4rem 0 0;
  list-style: none;
}

.hero-stats li,
.feature-card,
.proxy-card,
.step-card,
.signal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-stats li {
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.hero-stats strong,
.step-card span {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  color: var(--lime);
}

.hero-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.signal-card {
  position: relative;
  width: min(100%, 29rem);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  overflow: hidden;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 255, 245, 0.26), transparent 68%);
}

.signal-label {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.signal-screen {
  position: relative;
  min-height: 19rem;
  border-radius: 20px;
  border: 1px solid rgba(89, 255, 245, 0.15);
  background:
    linear-gradient(180deg, rgba(2, 4, 14, 0.9), rgba(10, 22, 46, 0.92)),
    var(--panel-strong);
  overflow: hidden;
}

.signal-screen::before,
.signal-screen::after {
  content: "";
  position: absolute;
  inset: 0;
}

.signal-screen::before {
  background:
    linear-gradient(rgba(89, 255, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 255, 245, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  animation: gridShift 16s linear infinite;
}

.signal-screen::after {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 82, 200, 0.28), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(89, 255, 245, 0.18), transparent 20%),
    radial-gradient(circle at 48% 74%, rgba(76, 166, 255, 0.12), transparent 24%);
  animation: ambientDrift 8s ease-in-out infinite alternate;
}

.signal-radar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.signal-radar-disk {
  position: relative;
  width: min(72%, 15.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(89, 255, 245, 0.12);
  background: radial-gradient(circle, rgba(89, 255, 245, 0.07), transparent 68%);
  box-shadow:
    inset 0 0 40px rgba(89, 255, 245, 0.08),
    0 0 26px rgba(89, 255, 245, 0.05);
}

.signal-radar-disk::before,
.signal-radar-disk::after {
  content: "";
  position: absolute;
  inset: 50%;
  background: rgba(89, 255, 245, 0.12);
  transform: translate(-50%, -50%);
}

.signal-radar-disk::before {
  width: 1px;
  height: 100%;
}

.signal-radar-disk::after {
  width: 100%;
  height: 1px;
}

.signal-ring,
.signal-center,
.signal-sweep,
.signal-node,
.signal-packet {
  position: absolute;
}

.signal-ring {
  border-radius: 50%;
  border: 1px solid rgba(89, 255, 245, 0.18);
}

.signal-ring-outer {
  inset: 10%;
  animation: radarPulse 4.5s ease-in-out infinite;
}

.signal-ring-inner {
  inset: 26%;
  animation: radarPulse 4.5s ease-in-out infinite 1.4s;
}

.signal-sweep {
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(89, 255, 245, 0.3) 330deg,
    rgba(89, 255, 245, 0.02) 360deg
  );
  animation: rotateSweep 5.6s linear infinite;
  opacity: 0.9;
  mask-image: radial-gradient(circle, transparent 0 18%, black 22% 100%);
}

.signal-center {
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 0 rgba(89, 255, 245, 0.35),
    0 0 18px rgba(89, 255, 245, 0.95);
  animation: centerPulse 2.8s ease-in-out infinite;
}

.signal-node,
.signal-packet {
  border-radius: 50%;
}

.signal-node {
  width: 0.7rem;
  height: 0.7rem;
  box-shadow: 0 0 14px currentColor;
  animation: nodeBlink 2.8s ease-in-out infinite;
}

.signal-node-a {
  top: 20%;
  left: 63%;
  color: var(--cyan);
  background: var(--cyan);
}

.signal-node-b {
  top: 58%;
  left: 18%;
  color: var(--pink);
  background: var(--pink);
  animation-delay: 0.8s;
}

.signal-node-c {
  top: 72%;
  left: 70%;
  color: var(--lime);
  background: var(--lime);
  animation-delay: 1.3s;
}

.signal-packet {
  width: 0.46rem;
  height: 0.46rem;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.signal-packet-a {
  top: 56%;
  left: 21%;
  animation: packetMoveA 5.4s linear infinite;
}

.signal-packet-b {
  top: 26%;
  left: 60%;
  animation: packetMoveB 4.7s linear infinite;
}

.signal-line {
  --line-color: var(--cyan);
  position: absolute;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04) 15%,
    var(--line-color) 50%,
    rgba(255, 255, 255, 0.04) 85%,
    transparent
  );
  filter: drop-shadow(0 0 10px var(--line-color));
}

.signal-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  width: 0.76rem;
  height: 0.76rem;
  border-radius: 50%;
  background: var(--line-color);
  box-shadow: 0 0 16px var(--line-color);
  transform: translate(-50%, -50%);
  animation: signalDot 4.8s linear infinite;
}

.signal-line-a {
  --line-color: var(--cyan);
  top: 26%;
  animation: pulse 4.2s ease-in-out infinite;
}

.signal-line-b {
  --line-color: var(--pink);
  top: 51%;
  animation: pulse 5s ease-in-out infinite reverse;
}

.signal-line-c {
  --line-color: var(--lime);
  top: 74%;
  animation: pulse 3.7s ease-in-out infinite;
}

.signal-line-b::after {
  animation-duration: 5.6s;
  animation-delay: -0.9s;
}

.signal-line-c::after {
  animation-duration: 4.1s;
  animation-delay: -1.2s;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-12%);
    opacity: 0.5;
  }
  50% {
    transform: translateX(12%);
    opacity: 1;
  }
}

@keyframes gridShift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 38px 38px, 38px 38px;
  }
}

@keyframes ambientDrift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-4%) scale(1.04);
  }
}

@keyframes rotateSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes radarPulse {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.82;
  }
}

@keyframes centerPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(89, 255, 245, 0.18),
      0 0 16px rgba(89, 255, 245, 0.82);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(89, 255, 245, 0),
      0 0 24px rgba(89, 255, 245, 1);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes packetMoveA {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  58% {
    transform: translate(5.8rem, -2rem);
    opacity: 1;
  }
  100% {
    transform: translate(9rem, -4.2rem);
    opacity: 0;
  }
}

@keyframes packetMoveB {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    transform: translate(-4.6rem, 3rem);
    opacity: 1;
  }
  100% {
    transform: translate(-7.2rem, 5.4rem);
    opacity: 0;
  }
}

@keyframes signalDot {
  0% {
    left: 8%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    left: 50%;
    opacity: 1;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}

.signal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.signal-meta div {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(89, 255, 245, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.signal-meta span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-meta strong {
  font-size: 1rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.feature-grid,
.proxy-grid,
.steps-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.proxy-card,
.step-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(89, 255, 245, 0.18);
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
}

.feature-card h3,
.proxy-card h3 {
  font-size: 1.4rem;
}

.feature-card p,
.proxy-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.proxy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proxy-card {
  position: relative;
  overflow: hidden;
}

.proxy-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 62%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 255, 245, 0.18), transparent 70%);
}

.proxy-card-accent::before {
  background: radial-gradient(circle, rgba(255, 82, 200, 0.22), transparent 72%);
}

.proxy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.proxy-badge,
.proxy-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.proxy-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.proxy-status {
  color: var(--lime);
  border: 1px solid rgba(213, 255, 95, 0.22);
  background: rgba(213, 255, 95, 0.08);
}

.proxy-card .button {
  margin-top: 1.4rem;
}

.proxy-code {
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(89, 255, 245, 0.1);
  background: rgba(3, 8, 20, 0.72);
  color: #c7d4ff;
  font-size: 0.82rem;
  line-height: 1.7;
  word-break: break-all;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  min-height: 100%;
}

.step-card p {
  margin-top: 0.8rem;
}

.section-subtitle {
  max-width: 36rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.cta-panel {
  display: grid;
  place-items: center;
  gap: 1.4rem;
  padding: 2.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(89, 255, 245, 0.1), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(255, 82, 200, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.cta-panel p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-note {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.legal-note h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.legal-note p {
  margin: 0 0 0.7rem;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-note a {
  color: var(--text);
  border-bottom: 1px solid rgba(89, 255, 245, 0.35);
  transition: border-color 0.2s ease;
}

.legal-note a:hover {
  border-color: var(--cyan);
}

.mobile-quickbar {
  display: none;
}

.footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 0 0 2rem;
}

.footer p {
  margin: 0;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(89, 255, 245, 0.12);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.03);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(89, 255, 245, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.footer-brand {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cyan);
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
  }
  .footer-nav {
    gap: 0.5rem 1rem;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .feature-grid,
  .proxy-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-content {
    min-height: auto;
    padding-top: 2rem;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero {
    padding-bottom: 1rem;
  }

  .hero-content {
    gap: 1.2rem;
    padding: 1.2rem 0 2.4rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-stats,
  .signal-meta {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
    line-height: 1;
  }

  .hero-text {
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
  }

  .button,
  .topbar-link {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats li,
  .feature-card,
  .proxy-card,
  .step-card,
  .signal-card {
    padding: 1rem;
  }

  .signal-card {
    width: 100%;
    border-radius: 24px;
  }

  .signal-screen {
    min-height: 14.5rem;
  }

  .signal-radar-disk {
    width: min(76%, 13rem);
  }

  .signal-meta {
    gap: 0.7rem;
  }

  .signal-meta div {
    padding: 0.9rem;
  }

  .proxy-code {
    font-size: 0.74rem;
    line-height: 1.55;
  }

  .proxy-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .topbar-link {
    display: none;
  }

  .footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }

  .footer p {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .mobile-quickbar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid rgba(89, 255, 245, 0.14);
    border-radius: 22px;
    background: rgba(5, 8, 22, 0.86);
    backdrop-filter: blur(18px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.35),
      0 0 28px rgba(89, 255, 245, 0.08);
  }

  .mobile-quickbar-link {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
  }

  .mobile-quickbar-link-primary {
    border-color: rgba(89, 255, 245, 0.26);
    background: linear-gradient(135deg, rgba(89, 255, 245, 0.16), rgba(255, 82, 200, 0.14));
  }

  .mobile-quickbar-link span {
    font-weight: 800;
  }

  .mobile-quickbar-link small {
    color: var(--muted);
    font-size: 0.74rem;
  }
}

/* ---------- Topbar actions ---------- */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  position: relative;
  width: min(100%, 460px);
  padding: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    var(--panel);
  backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(89, 255, 245, 0.06);
  overflow: hidden;
  animation: cardAppear 0.5s ease-out;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 255, 245, 0.12), transparent 60%);
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 200, 0.1), transparent 60%);
  pointer-events: none;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-header {
  position: relative;
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 60%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-description {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.6rem;
}

.auth-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(89, 255, 245, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(5, 10, 26, 0.9), rgba(8, 14, 32, 0.85));
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.form-input:hover {
  border-color: rgba(89, 255, 245, 0.28);
}

.form-input:focus {
  border-color: rgba(89, 255, 245, 0.6);
  box-shadow:
    0 0 0 3px rgba(89, 255, 245, 0.08),
    0 0 20px rgba(89, 255, 245, 0.1);
  background:
    linear-gradient(180deg, rgba(5, 10, 26, 1), rgba(10, 18, 40, 0.95));
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.4;
}

.form-consent {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(89, 255, 245, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-consent:hover {
  border-color: rgba(89, 255, 245, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.form-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-consent-box {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 1.5px solid rgba(89, 255, 245, 0.45);
  border-radius: 6px;
  background: rgba(5, 10, 26, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-consent-box::after {
  content: "";
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid #050816;
  border-bottom: 2px solid #050816;
  transform: rotate(-45deg) translateY(-1px) scale(0.4);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.form-consent input[type="checkbox"]:checked + .form-consent-box {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(89, 255, 245, 0.1);
}

.form-consent input[type="checkbox"]:checked + .form-consent-box::after {
  opacity: 1;
  transform: rotate(-45deg) translateY(-1px) scale(1);
}

.form-consent input[type="checkbox"]:focus-visible + .form-consent-box {
  box-shadow: 0 0 0 3px rgba(89, 255, 245, 0.25);
}

.form-consent-text {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-consent-text a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(89, 255, 245, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-consent-text a:hover {
  color: var(--lime);
  border-color: rgba(213, 255, 95, 0.6);
}

.auth-form .button {
  position: relative;
  margin-top: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  overflow: hidden;
}

.auth-form .button-primary {
  background:
    linear-gradient(135deg, rgba(89, 255, 245, 0.2), rgba(255, 82, 200, 0.15));
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.2) inset,
    0 4px 24px rgba(89, 255, 245, 0.15),
    0 0 48px rgba(89, 255, 245, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.auth-form .button-primary:hover {
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.35) inset,
    0 4px 32px rgba(89, 255, 245, 0.25),
    0 0 64px rgba(89, 255, 245, 0.1);
}

.auth-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-links a {
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.auth-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.auth-links a:hover::after {
  width: 100%;
}

.auth-links a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(89, 255, 245, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.6rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ========================================
   ERROR PAGE
   ======================================== */

.error-code {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: errorPulse 3s ease-in-out infinite;
}

@keyframes errorPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
  position: relative;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow: hidden;
  animation: alertSlide 0.35s ease-out;
}

@keyframes alertSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert p {
  margin: 0;
  position: relative;
}

.alert p + p {
  margin-top: 0.35rem;
}

.alert-error {
  border: 1px solid rgba(255, 82, 200, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 82, 200, 0.1), rgba(255, 82, 200, 0.03));
  color: #ffb4e6;
}

.alert-error::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--pink);
  border-radius: 3px 0 0 3px;
}

.alert-success {
  border: 1px solid rgba(213, 255, 95, 0.25);
  background:
    linear-gradient(135deg, rgba(213, 255, 95, 0.1), rgba(213, 255, 95, 0.03));
  color: var(--lime);
}

.alert-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--lime);
  border-radius: 3px 0 0 3px;
}

/* ========================================
   DASHBOARD — Premium Mobile-first
   ======================================== */

.dash {
  width: min(calc(100% - 1.5rem), 540px);
  margin: 0 auto;
  padding: 0.5rem 0 6.5rem;
  position: relative;
  z-index: 1;
  animation: cardAppear 0.5s ease-out;
}

/* --- Hero user card --- */

.dash-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem 1.8rem;
  border: 1px solid rgba(89, 255, 245, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(170deg, rgba(89, 255, 245, 0.08) 0%, rgba(255, 82, 200, 0.06) 50%, var(--panel) 100%);
  margin-bottom: 0.8rem;
}

.dash-hero-glow {
  position: absolute;
  z-index: 0;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 255, 245, 0.2), transparent 65%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.dash-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(89, 255, 245, 0.5);
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.22), rgba(255, 82, 200, 0.18));
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(89, 255, 245, 0.06),
    0 0 32px rgba(89, 255, 245, 0.18);
  margin-bottom: 0.8rem;
}

.dash-hero-name {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #fff 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-hero-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, border-color 0.25s;
}
.dash-hero-badge:hover {
  transform: translateY(-1px);
}
.dash-hero-badge:active {
  transform: scale(0.97);
}
.dash-hero-badge svg {
  width: 14px;
  height: 14px;
}

.dash-hero-badge-active {
  border: 1px solid rgba(89, 255, 245, 0.35);
  background: rgba(89, 255, 245, 0.1);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(89, 255, 245, 0.12);
}
.dash-hero-badge-active:hover {
  box-shadow: 0 0 24px rgba(89, 255, 245, 0.22);
  border-color: rgba(89, 255, 245, 0.5);
}

.dash-hero-badge-expired {
  border: 1px solid rgba(255, 82, 200, 0.3);
  background: rgba(255, 82, 200, 0.08);
  color: var(--pink);
}
.dash-hero-badge-expired:hover {
  box-shadow: 0 0 24px rgba(255, 82, 200, 0.18);
  border-color: rgba(255, 82, 200, 0.5);
}

/* --- Tariff progress bar --- */

.dash-tariff-bar {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(89, 255, 245, 0.1);
  border-radius: 16px;
  background: var(--panel);
  margin-bottom: 0.8rem;
}

.dash-tariff-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.dash-tariff-bar-status {
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-tariff-progress {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-tariff-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.6s ease;
}

.dash-tariff-progress-warning {
  background: linear-gradient(90deg, #ffaa00, var(--pink));
}

.dash-tariff-progress-expired {
  background: var(--pink);
}

.dash-tariff-bar-status-warning { color: #ffaa00; }
.dash-tariff-bar-status-expired { color: var(--pink); }

/* Tariff alert banners */

.dash-tariff-alert {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  margin-bottom: 0.6rem;
  animation: cardAppear 0.4s ease-out;
}

.dash-tariff-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.dash-tariff-alert-content svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dash-tariff-alert-content strong {
  display: block;
  font-size: 0.92rem;
}

.dash-tariff-alert-content p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  opacity: 0.8;
}

.dash-tariff-alert-expired {
  border: 1px solid rgba(255, 82, 200, 0.3);
  background: linear-gradient(135deg, rgba(255, 82, 200, 0.12), rgba(255, 82, 200, 0.03));
  color: #ffb4e6;
}

.dash-tariff-alert-expired svg { color: var(--pink); }

.dash-tariff-alert-warning {
  border: 1px solid rgba(255, 170, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.12), rgba(255, 170, 0, 0.03));
  color: #ffe0a0;
}

.dash-tariff-alert-warning svg { color: #ffaa00; }

/* --- Stats row --- */

.dash-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.9rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: var(--panel);
  margin-bottom: 1rem;
}

.dash-stat {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
}

.dash-stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.08);
}

.dash-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.dash-stat-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lime);
}

.dash-stat-online { color: var(--cyan); }

/* --- Section --- */

.dash-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: var(--panel);
}

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-section-plain {
  padding: 0;
  border: none;
  background: none;
}

.dash-section-title svg { color: var(--cyan); }

/* --- Tunnels --- */

.dash-tunnel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.5rem;
  transition: border-color 0.25s;
}

.dash-tunnel:hover {
  border-color: rgba(89, 255, 245, 0.2);
}

.dash-tunnel-flag {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-tunnel-flag-cyan {
  border: 1px solid rgba(89, 255, 245, 0.2);
  background: rgba(89, 255, 245, 0.08);
  color: var(--cyan);
}

.dash-tunnel-flag-pink {
  border: 1px solid rgba(255, 82, 200, 0.2);
  background: rgba(255, 82, 200, 0.08);
  color: var(--pink);
}

.dash-tunnel-body {
  flex: 1;
  min-width: 0;
}

.dash-tunnel-body strong {
  display: block;
  font-size: 0.9rem;
}

.dash-tunnel-uri {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
  font-family: monospace;
}

.dash-copy-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dash-copy-btn:hover,
.dash-qr-btn:hover { border-color: rgba(89, 255, 245, 0.3); color: var(--cyan); }
.dash-copy-btn.copied { border-color: rgba(213, 255, 95, 0.4); color: var(--lime); }

.dash-qr-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

/* --- Legal pages (privacy/terms) --- */

.legal-card {
  padding: 2.2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: var(--panel);
}

.legal-card h1 {
  margin: 0.6rem 0 0.3rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.legal-section {
  margin-bottom: 1.6rem;
}

.legal-section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}

.legal-section p {
  margin: 0 0 0.8rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.92rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(89, 255, 245, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: var(--lime);
}

.legal-list {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.92rem;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 560px) {
  .legal-card { padding: 1.5rem 1.2rem; }
  .legal-card h1 { font-size: 1.5rem; }
}

/* --- Subscription --- */

.dash-sub-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid rgba(89, 255, 245, 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(89, 255, 245, 0.06), rgba(255, 82, 200, 0.03) 70%, rgba(255, 255, 255, 0.02));
}

.dash-sub-glow {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 255, 245, 0.12), transparent 70%);
  pointer-events: none;
}

.dash-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.dash-sub-status {
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dash-sub-devices {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.dash-sub-devices svg { width: 14px; height: 14px; }
.dash-sub-devices-full { color: var(--pink); }

.dash-sub-url-wrap {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 0.8rem;
}

.dash-sub-url {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.5;
  opacity: 0.85;
}

.dash-sub-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.dash-sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-sub-btn svg { width: 16px; height: 16px; color: var(--cyan); }
.dash-sub-btn:hover { border-color: rgba(89, 255, 245, 0.3); background: rgba(89, 255, 245, 0.06); }
.dash-sub-btn:active { transform: scale(0.97); }
.dash-sub-btn.copied { border-color: rgba(213, 255, 95, 0.4); color: var(--lime); }
.dash-sub-btn.copied svg { color: var(--lime); }

/* --- QR Modal --- */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.qr-overlay.active {
  opacity: 1;
  visibility: visible;
}
.qr-modal {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 340px;
  width: 90%;
}
.qr-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.qr-modal-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.qr-modal canvas {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}
.qr-close-btn {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.qr-close-btn:hover {
  border-color: rgba(89, 255, 245, 0.3);
  color: var(--cyan);
}

/* --- Support / Обращения --- */

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.support-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.support-textarea:focus {
  outline: none;
  border-color: rgba(89, 255, 245, 0.3);
}
.support-textarea::placeholder { color: var(--muted); opacity: 0.6; }

.support-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-chars {
  font-size: 0.75rem;
  color: var(--muted);
}

.support-submit-btn {
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #050816;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.support-submit-btn:hover { opacity: 0.85; }
.support-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.support-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.support-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.88rem;
}

.support-ticket {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.support-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.support-ticket-id {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
}

.support-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 8px;
}
.support-status-0 {
  background: rgba(89, 255, 245, 0.12);
  color: var(--cyan);
}
.support-status-2 {
  background: rgba(76, 166, 255, 0.12);
  color: var(--blue);
}
.support-status-1 {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.support-ticket-question {
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.support-ticket-answer {
  margin-top: 0.6rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(89, 255, 245, 0.06);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.support-ticket-answer strong {
  color: var(--cyan);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-ticket-date {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

/* --- Telegram Proxy --- */

.dash-tg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dash-tg {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(89, 255, 245, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.05), rgba(255, 255, 255, 0.02));
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}

.dash-tg:active { transform: scale(0.97); }
.dash-tg:hover { border-color: rgba(89, 255, 245, 0.35); box-shadow: 0 0 20px rgba(89, 255, 245, 0.08); }

.dash-tg-alt {
  border-color: rgba(255, 82, 200, 0.12);
  background: linear-gradient(135deg, rgba(255, 82, 200, 0.05), rgba(255, 255, 255, 0.02));
}
.dash-tg-alt:hover { border-color: rgba(255, 82, 200, 0.35); box-shadow: 0 0 20px rgba(255, 82, 200, 0.08); }

.dash-tg-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

.dash-tg-dot-pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.dash-tg strong { display: block; font-size: 0.88rem; }
.dash-tg small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.1rem; }

/* --- Quick actions --- */

.dash-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dash-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  font-family: inherit;
}

.dash-action:hover { border-color: rgba(89, 255, 245, 0.2); background: rgba(89, 255, 245, 0.03); }
.dash-action-logout:hover { border-color: rgba(255, 82, 200, 0.2); background: rgba(255, 82, 200, 0.03); }
.dash-action-icon { line-height: 1; color: var(--cyan); }
.dash-action-logout .dash-action-icon { color: var(--pink); }
.dash-action-form { display: contents; }

/* --- Settings --- */

.dash-settings-header { margin-bottom: 1rem; }

.dash-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.dash-back:hover { opacity: 0.7; }
.dash-back svg { width: 16px; height: 16px; }

.dash-form-card {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}
.dash-form-card .auth-form { gap: 1rem; }
.dash-form-card .button { cursor: pointer; font-family: inherit; margin-top: 0.4rem; }

/* --- Tariff card (settings/tariffs) --- */

.dash-tariff-card {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(89, 255, 245, 0.15);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.05), rgba(255, 255, 255, 0.02));
}
.dash-tariff-card p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; }
.dash-tariff-expired { border-color: rgba(255, 82, 200, 0.15); background: linear-gradient(135deg, rgba(255, 82, 200, 0.05), var(--panel)); }
.dash-tariff-expired .dash-proxy-status { color: var(--pink); border-color: rgba(255, 82, 200, 0.2); background: rgba(255, 82, 200, 0.08); }
.dash-tariff-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.dash-tariff-top strong { font-family: "Orbitron", sans-serif; font-size: 0.95rem; }

.dash-proxy-status {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(213, 255, 95, 0.2);
  background: rgba(213, 255, 95, 0.08);
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Tariff selection cards --- */

.tariff-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1.8rem 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    var(--panel);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.tariff-card:hover {
  border-color: rgba(89, 255, 245, 0.3);
  box-shadow: 0 4px 32px rgba(89, 255, 245, 0.08), 0 0 0 1px rgba(89, 255, 245, 0.08) inset;
  transform: translateY(-3px);
}

.tariff-card:active { transform: scale(0.97); }

.tariff-card-tag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.22rem;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.tariff-card-name {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tariff-card-price {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lime);
  margin: 0.5rem 0 0.5rem;
  line-height: 1;
}
.tariff-card-price small {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

.tariff-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tariff-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.tariff-card-days {
  color: var(--text);
}

.tariff-card-devices {
  color: var(--muted);
}

.tariff-card-benefit {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(89, 255, 245, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.tariff-card-action {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -1.2rem;
  width: calc(100% + 2rem);
  transition: background 0.2s;
}
.tariff-card:hover .tariff-card-action {
  background: rgba(89, 255, 245, 0.06);
}

@media (max-width: 400px) {
  .tariff-cards { grid-template-columns: 1fr; }
}

/* --- Payment modal methods --- */

.pay-methods {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.25s;
}

.pay-method svg {
  flex-shrink: 0;
  color: var(--cyan);
}

.pay-method strong {
  display: block;
  font-size: 0.92rem;
}

.pay-method small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.pay-method:hover {
  border-color: rgba(89, 255, 245, 0.35);
  background:
    linear-gradient(135deg, rgba(89, 255, 245, 0.06), transparent),
    var(--panel);
  box-shadow: 0 0 20px rgba(89, 255, 245, 0.06);
}

.pay-method:active { transform: scale(0.98); }

.pay-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}

.pay-price {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lime);
  margin: 0.4rem 0 0.15rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(213, 255, 95, 0.15);
}

.pay-price small {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.pay-period {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

/* --- Connection Guide accordion --- */

.guide {
  display: grid;
  gap: 0.35rem;
}

.guide-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s;
}

.guide-item[open] {
  border-color: rgba(89, 255, 245, 0.15);
}

.guide-summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  list-style: none;
  transition: background 0.2s;
}

.guide-summary::-webkit-details-marker { display: none; }

.guide-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.guide-summary svg:first-child {
  flex-shrink: 0;
  color: var(--cyan);
  width: 18px;
  height: 18px;
}

.guide-summary span {
  flex: 1;
}

.guide-summary svg:last-child {
  flex-shrink: 0;
  color: var(--muted);
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.guide-item[open] .guide-summary svg:last-child {
  transform: rotate(180deg);
}

.guide-body {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  animation: guideSlide 0.25s ease-out;
}

@keyframes guideSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-body p {
  margin: 0 0 0.6rem;
}

.guide-body strong {
  color: var(--text);
}

.guide-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-body a:hover {
  color: var(--text);
}

.guide-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.guide-params span {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.guide-params strong {
  color: var(--cyan);
  font-family: monospace;
}

.guide-app-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
}

.guide-rec {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(213, 255, 95, 0.2);
  background: rgba(213, 255, 95, 0.06);
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.guide-steps {
  margin: 0;
  padding-left: 1.3rem;
}

.guide-steps li {
  margin-bottom: 0.35rem;
}

.guide-steps li::marker {
  color: var(--cyan);
  font-weight: 700;
}

.guide-faq {
  display: grid;
  gap: 0.6rem;
}

.guide-faq-item {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.guide-faq-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--pink);
  margin-bottom: 0.2rem;
}

.guide-faq-item p {
  margin: 0;
  font-size: 0.8rem;
}

/* Guide app download cards */

.guide-apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.guide-app {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s;
}

.guide-app:hover {
  border-color: rgba(89, 255, 245, 0.3);
  background: rgba(89, 255, 245, 0.04);
}

.guide-app:active {
  transform: scale(0.97);
}

.guide-app svg {
  flex-shrink: 0;
  color: var(--cyan);
}

.guide-app strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
}

.guide-app small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.guide-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.guide-divider::before,
.guide-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 400px) {
  .guide-apps { grid-template-columns: 1fr; }
}

/* --- Bottom navigation --- */

.dash-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.45rem 0.8rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(3, 6, 18, 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(89, 255, 245, 0.08);
}

.dash-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0;
  color: var(--muted);
  transition: color 0.2s;
}
.dash-bottomnav-item small { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.02em; }
.dash-bottomnav-active { color: var(--cyan); }

/* --- Responsive --- */

@media (min-width: 721px) {
  .dash { max-width: 600px; padding: 1.5rem 0 4rem; }
  .dash-hero { padding: 2.8rem 2rem 2.2rem; }
  .dash-avatar { width: 4.5rem; height: 4.5rem; font-size: 1.7rem; }
  .dash-hero-name { font-size: 1.5rem; }
  .dash-tg-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bottomnav { display: none; }
  .dash-form-card { padding: 1.8rem; }
}

@media (max-width: 720px) {
  .auth-card { padding: 1.8rem; }
  .auth-card::before, .auth-card::after { display: none; }
  .topbar-actions .topbar-link { display: inline-flex; width: auto; font-size: 0.85rem; padding: 0.6rem 1rem; }
}

@media (max-width: 400px) {
  .dash-tg-grid { grid-template-columns: 1fr; }
  .dash-stats { flex-direction: column; gap: 0; }
  .dash-stat-divider { width: 60%; height: 1px; margin: 0 auto; }
}

/* ========================================
   TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid rgba(89, 255, 245, 0.25);
  border-radius: 999px;
  background: rgba(5, 10, 24, 0.95);
  backdrop-filter: blur(16px);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(89, 255, 245, 0.08);
  transition: opacity 0.3s, transform 0.3s;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (min-width: 721px) {
  .toast { bottom: 2rem; }
}

/* ========================================
   PAYMENT MODAL
   ======================================== */

.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 3, 10, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pay-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pay-modal {
  width: min(100%, 380px);
  padding: 2rem;
  border: 1px solid rgba(89, 255, 245, 0.15);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(170deg, rgba(89, 255, 245, 0.06), rgba(255, 82, 200, 0.04) 60%, var(--panel-strong));
  backdrop-filter: blur(24px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(89, 255, 245, 0.06);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s ease;
}

.pay-overlay.active .pay-modal {
  transform: translateY(0) scale(1);
}

.pay-state { animation: cardAppear 0.3s ease-out; }

/* Loading */
.pay-loading { padding: 1rem 0; }
.pay-loading p { color: var(--muted); margin: 1rem 0 0; font-size: 0.9rem; }

.pay-spinner {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
  border: 3px solid rgba(89, 255, 245, 0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.pay-check {
  display: inline-flex;
  padding: 0.8rem;
  border-radius: 50%;
  border: 2px solid rgba(89, 255, 245, 0.3);
  background: rgba(89, 255, 245, 0.08);
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.pay-success h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.pay-amount {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  margin: 0.6rem 0;
  text-shadow: 0 0 24px rgba(213, 255, 95, 0.2);
}

.pay-method-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.2rem;
}

.pay-method-label strong {
  color: var(--text);
}

.pay-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(89, 255, 245, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.2), rgba(255, 82, 200, 0.15));
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.15) inset,
    0 4px 24px rgba(89, 255, 245, 0.15);
  transition: transform 0.2s, box-shadow 0.3s;
}

.pay-go-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.3) inset,
    0 4px 32px rgba(89, 255, 245, 0.25);
}

.pay-close-btn {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.7rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.pay-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Error */
.pay-error p {
  color: var(--pink);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

/* Pay methods grid (tariff page) */
.dash-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

/* ---------- Cookie consent banner ---------- */

.cookie-consent {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: calc(0.9rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(89, 255, 245, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(10, 15, 38, 0.92), rgba(5, 8, 22, 0.94));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(89, 255, 245, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  border: 1px solid rgba(89, 255, 245, 0.3);
  background: linear-gradient(135deg, rgba(89, 255, 245, 0.16), rgba(255, 82, 200, 0.12));
  color: var(--cyan);
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(89, 255, 245, 0.35);
  transition: border-color 0.2s ease;
}

.cookie-consent-text a:hover {
  border-color: var(--cyan);
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent-decline {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.cookie-consent-decline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.cookie-consent-accept {
  border: none;
  color: #050816;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.25) inset,
    0 4px 18px rgba(89, 255, 245, 0.2);
}

.cookie-consent-accept:hover {
  box-shadow:
    0 0 0 1px rgba(89, 255, 245, 0.4) inset,
    0 6px 24px rgba(89, 255, 245, 0.32);
}

@media (max-width: 720px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-btn {
    flex: 1;
    min-height: 2.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
