:root {
  --bg: #030303;
  --bg-soft: rgba(10, 10, 12, 0.94);
  --panel: rgba(11, 11, 14, 0.88);
  --panel-strong: rgba(15, 15, 18, 0.96);
  --line: rgba(255, 255, 255, 0.055);
  --line-strong: rgba(255, 96, 96, 0.22);
  --text: #f5f7fb;
  --muted: #9497a1;
  --muted-strong: #c9ced8;
  --green: #35e787;
  --red: #ff4d5a;
  --red-soft: #ff7267;
  --amber: #ffbd4a;
  --blue: #7b8cff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --pointer-x: 50vw;
  --pointer-y: 32vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 80, 80, 0.11), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(96, 114, 255, 0.09), transparent 18%),
    linear-gradient(180deg, #010101 0%, #050507 36%, #020203 100%);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.galaxy,
.stars,
.grid-haze,
.pointer-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.galaxy {
  z-index: 0;
}

.galaxy--one {
  background: radial-gradient(circle at 18% 18%, rgba(255, 84, 84, 0.14), transparent 26%);
  filter: blur(10px);
}

.galaxy--two {
  background: radial-gradient(circle at 78% 16%, rgba(118, 98, 255, 0.11), transparent 18%);
  filter: blur(6px);
}

.stars {
  z-index: 0;
  opacity: 0.24;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: -20%;
  animation: drift 34s linear infinite;
  background-repeat: repeat;
}

.stars--small::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px);
  background-size: 160px 160px;
}

.stars--small::after {
  background-image: radial-gradient(circle, rgba(255, 85, 85, 0.22) 0 1px, transparent 1.8px);
  background-size: 220px 220px;
  animation-duration: 48s;
  animation-direction: reverse;
}

.stars--large::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1.4px, transparent 2px);
  background-size: 300px 300px;
  animation-duration: 60s;
}

.stars--large::after {
  background-image: radial-gradient(circle, rgba(122, 134, 255, 0.16) 0 1.4px, transparent 2px);
  background-size: 260px 260px;
  animation-duration: 78s;
  animation-direction: reverse;
}

.grid-haze {
  z-index: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.pointer-glow {
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle 180px at var(--pointer-x) var(--pointer-y), rgba(255, 82, 82, 0.08), transparent 60%),
    radial-gradient(circle 280px at calc(var(--pointer-x) + 3vw) calc(var(--pointer-y) - 4vh), rgba(122, 134, 255, 0.05), transparent 68%);
  transition: opacity 0.28s ease;
}

body.has-pointer .pointer-glow {
  opacity: 1;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 18px 72px;
  transform: translateZ(0);
}

.navbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  background: rgba(8, 8, 10, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5448, #5b0f22);
  box-shadow: 0 8px 20px rgba(124, 24, 44, 0.22);
  font-weight: 800;
}

.nav-brand-text {
  display: grid;
  gap: 2px;
}

.nav-brand-text strong {
  font-size: 0.98rem;
}

.nav-brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.nav-account-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 79, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(9, 9, 12, 0.96), rgba(4, 4, 6, 0.94));
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.eyebrow,
.controls-kicker,
.section-kicker,
.panel-kicker {
  margin: 0;
  color: var(--red-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-text,
.controls-copy p,
.section-description,
.footer-copy span {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-button,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  position: relative;
  overflow: hidden;
}

.hero-button:hover,
.action-btn:hover {
  transform: translateY(-2px);
}

.hero-button--primary {
  background: linear-gradient(135deg, #ff4b4b, #9f2038);
  box-shadow: 0 12px 28px rgba(159, 32, 56, 0.24);
}

.hero-button--ghost {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.055);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-points div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-points span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-points strong {
  display: block;
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 76, 76, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(13, 13, 16, 0.96), rgba(8, 8, 11, 0.96));
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 76, 76, 0.12), transparent 66%);
}

.hero-panel-copy h2 {
  margin: 12px 0 0;
  max-width: 11ch;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.04;
}

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

.hero-stat {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

#last-sync {
  font-size: clamp(1.08rem, 1.6vw, 1.48rem);
  letter-spacing: -0.03em;
}

.hero-api-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-api-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
}

.hero-sync {
  margin: auto 0 0;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.controls-copy,
.controls-panel,
.summary-card,
.platform-section,
.footer {
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: var(--panel);
}

.controls-copy,
.controls-panel {
  padding: 24px;
  border-radius: 22px;
}

.controls-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font: inherit;
  cursor: pointer;
  transition: 0.18s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.platform-tab.is-active {
  border-color: rgba(255, 83, 83, 0.24);
  background: linear-gradient(135deg, rgba(255, 83, 83, 0.12), rgba(122, 134, 255, 0.08));
  box-shadow: 0 10px 22px rgba(124, 24, 44, 0.1);
}

.platform-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 83, 83, 0.22);
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-box input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 5, 7, 0.92);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(255, 83, 83, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 83, 83, 0.08);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.script-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 21px 24px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(122, 134, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(6, 8, 12, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.script-entry-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.02;
}

.script-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.script-showcase {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(122, 134, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 15, 19, 0.9), rgba(10, 10, 14, 0.92));
}

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

