:root {
  color-scheme: dark;
  --bg: #03040a;
  --panel: #090b16;
  --panel-2: #101427;
  --text: #f7fbff;
  --muted: #92a4c7;
  --line: rgba(121, 96, 255, 0.26);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --hot: #d946ef;
  --green: #3cffb0;
  --danger: #ff5f7a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(139, 92, 246, 0.28), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(34, 211, 238, 0.18), transparent 26rem),
    radial-gradient(circle at 54% 88%, rgba(217, 70, 239, 0.14), transparent 30rem),
    linear-gradient(145deg, #03040a 0%, #080b16 48%, #05030b 100%);
  background-size: 120% 120%;
  color: var(--text);
  animation: ambientShift 13s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.026) 0,
    rgba(255, 255, 255, 0.026) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.28;
  pointer-events: none;
}

.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cyber-bg span {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.18;
  animation: driftGlow 14s ease-in-out infinite alternate;
}

.cyber-bg span:nth-child(1) {
  left: -9rem;
  top: 3rem;
  background: var(--accent);
}

.cyber-bg span:nth-child(2) {
  right: -10rem;
  top: 7rem;
  background: var(--accent-2);
  animation-delay: 2s;
}

.cyber-bg span:nth-child(3) {
  left: 36%;
  bottom: -16rem;
  background: var(--hot);
  animation-delay: 4s;
}

.system-feed {
  position: fixed;
  top: 7rem;
  right: 1.25rem;
  z-index: 0;
  display: grid;
  gap: 0.42rem;
  width: 13rem;
  padding: 0.8rem;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.36);
  opacity: 0.5;
  pointer-events: none;
}

.system-feed code {
  color: rgba(60, 255, 176, 0.78);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  transform: translateX(0);
  animation: feedTick 4.4s ease-in-out infinite;
}

.system-feed code:nth-child(2) {
  animation-delay: 0.4s;
}

.system-feed code:nth-child(3) {
  animation-delay: 0.8s;
}

.system-feed code:nth-child(4) {
  animation-delay: 1.2s;
}

.system-feed code:nth-child(5) {
  animation-delay: 1.6s;
}

.system-feed code:nth-child(6) {
  animation-delay: 2s;
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
}

.matrix-rain span {
  position: absolute;
  top: -12rem;
  color: rgba(60, 255, 176, 0.7);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.9;
  text-shadow: 0 0 18px rgba(60, 255, 176, 0.55);
  animation: matrixFall 12s linear infinite;
}

.matrix-rain span:nth-child(1) {
  left: 8%;
}

.matrix-rain span:nth-child(2) {
  left: 28%;
  animation-delay: 2s;
  animation-duration: 15s;
}

.matrix-rain span:nth-child(3) {
  left: 52%;
  animation-delay: 4s;
  animation-duration: 13s;
}

.matrix-rain span:nth-child(4) {
  left: 74%;
  animation-delay: 1s;
  animation-duration: 16s;
}

.matrix-rain span:nth-child(5) {
  left: 91%;
  animation-delay: 5s;
  animation-duration: 14s;
}

.orbit-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orbit-lines span {
  position: absolute;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(139, 92, 246, 0.08);
  animation: orbitSpin 24s linear infinite;
}

.orbit-lines span:nth-child(1) {
  top: 8rem;
  left: -24rem;
}

.orbit-lines span:nth-child(2) {
  right: -22rem;
  bottom: 8rem;
  border-color: rgba(60, 255, 176, 0.08);
  animation-duration: 31s;
  animation-direction: reverse;
}

.data-bursts {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.data-bursts span {
  position: absolute;
  color: rgba(34, 211, 238, 0.42);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.42);
  animation: dataBurst 7s ease-in-out infinite;
}

.data-bursts span:nth-child(1) {
  left: 12%;
  top: 20%;
}

.data-bursts span:nth-child(2) {
  left: 34%;
  top: 12%;
  animation-delay: 0.7s;
}

.data-bursts span:nth-child(3) {
  right: 18%;
  top: 28%;
  animation-delay: 1.4s;
}

