

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

::selection {
  background: rgba(255,77,77,0.3);
  color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: rgba(255,77,77,0.5); border-radius: 3px; }

:root {
  --bg: #070709;
  --bg-2: #0d0d10;
  --surface: #111114;
  --surface-2: #18181c;
  --border: rgba(255,255,255,0.06);
  --accent: #ff4d4d;
  --accent-dim: rgba(255,77,77,0.15);
  --accent-glow: rgba(255,77,77,0.4);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-dim: rgba(255,255,255,0.25);
}

body {
  font-family: 'Manrope', 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.orb-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: #ff4d4d;
  opacity: 0.12;
  top: -100px;
  left: -150px;
  animation: orbFloat 25s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #8b0000;
  opacity: 0.10;
  bottom: -100px;
  right: -100px;
  animation: orbFloat 30s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #ff4d4d;
  opacity: 0.06;
  top: calc(50% - 150px);
  left: calc(50% - 150px);
  animation: orbFloat 20s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(40px, -30px) scale(1.05); }
  50%       { transform: translate(-20px, 50px) scale(0.95); }
  75%       { transform: translate(30px, 20px) scale(1.03); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7,7,9,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease, transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.nav.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
}

.nav-logo-secondary {
  width: auto;
  height: 72px;
  max-width: 340px;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: calc(100% - 24px); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 220px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: border-color 220ms var(--apple-ease), background 220ms var(--apple-ease), transform 220ms var(--apple-ease);
}

.nav-user-chip:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(14, 16, 21, 0.85);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dashboard-btn {
  padding: 10px 16px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Manrope', 'SF Pro Display', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-red {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
}

.btn-red:hover {
  box-shadow: 0 8px 24px rgba(255,77,77,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-headline {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-line-1 {
  color: var(--text-primary);
}

.hero-line-2 {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4d 30%, #ff2d55 60%, #d40000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-metric {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 14px 36px;
  min-width: 190px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.hero-metric:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow:
    0 12px 40px -5px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 77, 77, 0.15);
}

.hero-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-metric span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .hero-metrics {
    gap: 12px;
    padding: 0 20px;
  }

  .hero-metric {
    padding: 10px 24px;
    min-width: 140px;
  }

  .hero-metric strong {
    font-size: 18px;
  }

  .hero-metric span {
    font-size: 9px;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}

.features-section,
.commands-section,
.automations-section,
.customcmd-section,
.stats-section,
.cta-section {
  position: relative;
  z-index: 1;
}

.features-section  { padding: 120px 0; }
.commands-section  { padding: 120px 0; }
.automations-section { padding: 180px 0 160px; }
.stats-section     { padding: 80px 0; }
.cta-section       { padding: 160px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
}

.automations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.automations-grid > * {
  min-width: 0;
}

/*
 * Active state = :hover, :focus-visible, or .is-active (added by JS on touch
 * devices while the card is in view, and permanently for reduced motion).
 * Reveal lives on the wrapper so its inline transform cannot override hover.
 */
.automation-card {
  --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --am-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 26px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 20, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
  transition:
    transform 0.5s var(--am-ease),
    border-color 0.4s var(--am-ease),
    box-shadow 0.4s var(--am-ease);
}

.automation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(255, 77, 77, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.automation-card::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--am-ease);
  pointer-events: none;
}

.automation-card.spotlight-active::before { opacity: 1; }

.automation-card:is(:hover, :focus-visible, .is-active) {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 77, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 77, 77, 0.08);
}

.automation-card:is(:hover, :focus-visible, .is-active)::after { transform: scaleX(1); }

.automation-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Stage: small Discord mock that plays its "after" state when active ── */
.automation-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 172px;
  padding: 18px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 50% 130%, rgba(255, 77, 77, 0.08), transparent 65%), #0b0b0e;
  transition: border-color 0.4s ease;
}

.automation-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}

.automation-card:is(:hover, :focus-visible, .is-active) .automation-stage {
  border-color: rgba(255, 77, 77, 0.14);
}

.am-panel {
  position: relative;
  width: 100%;
  max-width: 272px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #141418;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--am-ease);
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-panel { transform: translateY(-2px); }

.am-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(6px);
  transition:
    grid-template-rows 0.5s var(--am-ease),
    opacity 0.35s ease,
    transform 0.5s var(--am-ease);
}

.am-reveal > div { min-height: 0; overflow: hidden; }

.automation-card:is(:hover, :focus-visible, .is-active) .am-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

.am-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.am-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.am-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.am-copy strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.am-muted { font-size: 11px; color: var(--text-dim); }

.am-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.am-avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #26262c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.am-avatar-logo { background: #0b0b0e; border: 1px solid rgba(255, 255, 255, 0.06); }
.am-avatar-logo img { width: 16px; height: 16px; }

.am-avatar-online::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23a55a;
  border: 2px solid #141418;
}

.am-pill {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
}

.am-reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* Rich Presence */
.am-rpc { display: flex; align-items: center; gap: 12px; }

.am-rpc-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, #1e1e23, #0d0d10);
  transition: transform 0.5s var(--am-spring), box-shadow 0.4s ease;
}

.am-rpc-art img { width: 26px; height: 26px; }

.automation-card:is(:hover, :focus-visible, .is-active) .am-rpc-art {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.3), 0 0 18px rgba(255, 77, 77, 0.2);
}

.am-rpc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 10px;
}

.am-rpc-buttons span {
  padding: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* Giveaway Joiner */
.am-embed { display: flex; gap: 10px; }

.am-embed-bar {
  flex: none;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.am-gw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.am-gw-reaction {
  transition: border-color 0.3s ease 0.15s, background 0.3s ease 0.15s, color 0.3s ease 0.15s;
}

.am-count {
  display: inline-grid;
  height: 16px;
  overflow: hidden;
  line-height: 16px;
}

.am-count i {
  grid-area: 1 / 1;
  font-style: normal;
  transition: transform 0.45s var(--am-ease) 0.15s;
}

.am-count i:last-child { transform: translateY(100%); }

.am-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease 0.3s, transform 0.45s var(--am-ease) 0.3s;
}

.am-done svg { width: 12px; height: 12px; }

.automation-card:is(:hover, :focus-visible, .is-active) .am-gw-reaction {
  border-color: rgba(255, 77, 77, 0.5);
  background: rgba(255, 77, 77, 0.12);
  color: #fff;
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-count i:first-child { transform: translateY(-100%); }
.automation-card:is(:hover, :focus-visible, .is-active) .am-count i:last-child { transform: none; }
.automation-card:is(:hover, :focus-visible, .is-active) .am-done { opacity: 1; transform: none; }

/* Snipe Logger */
.am-snipe-text {
  text-decoration: line-through;
  text-decoration-color: transparent;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.am-snipe-pill {
  margin-left: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.4s var(--am-spring);
}

.am-log {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 77, 77, 0.16);
  background: rgba(255, 77, 77, 0.06);
}

.am-log svg { flex: none; width: 16px; height: 16px; color: var(--accent); }

.am-log small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-snipe-text {
  color: var(--text-dim);
  text-decoration-color: var(--accent);
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-snipe-pill { opacity: 1; transform: none; }

/* Auto React */
.am-keyword {
  margin: 0 -3px;
  padding: 0 3px;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  transition: background 0.3s ease, color 0.3s ease;
}

.am-react-row {
  display: flex;
  gap: 6px;
  padding: 10px 0 0 38px;
}

.am-react-row .am-reaction {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.25s ease calc(0.15s + var(--i) * 0.09s),
    transform 0.45s var(--am-spring) calc(0.15s + var(--i) * 0.09s);
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-keyword {
  background: rgba(255, 77, 77, 0.18);
  color: #fff;
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-react-row .am-reaction { opacity: 1; transform: none; }

/* Auto Reply: typing dots first, then the reply lands */
.am-reply { display: grid; padding-top: 10px; }

.am-typing,
.am-reply-msg { grid-area: 1 / 1; }

.am-typing {
  align-self: center;
  display: inline-flex;
  gap: 3px;
  width: max-content;
  margin-left: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
}

.am-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: amTypingDot 0.9s ease-in-out infinite;
}

.am-typing i:nth-child(2) { animation-delay: 0.15s; }
.am-typing i:nth-child(3) { animation-delay: 0.3s; }

.am-link { font-weight: 600; color: #ff7a7a; }

.automation-card:is(:hover, :focus-visible, .is-active) .am-typing { animation: amTypingShow 1s ease both; }
.automation-card:is(:hover, :focus-visible, .is-active) .am-reply-msg { animation: amReplyIn 0.5s var(--am-ease) 0.9s both; }

@keyframes amTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-3px); opacity: 1; }
}

@keyframes amTypingShow {
  0%, 80% { opacity: 1; }
  100%    { opacity: 0; }
}

@keyframes amReplyIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Status Rotator */
.am-status-reel {
  display: block;
  height: 17px;
  overflow: hidden;
}

.am-status-track { display: flex; flex-direction: column; }

.am-status-track > span {
  height: 17px;
  line-height: 17px;
  white-space: nowrap;
}

.am-status-track b { font-weight: 700; color: #fff; }

.am-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.am-timer-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.am-timer-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
}

.automation-card:is(:hover, :focus-visible, .is-active) .am-status-track { animation: amStatusCycle 6s var(--am-ease) infinite; }
.automation-card:is(:hover, :focus-visible, .is-active) .am-timer-bar span { animation: amTimerFill 2s linear infinite; }

@keyframes amStatusCycle {
  0%, 30%       { transform: translateY(0); }
  33.3%, 63.3%  { transform: translateY(-17px); }
  66.6%, 96.6%  { transform: translateY(-34px); }
  100%          { transform: translateY(-51px); }
}

@keyframes amTimerFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Card copy ── */
.automation-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 14px 0;
}

.automation-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.automation-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.14);
  transition:
    transform 0.5s var(--am-spring),
    background 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

.automation-icon svg { width: 18px; height: 18px; }

.automation-card:is(:hover, :focus-visible, .is-active) .automation-icon {
  transform: scale(1.08) rotate(-6deg);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}

.automation-head h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.automation-index {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.automation-card:is(:hover, :focus-visible, .is-active) .automation-index { color: var(--accent); }

.automation-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .automations-grid > .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .automation-card,
  .automation-card *,
  .automation-card::before,
  .automation-card::after {
    transition: none !important;
    animation: none !important;
  }

  .automation-card.is-active { transform: none; }
}

@media (max-width: 768px) {
  .automations-grid { gap: 16px; }
  .automation-stage { height: 164px; }
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.feature-card {
  background: rgba(17, 17, 20, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(255,77,77,0.12) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card.spotlight-active::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: rgba(255,77,77,0.4);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 20px rgba(255,77,77,0.1);
}

.feature-visual {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  background: radial-gradient(circle at center, rgba(255,77,77,0.05) 0%, transparent 70%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.feature-visual::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(255,77,77,0.05) 25%, transparent 50%, rgba(255,77,77,0.05) 75%, transparent 100%);
  animation: rotateGfx 10s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover .feature-visual::after {
  opacity: 1;
}

@keyframes rotateGfx {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feature-visual-icon {
  width: 36px;
  height: 36px;
  color: var(--text-dim);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 0 rgba(255,77,77,0));
  position: absolute;
}

.feature-visual-icon.main {
  width: 44px;
  height: 44px;
  z-index: 2;
}

.feature-visual-icon.sub {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.feature-visual-icon.pos-1 { transform: translate(-40px, -20px); }
.feature-visual-icon.pos-2 { transform: translate(40px, -20px); }
.feature-visual-icon.pos-3 { transform: translate(-30px, 25px); }
.feature-visual-icon.pos-4 { transform: translate(30px, 25px); }

@keyframes subIconFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}

.feature-visual-icon.sub {
  width: 24px;
  height: 24px;
  opacity: 0.4;
  animation: subIconFloat 3s ease-in-out infinite;
}

.feature-visual-icon.pos-1 { animation-delay: 0s; }
.feature-visual-icon.pos-2 { animation-delay: -0.7s; }
.feature-visual-icon.pos-3 { animation-delay: -1.5s; }
.feature-visual-icon.pos-4 { animation-delay: -2.2s; }

.feature-card:hover .feature-visual {
  background: radial-gradient(circle at center, rgba(255,77,77,0.08) 0%, transparent 70%);
  border-color: rgba(255,77,77,0.1);
}

.feature-card:hover .feature-visual-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255,77,77,0.5));
  transform: scale(1.1);
}

.feature-card:hover .feature-visual-icon.main {
  transform: scale(1.15) translateY(-5px);
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255,77,77,0.8));
}

.feature-card:hover .feature-visual-icon.pos-1 { transform: translate(-45px, -25px) scale(1.1) rotate(-10deg); }
.feature-card:hover .feature-visual-icon.pos-2 { transform: translate(45px, -25px) scale(1.1) rotate(10deg); }
.feature-card:hover .feature-visual-icon.pos-3 { transform: translate(-35px, 30px) scale(1.1) rotate(-5deg); }
.feature-card:hover .feature-visual-icon.pos-4 { transform: translate(35px, 30px) scale(1.1) rotate(5deg); }

.feature-icon {
  display: none;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.command-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.command-column:hover {
  border-color: rgba(255, 77, 77, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.command-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.command-col-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
}

.command-col-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 77, 77, 0.2);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
}

.command-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.command-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.command-card:hover {
  background: rgba(255, 77, 77, 0.08);
  border-color: rgba(255, 77, 77, 0.3);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.1);
}

.command-card:hover::before {
  transform: translateX(100%);
}

.command-slash {
  color: var(--accent);
  font-weight: 800;
  margin-right: 2px;
}

.commands-more {
  text-align: center;
  margin-top: 48px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.commands-more strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.feature-desc code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

.customcmd-section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.customcmd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.customcmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.customcmd-card:hover {
  border-color: rgba(255,77,77,0.25);
}

.customcmd-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.customcmd-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.customcmd-field:last-child {
  border-bottom: none;
}

.customcmd-key {
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}

.customcmd-val {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 6px;
}

.customcmd-on {
  color: #34d399;
}

.customcmd-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.growth-section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.growth-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.stats-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-big-card {
  --stat-rgb: 255,77,77;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.008) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-big-card[data-stat="activeUsers"]           { --stat-rgb: 255,144,118; }
.stat-big-card[data-stat="commandsRun"]           { --stat-rgb: 201,142,255; }
.stat-big-card[data-stat="customCommandsCreated"] { --stat-rgb: 255,195,107; }
.stat-big-card[data-stat="giveawaysJoined"]       { --stat-rgb: 95,227,167; }

/* each card picks up a soft wash of its icon colour in the corner, plus a lit top edge */
.stat-big-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--stat-rgb),0.14), transparent);
  pointer-events: none;
}
.stat-big-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--stat-rgb),0.45), transparent);
  pointer-events: none;
}

.stat-big-card:hover {
  border-color: rgba(255,77,77,0.2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.4);
}

.stat-big-card--accent {
  background:
    linear-gradient(135deg, rgba(255,80,70,0.08) 0%, rgba(255,60,100,0.04) 50%, rgba(255,255,255,0.01) 100%);
  border-color: rgba(255,100,80,0.15);
}

.stat-big-card--accent:hover {
  border-color: rgba(255,120,90,0.3);
  box-shadow: 0 16px 40px -8px rgba(255,70,60,0.12), 0 16px 40px -8px rgba(0,0,0,0.4);
}

.stat-big-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-big-icon--users    { color: #ff9076; background: linear-gradient(135deg, rgba(255,120,80,0.15), rgba(255,100,80,0.05)); border-color: rgba(255,140,100,0.2); }
.stat-big-icon--slash    { color: #c98eff; background: linear-gradient(135deg, rgba(170,120,255,0.15), rgba(130,90,220,0.05)); border-color: rgba(180,140,255,0.2); }
.stat-big-icon--custom   { color: #ffc36b; background: linear-gradient(135deg, rgba(255,180,80,0.18), rgba(255,150,60,0.05)); border-color: rgba(255,190,110,0.22); }
.stat-big-icon--giveaway { color: #5fe3a7; background: linear-gradient(135deg, rgba(70,220,160,0.16), rgba(50,180,120,0.05)); border-color: rgba(90,220,160,0.2); }

.stat-big-value {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-big-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.stat-big-delta {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.stat-big-delta.positive {
  color: #34d399;
  background: rgba(52,211,153,0.08);
}

.growth-chart-trend[hidden] { display: none; }

.growth-chart-wrap {
  background: linear-gradient(180deg, rgba(14,14,18,0.7) 0%, rgba(8,8,12,0.75) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 26px 28px 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.growth-chart-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,100,80,0.35) 50%, transparent 90%);
  pointer-events: none;
}

.growth-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.growth-chart-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.growth-chart-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.growth-chart-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.16);
  border-radius: 999px;
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: end;
  height: 220px;
  padding: 0 4px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 100%;
  position: relative;
}

.bar-val {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.bar-col:hover .bar-val {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

.bar {
  width: 100%;
  max-width: 44px;
  height: var(--bar-h);
  min-height: 4px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255,110,90,0.6) 0%, rgba(255,60,70,0.35) 100%);
  position: relative;
  cursor: pointer;
  transition: height 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, transform 0.3s ease;
  transform-origin: bottom;
}

.bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #ff9076, #ff6b5e, #ff9076);
  opacity: 0.9;
}

.bar:hover {
  filter: brightness(1.25);
  transform: scaleY(1.03);
}

.bar--current {
  background: linear-gradient(180deg, rgba(255,130,100,0.95) 0%, rgba(255,60,90,0.6) 100%);
  box-shadow: 0 -4px 20px rgba(255,90,70,0.25);
}

.bar-col--current .bar-val {
  color: #ff9076;
  font-weight: 800;
  opacity: 1;
  transform: translateY(0);
}

.bar-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.bar-col--current .bar-label {
  color: rgba(255,140,110,0.8);
  text-shadow: 0 0 8px rgba(255,100,80,0.2);
}

@media (max-width: 900px) {
  .stats-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-big-card {
    padding: 16px 14px;
  }
  .stat-big-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }
  .stat-big-value {
    font-size: 24px;
  }
  .growth-chart-wrap {
    padding: 20px 16px;
  }
  .bar-chart {
    gap: 6px;
    height: 180px;
  }
  .bar {
    max-width: 100%;
    border-radius: 6px 6px 3px 3px;
  }
  .bar-val {
    font-size: 9px;
  }
  .bar-label {
    font-size: 9px;
  }
}

/* single column on phones: compact rows (icon left, number + label + subline right)
   instead of four tall, mostly empty cards */
@media (max-width: 420px) {
  .stats-top-grid {
    grid-template-columns: 1fr;
  }
  .stat-big-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon value"
      "icon label"
      "icon delta";
    column-gap: 16px;
    align-items: center;
    padding: 16px 18px;
  }
  .stat-big-icon {
    grid-area: icon;
    align-self: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0;
  }
  .stat-big-value { grid-area: value; font-size: 26px; margin-bottom: 4px; }
  .stat-big-label { grid-area: label; margin-bottom: 8px; }
  .stat-big-delta { grid-area: delta; justify-self: start; }
}

