:root {
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: #e7e7e7;
  --muted: rgba(231, 231, 231, 0.72);
  --muted-2: rgba(231, 231, 231, 0.55);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.16);
  --accent: #8a84ff; /* desaturated violet */
  --glow: rgba(130, 0, 255, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

  --radius: 18px;
  --radius-sm: 12px;

  --max: 1120px;
  --gutter: clamp(18px, 3vw, 28px);
  --header-h: 74px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: radial-gradient(900px 500px at 65% 15%, rgba(138, 132, 255, 0.09), transparent 55%),
    radial-gradient(700px 500px at 20% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  width: 100%;
}

/* Cursor glow (interactive background layer) - Disabled on mobile */
.cursor-glow {
  position: fixed;
  display: none;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* behind content, above background */
  --x: 50vw;
  --y: 30vh;
  background: radial-gradient(
    600px 600px at var(--x) var(--y),
    var(--glow) 0%,
    rgba(130, 0, 255, 0.08) 35%,
    transparent 70%
  );
  filter: blur(28px);
  opacity: 0.95;
  mix-blend-mode: screen;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.9);
  color: var(--text);
}

.skip-link:focus {
  left: var(--gutter);
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.18);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-mark {
  font-size: 14px;
  display: inline-block;
  position: relative;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.glitch-text::before {
  left: -2px;
  color: rgba(255, 0, 150, 0.7);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px, -1px);
}

.glitch-text::after {
  left: 2px;
  color: rgba(0, 255, 255, 0.7);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px, 1px);
}