.data-bursts span:nth-child(4) {
  left: 22%;
  bottom: 18%;
  animation-delay: 2.1s;
}

.data-bursts span:nth-child(5) {
  right: 8%;
  bottom: 28%;
  animation-delay: 2.8s;
}

.data-bursts span:nth-child(6) {
  left: 52%;
  bottom: 12%;
  animation-delay: 3.5s;
}

.data-bursts span:nth-child(7) {
  left: 4%;
  top: 58%;
  animation-delay: 4.2s;
}

.data-bursts span:nth-child(8) {
  right: 34%;
  top: 66%;
  animation-delay: 4.9s;
}

.scan-beams {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.scan-beams span {
  position: absolute;
  left: -20vw;
  width: 140vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(60, 255, 176, 0.42), transparent);
  filter: blur(0.4px);
  animation: beamSweep 5.6s linear infinite;
}

.scan-beams span:nth-child(1) {
  top: 18%;
}

.scan-beams span:nth-child(2) {
  top: 48%;
  animation-delay: 1.8s;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.38), transparent);
}

.scan-beams span:nth-child(3) {
  top: 78%;
  animation-delay: 3.4s;
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.34), transparent);
}

.terminal-cloud {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.terminal-cloud code {
  position: absolute;
  max-width: 18rem;
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(34, 211, 238, 0.09);
  border-radius: 6px;
  background: rgba(3, 4, 10, 0.32);
  color: rgba(60, 255, 176, 0.62);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  text-shadow: 0 0 18px rgba(60, 255, 176, 0.42);
  opacity: 0;
  animation: cloudFloat 11s ease-in-out infinite;
}

.terminal-cloud code:nth-child(1) { left: 3%; top: 12%; animation-delay: 0s; }
.terminal-cloud code:nth-child(2) { left: 18%; top: 32%; animation-delay: 0.8s; }
.terminal-cloud code:nth-child(3) { left: 6%; top: 72%; animation-delay: 1.6s; }
.terminal-cloud code:nth-child(4) { left: 42%; top: 9%; animation-delay: 2.4s; }
.terminal-cloud code:nth-child(5) { left: 55%; top: 28%; animation-delay: 3.2s; color: rgba(255, 95, 122, 0.68); }
.terminal-cloud code:nth-child(6) { left: 72%; top: 16%; animation-delay: 4s; }
.terminal-cloud code:nth-child(7) { left: 82%; top: 50%; animation-delay: 4.8s; }
.terminal-cloud code:nth-child(8) { left: 38%; top: 62%; animation-delay: 5.6s; }
.terminal-cloud code:nth-child(9) { left: 12%; top: 48%; animation-delay: 6.4s; }
.terminal-cloud code:nth-child(10) { left: 67%; top: 76%; animation-delay: 7.2s; }
.terminal-cloud code:nth-child(11) { left: 30%; top: 84%; animation-delay: 8s; }
.terminal-cloud code:nth-child(12) { left: 78%; top: 88%; animation-delay: 8.8s; color: rgba(34, 211, 238, 0.68); }

.corner-hud {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem;
  opacity: 0.62;
  pointer-events: none;
}

.corner-hud code {
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 6px;
  background: rgba(3, 4, 10, 0.48);
  color: rgba(34, 211, 238, 0.84);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  animation: hudPulse 2.7s ease-in-out infinite;
}

.corner-hud code:nth-child(2) { animation-delay: 0.4s; }
.corner-hud code:nth-child(3) { animation-delay: 0.8s; }
.corner-hud code:nth-child(4) { animation-delay: 1.2s; }

.command-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  background: rgba(3, 4, 10, 0.38);
  pointer-events: none;
}

.command-marquee div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.38rem 0;
  animation: marqueeSlide 18s linear infinite;
}

.command-marquee span {
  color: rgba(60, 255, 176, 0.74);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(3, 4, 10, 0.78);
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(60, 255, 176, 0.16), transparent),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg) translateX(-130%);
  animation: logoShine 4.8s ease-in-out infinite;
}

.brand-mark span {
  position: relative;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.nav a:hover {
  color: white;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 22, 0.74);
}