.home-script-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-script-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 134, 255, 0.28);
}

.home-script-card--hero {
  grid-column: span 2;
}

.home-script-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.home-script-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-script-card__overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.home-script-card__overlay span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 8, 13, 0.72);
  color: #f7f8fb;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-script-card__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.home-script-card__eyebrow,
.home-script-card__meta,
.home-script-card__preview {
  color: var(--muted);
}

.home-script-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.05;
}

.home-script-card__preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.6;
}

.summary-card {
  padding: 18px;
  border-radius: 18px;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 83, 83, 0.14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.summary-card-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.summary-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  #last-sync {
    font-size: 1rem;
    line-height: 1.2;
  }

  .script-entry {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  #last-sync {
    font-size: 0.94rem;
  }
}

.platform-sections {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.platform-section {
  padding: 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 77, 90, 0.05), transparent 22%),
    linear-gradient(180deg, rgba(12, 12, 15, 0.92), rgba(7, 7, 9, 0.94));
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
  transform: translateZ(0);
}

.section-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.section-icon-wrap {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 76, 76, 0.18), rgba(26, 28, 38, 0.5));
  border: 1px solid rgba(255, 83, 83, 0.16);
  font-size: 1.28rem;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1;
}

.section-description {
  margin-top: 8px;
  max-width: 60ch;
}

.section-meta {
  text-align: right;
}

.section-meta strong {
  display: block;
  font-size: 1.45rem;
}

.section-meta span {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.executor-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(13, 13, 16, 0.97), rgba(7, 7, 9, 0.99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.executor-card--premium {
  border-color: rgba(255, 184, 76, 0.28);
}

.executor-card--offline {
  opacity: 0.96;
}

.executor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 180px at var(--card-glow-x, 50%) var(--card-glow-y, 8%), rgba(255, 82, 82, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.executor-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(255, 83, 83, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.executor-card:hover::after {
  opacity: 1;
}

.card-orb {
  position: absolute;
  right: -46px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 72, 72, 0.08), transparent 68%);
}

.card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.card-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.executor-card:hover .card-avatar {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 83, 83, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.2);
}

.card-heading {
  min-width: 0;
}

.card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.card-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}