@media (max-width: 1024px) {
  .hero-headline { font-size: 64px; }
  .features-grid, .commands-grid, .automations-grid, .customcmd-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }

  .hero-headline { font-size: 48px; }
  .hero-subtitle { font-size: 16px; padding: 0 20px; }

  .features-grid, .commands-grid, .automations-grid, .customcmd-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .container { padding: 0 20px; }

  .section-title { font-size: 32px; }

  .pricing-card { padding: 40px 24px; }

  .cta-card { padding: 40px 20px; }

  .stats-grid { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .nav-logo-secondary { height: 48px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(20px);
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-number {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff4d4d, #ff8080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-section {
  text-align: center;
}

.cta-section .container {
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,77,77,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 2s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,77,77,0.08), rgba(255,77,77,0.03));
  border: 1px solid rgba(255,77,77,0.15);
  border-radius: 24px;
  padding: 80px;
}

.cta-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.pricing-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  perspective: 1000px;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 32px;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  will-change: transform;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,77,77,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pricing-card:hover {
  border-color: rgba(255,77,77,0.38);
  box-shadow:
    0 40px 72px rgba(0,0,0,0.58),
    0 0 0 1px rgba(255,77,77,0.12),
    0 0 48px rgba(255,77,77,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.025) 100%);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card:hover .pricing-price {
  transform: scale(1.03) translateY(-2px);
  color: #ff6a6a;
}

.pricing-card:hover .pricing-features li {
  transform: translateX(5px);
  color: rgba(255, 255, 255, 0.95);
}

.pricing-card:hover .btn {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,77,77,0.28);
}

.pricing-card--featured {
  border: 1px solid rgba(255,77,77,0.3);
  background: linear-gradient(180deg, rgba(255,77,77,0.06) 0%, rgba(255,77,77,0.02) 100%);
  box-shadow: 0 0 40px rgba(255,77,77,0.1);
}

.pricing-card--lifetime {
  border-color: rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(255,77,77,0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,77,77,0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: 32px;
  background: linear-gradient(90deg, #ff4d4d, #f97316);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(255,77,77,0.3);
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 0;
}

.pricing-plan {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.pricing-price {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: baseline;
  letter-spacing: -0.04em;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0;
}

.pricing-features {
  list-style: none !important;
  margin: 0 0 48px 0 !important;
  padding: 0 !important;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card .btn {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.3s ease;
}

/* check mark in a small accent circle */
.feature-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(255, 77, 77, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.28);
}

.pricing-blurb {
  margin: -4px 0 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-term {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.pricing-save {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffb4b4;
  background: rgba(255, 77, 77, 0.14);
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.pricing-header {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-features { padding-top: 28px !important; }

.pricing-features-lead { color: #fff !important; font-weight: 700; }

.pricing-btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card:hover .pricing-btn-arrow { transform: translateX(4px); }

@media (min-width: 1025px) {
  .pricing-grid { align-items: center; }
  .pricing-card--featured { padding-top: 72px; padding-bottom: 72px; }
}

.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.pricing-trust span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-trust svg { color: var(--accent); }

/* ===== Purchase modal =====
   Centered card on desktop, bottom sheet on phones (≤560px). */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4,4,6,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.pm {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: linear-gradient(180deg, #121115 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* soft red light at the top edge */
.pm::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  width: 320px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,77,77,0.18), transparent);
  pointer-events: none;
}

.modal.active .pm { transform: none; }

.pm [hidden] { display: none !important; }

.pm-grabber { display: none; }

.pm-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 0;
}

.pm-head-text { flex: 1; min-width: 0; }

.pm-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.pm-head p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.pm-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.pm-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }

.pm-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---- Plan summary ---- */
.pm-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,77,77,0.1), rgba(255,77,77,0.03));
  border: 1px solid rgba(255,77,77,0.2);
}

.pm-plan-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}

.pm-plan-icon img { width: 28px; height: 28px; }

.pm-plan-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.pm-plan-label,
.pm-label,
.pm-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.pm-plan-text strong { font-size: 15px; font-weight: 700; color: #fff; }

.pm-plan-price {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- Step 1 ---- */
.pm-view { display: flex; flex-direction: column; gap: 20px; }

.pm-field label,
.pm-field .pm-label { margin-bottom: 8px; }

.pm-input { position: relative; }

.pm-input svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s ease;
}

.pm-input input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pm-input input::placeholder { color: rgba(255,255,255,0.28); }

.pm-input input:focus {
  outline: none;
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,77,77,0.14);
}

.pm-input:focus-within svg { color: var(--accent); }

.pm-input.is-invalid input { border-color: #ff4d4d; box-shadow: 0 0 0 4px rgba(255,77,77,0.14); }
.pm-input.is-invalid { animation: pmShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

@keyframes pmShake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.pm-hint { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; line-height: 1.5; }

.pm-coins { display: grid; gap: 10px; }

.pm-coin {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pm-coin:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); }
.pm-coin:active { transform: scale(0.99); }
.pm-coin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-coin:disabled { cursor: default; opacity: 0.5; }
.pm-coin.is-loading { opacity: 1; border-color: rgba(255,77,77,0.35); }

.pm-coin-logo { flex-shrink: 0; width: 36px; height: 36px; }

.pm-coin-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-coin-text strong { font-size: 15px; font-weight: 700; color: #fff; }
.pm-coin-text small { font-size: 12px; color: var(--text-dim); }

.pm-coin-go {
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pm-coin:hover .pm-coin-go { background: var(--accent); color: #fff; transform: translateX(2px); }

.pm-coin.is-loading .pm-coin-go svg { display: none; }
.pm-coin.is-loading .pm-coin-go::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: pmSpin 0.7s linear infinite;
}

@keyframes pmSpin { to { transform: rotate(360deg); } }

/* ---- Step 2 ---- */
.pm-pay {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.pm-qr {
  width: 132px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.pm-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pm-qr-error { display: grid; place-items: center; height: 100%; font-size: 11px; color: #666; }

.pm-pay-rows { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pm-row .pm-label { margin-bottom: 6px; }

.pm-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
}

.pm-copy code {
  flex: 1;
  min-width: 0;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
  line-height: 1.4;
}

.pm-copy--address code { font-size: 12px; font-weight: 500; color: #ff8a8a; }

.pm-copy-btn {
  flex-shrink: 0;
  align-self: flex-start;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pm-copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pm-copy-btn.is-copied { background: rgba(52,211,153,0.15); color: #34d399; }

.pm-note {
  margin: -6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
  text-wrap: balance;
}

.pm-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px 20px;
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(52,211,153,0.12), transparent 60%), rgba(255,255,255,0.03);
  border: 1px solid rgba(52,211,153,0.22);
}

.pm-done-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4ee3ac, #22b67f);
  box-shadow: 0 10px 24px -8px rgba(52,211,153,0.7);
}

.pm-done h4 { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: #fff; }
.pm-done p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); max-width: 320px; }

.pm-copy--key { width: 100%; }
.pm-copy--key code { font-size: 15px; letter-spacing: 0.06em; text-align: center; color: #fff; }

.pm-done .pm-done-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: none;
  text-decoration: none;
}

.pm-tx {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(52,211,153,0.05);
  border: 1px solid rgba(52,211,153,0.18);
}

.pm-tx-hash {
  display: block;
  margin-top: 6px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #34d399;
  word-break: break-all;
  text-decoration: none;
}

.pm-tx-hash:hover { text-decoration: underline; }

.pm-tx-conf { margin-top: 4px; font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.pm-tx-conf span { font-size: 14px; font-weight: 600; color: var(--text-dim); }

.pm-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pm-status-dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c542;
}

.pm-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: #f5c542;
  opacity: 0;
  animation: pmPing 1.6s ease-out infinite;
}

.pm-status.is-detected .pm-status-dot { background: #34d399; }
.pm-status.is-detected .pm-status-dot::after { color: #34d399; }
.pm-status.is-detected strong { color: #34d399; }

@keyframes pmPing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pm-back {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pm-back:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* lock icon sits inline with the first line so wrapped text stays centred under it */
.pm-foot {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  text-wrap: balance;
}

.pm-foot svg { display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* ---- Close confirmation ---- */
.pm-confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background: rgba(10,10,12,0.97);
  animation: pmFade 0.25s ease;
}

@keyframes pmFade { from { opacity: 0; } }

.pm-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(255,77,77,0.12);
  color: #ff4d4d;
}

.pm-confirm h4 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.pm-confirm p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; max-width: 300px; margin: 0 0 24px; }

.pm-confirm-actions { display: flex; gap: 10px; width: 100%; max-width: 320px; }

.pm-btn {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.pm-btn--ghost { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.pm-btn--ghost:hover { background: rgba(255,255,255,0.1); }
.pm-btn--red { background: #ff4d4d; border: 0; color: #fff; }
.pm-btn--red:hover { filter: brightness(1.08); }

/* ---- Phones: bottom sheet ---- */
@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }

  .pm {
    max-width: none;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
  }

  .modal.active .pm { transform: none; }

  .pm-grabber {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
  }

  .pm-head { padding: 14px 20px 0; }
  .pm-head h3 { font-size: 18px; }

  .pm-body { gap: 18px; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }

  .pm-plan { padding: 12px 14px; }
  .pm-plan-price { font-size: 20px; }

  .pm-pay { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .pm-qr { width: 168px; }
  .pm-pay-rows { width: 100%; }

  .pm-confirm-actions { flex-direction: column-reverse; }
  .pm-confirm-actions .pm-btn { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pm, .pm-close, .pm-coin, .pm-coin-go { transition: none; }
  .pm-status-dot::after, .pm-input.is-invalid, .pm-confirm { animation: none; }
}

.native-pay-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.payment-btn-wrapper {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  overflow: hidden;
}

#gpay-container {
  display: flex;
  justify-content: center;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.divider span {
  padding: 0 20px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}


@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 4px;
}

.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 220px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: all 220ms ease;
}

.nav-user-chip:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(14, 16, 21, 0.85);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dashboard-btn {
  padding: 10px 16px;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  align-self: flex-end;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

.nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  width: calc(100% - 24px);
}

.feature-card.spotlight-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(200px circle at var(--spotlight-x) var(--spotlight-y), rgba(255,77,77,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.feature-card > * { position: relative; z-index: 1; }

.command-card {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.command-card::after {
  content: attr(data-desc);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(255,77,77,0.2);
  color: var(--text-secondary);
  font-size: 11px;
  font-family: 'Manrope', 'SF Pro Display', 'Segoe UI', sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.command-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.command-card.copied {
  background: rgba(52, 211, 153, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  color: #34d399 !important;
}

.command-card.copied .command-slash {
  color: #34d399;
}

.howitworks-section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.hiw-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 64px auto 0;
  position: relative;
}

.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.hiw-step-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,77,0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.hiw-step-connector {
  position: absolute;
  left: 22px;
  top: 44px;
  width: 1px;
  height: calc(100% + 32px);
  background: linear-gradient(to bottom, rgba(255,77,77,0.3), rgba(255,77,77,0.05));
}

.hiw-step-connector--last {
  display: none;
}

.hiw-step-content {
  padding: 8px 0 40px;
}

.hiw-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hiw-step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.proof-strip {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
}

.proof-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.proof-item {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.proof-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.proof-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.proof-author {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.proof-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

.footer-watermark {
  position: absolute;
  /* sized so the mark (≈55% of the PNG) matches the old 280px "A" glyph */
  right: -90px;
  bottom: -85px;
  width: 360px;
  height: 360px;
  /* the logo mark used as a stencil, filled with a faint brand red */
  background: rgba(255,77,77,0.05);
  -webkit-mask: url('/assets/logos/primary.png') center / contain no-repeat;
          mask: url('/assets/logos/primary.png') center / contain no-repeat;
  user-select: none;
  pointer-events: none;
}

.ts-translation-msg {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ts-progress-bar {
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: rgba(255,255,255,0.04);
  z-index: 40;
  border-radius: 100px;
  overflow: hidden;
}

.ts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff7676);
  width: 0%;
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 5;
}

.ts-translation-msg.ts-embed-hidden {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ts-section {
  position: relative;
  height: 500vh;
  z-index: 1;
}

.ts-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  perspective: 2000px;
}

.ts-container {
  width: 92%;
  max-width: 1400px;
  height: 82vh;
  position: relative;
  background: #1e1f22;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow:
    0 30px 60px -12px rgba(0,0,0,0.45),
    0 18px 36px -18px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-label {
  position: absolute;
  top: 16px;
  right: 28px;
  z-index: 3000;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 100px;
  padding: 6px 16px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ts-label.visible {
  opacity: 1;
}

.ts-tilt {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
}

.ts-camera {
  width: 100%;
  height: 100%;
  position: relative;
}

.ts-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

.ts-discord {
  display: flex;
  width: 100%;
  height: 100%;
  background: #1e1f22;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ts-sidebar {
  width: 240px;
  min-width: 240px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.03);
}

.ts-dm-search {
  margin: 8px 4px 4px;
  padding: 6px 10px;
  background: #1a1b1e;
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  cursor: text;
  flex-shrink: 0;
}

.ts-dm-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 4px 8px;
}

.ts-dm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.ts-dm-nav-item svg { flex-shrink: 0; }

.ts-dm-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

.ts-dm-nav-active {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

.ts-dm-nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: #ff4d4d;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.ts-sidebar-header {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-dm-add {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.ts-dm-add:hover { color: rgba(255,255,255,0.7); }

.ts-dm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}

.ts-dm-item:hover { background: rgba(255,255,255,0.06); }
.ts-dm-active { background: rgba(255,255,255,0.1) !important; }

.ts-dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.ts-dm-info { overflow: hidden; }
.ts-dm-name { font-size: 14px; font-weight: 600; color: #dbdee1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-dm-preview { font-size: 12px; color: rgba(255,255,255,0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ts-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #313338;
  overflow: hidden;
}

.ts-header {
  height: 48px;
  min-height: 48px;
  background: #313338;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.ts-header-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.ts-header-info { flex: 1; }
.ts-header-name { font-size: 15px; font-weight: 700; color: #dbdee1; }
.ts-header-status { font-size: 12px; color: rgba(255,255,255,0.35); }
.ts-header-actions { display: flex; gap: 16px; }

.ts-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.ts-messages-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  will-change: transform;
  flex-shrink: 0;
  margin-top: auto;
}

.ts-msg {
  display: flex;
  gap: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.1s;
}

.ts-msg:hover { background: rgba(0,0,0,0.06); }

.ts-msg-target { position: relative; }

.ts-msg-target.ts-msg-highlighted {
  background: rgba(255,77,77,0.08) !important;
  outline: 1px solid rgba(255,77,77,0.2);
}

.ts-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.ts-bot-avatar { border-radius: 50%; }
.ts-msg-content { flex: 1; }
.ts-msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ts-msg-author { font-size: 15px; font-weight: 700; color: #7289da; }
.ts-msg-time { font-size: 11px; color: rgba(255,255,255,0.25); }
.ts-msg-text { font-size: 15px; color: #dbdee1; line-height: 1.5; }

.ts-bot-badge {
  font-size: 10px;
  font-weight: 700;
  background: #ff4d4d;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.ts-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
  max-width: 450px;
}

.ts-embed-side {
  width: 4px;
  min-width: 4px;
  background: #ff4d4d;
}

.ts-embed-content {
  padding: 10px 12px;
  flex: 1;
}

.ts-embed-top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ts-embed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-embed-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #dbdee1;
  margin-bottom: 2px;
}

.ts-embed-icon svg {
  color: #dbdee1;
  flex-shrink: 0;
}

.ts-embed-field { display: flex; flex-direction: column; gap: 1px; }
.ts-embed-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45); }
.ts-embed-value { font-size: 13px; color: #dbdee1; }
.ts-embed-translated { color: #dbdee1; }

.ts-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.ts-embed-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.ts-embed-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.ts-embed-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ts-input-bar {
  height: 68px;
  min-height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ts-input-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
}

.ts-input-field {
  flex: 1;
  height: 44px;
  background: #383a40;
  border-radius: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.25);
  font-size: 15px;
}

.ts-input-actions { display: flex; gap: 12px; }

.ts-overlay .ts-ctx-menu,
.ts-overlay .ts-apps-menu,
.ts-overlay .ts-axus-menu,
.ts-overlay .ts-cursor {
  position: absolute;
}

.ts-ctx-menu, .ts-apps-menu, .ts-axus-menu {
  position: absolute;
  background: rgba(17, 18, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03);
  padding: 6px;
  z-index: 1000;
  min-width: 220px;
  transform-origin: top left;
  will-change: transform, opacity;
}

.ts-ctx-reactions {
  display: flex;
  gap: 4px;
  padding: 6px 4px;
  font-size: 20px;
}

.ts-ctx-reactions span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.1s;
}

.ts-ctx-reactions span:hover { background: rgba(255,255,255,0.1); }

.ts-ctx-more {
  font-size: 16px !important;
  color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.06) !important;
}

.ts-ctx-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }
.ts-apps-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }

.ts-ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #dbdee1;
  cursor: pointer;
  transition: background 0.1s;
  min-width: 220px;
}

.ts-ctx-item span { flex: 1; }
.ts-ctx-item svg { flex-shrink: 0; opacity: 0.5; }
.ts-ctx-item:hover { background: #5865f2; color: white; }
.ts-ctx-item:hover svg { opacity: 1; }
.ts-ctx-apps:hover { background: #5865f2; }
.ts-ctx-apps { justify-content: space-between; }
.ts-ctx-arrow { margin-left: auto; opacity: 0.7 !important; }
.ts-ctx-danger { color: #ed4245; }
.ts-ctx-danger svg { opacity: 0.7; color: #ed4245; }
.ts-ctx-danger:hover { background: #ed4245; color: white; }

.ts-ctx-blur {
  filter: blur(1.2px);
  opacity: 0.45;
  pointer-events: none;
}

.ts-ctx-blur span, .ts-ctx-blur svg {
  pointer-events: none;
}

.ts-apps-menu { min-width: 240px; }

.ts-apps-header {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px 4px;
}

.ts-apps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #dbdee1;
  cursor: pointer;
  transition: background 0.1s;
}

.ts-apps-item:hover { background: #5865f2; }
.ts-apps-item svg { margin-left: auto; }

.ts-apps-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.ts-apps-icon {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.ts-axus-menu { min-width: 200px; }

.ts-axus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #dbdee1;
  cursor: pointer;
  transition: background 0.1s;
  will-change: transform;
}

.ts-axus-item:hover { background: #5865f2; }
.ts-axus-item svg { margin-left: auto; }

.ts-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  transform-origin: 4px 2px;
  will-change: left, top, transform;
}

.ts-cursor-ring { display: none; }

.ts-motion-blur {
  position: absolute;
  inset: 0;
  background: rgba(7,7,9,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 500;
}

.ts-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 10;
}

.explainer-section {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--border);
}

.explainer-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.explainer-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  max-width: 280px;
}

.explainer-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,77,0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explainer-body { flex: 1; }

.explainer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.explainer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.explainer-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.explainer-arrow {
  font-size: 20px;
  color: var(--text-dim);
  padding: 0 20px;
  padding-top: 8px;
  flex-shrink: 0;
}

.discord-mock {
  background: rgba(12, 13, 17, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.discord-mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}

.discord-mock-header-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

.discord-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-left: auto;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.dm-msg {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  transition: background 0.1s;
}

.dm-msg:hover { background: rgba(255,255,255,0.03); }

.dm-deleted { opacity: 0.5; }

.dm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.dm-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}

.dm-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-content { flex: 1; min-width: 0; }

.dm-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.dm-author {
  font-size: 14px;
  font-weight: 700;
  color: #7289da;
}

.dm-time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.dm-badge {
  font-size: 10px;
  font-weight: 700;
  background: #ff4d4d;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
}

.dm-text {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.5;
}

.dm-deleted-text {
  color: rgba(255,255,255,0.35) !important;
  font-style: italic;
}

.dm-deleted-icon { margin-right: 4px; }

.dm-system-msg {
  padding: 6px 12px 10px 60px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.dm-embed {
  display: flex;
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-embed-bar {
  width: 4px;
  min-width: 4px;
  background: #ff4d4d;
}

.dm-embed-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dm-embed-title {
  font-size: 14px;
  font-weight: 700;
  color: #dbdee1;
  margin-bottom: 4px;
}

.dm-embed-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.dm-embed-key {
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  white-space: nowrap;
}

.dm-embed-val {
  color: #dbdee1;
  font-size: 13px;
}

.dm-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.dm-embed-footer-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
}

.snipe-section {
  position: relative;
  z-index: 1;
  padding: 180px 0 160px;
  isolation: isolate;
  overflow: clip;
}

.snipe-hero {
  text-align: center;
  margin-bottom: 96px;
}

.snipe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(255,77,77,0.08);
  border: 1px solid rgba(255,77,77,0.18);
  border-radius: 999px;
}

.snipe-headline {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: #fff;
}

.snipe-headline-accent {
  background: linear-gradient(135deg, #ff8e72 0%, #ff4d4d 40%, #e62e4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.snipe-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 500;
}

.snipe-subtitle code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  background: rgba(255,77,77,0.12);
  color: #ff8a78;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255,77,77,0.18);
  font-weight: 600;
}

.snipe-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto 88px;
}

.snipe-panel {
  background: linear-gradient(180deg, rgba(16,16,22,0.85) 0%, rgba(9,9,13,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-sizing: border-box;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.6);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.snipe-panel:hover {
  transform: translateY(-3px);
}

.snipe-panel--before:hover {
  border-color: rgba(255,80,80,0.18);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.65), 0 0 60px -20px rgba(255,60,60,0.08);
}

.snipe-panel--after:hover {
  border-color: rgba(255,140,100,0.25);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.65), 0 0 80px -20px rgba(255,120,90,0.18);
}

.snipe-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}

.snipe-panel-head--good {
  background: linear-gradient(180deg, rgba(255,100,80,0.04), transparent);
  border-bottom: 1px solid rgba(255,120,90,0.08);
}

.snipe-panel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.snipe-panel-dot--red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.snipe-panel-dot--yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.4); }
.snipe-panel-dot--green  { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.4); }

.snipe-panel-label {
  margin-left: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.01em;
}

.discord-mock--enhanced {
  padding: 28px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255,255,255,0.015), transparent 50%);
}

.discord-mock--after {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255,100,80,0.04), transparent 50%);
}

.dm-msg--faded {
  opacity: 0.55;
}
.dm-msg--faded .dm-text {
  font-size: 14px;
}
.dm-avatar--small {
  width: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
}

.dm-msg--highlight {
  position: relative;
  padding: 10px 10px 10px 12px;
  margin: 4px -10px 4px -12px;
  border-radius: 10px;
  background: rgba(255,110,90,0.06);
  border: 1px solid rgba(255,110,90,0.1);
}

.dm-text--original {
  padding-right: 8px;
}

.dm-text-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255,100,90,0.15);
  color: #ff947c;
  letter-spacing: 0.02em;
  margin-right: 6px;
  vertical-align: 1px;
  font-family: 'JetBrains Mono', monospace;
}

.dm-msg--deleted-enhanced {
  padding: 10px 10px 10px 12px;
  margin: 4px -10px 4px -12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  border: 1px dashed rgba(255,255,255,0.05);
}
.dm-avatar--deleted {
  filter: grayscale(0.4);
  opacity: 0.75;
}
.dm-author--deleted {
  color: rgba(255,255,255,0.5) !important;
}

.dm-deleted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.38);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
}
.dm-deleted-badge svg {
  opacity: 0.7;
}