.lang-button {
  min-width: 2.6rem;
  min-height: 2rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.24);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding: clamp(3rem, 9vw, 7rem) 0 2rem;
}

.hero-copy {
  animation: riseIn 650ms ease both;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.boot-sequence {
  display: grid;
  gap: 0.35rem;
  width: fit-content;
  margin: 0 0 1.35rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.52);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.06);
}

.boot-sequence code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.boot-sequence code::after {
  content: "_";
  color: var(--accent-2);
  animation: cursorBlink 900ms steps(2, end) infinite;
}

.hero-logo-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(60, 255, 176, 0.18), transparent),
    linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.9)),
    #6d28d9;
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-copy h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 18px 70px rgba(34, 211, 238, 0.2);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel,
.login-card,
.settings-card,
.offer-form,
.admin-item {
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 8px;
  background: rgba(9, 11, 22, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  animation: floatPanel 5.5s ease-in-out infinite;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.24), transparent 9rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
}

.hero-panel span,
.hero-panel small,
.hint {
  color: var(--muted);
}

.hero-panel strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.terminal-panel {
  isolation: isolate;
}

.terminal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  transform: translateX(-120%);
  animation: panelSweep 5.5s ease-in-out infinite;
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.terminal-bar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--danger);
}

.terminal-bar span:nth-child(2) {
  background: var(--accent-2);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-lines {
  display: grid;
  gap: 0.38rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.terminal-lines code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.signal-ring {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), rgba(139, 92, 246, 0.12));
  color: white;
  font-weight: 950;
  font-size: 2rem;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.34);
  animation: pulseRing 2.4s ease-out infinite;
}

.toolbar,
.admin-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.terminal-strip {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.34fr);
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 40%),
    rgba(3, 4, 10, 0.38);
  overflow: hidden;
}

.terminal-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(60, 255, 176, 0.08), transparent);
  transform: translateX(-120%);
  animation: stripSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.terminal-strip::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(34, 211, 238, 0.035) 28px 29px);
  opacity: 0.45;
  pointer-events: none;
  animation: gridJitter 3.2s steps(3, end) infinite;
}

.terminal-strip > * {
  position: relative;
}

.strip-code {
  position: static;
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(60, 255, 176, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.5);
  color: rgba(60, 255, 176, 0.8);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.catalog-node {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(60, 255, 176, 0.12);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.46);
}

.catalog-node code {
  color: rgba(60, 255, 176, 0.78);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.admin-head.terminal-strip {
  grid-template-columns: 1fr auto;
}

.search {
  width: 100%;
  max-width: 320px;
  justify-self: end;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.search,
label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.78);
  color: var(--text);
  outline: none;
  padding: 0.85rem 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

button,
a,
p,
h1,
h2,
h3,
strong,
span,
code,
small,
label {
  overflow-wrap: anywhere;
}

code {
  white-space: normal;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.terminal-grid {
  position: relative;
}

.plan {
  position: relative;
  display: grid;
  gap: 0.95rem;
  min-height: 360px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 18, 36, 0.96), rgba(4, 5, 12, 0.96)),
    #090b16;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  overflow: hidden;
  animation: cardIn 520ms ease both;
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.plan::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 255, 176, 0.7), transparent);
  opacity: 0.7;
  animation: scanCard 3.8s linear infinite;
}

.plan .card-terminal::after {
  content: "_";
  color: var(--accent-2);
  animation: cursorBlink 700ms steps(2, end) infinite;
}

.plan:nth-child(2) {
  animation-delay: 80ms;
}

.plan:nth-child(3) {
  animation-delay: 160ms;
}

.plan:nth-child(4) {
  animation-delay: 240ms;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}

.plan:hover {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 26px 70px rgba(4, 25, 44, 0.52), 0 0 35px rgba(139, 92, 246, 0.12);
  transform: translateY(-4px);
}

.plan:hover::before {
  opacity: 1;
}

.card-terminal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.card-terminal code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
}

.card-terminal span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(60, 255, 176, 0.72);
  animation: statusBlink 1.4s ease-in-out infinite;
}

