:root {
  --bg: #0a0a0e;
  --bg-raised: #121218;
  --stage-bg: #050507;
  --ink: #e9e9f0;
  --ink-dim: #8a8a99;
  --cyan: #00e5ff;
  --magenta: #ff2e9a;
  --amber: #ffb300;
  --lime: #7dff5c;
  --line: #24242e;
  --radius: 10px;
  --font-display: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.6;
}

/* ---------- Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10,10,14,0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}
.logo-mark-accent { color: var(--cyan); }
.vip-counter {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
}

/* ---------- Stage (DVD screen) ---------- */
.stage-section {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 20px;
  text-align: center;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  margin: 0 auto;
  background: var(--stage-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 20px 60px rgba(0,0,0,0.5);
}

.dvd-logo {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 40px);
  color: var(--cyan);
  padding: 6px 14px;
  border: 3px solid currentColor;
  border-radius: 6px;
  user-select: none;
  will-change: transform;
  transition: color 0.15s ease;
}

.corner-flash {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
}
.corner-flash.flashing {
  animation: flash-pop 0.5s ease-out;
}
@keyframes flash-pop {
  0%   { opacity: 0; transform: scale(0.3); }
  30%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.hit-counter-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 6px;
}

.stage-caption { margin-top: 28px; }
.stage-caption h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 30px);
  margin: 0 0 10px;
}
.status-line {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 15px;
}
.status-line strong { color: var(--ink); }

.btn-hit {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #06060a;
  background: var(--lime);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-hit:hover { filter: brightness(1.08); }
.btn-hit:active { transform: scale(0.97); }
.btn-hit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Plans ---------- */
.plans-section {
  max-width: 1000px;
  margin: 88px auto 0;
  padding: 0 20px;
  text-align: center;
}
.plans-section h2, .wall-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 8px;
}
.section-sub {
  color: var(--ink-dim);
  margin: 0 0 36px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
@media (max-width: 760px) {
  .plans-grid { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.plan-card--featured { border-color: var(--cyan); }
.plan-card--vip { border-color: var(--amber); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  background: var(--cyan);
  color: #06060a;
  padding: 3px 10px;
  border-radius: 5px;
}
.plan-badge--vip { background: var(--amber); }

.plan-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 6px 0 4px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}
.plan-price span {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 400;
}
.plan-desc {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0 0 16px;
  min-height: 40px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink);
  flex-grow: 1;
}
.plan-features li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: none; }

.btn-buy {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-dim);
  padding: 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.plan-card--featured .btn-buy { border-color: var(--cyan); color: var(--cyan); }
.plan-card--vip .btn-buy { border-color: var(--amber); color: var(--amber); }
.btn-buy:hover { background: rgba(255,255,255,0.06); }
.btn-buy:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Wall of comments ---------- */
.wall-section {
  max-width: 700px;
  margin: 88px auto 0;
  padding: 0 20px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.comment-form input, .comment-form textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.comment-form button {
  align-self: flex-end;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #06060a;
  background: var(--cyan);
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
}

.comment-locked {
  color: var(--ink-dim);
  font-size: 14px;
  border: 1px dashed var(--line);
  padding: 14px;
  border-radius: 7px;
  text-align: center;
  margin-bottom: 28px;
}

.wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wall-empty {
  color: var(--ink-dim);
  font-size: 14px;
  text-align: center;
}
.wall-item {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 14px;
}
.wall-item.plan-pro { border-left-color: var(--cyan); }
.wall-item.plan-basic { border-left-color: var(--ink-dim); }
.wall-item.plan-vip { border-left-color: var(--amber); }
.wall-item-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.wall-item-name { color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  padding: 60px 20px 40px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5,5,7,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.modal-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  max-width: 320px;
}
.modal-box h3 { margin: 0 0 8px; font-family: var(--font-display); }
.modal-box p { color: var(--ink-dim); font-size: 14px; margin: 0 0 18px; }
.modal-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.error { border-color: var(--magenta); color: var(--magenta); }
.toast.success { border-color: var(--lime); color: var(--lime); }
