:root {
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --neon: #00ff9d;
  --neon-soft: rgba(0, 255, 157, 0.5);
  --text: #e6e6e6;
  --secondary: #7a7a8c;
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-border: rgba(0, 255, 157, 0.12);
}

* {
  box-sizing: border-box;
  cursor: none;
}

html, body {
  cursor: none;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.text-neon { color: var(--neon); }
.text-white { color: #ffffff; }
.text-secondary { color: var(--secondary); }
.bg-neon { background-color: var(--neon); }

/* ===== Custom cursor ===== */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 10px var(--neon);
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 157, 0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-dot.hover-active {
  width: 0;
  height: 0;
}

.cursor-ring.hover-active {
  width: 56px;
  height: 56px;
  border-color: var(--neon);
  background: rgba(0, 255, 157, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

/* ===== Particle canvas ===== */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ===== Rooted animated background ===== */
.root-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.root-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.root-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: root-draw 4s ease-out forwards, root-pulse 6s ease-in-out infinite 4s;
}

@keyframes root-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes root-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.28; }
}

.root-node {
  opacity: 0;
  animation: node-appear 0.6s ease-out forwards;
}

.root-node:nth-child(1) { animation-delay: 0.3s; }
.root-node:nth-child(2) { animation-delay: 0.8s; }
.root-node:nth-child(3) { animation-delay: 1.2s; }
.root-node:nth-child(4) { animation-delay: 1.4s; }
.root-node:nth-child(5) { animation-delay: 1.7s; }
.root-node:nth-child(6) { animation-delay: 1.9s; }
.root-node:nth-child(7) { animation-delay: 1.7s; }
.root-node:nth-child(8) { animation-delay: 1.9s; }
.root-node:nth-child(9) { animation-delay: 1.5s; }
.root-node:nth-child(10) { animation-delay: 2.1s; }
.root-node:nth-child(11) { animation-delay: 2.2s; }
.root-node:nth-child(12) { animation-delay: 2.1s; }
.root-node:nth-child(13) { animation-delay: 2.2s; }
.root-node:nth-child(14) { animation-delay: 2.0s; }
.root-node:nth-child(15) { animation-delay: 2.0s; }

@keyframes node-appear {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 0.6; transform: scale(1); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Horizontal scan line */
.scan-line-h {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.15), transparent);
  animation: scan-h 8s linear infinite;
  pointer-events: none;
}

@keyframes scan-h {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== Status dot ===== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon), 0 0 16px rgba(0, 255, 157, 0.4);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Theme indicator ===== */
.theme-indicator {
  padding: 4px 10px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 20px;
  background: var(--surface);
  color: var(--secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== Terminal box ===== */
.terminal-box {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  overflow: hidden;
  min-height: 70px;
}

.terminal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  animation: scan-line-top 3s linear infinite;
}

@keyframes scan-line-top {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: var(--neon); }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--neon);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ===== Glitch effect ===== */
.hero-name {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  animation: hero-rise 1s ease-out 0.5s both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.glitch {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 255, 157, 0.15));
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch::before {
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glitch-1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glitch-2 4s infinite;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
  opacity: 0.6;
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(-2px, 1px); }
  93% { transform: translate(2px, -1px); }
  95% { transform: translate(-1px, 1px); }
  97% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(2px, -1px); opacity: 0.4; }
  91% { transform: translate(-2px, 1px); opacity: 0.6; }
  93% { transform: translate(1px, -1px); opacity: 0.3; }
  95% { transform: translate(0); opacity: 0; }
}

/* ===== Headline & subtext ===== */
.headline {
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Domain badge ===== */
.domain-badge {
  padding: 12px 28px;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.domain-badge:hover {
  border-color: var(--neon);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.domain-badge-arrow {
  color: var(--neon);
  font-family: 'JetBrains Mono', monospace;
  transition: transform 0.3s ease;
}

.domain-badge:hover .domain-badge-arrow {
  transform: translateX(6px);
}

/* ===== Parked domain badge ===== */
.parked-domain-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 36px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.parked-domain-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.5;
}

/* ===== Parked info card ===== */
.parked-info-card {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s ease;
}

.parked-info-card:hover {
  border-color: rgba(0, 255, 157, 0.25);
}

.parked-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.15);
  color: var(--neon);
}

/* ===== External arrow on link cards ===== */
.external-arrow {
  color: var(--neon);
  display: inline-block;
  transition: transform 0.3s ease;
}

.domain-card-link:hover .external-arrow {
  transform: translate(3px, -3px);
}

/* ===== Domain cards ===== */
.cards-grid {
  perspective: 1200px;
}

.domain-card {
  position: relative;
  height: 300px;
  perspective: 1200px;
  text-decoration: none;
  display: block;
}