.plan.featured {
  border-color: rgba(60, 255, 176, 0.46);
}

.badge {
  width: fit-content;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.plan-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.12));
  color: var(--green);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.12);
  font-size: 1.35rem;
  font-weight: 900;
}

.plan h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.plan p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.price {
  font-size: 2.2rem;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.period {
  color: var(--muted);
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.primary,
.ghost,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  min-height: 2.8rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.22);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.danger {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary:hover,
.ghost:hover,
.danger:hover {
  transform: translateY(-1px);
}

.primary:hover {
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.3);
}

.details-button {
  width: 100%;
}

.admin-section {
  padding: 2rem 0 4rem;
}

.login-card,
.settings-card,
.offer-form,
.password-card,
.owner-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.admin-panel {
  display: grid;
  gap: 1rem;
}

.admin-session {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(60, 255, 176, 0.18);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.52);
}

.admin-session code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.terminal-box {
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 36%),
    rgba(9, 11, 22, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 18px);
  opacity: 0.35;
  pointer-events: none;
}

.terminal-box > * {
  position: relative;
}

.terminal-mini-head {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.13);
}

.terminal-mini-head span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--danger);
}

.terminal-mini-head span:nth-child(2) {
  background: var(--accent-2);
}

.terminal-mini-head span:nth-child(3) {
  background: var(--green);
}

.terminal-mini-head code {
  margin-left: 0.35rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.add-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-users {
  display: grid;
  gap: 0.65rem;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-user-row button {
  flex: 0 0 auto;
}

.admin-user-row div {
  display: grid;
  gap: 0.2rem;
}

.admin-user-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.settings-card,
.offer-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.locked-settings {
  position: relative;
  border-color: rgba(255, 95, 122, 0.28);
}

.locked-settings.owner-unlocked {
  border-color: rgba(60, 255, 176, 0.34);
}

.lock-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 95, 122, 0.26);
  border-radius: 8px;
  background: rgba(255, 95, 122, 0.08);
}

.lock-banner code {
  color: var(--danger);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.lock-banner span {
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.owner-unlocked .lock-banner {
  border-color: rgba(60, 255, 176, 0.3);
  background: rgba(60, 255, 176, 0.08);
}

.owner-unlocked .lock-banner code,
.owner-unlocked .lock-banner span {
  color: var(--green);
}

.offer-form label:has(textarea) {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.check input {
  width: auto;
}

.admin-list {
  display: grid;
  gap: 0.8rem;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 12, 0.8);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.14), transparent 32%),
    #090b16;
  box-shadow: 0 28px 95px rgba(7, 2, 18, 0.72);
  animation: modalIn 180ms ease both;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.76);
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
}

.modal-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.35rem;
}

.modal-hero {
  display: grid;
  min-height: 170px;
  align-content: end;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(60, 255, 176, 0.14), transparent 13rem),
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.16));
}

.modal-code {
  width: fit-content;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.modal-body h3 {
  margin: 0;
  max-width: 80%;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.98;
}

.modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.detail-stat {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-stat strong {
  font-size: 1.05rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.8rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.danger-toast {
  border-color: rgba(255, 95, 122, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 95, 122, 0.2), rgba(9, 11, 22, 0.95)),
    var(--panel-2);
  color: #ffd6de;
  box-shadow: 0 0 38px rgba(255, 95, 122, 0.24);
  animation: denyShake 170ms linear 2;
}

@keyframes ambientShift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 38%;
  }
}

@keyframes logoShine {
  0%,
  58% {
    transform: rotate(25deg) translateX(-130%);
  }
  76%,
  100% {
    transform: rotate(25deg) translateX(130%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.34);
  }
  75%,
  100% {
    box-shadow: 0 0 0 20px rgba(34, 211, 238, 0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes driftGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2.5rem, -1.5rem, 0) scale(1.08);
  }
}