.snipe-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 22px;
  font-size: 12.5px;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.snipe-panel-footer--bad {
  color: rgba(255,110,110,0.75);
  background: linear-gradient(180deg, transparent, rgba(255,60,60,0.035));
}
.snipe-panel-footer--good {
  color: rgba(52,211,153,0.9);
  background: linear-gradient(180deg, transparent, rgba(52,211,153,0.035));
}

.snipe-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 130px;
  max-width: 160px;
}
.snipe-arrow-line {
  flex: 1;
  width: 2px;
  min-height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,140,110,0.35), rgba(255,255,255,0.06));
  border-radius: 2px;
}
.snipe-arrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255,100,80,0.16), rgba(255,60,90,0.08));
  border: 1px solid rgba(255,120,90,0.35);
  border-radius: 999px;
  color: #ffb3a1;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 40px;
  line-height: 1;
  box-shadow: 0 0 30px -6px rgba(255,100,80,0.3);
}
.snipe-arrow-pill code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11.5px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  line-height: 1.3;
  display: inline-block;
  box-sizing: border-box;
}
.snipe-arrow-pill svg { flex-shrink: 0; }

.snipe-arrow-pill--ocr,
.snipe-arrow-pill--gp,
.snipe-arrow-pill--cc {
  padding: 10px 16px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}
.snipe-arrow-pill--ocr code,
.snipe-arrow-pill--gp code,
.snipe-arrow-pill--cc code {
  padding: 2px 8px !important;
  box-sizing: border-box !important;
}

.dm-embed--enhanced {
  border-radius: 10px !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005)) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 0 6px 24px -8px rgba(255,100,80,0.25), inset 0 0 0 1px rgba(255,120,90,0.04);
}

.dm-embed-bar--accent {
  width: 4px !important;
  background: linear-gradient(180deg, #ff9578, #ff3a5a) !important;
}

.dm-embed-title--accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff9a83 !important;
}
.dm-embed-title--accent svg {
  flex-shrink: 0;
  color: #ff876e;
}

.dm-embed-row--enhanced {
  padding: 7px 0 !important;
  gap: 14px !important;
  align-items: flex-start;
}

.dm-embed-val--user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.dm-embed-avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
}

.dm-embed-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
}
.dm-embed-chip--time {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
}

.dm-embed-row--content {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  margin: 2px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dm-embed-val--content {
  line-height: 1.55 !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px !important;
  padding-top: 2px;
}
.dm-text-tag--embed {
  font-size: 10px;
}

.dm-bot-avatar--glow {
  box-shadow: 0 0 0 2px rgba(255,100,80,0.25), 0 0 16px -2px rgba(255,100,80,0.35);
}

.snipe-perks {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
}
.snipe-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 14px;
  flex: 1 1 320px;
  max-width: 366px;
  min-height: 76px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.snipe-perk:hover {
  transform: translateY(-2px);
  border-color: rgba(255,120,90,0.2);
  background: linear-gradient(135deg, rgba(255,100,80,0.06), rgba(255,255,255,0.01));
}

.snipe-perk-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.snipe-perk-icon--one   { color: #ff9a84; background: linear-gradient(135deg, rgba(255,120,90,0.15), rgba(255,90,70,0.05)); border-color: rgba(255,140,100,0.2); }
.snipe-perk-icon--two   { color: #c7a6ff; background: linear-gradient(135deg, rgba(170,130,255,0.15), rgba(130,90,220,0.05)); border-color: rgba(180,140,255,0.2); }
.snipe-perk-icon--three { color: #66d9ff; background: linear-gradient(135deg, rgba(80,190,255,0.15), rgba(60,150,220,0.05)); border-color: rgba(100,200,255,0.2); }

.snipe-perk-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.3;
}
.snipe-perk-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .snipe-section { padding: 120px 0 96px; }
  .snipe-hero { margin-bottom: 64px; }
  .snipe-flow {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 64px;
  }
  .snipe-panel {
    min-height: 0;
  }
  .snipe-panel-head { padding: 16px 18px; }
  .discord-mock--enhanced { padding: 22px 18px 26px; gap: 12px; }
  .snipe-panel-footer { padding: 16px 18px; }
  .snipe-arrow-wrap {
    flex-direction: row;
    min-width: 0;
    max-width: 100%;
    padding: 4px 0;
  }
  .snipe-arrow-line {
    width: auto;
    flex: 1;
    height: 2px;
    min-height: 0;
    min-width: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,140,110,0.4), rgba(255,255,255,0.06));
  }
}

@media (max-width: 600px) {
  .snipe-section { padding: 80px 0 72px; }
  .snipe-hero { margin-bottom: 48px; }
  .snipe-headline { font-size: 32px; margin-bottom: 20px; }
  .snipe-eyebrow { margin-bottom: 18px; }
  .snipe-subtitle { font-size: 15px; padding: 0 8px; line-height: 1.65; }
  .snipe-flow { gap: 18px; margin-bottom: 48px; }
  .snipe-panel-head { padding: 14px 16px; }
  .discord-mock--enhanced { padding: 18px 15px 20px; gap: 10px; }
  .snipe-panel-footer { padding: 14px 16px; font-size: 11.5px; }
  .snipe-perks { gap: 12px; }
  .snipe-perk { padding: 14px 16px; min-height: 0; gap: 12px; flex-basis: 100%; max-width: 100%; }
  .snipe-perk-icon { width: 36px; height: 36px; min-width: 36px; }
  .snipe-perk-title { font-size: 12.5px; margin-bottom: 2px; }
  .snipe-perk-desc { font-size: 11.5px; line-height: 1.4; }
  .snipe-arrow-pill { font-size: 11px; padding: 8px 12px !important; min-height: 36px !important; }
  .snipe-arrow-pill code { font-size: 10.5px; }
}

/* ===== Message recovery: command showcase ===== */

.snipe-stage {
  max-width: 860px;
  margin: 0 auto;
}

.snipe-stage-switch {
  display: flex;
  width: fit-content;
  margin: 0 auto 34px;
  gap: 4px;
  padding: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.snipe-stage-tab {
  padding: 9px 26px;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.snipe-stage-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }

.snipe-stage-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,77,77,0.32), rgba(255,77,77,0.1));
  box-shadow: inset 0 0 0 1px rgba(255,77,77,0.42), 0 14px 32px -18px rgba(255,77,77,0.9);
}

.snipe-stage .discord-mock {
  border-radius: 18px;
  box-shadow:
    0 40px 100px -40px rgba(0,0,0,0.8),
    0 0 90px -52px rgba(255,77,77,0.65);
}

/* ---- Channel bar ---- */
.snipe-stage-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.25);
}

.snipe-stage-hash { font-size: 15px; font-weight: 800; color: var(--text-dim); }
.snipe-stage-channel { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.62); }

.snipe-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.snipe-stage-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,77,77,0.9);
  animation: snipeStagePulse 1.8s ease-in-out infinite;
}

@keyframes snipeStagePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

/* ---- Reply ---- */
.snipe-stage-body {
  padding: 26px 22px 30px;
  min-height: 258px;
  background: radial-gradient(ellipse at 14% 0%, rgba(255,77,77,0.06), transparent 58%);
}

.snipe-stage-reply { padding: 0; }
.snipe-stage-reply:hover { background: transparent; }
.snipe-stage-bot { color: var(--accent) !important; }

.snipe-stage .dm-embed { max-width: 540px; }

.snipe-stage-title-ico {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: var(--accent);
  vertical-align: -2px;
}
.snipe-stage-title-ico svg { display: block; }