.domain-card-link {
  cursor: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.domain-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.card-back {
  transform: rotateY(180deg);
}

.domain-card:hover .card-face {
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 8px 40px rgba(0, 255, 157, 0.08);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 157, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.domain-card:hover .card-glow {
  opacity: 1;
}

/* Card corners */
.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--neon);
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.domain-card:hover .card-corner {
  opacity: 0.8;
}

.card-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.card-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.card-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--neon);
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.4));
  transition: transform 0.4s ease;
}

.domain-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== Status pills ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  color: var(--neon);
}

.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: dot-pulse 2s ease-in-out infinite;
}

.status-pill-admin {
  background: rgba(122, 122, 140, 0.08);
  border-color: rgba(122, 122, 140, 0.25);
  color: #b0b0c0;
}

.status-pill-dot-admin {
  background: #b0b0c0;
  box-shadow: 0 0 6px rgba(176, 176, 192, 0.6);
}

/* ===== Info strip ===== */
.info-strip {
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s ease;
}

.info-strip:hover {
  border-color: rgba(0, 255, 157, 0.2);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
}

/* ===== Root divider ===== */
.root-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  position: relative;
}

.root-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

/* ===== CTA link ===== */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 30px;
  background: rgba(0, 255, 157, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: all 0.4s ease;
}

.cta-link:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 157, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
  transform: translateY(-2px);
}

.cta-arrow {
  color: var(--neon);
  transition: transform 0.3s ease;
}

.cta-link:hover .cta-arrow {
  transform: translateX(6px);
}

/* ===== Magnetic elements ===== */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Footer ===== */
footer {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  * { cursor: auto; }
  html, body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .domain-card { height: 260px; }
  .card-face { padding: 22px; }
  .info-strip { padding: 20px; }
}

@media (max-width: 640px) {
  .domain-card { height: 240px; }
}

/* ===== Selection ===== */
::selection {
  background: rgba(0, 255, 157, 0.25);
  color: #ffffff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 157, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 157, 0.4);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Top & Bottom scrolling marquee banners ===== */
.top-banner {
  position: relative;
  z-index: 15;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 255, 157, 0.04);
  border-top: 1px solid rgba(0, 255, 157, 0.1);
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  padding: 8px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bottom-banner {
  position: relative;
  z-index: 15;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 255, 157, 0.03);
  border-top: 1px solid rgba(0, 255, 157, 0.1);
  padding: 6px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: marquee-scroll 30s linear infinite;
  padding-right: 24px;
}

.marquee-reverse .marquee-track {
  animation: marquee-scroll-reverse 35s linear infinite;
}

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

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

.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--secondary);
  text-transform: uppercase;
}

.marquee-dot {
  color: var(--neon);
  font-size: 8px;
  opacity: 0.6;
}

/* ===== Info button ===== */
.info-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 20px;
  background: var(--surface);
  color: var(--neon);
  cursor: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-btn:hover {
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
  background: rgba(0, 255, 157, 0.06);
}

/* ===== Timer widget ===== */
.timer-widget {
  margin-top: 28px;
  padding: 20px 32px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(0, 255, 157, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.timer-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.4;
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.timer-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  transition: color 0.2s ease;
}

.timer-value.tick {
  color: var(--neon);
}

.timer-label-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--secondary);
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.timer-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  color: rgba(0, 255, 157, 0.4);
  margin-bottom: 18px;
}

/* ===== Notification banner ===== */
.notif-banner {
  margin-top: 40px;
  max-width: 640px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.4s ease;
}

.notif-banner.dismissed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  max-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-width: 0;
}

.notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--neon);
}

.notif-content {
  flex: 1;
}

.notif-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--secondary);
  cursor: none;
  transition: all 0.3s ease;
}

.notif-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ===== Popup modal ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 32px;
  background: rgba(15, 15, 22, 0.95);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 20px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.popup-overlay.active .popup-modal {
  transform: scale(1) translateY(0);
}

.popup-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.12), transparent 60%);
  pointer-events: none;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  cursor: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.popup-close:hover {
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.3);
  color: var(--neon);
}

.popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--neon);
  position: relative;
  z-index: 1;
}

.popup-title {
  position: relative;
  z-index: 1;
}

.popup-body {
  position: relative;
  z-index: 1;
  text-align: left;
}

.popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.popup-note {
  padding-top: 8px;
}

.popup-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 10px;
  background: rgba(0, 255, 157, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: none;
}

.popup-link:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 157, 0.08);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.1);
  transform: translateX(4px);
}

/* ===== Toast notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(15, 15, 22, 0.95);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 13px;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex-shrink: 0;
}

.toast-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--secondary);
}

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
  .timer-widget { padding: 16px 16px; }
  .timer-unit { min-width: 44px; }
  .timer-value { font-size: 22px; }
  .timer-sep { font-size: 20px; margin-bottom: 14px; }
  .popup-modal { padding: 28px 20px 24px; }
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .marquee-item { font-size: 10px; }
}

@media (max-width: 480px) {
  .timer-display { gap: 0; }
  .timer-unit { min-width: 38px; }
  .timer-value { font-size: 18px; }
  .timer-sep { font-size: 16px; margin-bottom: 12px; }
}
