:root {
  --ink: #eef8ff;
  --text: #eef8ff;
  --muted: #a8c3d4;
  --paper: #020711;
  --panel: rgba(9, 25, 42, 0.76);
  --panel-strong: rgba(12, 35, 58, 0.9);
  --line: rgba(129, 218, 255, 0.28);
  --cyan: #31d4ff;
  --blue: #1967ff;
  --teal: #17c8a3;
  --lime: #a8f06b;
  --coral: #ff6b5d;
  --yellow: #f5d45a;
  --navy: #06111f;
  --black: #02070d;
  --shadow: 0 22px 55px rgba(4, 20, 36, 0.24);
  --glow: 0 0 28px rgba(49, 212, 255, 0.32);
  --text-outline: -1px -1px 0 rgba(0, 0, 0, 0.92), 1px -1px 0 rgba(0, 0, 0, 0.92), -1px 1px 0 rgba(0, 0, 0, 0.92), 1px 1px 0 rgba(0, 0, 0, 0.92), 0 2px 0 rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 212, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 16%, rgba(168, 240, 107, 0.12), transparent 24%),
    radial-gradient(circle at 62% 76%, rgba(67, 91, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #020711 0%, #061526 34%, #03101c 68%, #05090f 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, Tahoma, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  text-shadow: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(145, 218, 255, 0.22);
  background: rgba(3, 10, 18, 0.84);
  color: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.brand {
  font-weight: 950;
  font-size: 25px;
  text-decoration: none;
  letter-spacing: 0;
  text-shadow: var(--text-outline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  color: rgba(236, 250, 255, 0.88);
  text-decoration: none;
  text-shadow: var(--text-outline);
}

.nav a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--black);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(119, 224, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 224, 255, 0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
  opacity: 0.52;
  animation: gridDrift 18s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(49, 212, 255, 0.2) 47%, transparent 52%),
    linear-gradient(65deg, transparent 0 58%, rgba(168, 240, 107, 0.12) 62%, transparent 66%);
  background-size: 150% 150%;
  opacity: 0.44;
  animation: signalSweep 9s ease-in-out infinite;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.54;
  filter: saturate(1.12) contrast(1.12);
}

.hero-shade {
  background:
    linear-gradient(100deg, rgba(2, 7, 13, 0.96), rgba(4, 24, 42, 0.74) 46%, rgba(5, 32, 50, 0.22)),
    linear-gradient(0deg, rgba(2, 7, 13, 0.94), rgba(2, 7, 13, 0.06) 62%);
}

.hero-network {
  position: absolute;
  right: max(24px, 7vw);
  top: 18%;
  width: min(430px, 44vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.88;
  z-index: 1;
}

.globe {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(115, 234, 255, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(130, 235, 255, 0.54) 50%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(130, 235, 255, 0.32) 50%, transparent 53%),
    radial-gradient(circle at 38% 36%, rgba(49, 212, 255, 0.46), rgba(25, 103, 255, 0.12) 42%, rgba(2, 7, 13, 0.08) 70%);
  box-shadow: inset 0 0 60px rgba(49, 212, 255, 0.32), 0 0 70px rgba(49, 212, 255, 0.28);
  animation: globePulse 5s ease-in-out infinite;
}

.globe::before,
.globe::after,
.globe span {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(151, 241, 255, 0.38);
  border-radius: 999px;
}

.globe::before {
  transform: rotateX(68deg);
}

.globe::after {
  transform: rotateY(68deg);
}

.globe span:nth-child(1) {
  inset: 24%;
}

.globe span:nth-child(2) {
  inset: 5%;
  transform: rotate(28deg) scaleX(0.72);
}

.globe span:nth-child(3) {
  inset: 5%;
  transform: rotate(-28deg) scaleX(0.72);
}

.orbit {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(49, 212, 255, 0.28);
  border-left-color: rgba(168, 240, 107, 0.62);
  border-radius: 999px;
}

.orbit-one {
  animation: orbitOne 14s linear infinite;
}

.orbit-two {
  animation: orbitTwo 19s linear infinite;
}

.orbit-three {
  animation: orbitThree 23s linear infinite;
}

.hero-content {
  position: relative;
  width: min(1060px, calc(100% - 40px));
  padding: 80px 0 60px;
  margin: 0 auto;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--lime);
  text-shadow: var(--text-outline);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 740px;
  font-size: 58px;
  text-shadow: var(--text-outline);
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(239, 250, 255, 0.88);
  font-size: 20px;
  text-shadow: var(--text-outline);
}

.hero-actions,
.actions,
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #10283b, #06111f);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  text-shadow: var(--text-outline);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: var(--glow);
}