.snipe-stage-desc {
  padding-bottom: 10px;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.snipe-stage-pair {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.snipe-stage-pair-row { display: flex; flex-direction: column; gap: 2px; }
.snipe-stage-pair-key {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.snipe-stage-pair-val { font-size: 13.5px; line-height: 1.5; color: rgba(219,222,225,0.6); }
.snipe-stage-pair-row--after .snipe-stage-pair-key { color: rgba(255,140,120,0.85); }
.snipe-stage-pair-row--after .snipe-stage-pair-val { color: #fff; }

.snipe-stage-author { display: inline-flex; align-items: center; gap: 7px; }

.snipe-stage-mini {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7289da, #4e5d94);
}

.snipe-stage-chip {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- Composer ---- */
.snipe-stage-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.22);
  transition: border-color 0.35s ease;
}

.snipe-stage-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.snipe-stage-input {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.snipe-stage-slash { color: var(--accent); }

.snipe-stage-caret {
  width: 2px;
  height: 17px;
  margin-left: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,77,77,0.75);
  animation: snipeStageCaret 1.05s steps(1) infinite;
}

@keyframes snipeStageCaret {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.snipe-stage-hint {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.45);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- Mode switching (structural) ---- */
.snipe-stage[data-snipe-mode="snipe"] [data-snipe-only="editsnipe"],
.snipe-stage[data-snipe-mode="editsnipe"] [data-snipe-only="snipe"] {
  display: none !important;
}

/* ---- Animated cycle (JS-driven, progressive enhancement) ---- */
.snipe-stage.is-anim .snipe-stage-reply { opacity: 0; }
.snipe-stage.is-anim.is-typing .snipe-stage-composer { border-top-color: rgba(255,77,77,0.18); }
.snipe-stage.is-anim.is-replied .snipe-stage-reply {
  opacity: 1;
  animation: snipeStageReplyIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes snipeStageReplyIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .snipe-stage .dm-embed { max-width: 100%; }
}

@media (max-width: 640px) {
  .snipe-stage-switch { width: 100%; }
  .snipe-stage-tab { flex: 1; padding: 9px 12px; font-size: 12.5px; }
  .snipe-stage-bar { padding: 10px 14px; }
  .snipe-stage-body { padding: 20px 14px 24px; min-height: 0; }
  .snipe-stage-composer { padding: 12px 14px; gap: 10px; }
  .snipe-stage-input { font-size: 14px; }
  .snipe-stage-hint { display: none; }
  .dm-embed-key { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .snipe-stage-live-dot,
  .snipe-stage-caret { animation: none !important; }
}

.dual-showcase-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.dual-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dual-card {
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}

.dual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 77, 77, 0.3) 40%, rgba(255, 77, 77, 0.3) 60%, transparent 95%);
  pointer-events: none;
}

.dual-card::after {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dual-card > * { position: relative; z-index: 1; }

.dual-card:hover {
  border-color: rgba(255, 77, 77, 0.22);
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(255, 77, 77, 0.07),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.dual-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.dual-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.dual-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.dual-card-desc code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

.gs-section {
  position: relative;
  height: 500vh;
  z-index: 1;
}

.gs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  perspective: 2000px;
}

.gs-container {
  width: 92%;
  max-width: 1400px;
  height: 82vh;
  position: relative;
  background: #1e1f22;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow:
    0 30px 60px -12px rgba(0,0,0,0.45),
    0 18px 36px -18px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-label {
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  z-index: 50;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(255,255,255,0.03);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}

.gs-discord-bg {
  position: absolute;
  inset: 0;
  display: flex;
  background: #1e1f22;
  will-change: opacity;
}

.gs-server-list {
  width: 72px;
  min-width: 72px;
  background: #111214;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.03);
}

.gs-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-radius 0.2s;
}

.gs-server-icon img { width: 100%; height: 100%; object-fit: cover; }

.gs-server-active {
  border-radius: 16px;
  box-shadow: 0 0 0 3px #ff4d4d;
}

.gs-server-sep {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  flex-shrink: 0;
}

.gs-channel-list {
  width: 240px;
  min-width: 240px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.03);
}

.gs-server-header {
  font-size: 15px;
  font-weight: 700;
  color: #f2f3f5;
  padding: 16px 16px 10px;
  background: rgba(255,255,255,0.01);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gs-channel-category {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  padding: 16px 16px 4px;
}

.gs-channel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  border-radius: 4px;
  margin: 1px 8px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.gs-channel-item--active {
  background: rgba(255,255,255,0.1);
  color: #f2f3f5;
}

.gs-channel-giveaways { transition: color 0.4s ease, background 0.4s ease; }
.gs-channel-giveaways.gs-highlighted { color: #ff4d4d; background: rgba(255,77,77,0.1); }

.gs-channel-hash { color: rgba(255,255,255,0.3); font-size: 18px; }
.gs-channel-vc   { font-size: 16px; }

.gs-channel-badge {
  position: absolute;
  right: 12px;
  background: #f04747;
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.gs-channel-badge.gs-badge-hidden {
  opacity: 0;
  transform: scale(0.4);
}

.gs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.gs-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: #313338;
  flex-shrink: 0;
}

.gs-header-hash { font-size: 22px; color: rgba(255,255,255,0.3); font-weight: 700; }
.gs-header-name  { font-size: 16px; font-weight: 700; color: #f2f3f5; }
.gs-header-topic { font-size: 13px; color: rgba(255,255,255,0.3); margin-left: 8px; }

.gs-messages-inner {
  flex: 1;
  overflow: hidden;
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}

.gs-msg {
  display: flex;
  gap: 12px;
  padding: 3px 16px;
  transition: background 0.1s;
}
.gs-msg:hover { background: rgba(255,255,255,0.02); }

.gs-msg-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.gs-msg-body { flex: 1; min-width: 0; }

.gs-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.gs-msg-name { font-size: 15px; font-weight: 700; color: #f2f3f5; }
.gs-msg-time { font-size: 11px; color: rgba(255,255,255,0.25); }

.gs-bot-tag {
  font-size: 10px;
  font-weight: 700;
  background: #5865f2;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
}

.gs-msg-text { font-size: 15px; color: #dbdee1; line-height: 1.5; }

.gs-gw-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
  max-width: 420px;
  transition: box-shadow 0.5s ease;
}

.gs-gw-embed.gs-embed-glow {
  box-shadow: 0 0 0 2px rgba(255,77,77,0.55), 0 0 24px rgba(255,77,77,0.15);
}

.gs-gw-embed-bar { width: 4px; min-width: 4px; background: #ff4d4d; }

.gs-gw-embed-body { padding: 10px 14px; flex: 1; }

.gs-gw-title { font-size: 15px; font-weight: 800; color: #ff4d4d; margin-bottom: 5px; }
.gs-gw-desc  { font-size: 13px; color: #dbdee1; margin-bottom: 10px; }

.gs-gw-fields {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gs-gw-field-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.gs-gw-field-val   { font-size: 13px; color: #dbdee1; }
.gs-gw-footer      { font-size: 11px; color: rgba(255,255,255,0.28); margin-top: 6px; }

.gs-gw-reactions { margin-top: 6px; }

.gs-gw-reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 14px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}

.gs-gw-reaction.gs-reacted {
  background: rgba(88,101,242,0.28);
  border-color: rgba(88,101,242,0.6);
  transform: scale(1.06);
}

.gs-gw-reaction-count {
  font-size: 13px;
  font-weight: 700;
  color: #dbdee1;
  transition: color 0.35s ease;
}

.gs-gw-reaction.gs-reacted .gs-gw-reaction-count { color: #7289da; }

.gs-sniper-msg { transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1); }

.gs-sniper-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
  max-width: 380px;
}

.gs-sniper-embed-bar { width: 4px; min-width: 4px; background: #ff4d4d; }

.gs-sniper-embed-body { padding: 10px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.gs-sniper-title { font-size: 14px; font-weight: 800; color: #ff4d4d; margin-bottom: 4px; }

.gs-sniper-row { display: flex; gap: 10px; font-size: 12px; align-items: center; }
.gs-sniper-key { color: rgba(255,255,255,0.4); font-weight: 600; white-space: nowrap; min-width: 64px; }
.gs-sniper-val { color: #dbdee1; }
.gs-val-green  { color: #43b581; font-weight: 700; }

.gs-sniper-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
}

.gs-sniper-footer-icon { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }

.gs-input-row { padding: 0 16px 14px; flex-shrink: 0; }
.gs-input-box {
  background: #383a40;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.28);
}

.gs-caption {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gs-caption.gs-caption--right {
  align-items: flex-end;
  text-align: right;
  padding-right: 80px;
}

.gs-caption.gs-caption--right .gs-caption-stage,
.gs-caption.gs-caption--right .gs-caption-text {
  align-self: flex-end;
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

.gs-caption-stage {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff4d4d;
  margin-bottom: 12px;
  opacity: 0.8;
}

.gs-caption-text {
  font-size: 24px;
  font-weight: 700;
  color: #f2f3f5;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.4;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-progress-bar {
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: rgba(255,255,255,0.04);
  z-index: 40;
  border-radius: 100px;
  overflow: hidden;
}

.gs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff7676);
  width: 0%;
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 5;
}

.gs-tilt,
.gs-camera {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.gs-discord {
  position: absolute;
  inset: 0;
  display: flex;
  background: #313338;
  overflow: hidden;
}

.gs-server-list {
  width: 72px;
  min-width: 72px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.gs-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  cursor: pointer;
  transition: border-radius 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.gs-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-server-active {
  border-radius: 16px;
  box-shadow: 0 0 0 3px #ff4d4d;
}

.gs-server-sep {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  flex-shrink: 0;
}

.gs-channel-list {
  width: 220px;
  min-width: 220px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.gs-server-header {
  font-size: 15px;
  font-weight: 700;
  color: #f2f3f5;
  padding: 16px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gs-channel-category {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  padding: 16px 16px 4px;
}

.gs-channel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  border-radius: 4px;
  margin: 1px 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.1s, color 0.1s;
}

.gs-channel-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

.gs-channel-active {
  background: rgba(255,255,255,0.1);
  color: #f2f3f5;
}

.gs-channel-giveaways {
  transition: color 0.3s ease;
}

.gs-channel-giveaways.gs-highlighted {
  color: #ff4d4d;
}

.gs-channel-hash { color: rgba(255,255,255,0.3); font-size: 18px; }
.gs-channel-vc   { font-size: 16px; }

.gs-channel-badge {
  position: absolute;
  right: 12px;
  background: #f04747;
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: opacity 0.3s ease;
}

.gs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #313338;
}

.gs-header-hash {
  font-size: 20px;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}

.gs-header-name {
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
}

.gs-messages {
  flex: 1;
  overflow: hidden;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gs-msg {
  display: flex;
  gap: 12px;
  padding: 3px 16px;
  transition: background 0.15s;
}

.gs-msg:hover { background: rgba(255,255,255,0.02); }

.gs-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.gs-bot-avatar {
  border-radius: 50%;
}

.gs-msg-content { flex: 1; min-width: 0; }

.gs-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.gs-msg-author {
  font-size: 15px;
  font-weight: 700;
  color: #f2f3f5;
}

.gs-msg-time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.gs-bot-badge {
  font-size: 10px;
  font-weight: 700;
  background: #5865f2;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
}

.gs-msg-text {
  font-size: 15px;
  color: #dbdee1;
  line-height: 1.5;
}

.gs-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
  max-width: 480px;
  transition: box-shadow 0.4s ease;
}

.gs-embed.gs-embed-highlighted {
  box-shadow: 0 0 0 2px rgba(255,77,77,0.6), 0 0 24px rgba(255,77,77,0.15);
}

.gs-embed-bar {
  width: 4px;
  min-width: 4px;
  background: #ff4d4d;
}

.gs-embed-body {
  padding: 12px 16px;
  flex: 1;
}

.gs-embed-title {
  font-size: 16px;
  font-weight: 800;
  color: #ff4d4d;
  margin-bottom: 6px;
}

.gs-embed-desc {
  font-size: 14px;
  color: #dbdee1;
  margin-bottom: 12px;
}

.gs-embed-fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gs-embed-field-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.gs-embed-field-value {
  font-size: 13px;
  color: #dbdee1;
}

.gs-embed-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

.gs-reactions {
  margin-top: 8px;
}

.gs-reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.gs-reaction.gs-reacted {
  background: rgba(88,101,242,0.3);
  border-color: rgba(88,101,242,0.6);
  transform: scale(1.08);
}

.gs-reaction-emoji { font-size: 16px; }

.gs-reaction-count {
  font-size: 13px;
  font-weight: 700;
  color: #dbdee1;
  min-width: 20px;
  transition: color 0.2s ease;
}

.gs-reaction.gs-reacted .gs-reaction-count { color: #7289da; }

.gs-input-bar {
  padding: 0 16px 16px;
}

.gs-input-field {
  background: #383a40;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.3);
}

.gs-status-overlay {
  position: absolute;
  bottom: 80px;
  left: 20px;
  background: rgba(0,0,0,0.82);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 20;
  backdrop-filter: blur(8px);
  max-width: 320px;
  transition: opacity 0.4s ease;
}

.gs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43b581;
  flex-shrink: 0;
  margin-top: 5px;
  animation: gs-pulse 1.2s infinite;
}

@keyframes gs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.gs-status-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gs-status-line {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  transform: translateY(4px);
}

.gs-status-line[style*="opacity:1"],
.gs-status-line.gs-line-visible {
  opacity: 1 !important;
  transform: translateY(0);
}

.gs-status-detect { color: #ff4d4d; }
.gs-status-enter  { color: #7289da; }
.gs-status-success { color: #43b581; font-weight: 600; }

.gs-stats-pill {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(0,0,0,0.82);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease;
  min-width: 160px;
}

.gs-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 3px 0;
  font-size: 13px;
}

.gs-stats-label { color: rgba(255,255,255,0.45); }
.gs-stats-val   { font-weight: 700; color: #f2f3f5; font-variant-numeric: tabular-nums; }
.gs-stats-green { color: #43b581; }
.gs-stats-red   { color: #f04747; }

.gs-motion-blur {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s;
}

.gs-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 5;
}

.gs-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

.gs-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 2001;
  transform: translate(-4px, -4px);
}

.gs-cursor-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,77,77,0.5);
  animation: gs-ring-pulse 1.8s ease-in-out infinite;
}

@keyframes gs-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.3); opacity: 0.2; }
}

@media (max-width: 900px) {
  .features-grid,
  .commands-grid,
  .dual-showcase-grid,
  .customcmd-grid {
    grid-template-columns: 1fr;
  }

  .explainer-grid {
    flex-direction: column;
    gap: 24px;
  }

  .explainer-step { max-width: 100%; }
  .explainer-arrow { display: none; }

  .snipe-demo {
    flex-direction: column;
  }

  .snipe-arrow { display: none; }

  .stats-grid {
    flex-direction: column;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    align-self: flex-start;
  }

  .nav-links { display: none; }

  .cta-card { padding: 48px 24px; }

  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .proof-strip-inner {
    flex-direction: column;
    gap: 32px;
  }

  .proof-divider {
    width: 60px;
    height: 1px;
  }

  .proof-item {
    padding: 0;
  }

  .hiw-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .growth-container {
    padding: 24px 16px 20px;
  }

  .growth-chart-area {
    gap: 5px;
  }

  .chart-y-labels {
    min-width: 28px;
  }

  .chart-svg-wrap {
    height: 200px;
  }

  .chart-x-labels {
    padding-left: 33px;
    margin-bottom: 16px;
  }

  .growth-stats-row {
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
  }

  .g-stat-divider {
    width: 60px;
    height: 1px;
  }

  .g-stat-val {
    font-size: 28px;
  }

  .footer-watermark {
    width: 210px;
    height: 210px;
    right: -55px;
    bottom: -45px;
  }

}

:root {
  --apple-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --apple-card: rgba(12, 13, 18, 0.78);
  --apple-border: rgba(255, 255, 255, 0.12);
}

body {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(255, 77, 77, 0.2), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(87, 100, 230, 0.16), transparent 65%),
    #06070b;
}

.scroll-reveal {
  transform: translateY(34px) scale(0.985);
  filter: blur(12px);
}

.feature-card,
.customcmd-card,
.cta-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero {
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 12% -18% auto;
  height: 42%;
  background: radial-gradient(circle at center, rgba(255, 77, 77, 0.24), rgba(255, 77, 77, 0));
  filter: blur(24px);
  pointer-events: none;
  animation: heroAura 10s ease-in-out infinite alternate;
}

@keyframes heroAura {
  0% { transform: translate3d(-2%, 0, 0) scale(0.96); opacity: 0.65; }
  100% { transform: translate3d(2%, -8%, 0) scale(1.06); opacity: 1; }
}

.nav {
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.85), rgba(8, 9, 13, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn {
  letter-spacing: 0.01em;
  transition: transform 280ms var(--apple-ease), box-shadow 280ms var(--apple-ease), border-color 220ms var(--apple-ease), background 280ms var(--apple-ease), color 220ms var(--apple-ease);
}

.btn-red {
  background: linear-gradient(135deg, #ff4d4d, #ff6262 52%, #ff4d4d);
}

.btn-red:hover {
  box-shadow: 0 16px 34px rgba(255, 77, 77, 0.32);
  transform: translateY(-2px) scale(1.02);
}

.section-title {
  letter-spacing: -0.03em;
  text-wrap: balance;
  background: linear-gradient(120deg, #ffffff, rgba(255, 255, 255, 0.78) 45%, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card,
.customcmd-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.customcmd-card::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -24%;
  width: 68%;
  height: 320%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(18deg);
  opacity: 0;
  transition: transform 560ms var(--apple-ease), opacity 440ms var(--apple-ease);
  pointer-events: none;
  z-index: 0;
}

.feature-card:hover::after,
.customcmd-card:hover::after {
  opacity: 1;
  transform: translate3d(160%, 0, 0) rotate(18deg);
}

.feature-card > *,
.customcmd-card > * {
  position: relative;
  z-index: 1;
}

.hero-metrics {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-metric {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  min-width: 126px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroMetricFloat 4.4s ease-in-out infinite;
}

.hero-metric:nth-child(2) { animation-delay: -1.1s; }
.hero-metric:nth-child(3) { animation-delay: -2.2s; }

.hero-metric strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 3px;
  text-align: center;
  padding-left: 3px;
}

.hero-metric span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

@keyframes heroMetricFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.apple-showcase {
  position: relative;
  z-index: 1;
  height: 260vh;
}

.apple-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 82px 1.6vw 28px;
}

.apple-showcase-frame {
  position: relative;
  width: min(1360px, 96vw);
  height: min(84vh, 780px);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(25, 27, 36, 0.92), rgba(9, 10, 15, 0.97));
  border: 1px solid var(--apple-border);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -60px 100px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.apple-showcase--translate .apple-showcase-frame {
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.55),
    0 20px 42px rgba(255, 77, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -60px 100px rgba(0, 0, 0, 0.25);
}

.apple-showcase-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  z-index: 2;
}

.apple-showcase-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% -10%, rgba(113, 127, 255, 0.16), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.apple-showcase-header {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 18;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.apple-showcase-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.apple-showcase-title {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 640px;
  text-wrap: balance;
}

.apple-showcase-window {
  position: absolute;
  inset: 112px 24px 78px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #313338;
  display: flex;
  z-index: 10;
}

.discord-rail {
  width: 72px;
  min-width: 72px;
  background: #191b1f;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.discord-rail-item {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #23262d;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-radius 220ms var(--apple-ease), transform 220ms var(--apple-ease);
}

.discord-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.discord-rail-item--active {
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.7);
}

.discord-rail-divider {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 2px;
}

.apple-showcase .discord-panel {
  background: #24262b;
  color: rgba(255, 255, 255, 0.72);
}

.apple-showcase .discord-panel--dms {
  width: 268px;
  min-width: 268px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.apple-showcase .discord-panel--channels {
  width: 252px;
  min-width: 252px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.apple-showcase .discord-panel--members {
  width: 228px;
  min-width: 228px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
  background: #222429;
}

.apple-showcase .discord-search {
  border-radius: 8px;
  background: #111215;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.apple-showcase .discord-nav-item,
.apple-showcase .discord-dm-item,
.apple-showcase .discord-channel,
.apple-showcase .discord-member-row {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 10px;
  margin-bottom: 2px;
  transition: background 220ms var(--apple-ease), color 220ms var(--apple-ease), box-shadow 220ms var(--apple-ease);
}

.apple-showcase .discord-nav-item--active,
.apple-showcase .discord-dm-item--active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.apple-showcase .discord-panel-title {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.apple-showcase .discord-server-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding: 3px 2px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-showcase .discord-chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #313338;
}

.apple-showcase .discord-chat--server {
  position: relative;
}

.apple-showcase .discord-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}

.apple-showcase .discord-chat-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.apple-showcase .discord-chat-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.apple-showcase .discord-chat-log {
  flex: 1;
  overflow: hidden;
  padding: 14px 0 6px;
  transition: transform 340ms var(--apple-ease);
}

.apple-showcase .discord-message {
  display: flex;
  gap: 12px;
  padding: 5px 16px;
  align-items: flex-start;
}

.apple-showcase .discord-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.discord-avatar--purple { background: linear-gradient(135deg, #6d7bff, #5964e3); }
.discord-avatar--red { background: linear-gradient(135deg, #f04f5b, #c93644); }
.discord-avatar--green { background: linear-gradient(135deg, #43b581, #2e9468); }

.discord-avatar--bot {
  overflow: hidden;
  background: #101216;
}

.discord-avatar--bot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apple-showcase .discord-message-body {
  flex: 1;
  min-width: 0;
}

.apple-showcase .discord-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.apple-showcase .discord-message-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.apple-showcase .discord-message-meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.apple-showcase .discord-message p {
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.5;
}

.apple-showcase .discord-message--focus {
  border-radius: 10px;
  transition: background 250ms var(--apple-ease), box-shadow 250ms var(--apple-ease), transform 250ms var(--apple-ease), opacity 250ms var(--apple-ease);
}

.apple-showcase .discord-message--focus.is-highlighted {
  background: rgba(88, 101, 242, 0.18);
  box-shadow: inset 0 0 0 1px rgba(121, 130, 244, 0.65);
  transform: translate3d(0, -1px, 0);
}

.apple-showcase .discord-message--bot {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transform-origin: top left;
}

.apple-showcase .bot-name {
  color: #ff6767;
}

.apple-showcase .bot-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 77, 77, 0.95);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
}

.apple-showcase .discord-embed {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: #202228;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.apple-showcase .discord-embed-bar {
  width: 4px;
  min-width: 4px;
  background: linear-gradient(180deg, #ff4d4d, #ff7b7b);
}

.apple-showcase .discord-embed-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.apple-showcase .discord-embed-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.apple-showcase .discord-embed-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apple-showcase .discord-embed-row span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.apple-showcase .discord-embed-row strong {
  font-size: 12px;
  line-height: 1.4;
  color: #f2f3f5;
  font-weight: 600;
}

.apple-showcase .discord-chat-input {
  margin: 0 16px 14px;
  border-radius: 8px;
  padding: 11px 14px;
  background: #383a40;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.apple-showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

.showcase-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), 0 14px 26px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.showcase-cursor::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 0.45;
}

.discord-context-menu,
.discord-submenu {
  position: absolute;
  min-width: 228px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 24, 29, 0.94);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: top left;
}

.discord-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  text-align: left;
  padding: 10px 10px;
}

.discord-menu-item.is-active {
  background: rgba(88, 101, 242, 0.28);
  color: #fff;
}

.discord-menu-item--accent {
  color: #ff9090;
}

.discord-menu-item--danger {
  color: #ff6f7b;
}

.apple-showcase-copy {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 18;
  max-width: 600px;
}

.apple-step-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.apple-step-text {
  font-size: clamp(16px, 1.42vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #f2f3f5;
  text-wrap: balance;
}

.apple-showcase-progress {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 19;
}

.apple-showcase-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff7e7e 48%, #8f96ff 100%);
  border-radius: inherit;
}

.apple-showcase .discord-channel {
  color: rgba(255, 255, 255, 0.62);
  position: relative;
  padding-right: 34px;
}

.apple-showcase .discord-channel.is-detected {
  color: #fff;
  background: rgba(255, 77, 77, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.55);
}

.member-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #43b581;
  margin-right: 8px;
}

.apple-status-pill {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 18;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 18, 0.84);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 380px;
}

@media (max-width: 1180px) {
  .apple-showcase .discord-panel--members {
    display: none;
  }

  .apple-showcase .discord-panel--channels,
  .apple-showcase .discord-panel--dms {
    width: 234px;
    min-width: 234px;
  }

  .apple-status-pill {
    max-width: 300px;
  }
}

@media (max-width: 980px) {
  .apple-showcase {
    height: auto;
    padding: 100px 0 60px;
  }

  .apple-showcase-sticky {
    position: relative;
    height: auto;
    padding: 0 14px;
  }

  .apple-showcase-frame {
    height: auto;
    min-height: 720px;
    transform: none !important;
  }

  .apple-showcase-window {
    position: relative;
    inset: auto;
    margin: 110px 14px 110px;
    min-height: 500px;
  }

  .apple-showcase-overlay {
    display: none;
  }

  .apple-showcase-copy {
    left: 24px;
    right: 24px;
    bottom: 42px;
    max-width: none;
  }

  .hero-metrics {
    margin-top: 22px;
  }

  .hero-metric {
    min-width: 112px;
    padding: 8px 12px;
  }

  .apple-status-pill {
    right: 24px;
    left: 24px;
    bottom: 88px;
    max-width: none;
  }

  .apple-showcase-progress {
    left: 24px;
    right: 24px;
    bottom: 14px;
  }
}

@media (max-width: 760px) {
  .apple-showcase .discord-panel--dms,
  .apple-showcase .discord-panel--channels,
  .apple-showcase .discord-rail {
    display: none;
  }

  .apple-showcase-window {
    margin: 110px 10px 96px;
  }

  .apple-showcase .discord-chat-log {
    padding-top: 10px;
  }

  .apple-showcase .discord-message {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-metrics {
    width: 100%;
    justify-content: center;
  }

  .hero-metric {
    min-width: calc(50% - 8px);
  }
}

/* ===== Giveaway joiner: radar + entry tickets ===== */

.giveaway-section {
  position: relative;
  z-index: 1;
  padding: 180px 0 160px;
  isolation: isolate;
  overflow: clip;
}

.gw {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(60% 80% at 22% 40%, rgba(255,77,77,0.08), transparent 70%),
    linear-gradient(180deg, rgba(18,16,20,0.9), rgba(10,10,12,0.92));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8), 0 0 90px -52px rgba(255,77,77,0.6);
  overflow: hidden;
}

.gw-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 420px;
}

/* ---- Radar ---- */
.gw-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 36px 28px 28px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.gw-radar {
  --size: 300px;
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,77,77,0.07) 0%, transparent 70%),
    rgba(0,0,0,0.35);
  border: 1px solid rgba(255,77,77,0.22);
  box-shadow: inset 0 0 40px rgba(255,77,77,0.08), 0 0 50px -20px rgba(255,77,77,0.45);
  overflow: hidden;
}

.gw-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255,77,77,0.16);
  transform: translate(-50%, -50%);
}
.gw-ring--1 { width: 33%; height: 33%; }
.gw-ring--2 { width: 66%; height: 66%; }
.gw-ring--3 { width: 99%; height: 99%; border-style: solid; border-color: rgba(255,77,77,0.1); }

.gw-axis { position: absolute; background: rgba(255,77,77,0.08); }
.gw-axis--h { left: 0; right: 0; top: 50%; height: 1px; }
.gw-axis--v { top: 0; bottom: 0; left: 50%; width: 1px; }

/* the beam: a cone that trails behind its leading edge; JS sets --a (degrees, clockwise from 12 o'clock) */
.gw-sweep {
  --a: 0deg;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from calc(var(--a) - 70deg), transparent 0deg, rgba(255,77,77,0.02) 20deg, rgba(255,77,77,0.28) 69deg, rgba(255,120,110,0.9) 70deg, transparent 70.6deg);
  pointer-events: none;
}

.gw-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: #0c0b0e;
  border: 1px solid rgba(255,77,77,0.35);
  box-shadow: 0 0 24px -4px rgba(255,77,77,0.6);
  z-index: 2;
}
.gw-core img { width: 30px; height: 30px; }

/* server icons; JS places them from data-angle/data-dist */
.gw-blip {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--c) 30%, #111);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.gw-blip::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}

.gw-blip.is-hit {
  opacity: 1;
  transform: scale(1.15);
  background: color-mix(in srgb, var(--c) 55%, #111);
  box-shadow: 0 0 0 3px rgba(255,77,77,0.25), 0 0 20px rgba(255,77,77,0.7);
}
.gw-blip.is-hit::after { animation: gwPing 1.1s ease-out; }

@keyframes gwPing {
  0%   { opacity: 0.9; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(2.2); }
}

.gw-radar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 300px);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.gw-radar-meta strong { color: #fff; font-variant-numeric: tabular-nums; }

.gw-live { display: inline-flex; align-items: center; gap: 7px; }
.gw-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,77,77,0.9);
  animation: giveawayStagePulse 1.8s ease-in-out infinite;
}

@keyframes giveawayStagePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

/* ---- Tickets ---- */
.gw-tickets-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 28px 24px;
}

.gw-tickets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.gw-tickets-hint { font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--text-dim); }

.gw-tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* fixed height: new tickets push old ones out instead of growing the section */
  height: 332px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
          mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.gw-ticket {
  --c: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  flex-shrink: 0;
  min-height: 74px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  animation: gwTicketIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* punched notches where the stub tears off */
.gw-ticket::before,
.gw-ticket::after {
  content: '';
  position: absolute;
  left: 47px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0d0c0f;
  border: 1px solid rgba(255,255,255,0.08);
}
.gw-ticket::before { top: -8px; }
.gw-ticket::after { bottom: -8px; }

.gw-ticket-stub {
  display: grid;
  place-items: center;
  border-right: 1px dashed rgba(255,255,255,0.14);
  color: var(--c);
}

.gw-ticket-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px 12px 16px;
}

.gw-ticket-prize {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 74px;
}

.gw-ticket-meta { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-ticket-meta b { color: rgba(255,255,255,0.75); font-weight: 600; }

.gw-ticket-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-6deg);
  animation: gwStamp 0.45s cubic-bezier(0.34, 1.7, 0.64, 1) 0.35s both;
}

.gw-ticket--placeholder { animation: none; border-style: dashed; background: transparent; }
.gw-ticket--placeholder .gw-ticket-body { font-size: 13px; color: var(--text-dim); }

@keyframes gwTicketIn {
  from { opacity: 0; transform: translateX(-24px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes gwStamp {
  from { opacity: 0; transform: rotate(-6deg) scale(2); }
  to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* ---- Join speed ---- */
.gw-speed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.25);
}

.gw-speed-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw-speed-text strong { font-size: 13px; color: #fff; }
.gw-speed-text span { font-size: 12px; color: var(--text-dim); line-height: 1.45; }

.gw-speed-seg {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.gw-speed-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.gw-speed-opt small { font-size: 10.5px; font-weight: 600; color: var(--text-dim); }
.gw-speed-opt:hover { color: #fff; }
.gw-speed-opt.is-active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(255,77,77,0.9); }
.gw-speed-opt.is-active small { color: rgba(255,255,255,0.8); }
.gw-speed-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .giveaway-section { padding: 120px 0 96px; }
}

@media (max-width: 760px) {
  .gw-main { grid-template-columns: 1fr; min-height: 0; }
  .gw-radar-wrap { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 28px 20px 22px; }
  .gw-radar { --size: min(260px, 72vw); }
  .gw-tickets-wrap { padding: 22px 18px 18px; }
  .gw-tickets { height: 250px; }
  .gw-ticket-prize { padding-right: 58px; }
  .gw-ticket-stamp { top: 10px; right: 10px; padding: 2px 5px; font-size: 8.5px; letter-spacing: 0.08em; }
  .gw-speed { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  .gw-speed-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gw-speed-opt { min-width: 0; }
}

@media (max-width: 600px) {
  .giveaway-section { padding: 80px 0 72px; }
  .gw { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-live-dot, .gw-blip.is-hit::after, .gw-ticket, .gw-ticket-stamp { animation: none !important; }
}


.showcase-v3 {
  position: relative;
  height: 420vh;
  background: transparent;
  z-index: 100;
  overflow: clip;
  --showcase-progress: 0;
  --showcase-focus: 0;
  --showcase-entry: 0;
  --showcase-visibility: 0;
}

.showcase-v3-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 2500px;
  background: transparent;
  padding: 32px;
}

#showcase-translate {
  margin-top: -36vh;
  padding-top: 16vh;
  overflow: visible;
  z-index: 120;
  pointer-events: none;
  --translate-depth-blur: calc((1 - var(--showcase-entry)) * 12px + (1 - var(--showcase-focus)) * 3px);
  --translate-ui-blur: calc((1 - var(--showcase-entry)) * 6px + var(--showcase-focus) * 1.8px);
}

#showcase-translate .v3-surface {
  pointer-events: auto;
}

#showcase-translate .v3-guilds,
#showcase-translate .v3-left,
#showcase-translate .v3-right {
  filter: blur(calc(var(--translate-depth-blur) * 0.72)) saturate(0.82);
  opacity: calc(0.44 + var(--showcase-entry) * 0.44);
  transform: translateZ(-24px) scale(calc(0.985 + (1 - var(--showcase-entry)) * 0.02));
  transform-origin: 50% 50%;
  transition:
    filter 720ms var(--apple-ease),
    opacity 520ms var(--apple-ease),
    transform 720ms var(--apple-ease);
}

#showcase-translate .v3-chat-header,
#showcase-translate .v3-input-area,
#showcase-translate .v3-message:not(#translate-target):not(#translate-result) {
  filter: blur(calc(var(--translate-ui-blur) * 0.52));
  transition:
    filter 640ms var(--apple-ease),
    opacity 420ms var(--apple-ease),
    transform 420ms var(--apple-ease);
}

#showcase-translate .v3-message:not(#translate-target):not(#translate-result) {
  opacity: calc(0.36 + var(--showcase-entry) * 0.42);
}

#showcase-translate #translate-target,
#showcase-translate #translate-result {
  position: relative;
  z-index: 3;
  filter: none;
}

#showcase-translate::before {
  content: '';
  position: absolute;
  top: calc(-18vh + 20vh);
  left: 0;
  right: 0;
  height: 52vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(82% 120% at 50% 12%, rgba(255, 77, 77, 0.12), transparent 52%),
    radial-gradient(100% 120% at 50% 22%, rgba(8, 10, 16, 0.74), rgba(8, 10, 16, 0.24) 40%, transparent 76%);
  opacity: 0.96;
  filter: blur(30px);
  transform: translateY(-6%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, #000 48%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, #000 48%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
}

#showcase-translate .showcase-v3-sticky::before {
  background:
    radial-gradient(62% 56% at 50% 60%, rgba(255, 77, 77, 0.10), transparent 68%),
    radial-gradient(94% 74% at 50% 14%, rgba(7, 9, 14, 0.18), transparent 74%);
  opacity: calc((0.10 + var(--showcase-focus) * 0.18) * (0.24 + var(--showcase-entry) * 0.76));
  filter: blur(30px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.32) 30%, #000 44%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.32) 30%, #000 44%, #000 100%);
}

#showcase-translate .showcase-v3-sticky::after {
  opacity: calc(var(--showcase-visibility) * (0.08 + var(--showcase-entry) * 0.22));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, rgba(0, 0, 0, 0.36) 34%, #000 54%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, rgba(0, 0, 0, 0.36) 34%, #000 54%, #000 100%);
}

