:root {
  --bg: #08051a;
  --bg-2: #110e24;
  --panel: rgba(18, 14, 38, 0.92);
  --panel-solid: #15112e;
  --line: rgba(157, 78, 221, 0.18);
  --text: #f0eaff;
  --muted: #9e93b8;
  --primary: #a855f7;
  --primary-2: #7c3aed;
  --primary-glow: rgba(168, 85, 247, 0.35);
  --accent: #c084fc;
  --amber: #fbbf24;
  --red: #f87171;
  --cyan: #67e8f9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(168, 85, 247, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(103, 232, 249, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button, input, select {
  font: inherit;
}

/* ═══ HEADER ═══ */
.site-header {
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.6);
  background: rgba(8, 5, 26, 0.72);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.top-nav,
.hero-actions,
.status-grid,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 18px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: -0.01em;
}

.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 10px;
  color: #fff;
  display: grid;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  height: 38px;
  place-items: center;
  width: 38px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.top-nav {
  gap: 28px;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}

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

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav a:hover::after {
  width: 100%;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  display: none;
  height: 42px;
  position: relative;
  width: 42px;
}

.menu-button span {
  background: var(--text);
  display: block;
  height: 2px;
  left: 10px;
  position: absolute;
  right: 10px;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-button span:first-child { top: 15px; }
.menu-button span:last-child { bottom: 15px; }

/* ═══ HERO ═══ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(46px, 8vw, 112px) clamp(18px, 5vw, 72px) 72px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
  animation: hero-pulse 6s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero-scene {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.sky-grid {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  inset: 0;
  mask-image: linear-gradient(180deg, black 0%, transparent 74%);
  position: absolute;
}

.floating-block {
  animation: drift 6s ease-in-out infinite;
  border: 2px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
  height: 72px;
  image-rendering: pixelated;
  position: absolute;
  width: 72px;
}

.block-a {
  background: linear-gradient(135deg, #7c3aed 0 40%, #a855f7 40% 70%, #c084fc 70%);
  right: 23%;
  top: 19%;
}

.block-b {
  animation-delay: -2s;
  background: linear-gradient(135deg, #6366f1 0 50%, #818cf8 50%);
  right: 9%;
  top: 43%;
}

.block-c {
  animation-delay: -4s;
  background: linear-gradient(135deg, #8b5cf6 0 50%, #a78bfa 50%);
  left: 12%;
  top: 18%;
}

/* Crying Obsidian blocks */
.block-obsidian {
  animation-delay: -1s;
  background:
    radial-gradient(circle at 30% 25%, rgba(168, 85, 247, 0.6) 0 3px, transparent 4px),
    radial-gradient(circle at 65% 60%, rgba(192, 132, 252, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.7) 0 2px, transparent 3px),
    linear-gradient(135deg, #1a0a2e 0 50%, #0d0520 50%);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(168, 85, 247, 0.25);
  left: 6%;
  top: 55%;
  height: 60px;
  width: 60px;
}

.block-obsidian-2 {
  animation-delay: -3.5s;
  background:
    radial-gradient(circle at 40% 30%, rgba(192, 132, 252, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.5) 0 3px, transparent 4px),
    linear-gradient(135deg, #150826 0 50%, #0a0318 50%);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.2);
  right: 5%;
  top: 25%;
  height: 54px;
  width: 54px;
}

/* Crying obsidian tears - falling purple drops */
.obsidian-tears {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.obsidian-tears span {
  position: absolute;
  width: 3px;
  height: 8px;
  background: linear-gradient(to bottom, rgba(168, 85, 247, 0.8), rgba(192, 132, 252, 0.3));
  border-radius: 50% 50% 50% 50% / 20% 20% 80% 80%;
  animation: tearsFall 2.5s infinite linear;
}

/* XP Orbs */
.xp-orbs {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}
.xp-orbs span {
  position: absolute;
  width: 10px; height: 10px;
  background: #a3ff00;
  border-radius: 50%;
  box-shadow: 0 0 10px #a3ff00, 0 0 20px #a3ff00;
  animation: floatXp 8s infinite ease-in-out;
}
.xp-orbs span:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s; }
.xp-orbs span:nth-child(2) { left: 85%; top: 70%; animation-delay: -2s; }
.xp-orbs span:nth-child(3) { left: 45%; top: 90%; animation-delay: -4s; }
.xp-orbs span:nth-child(4) { left: 70%; top: 60%; animation-delay: -1s; }
.xp-orbs span:nth-child(5) { left: 25%; top: 40%; animation-delay: -5s; }
.xp-orbs span:nth-child(6) { left: 55%; top: 30%; animation-delay: -3s; }

@keyframes floatXp {
  0%, 100% { transform: translateY(0) scale(1); filter: hue-rotate(0deg); }
  50% { transform: translateY(-60px) scale(1.3); filter: hue-rotate(60deg); }
}

  box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

.obsidian-tears span:nth-child(1) { left: 8%; animation-duration: 4s; animation-delay: 0s; }
.obsidian-tears span:nth-child(2) { left: 18%; animation-duration: 3.5s; animation-delay: -1.2s; }
.obsidian-tears span:nth-child(3) { left: 35%; animation-duration: 5s; animation-delay: -2s; }
.obsidian-tears span:nth-child(4) { left: 52%; animation-duration: 4.2s; animation-delay: -0.5s; }
.obsidian-tears span:nth-child(5) { left: 65%; animation-duration: 3.8s; animation-delay: -3s; }
.obsidian-tears span:nth-child(6) { left: 78%; animation-duration: 4.6s; animation-delay: -1.8s; }
.obsidian-tears span:nth-child(7) { left: 88%; animation-duration: 3.3s; animation-delay: -2.5s; }
.obsidian-tears span:nth-child(8) { left: 45%; animation-duration: 5.5s; animation-delay: -0.8s; }

@keyframes tear-fall {
  0% { top: -10px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Ender particles - floating upward */
.ender-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ender-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  animation: ender-float linear infinite;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
  opacity: 0;
}

.ender-particles span:nth-child(1)  { left: 5%;  bottom: 10%; animation-duration: 6s; animation-delay: 0s; }
.ender-particles span:nth-child(2)  { left: 15%; bottom: 5%;  animation-duration: 5s; animation-delay: -1s; width: 3px; height: 3px; }
.ender-particles span:nth-child(3)  { left: 25%; bottom: 15%; animation-duration: 7s; animation-delay: -2s; }
.ender-particles span:nth-child(4)  { left: 40%; bottom: 8%;  animation-duration: 5.5s; animation-delay: -0.5s; width: 3px; height: 3px; }
.ender-particles span:nth-child(5)  { left: 55%; bottom: 12%; animation-duration: 6.5s; animation-delay: -3s; }
.ender-particles span:nth-child(6)  { left: 68%; bottom: 6%;  animation-duration: 5.8s; animation-delay: -1.5s; width: 5px; height: 5px; }
.ender-particles span:nth-child(7)  { left: 78%; bottom: 18%; animation-duration: 7.5s; animation-delay: -2.5s; width: 3px; height: 3px; }
.ender-particles span:nth-child(8)  { left: 88%; bottom: 3%;  animation-duration: 6.2s; animation-delay: -4s; }
.ender-particles span:nth-child(9)  { left: 33%; bottom: 20%; animation-duration: 8s; animation-delay: -1s; width: 3px; height: 3px; }
.ender-particles span:nth-child(10) { left: 92%; bottom: 14%; animation-duration: 5.2s; animation-delay: -3.5s; }
.ender-particles span:nth-child(11) { left: 48%; bottom: 2%;  animation-duration: 6.8s; animation-delay: -2s; width: 5px; height: 5px; }
.ender-particles span:nth-child(12) { left: 72%; bottom: 10%; animation-duration: 7.2s; animation-delay: -0.8s; }

@keyframes ender-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translateY(-40vh) scale(0.6); opacity: 0.5; }
  100% { transform: translateY(-80vh) scale(0.2); opacity: 0; }
}

/* End Crystal */
.end-crystal {
  position: absolute;
  left: 28%;
  top: 35%;
  width: 32px;
  height: 32px;
  animation: crystal-bob 3s ease-in-out infinite;
}

.crystal-core {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c084fc, #e879f9, #a855f7);
  transform: rotate(45deg);
  border-radius: 4px;
  box-shadow: 
    0 0 20px rgba(232, 121, 249, 0.5),
    0 0 40px rgba(168, 85, 247, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  animation: crystal-glow 2s ease-in-out infinite alternate;
}

@keyframes crystal-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes crystal-glow {
  0% {
    box-shadow: 
      0 0 20px rgba(232, 121, 249, 0.5),
      0 0 40px rgba(168, 85, 247, 0.3),
      inset 0 0 15px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(232, 121, 249, 0.7),
      0 0 60px rgba(168, 85, 247, 0.5),
      0 0 80px rgba(192, 132, 252, 0.2),
      inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

.portal {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(37, 27, 80, 0.5), rgba(124, 58, 237, 0.35)),
    repeating-linear-gradient(0deg, rgba(168, 85, 247, 0.3) 0 8px, transparent 8px 16px);
  border: 8px solid rgba(17, 14, 36, 0.9);
  border-radius: 6px;
  bottom: 78px;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.3), inset 0 0 40px rgba(168, 85, 247, 0.1);
  display: flex;
  gap: 9px;
  height: 250px;
  justify-content: center;
  position: absolute;
  right: 12%;
  width: 176px;
}

.portal span {
  animation: pulse 1.4s ease-in-out infinite alternate;
  background: rgba(168, 85, 247, 0.5);
  border-radius: 3px;
  height: 74%;
  width: 15px;
}

.portal span:nth-child(2) {
  animation-delay: 0.2s;
  height: 88%;
}

.portal span:nth-child(3) {
  animation-delay: 0.35s;
}

.terrain {
  bottom: 0;
  height: 130px;
  left: 0;
  position: absolute;
  right: 0;
}

.terrain span { display: block; }

.grass {
  background: repeating-linear-gradient(90deg, #7c3aed 0 36px, #6d28d9 36px 72px);
  height: 24px;
}

.dirt {
  background:
    radial-gradient(circle at 20px 18px, rgba(168, 85, 247, 0.12) 0 4px, transparent 5px),
    repeating-linear-gradient(90deg, #2d1b69 0 44px, #231454 44px 88px);
  height: 58px;
}

.stone {
  background:
    radial-gradient(circle at 30px 20px, rgba(168, 85, 247, 0.08) 0 5px, transparent 6px),
    repeating-linear-gradient(90deg, #1a1040 0 52px, #14092f 52px 104px);
  height: 60px;
}

.hero-content,
.server-panel,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 780px;
}

.eyebrow {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #fff 0%, #c084fc 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  max-width: 720px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition: all 0.25s ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 32px var(--primary-glow);
  animation: btn-glow 3s ease-in-out infinite;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.45);
}

.primary-action:active {
  transform: scale(0.97);
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 8px 32px var(--primary-glow); }
  50% { box-shadow: 0 8px 48px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.2); }
}

.secondary-action {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--text);
}

.secondary-action:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

/* ═══ SERVER PANEL ═══ */
.server-panel {
  align-self: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  justify-self: end;
  padding: 24px;
  width: min(100%, 460px);
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-icon {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 16px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
}

.status-icon svg {
  width: 36px;
  height: 36px;
}

.status-info {
  flex: 1;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.status-titles h2 {
  font-size: 18px;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.status-titles p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.status-titles p span {
  color: #fff;
}

.ip-copy-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ip-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.ip-copy-btn svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.status-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.status-bar-fill {
  background: linear-gradient(90deg, #f97316, #fb923c);
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ═══ SECTIONS ═══ */
.section {
  margin: 0 auto;
  max-width: 1220px;
  padding: 82px clamp(18px, 4vw, 34px);
}

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

.feature,
.checkout,
.rules-grid article {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border-color: rgba(168, 85, 247, 0.3);
}

.feature {
  min-height: 214px;
  padding: 28px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  font-size: 24px;
}

.sword-icon::before { content: '⚔️'; }
.base-icon::before { content: '🏰'; }
.coin-icon::before { content: '💰'; }

.feature h2,
.rules-grid h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p,
.section-heading p,
.rules-grid p,
.checkout-note,
.flow-list {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow) {
  align-self: end;
  grid-column: 2;
  margin-bottom: 0;
}

.section-heading.compact {
  display: block;
  max-width: 690px;
}

/* ═══ SHOP ═══ */
.shop-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.shop-categories::-webkit-scrollbar {
  height: 4px;
}
.shop-categories::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.category-btn {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 24px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.category-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--text);
}

.category-btn.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.15));
  border-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.shop-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

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

.product-card {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 18px;
  min-height: 244px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.12);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3), 0 16px 48px rgba(168, 85, 247, 0.15);
}

.product-card.is-active::before {
  opacity: 1;
}

.product-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.product-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
}