@keyframes panelSweep {
  0%,
  46% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes stripSweep {
  0%,
  50% {
    transform: translateX(-120%);
  }
  76%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes scanCard {
  from {
    transform: translateY(-1rem);
  }
  to {
    transform: translateY(24rem);
  }
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes feedTick {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  45% {
    opacity: 1;
    transform: translateX(0.35rem);
  }
}

@keyframes matrixFall {
  from {
    transform: translateY(-20vh);
  }
  to {
    transform: translateY(120vh);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes denyShake {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  35% {
    transform: translateY(0) translateX(-4px);
  }
  70% {
    transform: translateY(0) translateX(4px);
  }
}

@keyframes dataBurst {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  22% {
    opacity: 0.9;
  }
  52% {
    opacity: 0.35;
    transform: translate3d(1.8rem, -1.2rem, 0) scale(1.05);
  }
  76% {
    opacity: 0.75;
    transform: translate3d(-1rem, 0.8rem, 0) scale(1);
  }
}

@keyframes beamSweep {
  from {
    transform: translateX(-30vw) rotate(-1.5deg);
    opacity: 0;
  }
  15%,
  70% {
    opacity: 0.9;
  }
  to {
    transform: translateX(30vw) rotate(-1.5deg);
    opacity: 0;
  }
}

@keyframes cloudFloat {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 1rem, 0) scale(0.98);
  }
  18% {
    opacity: 0.75;
  }
  52% {
    opacity: 0.38;
    transform: translate3d(1.6rem, -1.4rem, 0) scale(1.02);
  }
  78% {
    opacity: 0.68;
    transform: translate3d(-1rem, 0.3rem, 0) scale(1);
  }
}

@keyframes hudPulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: none;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
  }
}

@keyframes marqueeSlide {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes gridJitter {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

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

@media (max-width: 860px) {
  .hero,
  .plans,
  .settings-card,
  .offer-form,
  .admin-tools,
  .add-admin-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: space-between;
    padding-top: 0.25rem;
  }

  .language-switch {
    justify-self: end;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 4.25rem);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-panel {
    min-height: 220px;
    animation: riseIn 520ms ease both;
  }

  .toolbar,
  .admin-head,
  .admin-item {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-wrap: wrap;
  }

  .detail-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-body h3 {
    max-width: 100%;
  }

  .terminal-lines code {
    font-size: 0.72rem;
  }

  .system-feed {
    display: none;
  }

  .terminal-cloud {
    opacity: 0.45;
  }

  .terminal-cloud code {
    max-width: 12rem;
    font-size: 0.56rem;
  }

  .corner-hud {
    display: none;
  }

  .matrix-rain {
    opacity: 0.14;
  }

  .orbit-lines {
    opacity: 0.45;
  }

  .data-bursts {
    opacity: 0.48;
  }

  .scan-beams {
    opacity: 0.55;
  }

  .strip-code {
    position: static;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    padding: 0.8rem;
  }

  .nav a,
  .lang-button,
  button,
  .primary,
  .ghost,
  .danger {
    min-height: 2.65rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .hero-logo {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
  }

  .hero-logo-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero {
    gap: 1.2rem;
  }

  .hero-panel,
  .plan,
  .login-card,
  .settings-card,
  .offer-form,
  .admin-item,
  .password-card,
  .owner-card {
    padding: 1rem;
  }

  .cyber-bg span {
    width: 22rem;
    height: 22rem;
    filter: blur(34px);
    opacity: 0.14;
  }

  .toolbar {
    margin-top: 1.2rem;
  }

  .boot-sequence {
    width: 100%;
  }

  .boot-sequence code,
  .card-terminal code {
    font-size: 0.64rem;
  }

  .lock-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .orbit-lines span {
    width: 24rem;
    height: 24rem;
  }

  .data-bursts span {
    font-size: 0.58rem;
  }

  .scan-beams span {
    height: 1px;
  }

  .command-marquee span {
    font-size: 0.58rem;
  }

  .plan {
    min-height: 315px;
  }

  .plan:hover {
    transform: translateY(-2px);
  }

  .price {
    font-size: 1.9rem;
  }

  .modal {
    padding: 0.55rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .admin-actions,
  .modal-actions,
  .plan-actions {
    gap: 0.7rem;
  }

  .admin-user-row {
    align-items: stretch;
    flex-direction: column;
  }
}