.showcase-v3-sticky::before,
.showcase-v3-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.showcase-v3-sticky::before {
  background:
    radial-gradient(62% 54% at 50% 52%, rgba(255, 77, 77, 0.12), transparent 68%),
    radial-gradient(90% 70% at 50% 8%, rgba(7, 9, 14, 0.24), transparent 72%);
  opacity: calc((0.18 + var(--showcase-focus) * 0.25) * (0.3 + var(--showcase-entry) * 0.7));
  filter: blur(28px);
}

.showcase-v3-sticky::after {
  inset: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.026), transparent 48%),
    radial-gradient(120% 120% at 50% 100%, rgba(255, 255, 255, 0.014), transparent 42%);
  opacity: calc(var(--showcase-visibility) * (0.10 + var(--showcase-entry) * 0.26));
}

@media (max-width: 900px) {
  .showcase-v3 {
    height: 340vh;
  }

  #showcase-translate {
    margin-top: -20vh;
    padding-top: 0;
    overflow: clip;
    --translate-depth-blur: calc((1 - var(--showcase-entry)) * 8px + (1 - var(--showcase-focus)) * 2px);
    --translate-ui-blur: calc((1 - var(--showcase-entry)) * 4px + var(--showcase-focus) * 0.9px);
  }

  #showcase-translate::before {
    top: calc(-8vh + 20vh);
    height: 24vh;
    filter: blur(16px);
    transform: translateY(-2%);
  }

  #showcase-translate .showcase-v3-sticky::before,
  #showcase-translate .showcase-v3-sticky::after {
    -webkit-mask-image: none;
    mask-image: none;
  }

  #showcase-translate .v3-chat-header,
  #showcase-translate .v3-input-area,
  #showcase-translate .v3-message:not(#translate-target):not(#translate-result) {
    filter: blur(calc(var(--translate-ui-blur) * 0.28));
  }
}