.button.ghost {
  border-color: rgba(138, 224, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary,
button.secondary {
  background: rgba(235, 251, 255, 0.1);
  color: #ffffff;
  border-color: var(--line);
}

.button.danger,
button.danger {
  background: linear-gradient(135deg, var(--coral), #c94f44);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.telegram-box {
  margin-top: 24px;
  min-height: 48px;
}

.telegram-empty {
  display: inline-flex;
  max-width: 620px;
  border: 1px solid rgba(139, 220, 255, 0.4);
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(239, 250, 255, 0.88);
  background: rgba(2, 7, 13, 0.42);
}

.admin-body .telegram-empty,
.section .telegram-empty {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(8, 23, 39, 0.86);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding-top: 44px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card,
.trial-card,
.dashboard-card,
.history-card,
.order-card,
.user-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  text-shadow: var(--text-outline);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(49, 212, 255, 0.15), transparent 42%),
    linear-gradient(315deg, rgba(168, 240, 107, 0.12), transparent 48%);
  pointer-events: none;
}

.plan-card > * {
  position: relative;
}

.plan-top {
  display: grid;
  gap: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.plan-price strong {
  font-size: 34px;
  text-shadow: var(--text-outline);
}

.meta-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
}

.login-panel {
  display: grid;
  gap: 10px;
  max-width: 660px;
  border: 1px solid rgba(129, 218, 255, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(4, 15, 28, 0.78);
  color: rgba(238, 248, 255, 0.92);
  box-shadow: var(--glow);
}

.login-panel strong {
  color: #ffffff;
}

.login-panel span {
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: #10202d;
  background: rgba(255, 255, 255, 0.94);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.month-option {
  display: grid;
  gap: 4px;
  min-height: 96px;
  align-content: center;
  border: 1px solid rgba(56, 175, 230, 0.32);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(22, 52, 78, 0.92), rgba(8, 30, 52, 0.9)),
    linear-gradient(135deg, rgba(49, 212, 255, 0.2), rgba(25, 103, 255, 0.12));
  color: #ffffff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  text-shadow: var(--text-outline);
}

.month-option strong,
.month-option span {
  display: block;
}

.month-option span {
  font-size: 18px;
  font-weight: 900;
}

.month-option small {
  color: #8ff4ff;
  font-weight: 850;
}

.month-option:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(49, 212, 255, 0.15), 0 12px 28px rgba(24, 112, 172, 0.22);
}

.split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.trial-card {
  padding: 22px;
}

.trial-card form,
.manual-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.cabinet-section {
  padding-top: 18px;
}

.dashboard-grid,
.admin-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

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

.admin-grid {
  grid-template-columns: 1fr;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.dashboard-card,
.history-card,
.order-card,
.user-card,
.stat-card {
  padding: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e0fbf4;
  color: #036b5b;
  font-weight: 850;
  font-size: 13px;
}

.status.wait {
  background: #fff5d5;
  color: #765500;
}

.status.bad {
  background: #ffe5df;
  color: #963423;
}

.history-list,
.orders-list,
.users-list {
  display: grid;
  gap: 12px;
}

.key-box {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--cyan);
  border-radius: 8px;
  padding: 12px;
  background: rgba(228, 250, 255, 0.82);
  word-break: break-word;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: rgba(8, 23, 39, 0.72);
}

.admin-main {
  min-height: calc(100vh - 60px);
}

.admin-section-title {
  margin: 28px 0 14px;
}

.stat-card strong {
  display: block;
  font-size: 32px;
}

.user-head,
.order-head,
.subscription-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 124px 62px, 124px 62px;
  }
}

@keyframes signalSweep {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes globePulse {
  0%,
  100% {
    box-shadow: inset 0 0 58px rgba(49, 212, 255, 0.3), 0 0 58px rgba(49, 212, 255, 0.24);
  }

  50% {
    box-shadow: inset 0 0 78px rgba(49, 212, 255, 0.48), 0 0 92px rgba(49, 212, 255, 0.44);
  }
}

@keyframes orbitOne {
  from {
    transform: rotate(18deg) scaleX(1.15);
  }

  to {
    transform: rotate(378deg) scaleX(1.15);
  }
}

@keyframes orbitTwo {
  from {
    transform: rotate(-24deg) scaleX(1.08);
  }

  to {
    transform: rotate(-384deg) scaleX(1.08);
  }
}

@keyframes orbitThree {
  from {
    transform: rotate(68deg) scaleX(0.9);
  }

  to {
    transform: rotate(428deg) scaleX(0.9);
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  max-width: min(420px, calc(100% - 36px));
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--black);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.toast.visible {
  display: block;
}

@media (max-width: 980px) {
  .pricing-grid,
  .split,
  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-network {
    right: -80px;
    top: 14%;
    width: 420px;
    opacity: 0.38;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    padding: 54px 0 42px;
  }

  .hero-network {
    right: -140px;
    top: 10%;
    width: 360px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .month-grid {
    grid-template-columns: 1fr;
  }
}