.product-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-left: -4px;
}

/* ═══ CHECKOUT ═══ */
.checkout {
  align-self: start;
  padding: 28px;
  position: sticky;
  top: 92px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(145deg, rgba(168, 85, 247, 0.4), rgba(103, 232, 249, 0.2), rgba(251, 191, 36, 0.15)) border-box;
  border: 1px solid transparent;
}

.checkout h2 {
  font-size: 26px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.checkout form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

input, select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  color: var(--text);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.payment-methods {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.payment-methods legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.payment-method {
  align-items: center;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 66px;
  padding: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.payment-method:hover,
.payment-method.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.08);
}

.payment-method input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.payment-method b, .payment-method small { display: block; }
.payment-method b { font-size: 14px; margin-bottom: 3px; }
.payment-method small { color: var(--muted); font-size: 12px; line-height: 1.35; }

.method-icon {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  position: relative;
  width: 38px;
  font-size: 16px;
}

.method-fk {
  background-image: url('favicon.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.method-sbp::after {
  content: '⚡';
  font-size: 20px;
}

.checkout-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.checkout-total span { color: var(--muted); }

.checkout-total strong {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
}

.full-width { width: 100%; }

.checkout-note {
  font-size: 13px;
  margin-bottom: 0;
}

/* ═══ PAYMENT FLOW ═══ */
.payment-architecture {
  max-width: 1040px;
}

.flow-list {
  counter-reset: flow;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list li {
  align-items: center;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: 60px minmax(0, 1fr);
  min-height: 82px;
  padding: 16px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-list li:hover {
  transform: translateX(6px);
  border-color: rgba(168, 85, 247, 0.3);
}

.flow-list span {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 21px;
  font-weight: 900;
}

.flow-list b {
  overflow-wrap: anywhere;
}

.provider-note {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
  padding: 20px;
}

.provider-note strong {
  color: var(--accent);
}

/* ═══ RULES ═══ */
.rules-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-grid article {
  min-height: 180px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rules-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--text);
}

/* ═══ TOAST ═══ */
.toast {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 14px;
  bottom: 20px;
  box-shadow: 0 8px 32px var(--primary-glow);
  color: #fff;
  font-weight: 700;
  left: 50%;
  min-width: min(420px, calc(100vw - 36px));
  opacity: 0;
  padding: 16px 20px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 20px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ═══ ANIMATIONS ═══ */
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes pulse {
  from { opacity: 0.42; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature,
.product-card,
.flow-list li,
.rules-grid article,
.server-panel,
.checkout {
  animation: reveal-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature:nth-child(2),
.product-card:nth-child(2),
.flow-list li:nth-child(2),
.rules-grid article:nth-child(2) {
  animation-delay: 0.08s;
}

.feature:nth-child(3),
.product-card:nth-child(3),
.flow-list li:nth-child(3),
.rules-grid article:nth-child(3) {
  animation-delay: 0.16s;
}

.product-card:nth-child(4),
.flow-list li:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes card-select-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.04); }
  60%  { transform: scale(0.985); }
  100% { transform: scale(1); }
}

.product-card.card-bounce {
  animation: card-select-bounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
  .top-nav {
    background: rgba(8, 5, 26, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 10px 18px 18px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .top-nav.is-open { display: flex; }
  .top-nav a { min-height: 44px; width: 100%; }
  .menu-button { display: block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 150px;
  }

  .server-panel {
    justify-self: stretch;
    margin-top: 40px;
    width: 100%;
  }

  .portal { opacity: 0.45; right: 4%; }

  .section-intro,
  .shop-layout,
  .rules-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading p:not(.eyebrow) { grid-column: 1; }
  .checkout { position: static; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; }
  .top-nav { top: 64px; }
  .hero { padding-top: 54px; }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action, .secondary-action { width: 100%; }
  .products, .status-grid { grid-template-columns: 1fr; }
  .status-grid { display: grid; }

  .floating-block {
    height: 48px;
    width: 48px;
  }

  .shop-categories {
    gap: 6px;
  }
  
  .category-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ═══ PARTICLES BACKGROUND ═══ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(168, 85, 247, 0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(192, 132, 252, 0.3), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(103, 232, 249, 0.3), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(168, 85, 247, 0.35), transparent),
    radial-gradient(1px 1px at 50% 40%, rgba(192, 132, 252, 0.25), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(168, 85, 247, 0.3), transparent),
    radial-gradient(1px 1px at 95% 30%, rgba(103, 232, 249, 0.25), transparent),
    radial-gradient(1px 1px at 40% 90%, rgba(192, 132, 252, 0.2), transparent);
  pointer-events: none;
  z-index: 0;
  animation: stars-twinkle 8s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}