.v3-camera-rig {
  width: min(1480px, 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(0, calc((0.5 - var(--showcase-progress)) * 34px + (1 - var(--showcase-entry)) * 112px), 0)
    rotateX(calc((1 - var(--showcase-entry)) * 14deg))
    scale(calc(0.9 + var(--showcase-entry) * 0.075 + var(--showcase-focus) * 0.025));
}

.v3-surface {
  width: min(1480px, calc(100vw - 64px));
  height: min(84vh, 880px);
  background: rgba(10, 10, 14, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  grid-template-columns: 72px 240px 1fr 300px;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  position: relative;
  margin: 0;
  border-radius: 32px;
  opacity: var(--showcase-visibility);
  filter: blur(calc((1 - var(--showcase-entry)) * 14px + (1 - var(--showcase-visibility)) * 12px)) saturate(calc(0.56 + var(--showcase-entry) * 0.44));
  clip-path: inset(calc((1 - var(--showcase-entry)) * 18% + (1 - var(--showcase-visibility)) * 22%) 0 0 0 round 32px);
  transition:
    opacity 760ms var(--apple-ease),
    filter 900ms var(--apple-ease),
    clip-path 980ms var(--apple-ease),
    box-shadow 520ms var(--apple-ease),
    border-color 420ms var(--apple-ease);
}

.v3-surface::before,
.v3-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.v3-surface::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(65% 75% at 50% 0%, rgba(255, 77, 77, 0.12), transparent 55%);
  opacity: calc(0.5 + var(--showcase-focus) * 0.4);
}

.v3-surface::after {
  inset: 1px;
  border-radius: 31px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 1200px) {
  .v3-surface {
    grid-template-columns: 72px 240px 1fr;
  }
  .v3-right {
    display: none;
  }
}


.section-subtitle code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85em;
  font-weight: 600;
  color: #ff8a78;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,77,77,0.18);
  background: rgba(255,77,77,0.1);
}

/* ===== OCR: drag-to-compare scanner ===== */

.ocr-section,
.gp-section,
.cmd-section {
  position: relative;
  z-index: 1;
  padding: 180px 0 160px;
}

.ocr-scan {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,17,20,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8), 0 0 90px -52px rgba(255,77,77,0.6);
}

.ocr-scan-frame {
  --pos: 50%;
  position: relative;
  height: 380px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.ocr-layer {
  position: absolute;
  inset: 0;
}

.ocr-layer-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 6%;
  text-align: center;
}

/* The picture: a poster with grain, a slight tilt and a soft shadow. No CSS blur on the
   text: iOS Safari rasterises filtered text at 1x and upscales it, so it looked smeared */
.ocr-layer--image {
  background:
    radial-gradient(circle at 20% 25%, rgba(255,77,77,0.5), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(139,0,0,0.65), transparent 55%),
    linear-gradient(135deg, #1c0d10, #0b090c 60%, #170709);
}

.ocr-layer--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 0.6px, transparent 0.8px);
  background-size: 3px 3px;
  pointer-events: none;
}

.ocr-layer--image .ocr-layer-copy {
  transform: rotate(-2.5deg);
  -webkit-font-smoothing: antialiased;
}

.ocr-flyer-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
}

.ocr-flyer-line {
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  -webkit-font-smoothing: antialiased;
}

.ocr-flyer-line--lg { font-size: clamp(34px, 5.6vw, 60px); color: #ffd9d9; }
.ocr-flyer-line--sm { font-size: clamp(13px, 1.6vw, 17px); font-weight: 600; color: rgba(255,255,255,0.72); }

/* The extracted text, revealed left of the beam */
.ocr-layer--text {
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 100% 32px,
    #0b0b0e;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ocr-text-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: min(560px, 100%);
  padding: 4px 10px 4px 0;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}

.ocr-text-line i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-dim);
}

.ocr-text-line--selected {
  color: #fff;
  background: linear-gradient(90deg, transparent 0 34px, rgba(255,77,77,0.28) 34px);
  box-shadow: inset -2px 0 0 var(--accent);
}

.ocr-corner-label {
  position: absolute;
  top: 18px;
  left: 20px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.45);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.ocr-corner-label b { color: var(--accent); font-weight: 700; }
.ocr-corner-label--right { left: auto; right: 20px; }

/* The beam + handle */
.ocr-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255,77,77,0.9), 0 0 40px rgba(255,77,77,0.5);
  pointer-events: none;
}

.ocr-beam::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1px;
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255,77,77,0.14));
}

.ocr-beam-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,77,77,0.18), 0 10px 26px -6px rgba(255,77,77,0.8);
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ocr-beam-handle svg { width: 18px; height: 18px; }

.ocr-scan-frame:hover .ocr-beam-handle,
.ocr-scan-frame.is-dragging .ocr-beam-handle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 10px rgba(255,77,77,0.14), 0 10px 30px -6px rgba(255,77,77,0.9);
}

/* Native range kept for keyboard users, visually hidden on top of the frame */
.ocr-scan-range {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ocr-scan-frame:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Stats strip */
.ocr-scan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ocr-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
}

.ocr-stat + .ocr-stat { border-left: 1px solid rgba(255,255,255,0.06); }

.ocr-stat strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.ocr-stat strong small {
  margin-left: 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.ocr-stat > span { font-size: 13px; color: var(--text-secondary); }

.ocr-formats { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }

.ocr-formats em {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,77,77,0.25);
  background: rgba(255,77,77,0.08);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #ff9a9a;
}

/* ===== Ghost ping: phone + timeline ===== */

.gp-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  max-width: 940px;
  margin: 0 auto;
}

/* iPhone shown like a product shot: black glass body turned in 3D so its left
   edge (with the buttons) shows real thickness, a sharp glass reflection on
   the screen, and only the very bottom of the device fading out. */
.gp-device {
  position: relative;
  padding: 30px 40px 0 50px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 99%);
          mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 99%);
}

/* soft red light behind the device */
.gp-device::before {
  content: '';
  position: absolute;
  inset: 10% 0 20% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,77,77,0.28), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.gp-phone {
  position: relative;
  width: 270px;
  height: 556px;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(150deg, #2a2a30 0%, #0c0c0f 30%, #050506 60%, #141418 100%);
  /* stacked offsets = the body's side wall; lit edge first, then darker depth */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 0 0 2px rgba(0,0,0,0.9),
    -1px 1px 0 #2c2c32,
    -2px 2px 0 #1d1d22,
    -3px 3px 0 #18181c,
    -4px 4px 0 #151519,
    -5px 5px 0 #131316,
    -6px 6px 0 #111114,
    -7px 7px 0 #0f0f12,
    -8px 8px 0 #0d0d10,
    -9px 9px 0 #0b0b0e,
    -10px 10px 0 #0a0a0c,
    -11px 11px 0 rgba(255,255,255,0.05),
    -30px 40px 60px -10px rgba(0,0,0,0.85);
  --gp-persp: 1400px;
  --gp-rx: 12deg;
  --gp-ry: 24deg;
  --gp-rz: -9deg;
  transform: perspective(var(--gp-persp)) rotateX(var(--gp-rx)) rotateY(var(--gp-ry)) rotateZ(var(--gp-rz));
  animation: gp-phone-float 7s ease-in-out infinite;
  will-change: transform;
}

/* slow bob with a slight drift in tilt, so the product shot feels alive */
@keyframes gp-phone-float {
  0%, 100% {
    transform: perspective(var(--gp-persp)) translateY(0)
      rotateX(var(--gp-rx)) rotateY(var(--gp-ry)) rotateZ(var(--gp-rz));
  }
  50% {
    transform: perspective(var(--gp-persp)) translateY(-16px)
      rotateX(calc(var(--gp-rx) - 3deg)) rotateY(calc(var(--gp-ry) - 5deg)) rotateZ(calc(var(--gp-rz) + 2deg));
  }
}

/* the glow breathes with the float */
.gp-device::before { animation: gp-glow-breathe 7s ease-in-out infinite; }

@keyframes gp-glow-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92) translateY(10px); }
}

.gp-phone-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  padding: 56px 12px 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,77,77,0.5), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(139,0,0,0.65), transparent 55%),
    linear-gradient(180deg, #1a0c0f, #070608);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.9), inset 0 0 24px rgba(0,0,0,0.55);
}

.gp-phone-island {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 50%;
  width: 90px;
  height: 27px;
  border-radius: 999px;
  background:
    radial-gradient(circle at calc(100% - 15px) 50%, #2b3a66 0 1.5px, #121a33 2.5px, #05070d 5px, transparent 5.5px),
    #000;
  transform: translateX(-50%);
}

/* cover glass: one sharp diagonal reflection, like a studio light on glass */
.gp-phone-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(122deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.09) 34%, rgba(255,255,255,0) 34.4%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
}

/* buttons sit on the visible side wall */
.gp-btn {
  position: absolute;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0a0a0c, #3a3a42 55%, #18181c);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.22), -1px 1px 2px rgba(0,0,0,0.6);
}
.gp-btn--action   { left: -9px; top: calc(19% + 6px);   height: 4.6%; }
.gp-btn--vol-up   { left: -11px; top: calc(26.5% + 8px); height: 8.6%; }
.gp-btn--vol-down { left: -12px; top: calc(37% + 9px);   height: 8.6%; }
/* far side: only a sliver shows */
.gp-btn--power    { right: -2px; top: 29%; width: 3px; height: 13%; }

.gp-phone-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  color: #fff;
}

.gp-phone-date { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); }
.gp-phone-time { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }

.gp-notif {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(30,30,36,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(255,255,255,0.8);
}

.gp-notif-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
}

.gp-notif-icon svg { width: 16px; height: 16px; }

.gp-notif-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.gp-notif-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.gp-notif-top b { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-notif-top small { flex: none; font-size: 10px; color: rgba(255,255,255,0.45); }

.gp-notif mark,
.gp-chip mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(255,77,77,0.22);
  color: #ffb3b3;
  font-weight: 600;
}

.gp-notif--old { opacity: 0.55; transform: scale(0.96); }

.gp-notif--new {
  order: -1;
  border-color: rgba(255,77,77,0.35);
  box-shadow: 0 10px 30px -10px rgba(255,77,77,0.6);
}

/* newest notification stacks on top, under the clock */
.gp-phone-screen { display: flex; flex-direction: column; gap: 8px; }
.gp-phone-clock { order: -2; }

.gp-phone-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 104px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.6);
  transform: translateX(-50%);
}

/* Timeline card */
.gp-timeline {
  padding: 26px 26px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,17,20,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gp-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gp-timeline-total {
  padding: 4px 9px;
  border-radius: 999px;
  color: #ff8a8a;
  background: rgba(255,77,77,0.1);
  border: 1px solid rgba(255,77,77,0.22);
  letter-spacing: 0.06em;
}

.gp-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* rail + animated fill */
.gp-steps::before,
.gp-steps::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}

.gp-steps::after {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,77,77,0.7);
  transform-origin: top;
  transform: scaleY(var(--gp-fill-scale, 1));
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-step {
  position: relative;
  display: grid;
  grid-template-columns: 16px 64px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-bottom: 22px;
}

.gp-step-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: #111114;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.gp-step-time {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.gp-step-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.gp-step-body strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: rgba(255,255,255,0.45);
  transition: color 0.4s ease;
}

.gp-step-note { font-size: 13px; color: var(--text-secondary); }

.gp-chip {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease, letter-spacing 0.5s ease;
}

.gp-chip b { color: #fff; font-weight: 700; margin-right: 2px; }

/* reached steps light up */
.gp-stage[data-gp-step="1"] .gp-step[data-gp-at="1"] .gp-step-dot,
.gp-stage[data-gp-step="2"] .gp-step:is([data-gp-at="1"], [data-gp-at="2"]) .gp-step-dot,
.gp-stage[data-gp-step="3"] .gp-step .gp-step-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255,77,77,0.15);
}

.gp-stage[data-gp-step="1"] .gp-step[data-gp-at="1"] :is(.gp-step-time, .gp-step-body strong),
.gp-stage[data-gp-step="2"] .gp-step:is([data-gp-at="1"], [data-gp-at="2"]) :is(.gp-step-time, .gp-step-body strong),
.gp-stage[data-gp-step="3"] .gp-step :is(.gp-step-time, .gp-step-body strong) {
  color: #fff;
}

.gp-stage[data-gp-step="0"] .gp-steps { --gp-fill-scale: 0; }
.gp-stage[data-gp-step="1"] .gp-steps { --gp-fill-scale: 0; }
.gp-stage[data-gp-step="2"] .gp-steps { --gp-fill-scale: 0.5; }
.gp-stage[data-gp-step="3"] .gp-steps { --gp-fill-scale: 1; }

/* the mention dissolves once erased */
.gp-stage[data-gp-step="3"] .gp-chip--msg {
  opacity: 0.25;
  filter: blur(2px);
  letter-spacing: 0.08em;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

/* phone notification drops in at step 2 */
.gp-notif--new {
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gp-stage:is([data-gp-step="0"], [data-gp-step="1"]) .gp-notif--new {
  opacity: 0;
  transform: translateY(-24px) scale(0.92);
}

.gp-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
  font-size: 13px;
}

.gp-channel-hash { font-weight: 800; color: var(--text-dim); }
.gp-channel-name { font-weight: 700; color: rgba(255,255,255,0.7); }

.gp-channel-empty {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.gp-stage[data-gp-step="3"] .gp-channel { border-color: rgba(255,77,77,0.3); }
.gp-stage[data-gp-step="3"] .gp-channel-empty { color: #ff8a8a; }

.gp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.gp-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Custom commands: write once, resolved on every run ===== */

.cx {
  --cx-user: #8ab4ff;
  --cx-server: #34d399;
  --cx-random: #f5c542;
  --cx-time: #c4a5ff;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- 1. Composer + autocomplete ---- */
.cx-composer {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.cx-suggest {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px 14px 4px 4px;
  background: #111114;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 0;
  box-shadow: 0 -20px 50px -30px rgba(255,77,77,0.45);
}

.cx-suggest-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cx-suggest-head img { width: 16px; height: 16px; }
.cx-suggest-head small { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dim); }

.cx-suggest-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cx-suggest-row b { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #fff; }
.cx-suggest-row span { min-width: 0; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-suggest-row:hover { background: rgba(255,255,255,0.04); }
.cx-suggest-row.is-active { background: rgba(255,77,77,0.12); }
.cx-suggest-row.is-active b { color: #ff8a8a; }
.cx-suggest-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.cx-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 4px 4px 14px 14px;
  background: #1a1a1f;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
}
.cx-input-cmd { color: #fff; font-weight: 700; }
.cx-input-opt {
  padding: 2px 8px;
  border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}
.cx-input-val { margin-left: -8px; padding: 2px 8px; border-radius: 0 6px 6px 0; background: rgba(255,255,255,0.04); color: #fff; min-width: 1ch; }
.cx-caret { width: 2px; height: 18px; margin-left: -6px; background: var(--accent); animation: heroCaret 1s steps(1) infinite; }

/* ---- 2. Split ---- */
/* height is set by JS to the tallest command at this width, so nothing below shifts */
.cx-stage { position: relative; z-index: 1; }

.cx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(18,16,20,0.9), rgba(10,10,12,0.92));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8), 0 0 90px -55px rgba(255,77,77,0.55);
  overflow: hidden;
}

.cx-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px 24px 24px; }

.cx-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.cx-pane-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

.cx-type {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* the template as typed in the dashboard */
.cx-src {
  flex: 1;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cx-src-field { display: block; margin: 0 0 4px; font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cx-src-field + .cx-src-field, .cx-src-block + .cx-src-field { margin-top: 12px; }
.cx-src-block { display: block; }

.cx-var {
  --k: var(--cx-user);
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--k) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--k) 35%, transparent);
  color: var(--k);
  white-space: nowrap;
  cursor: default;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cx-val {
  --k: var(--cx-user);
  border-bottom: 2px solid color-mix(in srgb, var(--k) 60%, transparent);
  border-radius: 2px;
  cursor: default;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cx-var.is-linked,
.cx-val.is-linked { background: color-mix(in srgb, var(--k) 28%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 22%, transparent); }

.cx-k-user   { --k: var(--cx-user); }
.cx-k-server { --k: var(--cx-server); }
.cx-k-random { --k: var(--cx-random); }
.cx-k-time   { --k: var(--cx-time); }

/* a resolved value that just changed on "Run again" */
.cx-val.is-fresh { animation: cxFresh 0.7s ease; }
@keyframes cxFresh {
  0%   { background: color-mix(in srgb, var(--k) 45%, transparent); }
  100% { background: transparent; }
}

.cx-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-dim); }
.cx-key { display: inline-flex; align-items: center; gap: 6px; }
.cx-key::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--k); }
.cx-key--user   { --k: var(--cx-user); }
.cx-key--server { --k: var(--cx-server); }
.cx-key--random { --k: var(--cx-random); }
.cx-key--time   { --k: var(--cx-time); }

/* arrow between the panes */
.cx-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 0; }
.cx-flow-line { flex: 1; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,77,77,0.45), transparent); }
.cx-flow-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 22px -4px rgba(255,77,77,0.8);
}

/* ---- Output: the interaction reply as Discord draws it ---- */
.cx-pane--out { background: radial-gradient(80% 60% at 70% 0%, rgba(255,77,77,0.06), transparent 70%); }

.cx-rerun {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,77,0.35);
  background: rgba(255,77,77,0.1);
  color: #ffb3b3;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cx-rerun:hover { background: rgba(255,77,77,0.2); color: #fff; }
.cx-rerun:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-rerun.is-spinning svg { animation: cxSpin 0.6s ease; }
@keyframes cxSpin { to { transform: rotate(360deg); } }