.glitch-text:hover {
  animation: glitch-shift 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glitch-text:hover::before,
.glitch-text:hover::after {
  opacity: 0.8;
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes glitch-shift {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  60% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(-2px, -1px);
  }
  60% {
    transform: translate(2px, 1px);
  }
  80% {
    transform: translate(2px, -1px);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.nav-btn {
  border-color: var(--border-2) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 10px 16px !important;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  border-color: rgba(138, 132, 255, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.16) !important;
  transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.mobile-nav-link {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  border-color: rgba(138, 132, 255, 0.5);
  background: rgba(138, 132, 255, 0.1);
  color: rgba(138, 132, 255, 0.95);
  outline: none;
}

.mobile-nav-btn {
  border-color: rgba(138, 132, 255, 0.4) !important;
  background: rgba(138, 132, 255, 0.08) !important;
  margin-top: 8px;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:focus-visible {
  border-color: rgba(138, 132, 255, 0.7) !important;
  background: rgba(138, 132, 255, 0.15) !important;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.matrix-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(138, 132, 255, 0.03) 2px, rgba(138, 132, 255, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(138, 132, 255, 0.03) 2px, rgba(138, 132, 255, 0.03) 4px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}

.hero-inner {
  padding-block: clamp(54px, 9vw, 88px);
  text-align: center;
  max-width: 920px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 18px;
  word-break: keep-all;
}

.hero-copy {
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn-outline {
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: rgba(138, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.16);
  transform: translateY(-1px);
  outline: none;
}

/* Button Pulse Effect */
.btn-outline,
.btn-submit {
  animation: button-pulse 3s ease-in-out infinite;
}

@keyframes button-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(138, 132, 255, 0.4),
      0 0 0 0 rgba(138, 132, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(138, 132, 255, 0),
      0 0 0 16px rgba(138, 132, 255, 0);
  }
}

.btn-outline:hover,
.btn-submit:hover {
  animation: button-pulse 1.5s ease-in-out infinite;
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

/* Sections */
.section {
  padding-block: clamp(56px, 9vw, 96px);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  display: grid;
  gap: 22px;
}

.section-header {
  display: grid;
  gap: 10px;
}

.section-title {
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-subtitle {
  color: var(--muted);
  max-width: 72ch;
}

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

/* Benefits (Why Us) – allow wrapping and centering without horizontal scroll */
#why-us .services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.service-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 12px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(138, 132, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}

.service-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}

.service-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

/* Service meta (pricing / terms) */
.service-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
}

.service-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.service-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.meta-value {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.price-value {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(138, 132, 255, 0.22);
}

.service-why {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-why .meta-label {
  margin-right: 8px;
}

/* Promo section */
.promo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(138, 132, 255, 0.08), rgba(138, 132, 255, 0.03));
}

.promo-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.promo-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.promo-icon {
  font-size: 44px;
  line-height: 1;
}

.promo-title {
  color: var(--accent);
}

.promo-neon {
  border-color: rgba(138, 132, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(138, 132, 255, 0.22), 0 0 32px rgba(138, 132, 255, 0.18);
}

.promo-bullets {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.promo-bullet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.promo-bullet--accent {
  border-color: rgba(138, 132, 255, 0.28);
  background: rgba(138, 132, 255, 0.08);
}

.promo-bullet-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.promo-bullet-value {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
}

/* Contact quick links */
.contact-grid {
  margin: 18px 0 18px;
}

.contact-card {
  cursor: pointer;
}

.contact-card:hover {
  border-color: rgba(138, 132, 255, 0.28);
  transform: translateY(-2px);
}

/* Pricing grid: 4 cards on wide screens, responsive down */
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Clickable referral promo card */
.promo-referral-card {
  display: block;
}

.promo-referral-card:focus-visible {
  outline: 2px solid rgba(138, 132, 255, 0.65);
  outline-offset: 4px;
}

.promo-referral-card .promo-cta-row {
  margin-top: 14px;
}

.promo-referral-card .promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none; /* whole card is clickable */
}

/* Profile referral program block */
.profile-referral-instruction {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.profile-referral-balance {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

/* Aggressive referral program (profile) */
.referral-program {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #000; /* sportcar dashboard black */
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.60);
}

.referral-program__header {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.referral-program__title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.referral-program__subtitle {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.referral-program__promo {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(57, 255, 20, 0.38); /* dashboard green */
  background: #000;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.16), 0 0 38px rgba(57, 255, 20, 0.12);
}

.referral-program__code-wrap {
  display: grid;
  gap: 8px;
}

.referral-program__code-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.referral-program__code {
  width: 100%;
  padding: 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 255, 20, 0.48);
  background: #000;
  color: rgba(57, 255, 20, 0.95);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  outline: none;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.22);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.14), 0 0 28px rgba(57, 255, 20, 0.10);
}

.referral-program__copy {
  width: 100%;
  margin-top: 12px;
  border-color: rgba(57, 255, 20, 0.55);
}

.copy-btn.is-copied {
  border-color: rgba(57, 255, 20, 0.65);
  background: rgba(57, 255, 20, 0.10);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.20), 0 0 28px rgba(57, 255, 20, 0.16);
  color: rgba(57, 255, 20, 0.95);
}

@keyframes promoPulse {
  0% {
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.10), 0 0 22px rgba(57, 255, 20, 0.08);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.18), 0 0 46px rgba(57, 255, 20, 0.14);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.10), 0 0 22px rgba(57, 255, 20, 0.08);
    transform: translateY(0);
  }
}

.promo-pulse {
  animation: promoPulse 2.4s ease-in-out infinite;
}

.referral-program__steps {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.referral-program__steps-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--text);
}

.referral-program__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.referral-program__step {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #000;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.referral-program__step-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(57, 255, 20, 0.95);
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.22);
}

.referral-program__step-text {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.referral-program__accent {
  color: rgba(57, 255, 20, 0.95);
  text-shadow: 0 0 22px rgba(57, 255, 20, 0.18);
}

/* Arsenal marquee */
.arsenal .section-inner {
  gap: 14px;
}

.section.arsenal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #000000 0%, rgba(138, 43, 226, 0.2) 50%, #000000 100%);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.marquee-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.marquee {
  width: 100vw;
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  padding-block: 16px;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 10, 1), rgba(10, 10, 10, 0));
}