.card-flag {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-flag--premium {
  background: linear-gradient(135deg, #ffb63f, #ff7b22);
  color: #211100;
}

.card-flag--live {
  background: rgba(53, 231, 135, 0.14);
  color: var(--green);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.92rem;
  font-weight: 700;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.badge--platform {
  background: rgba(111, 134, 255, 0.12);
  color: #b7c1ff;
}

.badge--online,
.badge--vng-online {
  background: rgba(53, 231, 135, 0.12);
  color: var(--green);
}

.badge--offline {
  background: rgba(255, 77, 90, 0.12);
  color: var(--red);
}

.badge--premium {
  background: rgba(255, 189, 74, 0.16);
  color: var(--amber);
}

.badge--vng {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.card-fields {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
}

.card-field {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.card-field dt {
  color: var(--muted);
}

.card-field dd {
  margin: 0;
  text-align: right;
  color: var(--muted-strong);
  overflow-wrap: anywhere;
}

.value-strong {
  color: var(--text);
  font-weight: 700;
}

.value-online {
  color: var(--green);
  font-weight: 700;
}

.value-offline {
  color: var(--red);
  font-weight: 700;
}

.value-amber {
  color: var(--amber);
  font-weight: 700;
}

.command-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.command-shell.is-hidden {
  display: none;
}

.command-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.command-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.26);
}

.command-text {
  overflow: hidden;
  font-size: 0.84rem;
  color: #d7d7e0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.command-copy {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.command-copy:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.card-actions .action-btn {
  min-width: 132px;
}

.action-btn--download {
  background: linear-gradient(135deg, #18d98b, #0fae70);
  color: #04160d;
}

.action-btn--vng {
  background: linear-gradient(135deg, #3558ff, #5f77ff);
}

.action-btn--purchase {
  background: linear-gradient(135deg, #ffb63f, #ff8326);
  color: #221300;
}

.action-btn--support {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ui-ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  animation: ripple-out 0.62s ease-out forwards;
  pointer-events: none;
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 60px 24px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 14, 0.68);
  text-align: center;
}

.empty-state strong {
  font-size: 1.18rem;
}

.empty-state span {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 20px;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted-strong);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(80px, 40px, 0);
  }
}

@keyframes ripple-out {
  from {
    opacity: 0.45;
    width: 0;
    height: 0;
  }

  to {
    opacity: 0;
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 1180px) {
  .hero,
  .controls,
  .script-entry {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero {
    padding: 24px;
    border-radius: 30px;
  }

  .hero-panel,
  .controls-copy,
  .controls-panel,
  .script-entry,
  .platform-section,
  .footer {
    border-radius: 24px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-points,
  .hero-stats,
  .home-script-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .executor-card {
    padding: 20px;
    border-radius: 24px;
  }

  .card-avatar {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding-inline: 14px;
  }

  .navbar,
  .hero,
  .controls-copy,
  .controls-panel,
  .script-entry,
  .platform-section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .navbar {
    top: 10px;
    flex-direction: column;
    align-items: start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-account-slot {
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .script-entry-actions {
    width: 100%;
  }

  .section-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-meta {
    text-align: left;
  }

  .card-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .card-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .card-field dd {
    text-align: left;
  }

  .footer {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: 100%;
    padding: 12px 10px 44px;
  }

  .navbar {
    top: 8px;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .nav-brand {
    gap: 10px;
    min-width: 0;
  }

  .nav-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .nav-brand-text strong {
    font-size: 0.86rem;
  }

  .nav-brand-text small {
    display: none;
  }

  .nav-account-slot {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    gap: 14px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hero h1 {
    max-width: 10.5ch;
    font-size: clamp(1.95rem, 10vw, 3rem);
    line-height: 0.98;
  }

  .hero-text,
  .controls-copy p,
  .section-description,
  .footer-copy span {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-cta {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-button,
  .action-btn {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .hero-points {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-points div {
    padding: 12px;
    border-radius: 16px;
  }

  .hero-points strong {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .hero-panel {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-panel-copy h2 {
    max-width: none;
    font-size: 1.24rem;
    line-height: 1.08;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-stat {
    padding: 12px;
    border-radius: 16px;
  }

  .hero-stat strong {
    font-size: 1.35rem;
  }

  #last-sync {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .hero-api-links {
    gap: 8px;
  }

  .hero-api-links a {
    flex: 1 1 100%;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
  }

  .controls {
    gap: 14px;
    margin-top: 18px;
  }

  .controls-copy,
  .controls-panel,
  .script-entry,
  .platform-section,
  .footer {
    padding: 16px;
    border-radius: 20px;
  }

  .controls-copy h2,
  .script-entry-copy h2 {
    line-height: 1.08;
  }

  .platform-tabs {
    gap: 8px;
  }

  .platform-tab {
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .search-box input {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .script-entry {
    gap: 14px;
    margin-top: 18px;
  }

  .summary-strip,
  .platform-sections {
    gap: 14px;
    margin-top: 16px;
  }

  .summary-card {
    padding: 14px;
    border-radius: 18px;
  }

  .summary-card strong {
    font-size: 1.6rem;
  }

  .platform-section {
    padding: 16px;
    border-radius: 20px;
  }

  .section-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.08rem;
  }

  .section-title {
    margin-top: 6px;
    line-height: 1.08;
  }

  .section-grid {
    gap: 14px;
  }

  .executor-card {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .card-header {
    gap: 12px;
    align-items: start;
  }

  .card-avatar {
    width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 18px;
  }

  .card-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-title {
    font-size: clamp(1.34rem, 7vw, 1.86rem);
    line-height: 1.04;
  }

  .card-flag {
    width: fit-content;
    margin-top: 0;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .card-badges {
    gap: 8px;
    margin-top: 10px;
  }

  .badge {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .card-fields {
    gap: 10px;
  }

  .card-field {
    padding-top: 10px;
  }

  .command-box {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .command-text {
    font-size: 0.78rem;
  }

  .command-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .card-actions {
    gap: 8px;
  }

  .card-actions .action-btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 8px;
    padding-bottom: 40px;
  }

  .hero,
  .controls-copy,
  .controls-panel,
  .script-entry,
  .platform-section,
  .footer {
    padding: 14px;
    border-radius: 18px;
  }

  .navbar {
    padding: 10px;
    border-radius: 16px;
  }

  .hero {
    padding: 14px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
    max-width: none;
  }

  .hero-points {
    display: none;
  }

  .controls-panel,
  .script-entry,
  .platform-section {
    gap: 12px;
  }

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

  .home-script-grid {
    grid-template-columns: 1fr;
  }

  .home-script-card--hero {
    grid-column: span 1;
  }

  .hero-button,
  .action-btn {
    width: 100%;
  }

  .platform-tab {
    width: 100%;
    justify-content: center;
  }

  .script-entry-actions > * {
    width: 100%;
  }

  .card-actions .action-btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}

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

  .stars::before,
  .stars::after,
  .reveal,
  .executor-card,
  .summary-card,
  .hero-button,
  .action-btn,
  .platform-tab,
  .command-copy {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .pointer-glow {
    display: none;
  }
}