.cx-msg { flex: 1; padding: 14px 16px; border-radius: 14px; background: #121215; border: 1px solid rgba(255,255,255,0.06); }
.cx-msg.is-swapping { animation: cxSwap 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cxSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cx-msg-used { position: relative; display: flex; align-items: center; gap: 5px; margin: 0 0 6px 50px; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; }
.cx-msg-used b { color: rgba(255,255,255,0.8); font-weight: 600; }
.cx-msg-used-cmd { color: #8ab4ff; }
.cx-msg-used-curve { position: absolute; left: -30px; top: 8px; width: 24px; height: 10px; border: 2px solid rgba(255,255,255,0.15); border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }

.cx-msg-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.cx-msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: #0b0b0d; padding: 6px; }
.cx-msg-body { min-width: 0; }
.cx-msg-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cx-msg-author { font-size: 14px; font-weight: 700; color: var(--accent); }
.cx-msg-app { padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; }
.cx-msg-time { font-size: 11px; color: var(--text-dim); }

.cx-out { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.88); overflow-wrap: anywhere; }
.cx-out strong { color: #fff; }

/* Discord-style mentions inside a reply */
.cx-mention { padding: 0 3px; border-radius: 4px; background: rgba(88,101,242,0.3); color: #c9cdfb; font-weight: 500; }

.cx-embed {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 4px 12px;
  margin-top: 2px;
  padding: 12px 14px 12px 16px;
  border-radius: 6px;
  background: #1b1b20;
  border-left: 4px solid var(--accent);
}
.cx-embed-author { grid-column: 1; font-size: 12px; font-weight: 700; color: #fff; }
.cx-embed-title { grid-column: 1; font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.cx-embed-desc { grid-column: 1; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.cx-embed-thumb { grid-column: 2; grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 6px; background: #0b0b0d; padding: 8px; }
.cx-embed-footer { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; color: var(--text-dim); }

.cx-out-note { margin: 0; font-size: 11.5px; color: var(--text-dim); }
.cx-note-short { display: none; }

/* ---- Command switch choreography ----
   leaving: content blurs up and out while the new name is typed
   entering: template → chips pop in one by one → arrow pulses → reply rises, values land */
.cx-type,
.cx-src,
.cx-msg,
.cx-out-note,
.cx-legend {
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), filter 0.18s ease;
}

.cx-split.is-leaving .cx-type,
.cx-split.is-leaving .cx-src,
.cx-split.is-leaving .cx-msg,
.cx-split.is-leaving .cx-out-note,
.cx-split.is-leaving .cx-legend {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(4px);
}

.cx-split.is-entering .cx-type    { animation: cxIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cx-split.is-entering .cx-src     { animation: cxIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both; }
.cx-split.is-entering .cx-legend  { animation: cxIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.cx-split.is-entering .cx-msg     { animation: cxIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.cx-split.is-entering .cx-out-note { animation: cxIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }

/* chips and their resolved values land in order (--i is the variable's index) */
.cx-split.is-entering .cx-var { animation: cxChip 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) both; animation-delay: calc(0.06s + var(--i, 0) * 0.045s); }
.cx-split.is-entering .cx-val { animation: cxLand 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.16s + var(--i, 0) * 0.045s); }
.cx-split.is-entering .cx-flow-badge { animation: cxPulse 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }

/* contents rise only a few px so the box itself never looks like it hops */
@keyframes cxIn {
  from { opacity: 0; transform: translateY(5px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes cxChip {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: none; }
}

@keyframes cxLand {
  0%   { opacity: 0; transform: translateY(-3px); background: color-mix(in srgb, var(--k) 40%, transparent); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; background: transparent; }
}

@keyframes cxPulse {
  0%   { transform: scale(1); box-shadow: 0 0 22px -4px rgba(255,77,77,0.8); }
  40%  { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,77,77,0.18), 0 0 30px rgba(255,77,77,0.9); }
  100% { transform: scale(1); box-shadow: 0 0 22px -4px rgba(255,77,77,0.8); }
}

/* chips/values need a box for transforms */
.cx-var, .cx-val { display: inline-block; line-height: 1.35; }
.cx-mention { display: inline-block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cx-split { grid-template-columns: 1fr; }
  .cx-flow { flex-direction: row; padding: 0 22px; height: 32px; }
  .cx-flow-line { width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,77,77,0.45), transparent); }
  .cx-flow-badge svg { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .cx-pane { padding: 18px 16px 20px; }
  .cx-suggest-row { flex-direction: column; gap: 2px; }
  .cx-suggest-row span { white-space: normal; }
  .cx-src { padding: 14px; font-size: 12.5px; line-height: 1.9; }
  /* long chips like {choose:…} wrap like text, each line keeping its own pill */
  .cx-var,
  .cx-val,
  .cx-mention {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
  }
  .cx-var { padding: 1px 5px; }
  .cx-msg { padding: 12px; }
  .cx-msg-used { margin-left: 44px; }
  .cx-msg-main { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .cx-msg-avatar { width: 34px; height: 34px; }
  /* compact embed on phones: it's the tallest command and sets the reserved height,
     so trimming it keeps the gap under the section small for every other command */
  .cx-embed { grid-template-columns: minmax(0, 1fr) 36px; padding: 10px 12px 10px 14px; gap: 3px 10px; }
  .cx-embed-author,
  .cx-embed-footer { display: none; }
  .cx-embed-thumb { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 6px; }
  .cx-note-long { display: none; }
  .cx-note-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-caret, .cx-msg.is-swapping, .cx-val.is-fresh, .cx-rerun.is-spinning svg,
  .cx-split.is-entering *, .cx-split.is-leaving * { animation: none !important; transition: none !important; filter: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .gp-stage { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .gp-timeline { width: 100%; }
  .ocr-scan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocr-stat:nth-child(3) { border-left: 0; }
  .ocr-stat:nth-child(n + 3) { border-top: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 640px) {
  .ocr-section,
  .gp-section,
  .cmd-section { padding: 120px 0 100px; }
  .ocr-scan-frame { height: 300px; }
  .ocr-layer-copy { padding: 0 7%; gap: 10px; }
  .ocr-text-line { gap: 10px; }
  .ocr-stat { padding: 18px; }
  .ocr-stat strong { font-size: 24px; }
  .gp-device { padding: 20px 24px 0 34px; }
  .gp-phone { width: 230px; height: 474px; border-radius: 44px; --gp-persp: 1200px; --gp-rx: 10deg; --gp-ry: 18deg; --gp-rz: -6deg; }
  .gp-phone-screen { border-radius: 36px; }
  .gp-phone-time { font-size: 54px; }
  .gp-timeline { padding: 20px 18px 18px; }
  .gp-step { grid-template-columns: 16px 52px minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-steps::after,
  .gp-notif--new,
  .gp-chip,
  .gp-phone,
  .gp-device::before,
  .ocr-beam-handle { transition: none !important; animation: none !important; }
}

.v3-guilds {
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.03);
}

.v3-guild {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v3-guild--active {
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

.v3-guild-indicator {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: all 0.3s var(--apple-ease);
}

.v3-guild--active .v3-guild-indicator {
  opacity: 1;
  height: 40px;
}

.v3-left {
  background: rgba(7, 7, 9, 0.3);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v3-search-bar {
  padding: 12px;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.v3-search-input {
  width: 100%;
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  color: #666;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.v3-nav-list {
  padding: 12px 8px;
  flex: 1;
}

.v3-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.v3-nav-item--active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.v3-dm-header {
  padding: 18px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.v3-dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1d;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.v3-dm-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #f04747;
  border: 2px solid #000;
  border-radius: 50%;
}

.v3-dm-avatar--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
}

.v3-dm-avatar--logo::after {
  display: none;
}

.v3-dm-avatar--logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.v3-dm-avatar--self img {
  width: 28px;
  height: 28px;
}

.v3-presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f04747;
  border: 2px solid #050507;
}

.v3-main {
  background: rgba(12, 12, 16, 0.2);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.03);
}

.v3-chat-header {
  height: auto;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: rgba(0, 0, 0, 0.1);
}

.v3-mobile-header,
.v3-mobile-input {
  display: none;
}

.v3-desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
}

.v3-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}

.v3-chat-actions {
  display: flex;
  gap: 16px;
  color: #aaa;
}

.v3-messages {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.05);
}

.v3-message {
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.v3-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1d;
  flex-shrink: 0;
  box-shadow: none;
}

.v3-msg-content {
  flex: 1;
}

.v3-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.v3-msg-author {
  font-weight: 700;
  color: #fff;
}

.v3-msg-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.v3-skeleton {
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  width: 100%;
  margin-bottom: 8px;
}

.v3-skeleton--short { width: 40%; }
.v3-skeleton--mid { width: 70%; }

.v3-input-area {
  padding: 0 16px 24px;
}

.v3-desktop-input {
  display: block;
}

.v3-input-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  font-size: 14px;
}

.v3-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.v3-button:hover {
  background: #4752c4;
}

.v3-button.active {
  background: #3ba55c;
  box-shadow: 0 4px 12px rgba(59, 165, 92, 0.3);
}

.v3-right {
  background: rgba(7, 7, 9, 0.4);
  display: flex;
  flex-direction: column;
}

.v3-profile-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--accent), #ff8080);
}

.v3-profile-avatar-wrap {
  margin-top: -45px;
  margin-left: 16px;
  margin-bottom: 12px;
}

.v3-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #070709;
  border: 6px solid #070709;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.v3-profile-info {
  background: rgba(0, 0, 0, 0.4);
  margin: 0 16px;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.v3-profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.v3-profile-tag {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.v3-profile-sep {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 12px 0;
}

.v3-profile-section {
  margin-bottom: 12px;
}

.v3-profile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.v3-profile-value {
  font-size: 13px;
  color: #ccc;
}

.v3-user-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.v3-caption-wrap {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: left;
  width: 100%;
  perspective: 1000px;
  padding: 0 32px;
}

.v3-caption-shell {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 77, 77, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 46px rgba(255, 77, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: calc(var(--showcase-visibility) * (0.18 + var(--showcase-entry) * 0.82));
  transform: translateY(calc((0.5 - var(--showcase-progress)) * 18px + (1 - var(--showcase-entry)) * 34px));
  transition:
    opacity 760ms var(--apple-ease),
    transform 900ms var(--apple-ease),
    border-color 420ms var(--apple-ease),
    box-shadow 420ms var(--apple-ease);
}

.v3-caption-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 26%, transparent 72%, rgba(255, 77, 77, 0.10));
  opacity: 0.5;
  pointer-events: none;
}

.v3-caption-meta,
.v3-caption-steps,
.v3-caption {
  position: relative;
  z-index: 1;
}

.v3-caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.v3-caption-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.v3-caption-meta-note {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.v3-menu-item-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.v3-caption-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 18px rgba(255, 77, 77, 0.45);
}

.v3-caption-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.v3-caption-step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transition: background 220ms var(--apple-ease), transform 220ms var(--apple-ease), box-shadow 220ms var(--apple-ease);
}

.v3-caption-step.is-active {
  background: linear-gradient(90deg, rgba(255, 111, 111, 0.88), rgba(255, 45, 85, 0.92));
  box-shadow: 0 0 16px rgba(255, 77, 77, 0.35);
  transform: scaleY(1.2);
}

.v3-caption {
  display: block;
  max-width: 100%;
  background: rgba(12, 13, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.22);
  letter-spacing: -0.02em;
  min-height: 118px;
}

.v3-caption.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.v3-caption-stage {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ff9d9d;
  margin-bottom: 10px;
  font-weight: 800;
}

.v3-caption-text {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.14;
  text-wrap: balance;
}

.v3-button-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 16px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v3-button-discord:hover {
  background: #ff4d4d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.v3-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

.v3-mouse {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.1s ease;
  background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.65376 12.3673H5.46026L5.31717 12.4976L0.500002 16.8829L0.500002 1.19841L11.7841 12.3673H5.65376Z' fill='white' stroke='black'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  transform-origin: 2px 2px;
}

.v3-mouse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.v3-mouse.clicking::after {
  opacity: 1;
  animation: cursorClickRipple 0.4s ease-out forwards;
}

@keyframes cursorClickRipple {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.v3-menu {
  position: absolute;
  background: rgba(9, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 77, 77, 0.18);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.8),
    0 0 38px rgba(255, 77, 77, 0.12),
    0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500;
}

.v3-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(220px 120px at 20% 0%, rgba(255, 77, 77, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%);
}

.v3-menu--context {
  width: 224px;
}

.v3-menu--apps {
  width: 204px;
}

.v3-menu--axus {
  width: 188px;
}

.v3-menu.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.v3-menu-reactions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.v3-menu-reactions span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-size: 18px;
}

.v3-menu-search {
  position: relative;
  z-index: 1;
  height: 32px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 77, 77, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
}

.v3-menu-search::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow: 5px 5px 0 -4px rgba(255, 255, 255, 0.62);
}

.v3-menu-title {
  position: relative;
  z-index: 1;
  padding: 10px 8px 8px;
  color: rgba(255, 128, 128, 0.72);
  font-size: 12px;
}

.v3-menu-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 7px 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.v3-menu-item:hover,
.v3-menu-item.is-hovered {
  background: rgba(255, 77, 77, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.18);
  color: #fff;
}

.v3-menu-item.accent {
  color: rgba(255, 255, 255, 0.92);
}

.v3-menu-item.accent:hover,
.v3-menu-item.accent.is-hovered {
  background: rgba(255, 77, 77, 0.24);
  color: #fff;
}

.v3-menu-item.is-clicked {
  background: rgba(255, 77, 77, 0.28);
  transform: scale(0.98);
}

.v3-menu-item--danger {
  color: #ff6f6f;
}

/* Neutral icons like Discord's menus; they light up with the row on hover. */
.v3-menu-icon,
.v3-menu-arrow,
.v3-menu-chip {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
  transition: color 0.2s ease;
}

.v3-menu-icon,
.v3-menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 12px;
}

.v3-menu-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.v3-menu-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.v3-menu-item:hover .v3-menu-icon,
.v3-menu-item:hover .v3-menu-arrow,
.v3-menu-item.is-hovered .v3-menu-icon,
.v3-menu-item.is-hovered .v3-menu-arrow { color: #fff; }

.v3-menu-item--danger .v3-menu-icon,
.v3-menu-item--danger:hover .v3-menu-icon { color: currentColor; }

.v3-menu-item--danger .v3-menu-icon,
.v3-menu-item--danger .v3-menu-arrow {
  color: currentColor;
}

.v3-menu-chip {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: none;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.v3-menu-app-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.v3-menu-sep {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 77, 77, 0.12), rgba(255, 255, 255, 0.06), transparent);
  margin: 6px 4px;
}

#translate-target {
  border-radius: 8px;
  transition: background 220ms ease, box-shadow 220ms ease;
}

#translate-target.is-context-target {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.feature-card,
.customcmd-card,
.dual-card,
.hiw-step,
.cta-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.feature-card.is-tilting,
.customcmd-card.is-tilting,
.dual-card.is-tilting,
.hiw-step.is-tilting,
.cta-card.is-tilting {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

@media (max-width: 900px) {

  .features-grid,
  .commands-grid,
  .dual-showcase-grid,
  .customcmd-grid {
    grid-template-columns: 1fr;
  }

  .growth-container {
    padding: 24px 16px 20px;
  }
  .chart-y-labels { min-width: 28px; }
  .chart-svg-wrap { height: 200px; }
  .chart-x-labels { padding-left: 33px; margin-bottom: 16px; }
  .growth-stats-row { flex-direction: column; gap: 20px; padding-top: 24px; }
  .g-stat-divider { width: 60px; height: 1px; }
  .g-stat-val { font-size: 28px; }


  .footer-watermark {
    width: 210px;
    height: 210px;
    right: -55px;
    bottom: -45px;
  }
}

/* ============================================================
   HERO V2 — interactive centered hero
   ============================================================ */

.hero {
  overflow: visible;
  min-height: 100vh;
  padding: 150px 0 120px;
  isolation: isolate;
}

.hero::before { display: none; }

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8vh;
  height: 24vh;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(84% 110% at 50% 10%, rgba(255, 77, 77, 0.07), transparent 54%),
    linear-gradient(180deg, rgba(6, 7, 11, 0) 0%, rgba(6, 7, 11, 0.12) 34%, rgba(6, 7, 11, 0.52) 72%, #06070b 100%);
  filter: blur(26px);
  transform: translateY(12%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
}

.hero > .container {
  position: relative;
  z-index: 2;
}

/* ---- Backdrop layers ---- */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.88) 75%, rgba(0, 0, 0, 0.66) 81%, rgba(0, 0, 0, 0.40) 87%, rgba(0, 0, 0, 0.16) 93%, rgba(0, 0, 0, 0.04) 97%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.88) 75%, rgba(0, 0, 0, 0.66) 81%, rgba(0, 0, 0, 0.40) 87%, rgba(0, 0, 0, 0.16) 93%, rgba(0, 0, 0, 0.04) 97%, transparent 100%);
}

.hero-aurora {
  position: absolute;
  inset: -22% -12% -14%;
  background:
    radial-gradient(44% 40% at 24% 64%, rgba(255, 77, 77, 0.30), transparent 68%),
    radial-gradient(38% 36% at 78% 38%, rgba(255, 45, 85, 0.22), transparent 70%),
    radial-gradient(36% 38% at 58% 84%, rgba(87, 100, 230, 0.16), transparent 72%);
  filter: blur(34px);
  animation: heroAuroraDrift 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes heroAuroraDrift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1);      opacity: 0.85; }
  50%  { transform: translate3d(1%, -2.5%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(3%, 2%, 0) scale(1.09);   opacity: 0.9; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 78%);
  opacity: 0.55;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 38%),
    rgba(255, 77, 77, 0.20),
    transparent 62%
  );
  mix-blend-mode: screen;
}