.marquee::after {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, rgba(10, 10, 10, 1), rgba(10, 10, 10, 0));
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 38px;
  /* Move left -> right without jumps (two identical spans) */
  transform: translateX(-50%);
  animation: marquee-ltr 36s linear infinite;
  will-change: transform;
}

.marquee-text {
  font-weight: 800;
  font-size: clamp(40px, 4vw, 50px);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(231, 231, 231, 0.16);
  -webkit-text-stroke: 1px rgba(231, 231, 231, 0.24);
  text-stroke: 1px rgba(231, 231, 231, 0.24);
  white-space: nowrap;
  transition: color 0.25s ease, text-shadow 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}

/* Neon flicker on hover */
.marquee:hover .marquee-text {
  color: rgba(231, 231, 231, 0.42);
  -webkit-text-stroke-color: rgba(138, 132, 255, 0.36);
  text-shadow: 0 0 20px rgba(138, 132, 255, 0.14);
  animation: neonFlicker 1.7s ease-in-out infinite;
}

@keyframes neonFlicker {
  0% {
    text-shadow: 0 0 16px rgba(138, 132, 255, 0.10);
    opacity: 0.96;
  }
  28% {
    text-shadow: 0 0 26px rgba(138, 132, 255, 0.16);
    opacity: 1;
  }
  44% {
    text-shadow: 0 0 20px rgba(138, 132, 255, 0.12);
    opacity: 0.985;
  }
  72% {
    text-shadow: 0 0 30px rgba(138, 132, 255, 0.18);
    opacity: 1;
  }
  100% {
    text-shadow: 0 0 18px rgba(138, 132, 255, 0.11);
    opacity: 0.97;
  }
}

@keyframes marquee-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: translateX(0);
  }
  .marquee:hover .marquee-text {
    animation: none;
  }
}

/* Squad cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-content: center;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(138, 132, 255, 0.28);
  transform: translateY(-2px);
}

.avatar {
  height: 160px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid var(--accent);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .member-photo {
  filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(138, 132, 255, 0.45);
}

.card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Selected Operations */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(130, 0, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.14), 0 14px 44px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
  outline: none;
}

.work-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(231, 231, 231, 0.55);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  border-radius: var(--radius);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
  display: grid;
  gap: 10px;
}

.testimonial-card:hover,
.testimonial-card:focus-visible {
  border-color: rgba(130, 0, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.14), 0 14px 44px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
  outline: none;
}

/* Always-on neon border for highlighted testimonial cards (e.g., Serhii) */
.testimonial-card--neon {
  border-color: rgba(130, 0, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.10), 0 14px 44px rgba(0, 0, 0, 0.34);
}

/* Фікс горизонтального скролу для Cursed IT Corporation */
@media screen and (max-width: 768px) {
  /* Робимо так, щоб нічого не вилазило за межі екрана */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* Картки переваг: змушуємо їх ставати в стовпчик */
  .benefits-container,
  .advantages-grid,
  .cards-wrapper,
  #why-us .services-grid {
    display: block !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* Самі картки: ширина на весь екран, без min-width / flex-basis */
  .benefit-card,
  .advantage-item,
  #why-us .service-card {
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(138, 132, 255, 0.7), rgba(10, 10, 10, 1));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

.testimonial-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.testimonial-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

.stars {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(130, 0, 255, 0.55), 0 0 18px rgba(130, 0, 255, 0.35);
  letter-spacing: 2px;
  font-size: 16px;
}

.testimonial-text {
  color: #ccc;
  font-style: italic;
}

/* Contact */
.contact {
  padding-bottom: clamp(72px, 10vw, 120px);
}

.contact-panel {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: radial-gradient(600px 240px at 30% 0%, rgba(138, 132, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 30px);
  display: grid;
  gap: 10px;
}

.contact-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 2px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.input::placeholder {
  color: rgba(231, 231, 231, 0.38);
}

.input:focus {
  border-bottom-color: rgba(130, 0, 255, 0.7);
  box-shadow: 0 10px 24px rgba(130, 0, 255, 0.10);
}

.input#id_promoCode {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input#id_promoCode:focus {
  border-bottom-color: rgba(57, 255, 20, 0.85);
  box-shadow: 0 10px 24px rgba(57, 255, 20, 0.14);
}

.input:invalid:focus {
  border-bottom-color: rgba(255, 95, 130, 0.8);
  box-shadow: 0 10px 24px rgba(255, 95, 130, 0.10);
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.service-radio:focus-visible + .chip {
  outline: none;
  border-color: rgba(130, 0, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.18);
}

.service-radio:checked + .chip {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(130, 0, 255, 0.55);
  background: rgba(130, 0, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.10);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  border-color: rgba(130, 0, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(130, 0, 255, 0.16);
  transform: translateY(-1px);
  outline: none;
}

/* Magnetic Button Effect */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.contact-note {
  color: var(--muted);
  max-width: 70ch;
}

.mono {
  font-family: var(--mono);
}

/* Form Success/Error Messages */
#contact-form {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message,
.error-message {
  display: none;
  text-align: center;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-message[aria-hidden="true"],
.error-message[aria-hidden="true"] {
  display: none !important;
}

.success-message.show,
.error-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: pulse 2s ease-in-out infinite;
}

.success-message {
  display: block;
}

.success-text {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 20px rgba(130, 0, 255, 0.5), 0 0 40px rgba(130, 0, 255, 0.3);
  line-height: 1.4;
  max-width: 90%;
  margin: 0;
}

.error-message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 50, 50, 0.12);
  border: 1px solid rgba(255, 50, 50, 0.35);
}

.error-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 120, 120, 0.95);
  text-shadow: 0 0 8px rgba(255, 50, 50, 0.4);
  margin: 0;
}

.modal-error-container {
  margin-bottom: 16px;
}

.modal-error-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 50, 50, 0.95);
  text-shadow: 0 0 10px rgba(255, 50, 50, 0.8),
               0 0 20px rgba(255, 50, 50, 0.6),
               0 0 30px rgba(255, 50, 50, 0.4);
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(20, 0, 0, 0.95), rgba(10, 0, 0, 0.85));
  border: 2px solid rgba(220, 20, 60, 0.6);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  text-align: center;
  animation: error-text-pulse 2s ease-in-out infinite;
}

@keyframes error-text-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.8),
                 0 0 20px rgba(255, 50, 50, 0.6),
                 0 0 30px rgba(255, 50, 50, 0.4);
    border-color: rgba(220, 20, 60, 0.6);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 50, 50, 1),
                 0 0 30px rgba(255, 50, 50, 0.8),
                 0 0 45px rgba(255, 50, 50, 0.6);
    border-color: rgba(220, 20, 60, 0.9);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid #333;
  padding-block: 28px 22px;
  background: rgba(10, 10, 10, 0.72);
}

.footer-grid {
  display: grid;
  gap: 18px;
  color: var(--muted-2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

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

.footer-logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 231, 231, 0.92);
  font-size: 14px;
}

.footer-tagline {
  color: rgba(231, 231, 231, 0.58);
  font-size: 13px;
}

.footer-links,
.footer-legal {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-legal {
  justify-items: end;
}

.footer-link {
  font-size: 13px;
  color: rgba(231, 231, 231, 0.62);
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: rgba(130, 0, 255, 0.92);
  border-bottom-color: rgba(130, 0, 255, 0.55);
  outline: none;
}

.footer-link--small {
  font-size: 12px;
}

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  font-family: var(--mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(231, 231, 231, 0.52);
}

/* Profile-specific styles */
.profile-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--gutter);
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Cases page */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  gap: 14px;
}