/* ---- Floating command pills ---- */
.hero-floaties {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-floaty {
  position: absolute;
  left: var(--fx, 10%);
  top: var(--fy, 30%);
  transform: translate3d(
    calc(var(--px, 0) * var(--d, 1) * -26px),
    calc(var(--py, 0) * var(--d, 1) * -26px),
    0
  );
  will-change: transform;
}

.hero-floaty-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 14px 34px -16px rgba(0, 0, 0, 0.8),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  animation:
    heroPillIn 900ms var(--apple-ease) both,
    heroPillBob 6.4s ease-in-out infinite;
  animation-delay: var(--fd, 0.7s), 0s;
}

.hero-floaty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes heroPillIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroPillBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---- Badge ---- */
.hero-badge {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255, 77, 77, 0.06),
    0 12px 32px -16px rgba(255, 77, 77, 0.55);
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: heroBadgeShine 5.2s ease-in-out infinite;
}

@keyframes heroBadgeShine {
  0%, 70%   { left: -60%; }
  86%, 100% { left: 130%; }
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.18);
  animation: heroDotPulse 2.4s ease-in-out infinite;
}

@keyframes heroDotPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}

/* ---- Headline ---- */
.hero-headline {
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  perspective: 900px;
  text-wrap: balance;
}

.hero-line {
  display: block;
}

.hero-word {
  display: inline-block;
  animation: heroWordUp 1000ms var(--apple-ease) both;
  animation-delay: calc(200ms + var(--wi, 0) * 130ms);
  will-change: transform, opacity, filter;
}

@keyframes heroWordUp {
  0%   { opacity: 0; transform: translate3d(0, 0.5em, 0) rotateX(-42deg); filter: blur(10px); }
  100% { opacity: 1; transform: none;                                     filter: blur(0); }
}

.hero-line-2 {
  background: linear-gradient(100deg, #ff8a8a 0%, #ff4d4d 26%, #ff2d55 52%, #d40000 74%, #ff6b6b 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    heroWordUpGlow 1000ms var(--apple-ease) both,
    heroGradientPan 8s linear infinite;
  animation-delay: 460ms, 0s;
}

@keyframes heroWordUpGlow {
  0%   { opacity: 0; transform: translate3d(0, 0.5em, 0) rotateX(-42deg); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 10px 46px rgba(255, 77, 77, 0.4)); }
}

@keyframes heroGradientPan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---- Subtitle + typing caret ---- */
.hero-subtitle {
  max-width: 640px;
  display: grid;
}

/* typed text and invisible copies of every phrase share one cell, so the box
   always reserves the tallest phrase's height (see the typewriter in landing-animations.js) */
.hero-subtitle > span { grid-area: 1 / 1; }
.hero-subtitle-ghost { visibility: hidden; }

.hero-subtitle-typed::after,
.hero-subtitle-ghost::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  background: var(--accent);
  animation: heroCaret 1s steps(1) infinite;
}

@keyframes heroCaret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- CTA glow ---- */
.hero-cta {
  position: relative;
}

.hero-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 190px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 77, 77, 0.30), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
  animation: heroCtaPulse 4.4s ease-in-out infinite;
}

.hero-cta > * {
  position: relative;
  z-index: 1;
}

@keyframes heroCtaPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.95; }
}

/* ---- Metrics shine ---- */
.hero-metric {
  position: relative;
  overflow: hidden;
}

.hero-metric::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 720ms var(--apple-ease);
  pointer-events: none;
}

.hero-metric:hover::after {
  left: 130%;
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .hero-floaties { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 128px 0 96px; }
  .hero-grid { background-size: 48px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .hero-floaty-pill,
  .hero-badge::after,
  .hero-badge-dot,
  .hero-word,
  .hero-line-2,
  .hero-cta::before,
  .hero-subtitle-typed::after {
    animation: none !important;
  }

  .hero-word,
  .hero-line-2 {
    opacity: 1;
  }

  .command-card {
    transition: none !important;
  }

  .hero-line-2 {
    filter: drop-shadow(0 10px 46px rgba(255, 77, 77, 0.4));
  }
}

/* ===== Translate showcase: Discord mobile (≤900px) =====
 * The desktop scene (cursor + context menus + camera zoom) is swapped for the
 * phone flow: long-press → action sheet → Apps sheet → translated embed.
 * Driven by initTranslateShowcase() → renderMobileFlow() in landing-animations.js.
 */
.v3-sheet,
.v3-sheet-scrim,
.v3-touch { display: none; }

@media (max-width: 900px) {
  #showcase-translate .showcase-v3-sticky {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 74px 12px 14px;
    perspective: none;
  }

  #showcase-translate .showcase-v3-sticky::after { display: none; }

  #showcase-translate .v3-camera-rig {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: auto;
    transform:
      translate3d(0, calc((1 - var(--showcase-entry)) * 48px), 0)
      scale(calc(0.96 + var(--showcase-entry) * 0.04));
  }

  /* ---- Phone app frame ---- */
  #showcase-translate .v3-surface {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 760px;
    margin: 0 auto;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
      0 30px 70px -20px rgba(0, 0, 0, 0.85),
      0 0 60px -18px rgba(255, 77, 77, 0.38);
    filter: blur(calc((1 - var(--showcase-entry)) * 6px));
    clip-path: inset(calc((1 - var(--showcase-entry)) * 14%) 0 0 0 round 26px);
    /* JS already eases these every frame; CSS transitions on top restart each
       frame and on mobile can keep the panel stuck faded out while scrolling. */
    transition: none;
  }

  #showcase-translate .v3-caption-shell,
  #showcase-translate .v3-caption-wrap {
    transition: none;
  }

  #showcase-translate .v3-surface::after { border-radius: 25px; }

  #showcase-translate .v3-guilds,
  #showcase-translate .v3-left,
  #showcase-translate .v3-right,
  #showcase-translate .v3-desktop-header,
  #showcase-translate .v3-desktop-input,
  #showcase-translate .v3-menu,
  #showcase-translate .v3-mouse { display: none; }

  #showcase-translate .v3-main {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    background: #000;
  }

  /* ---- Header ---- */
  #showcase-translate .v3-chat-header {
    min-height: 0;
    flex-shrink: 0;
    background: #0a0a0c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #showcase-translate .v3-mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 14px;
  }

  .v3-mobile-back { flex-shrink: 0; color: #fff; opacity: 0.85; }
  .v3-mobile-avatar { position: relative; flex-shrink: 0; width: 30px; height: 30px; }
  .v3-mobile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
  .v3-mobile-avatar .v3-presence-dot { border-color: #0a0a0c; }
  .v3-mobile-chat-info { flex: 1; min-width: 0; }
  .v3-mobile-chat-name {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }
  .v3-mobile-chat-name svg { opacity: 0.55; }
  .v3-mobile-actions { display: flex; gap: 16px; color: #fff; opacity: 0.8; }
  .v3-mobile-actions svg { width: 21px; height: 21px; }

  /* ---- Messages: anchored to the bottom like a real chat ---- */
  #showcase-translate .v3-messages {
    flex: 1;
    min-height: 0;
    justify-content: flex-end;
    gap: 14px;
    padding: 14px 14px 12px;
    overflow: hidden;
    background: #000;
  }

  #showcase-translate .v3-messages > div:first-child { margin: 4px 0 !important; }

  #showcase-translate .v3-message {
    gap: 12px;
    margin: -6px;
    padding: 6px;
    border-radius: 12px;
  }

  #showcase-translate .v3-avatar { width: 38px; height: 38px; }
  #showcase-translate .v3-msg-meta { margin-bottom: 4px; }
  #showcase-translate .v3-msg-author { font-size: 15px; }
  #showcase-translate .v3-msg-time { font-size: 10.5px; }
  #showcase-translate #translate-message-text { font-size: 14.5px !important; line-height: 1.4; }
  #showcase-translate .v3-skeleton { height: 10px; margin-bottom: 6px; }

  #showcase-translate #translate-target.is-context-target {
    background: rgba(255, 77, 77, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.22);
  }

  /* ---- Composer ---- */
  #showcase-translate .v3-input-area { flex-shrink: 0; padding: 0; }

  #showcase-translate .v3-mobile-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 14px;
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .v3-mobile-input-plus,
  .v3-mobile-input-apps,
  .v3-mobile-input-gift,
  .v3-mobile-input-emoji,
  .v3-mobile-input-mic {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #b5bac1;
    background: #1e1f22;
  }

  .v3-mobile-input-plus svg,
  .v3-mobile-input-apps svg,
  .v3-mobile-input-gift svg,
  .v3-mobile-input-emoji svg,
  .v3-mobile-input-mic svg { width: 19px; height: 19px; }

  /* Discord mobile shows emoji inside the field and hides gift/apps on narrow screens */
  .v3-mobile-input-apps,
  .v3-mobile-input-emoji { display: none; }

  .v3-mobile-input-box {
    flex: 1;
    min-width: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: #1e1f22;
    color: #949ba4;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ---- Long-press finger ---- */
  .v3-touch {
    --hold: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 30;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 26%, rgba(255, 255, 255, 0.22) 28% 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 8px 22px rgba(0, 0, 0, 0.55);
    transition: opacity 0.2s ease;
  }

  /* fills while the finger holds — the long-press */
  .v3-touch::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--hold) * 360deg), transparent 0);
    -webkit-mask: radial-gradient(circle, transparent 61%, #000 63%);
    mask: radial-gradient(circle, transparent 61%, #000 63%);
    filter: drop-shadow(0 0 6px rgba(255, 77, 77, 0.8));
  }

  /* ---- Bottom sheets ---- */
  .v3-sheet-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .v3-sheet-scrim.is-open { opacity: 1; }

  .v3-sheet {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    max-height: 88%;
    padding: 8px 12px 14px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: rgba(12, 12, 16, 0.98);
    border-top: 1px solid rgba(255, 77, 77, 0.22);
    box-shadow: 0 -24px 50px rgba(0, 0, 0, 0.6), 0 -2px 40px rgba(255, 77, 77, 0.08);
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .v3-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(260px 140px at 20% 0%, rgba(255, 77, 77, 0.14), transparent 70%);
  }

  .v3-sheet > * { position: relative; }
  .v3-sheet.is-open { transform: translateY(0); }

  .v3-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
  }

  .v3-sheet-reactions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .v3-sheet-reactions span {
    flex: 1;
    max-width: 52px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    font-size: 20px;
    line-height: 1;
  }

  .v3-sheet-add { color: rgba(255, 255, 255, 0.7); }
  .v3-sheet-add svg { width: 22px; height: 22px; }

  .v3-sheet-group {
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
  }
  .v3-sheet-group:last-child { margin-bottom: 0; }

  .v3-sheet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .v3-sheet-item + .v3-sheet-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .v3-sheet-item > svg { flex-shrink: 0; width: 19px; height: 19px; color: rgba(255, 255, 255, 0.62); }
  .v3-sheet-item.is-pressed > svg { color: #fff; }
  .v3-sheet-item--danger { color: #ff6f6f; }
  .v3-sheet-item--danger > svg { color: currentColor; }

  .v3-sheet-chev { margin-left: auto; display: inline-flex; color: rgba(255, 255, 255, 0.35); }
  .v3-sheet-chev svg { width: 16px; height: 16px; }

  .v3-sheet-item.is-pressed {
    color: #fff;
    background: rgba(255, 77, 77, 0.2);
  }

  .v3-sheet-title {
    margin: 0 4px 12px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
  }

  .v3-sheet-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-bottom: 14px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
  }

  .v3-sheet-search::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    box-shadow: 5px 5px 0 -4px rgba(255, 255, 255, 0.55);
  }

  .v3-sheet-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 128, 128, 0.78);
  }

  .v3-sheet-app {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #050507;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .v3-sheet-cmd-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .v3-sheet-cmd-copy b { font-size: 14.5px; font-weight: 700; color: inherit; }
  .v3-sheet-cmd-copy small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ---- Guided caption: its own card under the phone ---- */
  #showcase-translate .v3-caption-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    transform: none;
    perspective: none;
  }

  #showcase-translate .v3-caption-shell {
    width: 100%;
    padding: 13px 15px 14px;
    border-radius: 20px;
    transform: translateY(calc((1 - var(--showcase-entry)) * 20px));
  }

  #showcase-translate .v3-caption-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  #showcase-translate .v3-caption-kicker { font-size: 10px; letter-spacing: 0.14em; }
  #showcase-translate .v3-caption-meta-note { font-size: 9px; letter-spacing: 0.14em; }
  #showcase-translate .v3-caption-steps { gap: 5px; margin-bottom: 11px; }
  #showcase-translate .v3-caption-step { height: 3px; }

  #showcase-translate .v3-caption {
    min-height: 60px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 17px;
    transform: translateY(10px);
  }

  #showcase-translate .v3-caption.active { transform: none; }
  #showcase-translate .v3-caption-stage { margin-bottom: 6px; font-size: 10px; letter-spacing: 0.16em; }
  #showcase-translate .v3-caption-text { line-height: 1.25; }
}

/* Short phones: tighten everything so the phone frame keeps room for the chat */
@media (max-width: 900px) and (max-height: 720px) {
  #showcase-translate .showcase-v3-sticky { gap: 10px; padding: 68px 10px 10px; }
  #showcase-translate .v3-caption-shell { padding: 11px 13px 12px; }
  #showcase-translate .v3-caption-meta { display: none; }
  #showcase-translate .v3-caption { min-height: 48px; font-size: 15px; }
  .v3-sheet-item { padding: 10px 14px; }
  .v3-sheet-reactions { margin-bottom: 10px; }
  .v3-sheet-group { margin-bottom: 8px; }
}

/* Small phones (e.g. iPhone SE) */
@media (max-width: 380px) {
  .v3-mobile-actions { gap: 12px; }
  .v3-mobile-actions svg:nth-child(2) { display: none; }
  .v3-sheet-item { font-size: 14px; }
  .v3-mobile-input-gift { display: none; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .v3-sheet,
  .v3-sheet-scrim,
  .v3-touch { transition: none; }
}

/* Logged-in header on phones: avatar chip + compact dashboard button must fit */
@media (max-width: 520px) {
  .nav-user-name { display: none; }
  .nav-dashboard-btn { padding: 9px 12px; font-size: 13px; }
}


/* ===== Notifications (same look as the dashboard's, see styles.css) ===== */
.tx-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

/* the wrapper collapses its row when a toast leaves, so the rest glide down */
.tx-wrap {
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  animation: txRowIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
}
.tx-wrap.is-leaving { grid-template-rows: 0fr; }

.tx {
  --tx-tone: #ff4d4d;
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: start;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 12px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%),
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tx-tone) 16%, transparent), transparent 55%),
    rgba(18, 12, 13, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 18px 40px -16px rgba(0, 0, 0, 0.7),
    0 0 0 0.5px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f3eded;
  pointer-events: auto;
  animation: txIn 0.62s cubic-bezier(0.22, 1.25, 0.36, 1) both;
}
.tx--success { --tx-tone: #34d399; }
.tx--error   { --tx-tone: #ff4d4d; animation: txIn 0.62s cubic-bezier(0.22, 1.25, 0.36, 1) both, txNudge 0.42s ease 0.5s; }
.tx--info    { --tx-tone: #8ab4ff; }

.tx-wrap.is-leaving .tx { animation: txOut 0.34s cubic-bezier(0.4, 0, 1, 1) both; }

.tx-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tx-tone) 92%, #fff), var(--tx-tone));
  box-shadow: 0 6px 16px -6px var(--tx-tone), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: txPop 0.5s cubic-bezier(0.34, 1.7, 0.64, 1) 0.12s both;
}
/* ripple ring behind the icon on arrival */
.tx-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid var(--tx-tone);
  opacity: 0;
  animation: txRing 0.9s ease-out 0.2s;
}
.tx-icon svg { animation: txDraw 0.45s ease 0.3s both; stroke-dasharray: 30; }

.tx-body { display: grid; gap: 2px; padding-top: 1px; }
.tx-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.tx-msg { font-size: 12.5px; line-height: 1.45; color: rgba(243, 237, 237, 0.72); overflow-wrap: anywhere; }

.tx-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -4px -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tx-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tx-close:focus-visible { outline: 2px solid var(--tx-tone); outline-offset: 1px; }

.tx-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tx-tone) 60%, transparent), var(--tx-tone));
  transform-origin: left center;
  animation: txCountdown var(--tx-duration, 4000ms) linear forwards;
}
.tx.is-paused .tx-progress { animation-play-state: paused; }

@keyframes txRowIn { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes txIn {
  from { opacity: 0; transform: translateX(46px) scale(0.92); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes txOut {
  to { opacity: 0; transform: translateX(60px) scale(0.94); filter: blur(4px); }
}
@keyframes txPop { from { transform: scale(0.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes txRing { 0% { opacity: 0.7; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes txDraw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes txCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes txNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* phones: the purchase modal is a bottom sheet, so toasts drop in from the top instead */
@media (max-width: 640px) {
  .tx-stack { top: calc(12px + env(safe-area-inset-top)); right: 12px; left: 12px; bottom: auto; width: auto; align-items: stretch; flex-direction: column-reverse; }
  .tx { margin: 0 0 10px; }
  @keyframes txIn { from { opacity: 0; transform: translateY(-30px) scale(0.95); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes txOut { to { opacity: 0; transform: translateY(-24px) scale(0.95); } }
}

@media (prefers-reduced-motion: reduce) {
  .tx, .tx-wrap, .tx-icon, .tx-icon svg, .tx-icon::after { animation: none !important; transition: none !important; }
  .tx-progress { animation-duration: var(--tx-duration, 4000ms); }
}