.case-video {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.case-video video {
  width: 100%;
  height: auto;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.profile-main {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  min-height: 100vh;
}

.dashboard {
  max-width: 600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 24px;
}

.profile-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 24px;
  display: grid;
  gap: 16px;
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-inline: auto;
  border: 2px solid rgba(138, 132, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}

.profile-avatar-img {
  object-fit: cover;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.profile-email {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.balance-card {
  border-radius: var(--radius);
  border: 1px solid rgba(138, 132, 255, 0.2);
  background: radial-gradient(400px 200px at 50% 0%, rgba(138, 132, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.balance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.balance-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.balance-display {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(138, 132, 255, 0.95);
  text-shadow: 0 0 20px rgba(138, 132, 255, 0.5), 0 0 40px rgba(138, 132, 255, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.balance-display.balance-positive {
  color: rgba(76, 175, 80, 0.95);
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.4), 0 0 60px rgba(76, 175, 80, 0.2);
  animation: balance-glow 2s ease-in-out infinite alternate;
}

@keyframes balance-glow {
  0% {
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.4), 0 0 60px rgba(76, 175, 80, 0.2);
  }
  100% {
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.8), 0 0 50px rgba(76, 175, 80, 0.6), 0 0 70px rgba(76, 175, 80, 0.4);
  }
}

.balance-error-notification {
  border-radius: var(--radius);
  border: 2px solid rgba(220, 20, 60, 0.6);
  background: linear-gradient(180deg, rgba(20, 0, 0, 0.95), rgba(10, 0, 0, 0.85));
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.3), 
              0 0 40px rgba(220, 20, 60, 0.15),
              inset 0 0 20px rgba(220, 20, 60, 0.1);
  padding: 16px 24px;
  text-align: center;
  animation: error-pulse 2s ease-in-out infinite;
}

.balance-error-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 50, 50, 0.95);
  text-shadow: 0 0 10px rgba(255, 50, 50, 0.8),
               0 0 20px rgba(255, 50, 50, 0.6),
               0 0 30px rgba(255, 50, 50, 0.4);
  display: block;
}

@keyframes error-pulse {
  0%, 100% {
    border-color: rgba(220, 20, 60, 0.6);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3), 
                0 0 40px rgba(220, 20, 60, 0.15),
                inset 0 0 20px rgba(220, 20, 60, 0.1);
  }
  50% {
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5), 
                0 0 60px rgba(220, 20, 60, 0.25),
                inset 0 0 30px rgba(220, 20, 60, 0.15);
  }
}

.referral-section {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.referral-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
  text-align: center;
}

.referral-link-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.referral-link-input:focus {
  border-color: rgba(138, 132, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.1);
}

.copy-btn {
  width: 100%;
  justify-content: center;
}

#logout-btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Withdrawal Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: modal-fade-in 0.4s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  display: grid;
  gap: 20px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
  opacity: 1;
  animation: modal-content-fade-in 0.4s ease;
}

@keyframes modal-content-fade-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.logout-modal-content {
  text-align: center;
  border: 2px solid rgba(138, 132, 255, 0.3);
  box-shadow: 0 0 30px rgba(138, 132, 255, 0.2),
              0 0 60px rgba(138, 132, 255, 0.1),
              inset 0 0 30px rgba(138, 132, 255, 0.05);
}

.logout-confirmation-text {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.logout-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.logout-modal-actions .btn {
  width: 100%;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.modal-title {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
  text-align: center;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
}

.modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.modal-input:focus {
  border-color: rgba(138, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.16);
}

.modal-input::placeholder {
  color: rgba(231, 231, 231, 0.38);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(138, 132, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Profile Success Message */
.profile-success-message {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(138, 132, 255, 0.1), rgba(138, 132, 255, 0.05));
  border: 1px solid rgba(138, 132, 255, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(138, 132, 255, 0.15);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 100; /* Lower than modals (2000+) */
}

.profile-success-message.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.profile-success-message[aria-hidden="true"] {
  display: none;
}

.profile-success-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  flex: 1;
  margin: 0;
}

.message-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.message-close:hover {
  color: var(--text);
}

.message-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .dashboard {
    padding-inline: 20px;
  }

  .profile-card,
  .balance-card,
  .referral-section {
    padding: 20px;
  }

  .modal-content {
    padding: 24px 20px;
  }
}

/* Responsive */
@media (min-width: 769px) {
  .cursor-glow {
    display: block;
  }
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  :root {
    --header-h: 70px;
    --gutter: clamp(16px, 4vw, 24px);
  }

  .container {
    padding-inline: 20px;
  }

  .header-inner {
    padding-inline: 20px;
  }

  .section-inner {
    padding-inline: 0;
  }

  /* Hero Section - Center Alignment */
  .hero-inner {
    padding-inline: 20px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(28px, 10vw, 48px);
    margin-bottom: 16px;
    text-align: center;
  }

  .hero-copy {
    font-size: 15px;
    margin-bottom: 24px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Section General */
  .section {
    padding-block: clamp(40px, 8vw, 64px);
  }

  .section-header {
    text-align: center;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 28px);
    text-align: center;
  }

  .section-subtitle {
    text-align: center;
    margin-inline: auto;
  }

  /* Manifesto Section - Center Alignment */
  .service-card {
    text-align: center;
  }

  .service-label {
    text-align: center;
  }

  .service-description {
    text-align: center;
  }

  /* Mission Log - Center Alignment */
  .work-card {
    text-align: center;
  }

  .work-tag {
    text-align: center;
  }

  .work-title {
    text-align: center;
  }

  /* Squad Section - Center Alignment */
  .card {
    text-align: center;
  }

  .avatar {
    margin-inline: auto;
  }

  .card-name {
    text-align: center;
  }

  .card-role {
    text-align: center;
  }

  /* Testimonials - Center Alignment */
  .testimonial-card {
    text-align: center;
  }

  .testimonial-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .testimonial-name {
    text-align: center;
  }

  .stars {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .testimonial-text {
    text-align: center;
  }

  /* Contact Form - Center Alignment */
  .contact-panel {
    padding-inline: 20px;
  }

  .contact-label {
    text-align: center;
  }

  .field-label {
    text-align: center;
  }

  .input {
    text-align: left;
  }

  .input::placeholder {
    text-align: left;
  }

  .service-chips {
    justify-content: center;
  }

  .btn-submit {
    margin: 0 auto;
    display: block;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .service-chips {
    gap: 12px;
  }

  .chip {
    padding: 14px 18px;
    min-height: 48px;
    font-size: 13px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-legal {
    justify-items: center;
  }

  .marquee-text {
    font-size: clamp(28px, 6vw, 36px);
    letter-spacing: 0.10em;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
    --gutter: 14px;
  }

  .container {
    padding-inline: 20px;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .logo-mark {
    font-size: 12px;
  }

  .nav-link {
    padding: 10px 8px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(24px, 9vw, 40px);
    line-height: 1.1;
    text-align: center;
  }

  .kicker {
    font-size: 11px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* Arsenal marquee: smaller on phones, still full-bleed */
  .marquee-text {
    font-size: clamp(25px, 6vw, 30px);
    letter-spacing: 0.10em;
  }

  .section-inner {
    gap: 18px;
    padding-inline: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Why Us cards full-width on phones */
  #why-us .service-card {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  /* Profile referral: keep promo code inside viewport and tap-friendly */
  .referral-program__code {
    font-size: clamp(16px, 4.6vw, 18px);
    letter-spacing: 0.08em;
    padding: 14px 14px;
  }

  .referral-program__copy {
    min-height: 48px;
  }

  .service-card {
    padding: 20px;
    text-align: center;
  }

  .service-description {
    font-size: 13px;
    text-align: center;
  }

  .card {
    padding: 16px;
    text-align: center;
  }

  .avatar {
    height: 120px;
    margin-inline: auto;
  }

  .contact-panel {
    padding: 20px;
  }

  .btn {
    padding: 14px 16px;
    font-size: 12px;
    min-height: 48px;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

