/* ============================================
   mrds.fun - Neon Cyber Domain Portal Theme
   Primary: #ec4899 (neon pink)
   Background: #0f0f23 (space black)
   Deep: #1e1b4b (deep indigo)
   Accents: #06b6d4 (cyan), #a78bfa (purple), #f0abfc (light pink)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #ec4899;
  --pink-glow: #f0abfc;
  --indigo: #1e1b4b;
  --space: #0f0f23;
  --cyan: #06b6d4;
  --purple: #a78bfa;
  --pink-deep: #be185d;
  --ink: #e9d5ff;
  --muted: #9ca3af;
  --grid: rgba(236, 72, 153, 0.08);
  --grid-cyan: rgba(6, 182, 212, 0.06);
  --card: rgba(30, 27, 75, 0.55);
  --card-border: rgba(236, 72, 153, 0.35);
  --shadow-pink: 0 0 20px rgba(236, 72, 153, 0.45), 0 0 40px rgba(236, 72, 153, 0.25);
  --shadow-cyan: 0 0 20px rgba(6, 182, 212, 0.45), 0 0 40px rgba(6, 182, 212, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--space);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  font-weight: 400;
}

/* Animated space background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(236, 72, 153, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(6, 182, 212, 0.1), transparent 60%),
    linear-gradient(180deg, #0f0f23 0%, #1e1b4b 50%, #0f0f23 100%);
  z-index: -3;
}

/* Grid background pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-cyan) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
  z-index: -2;
  opacity: 0.6;
  animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px, 20px 20px, 20px 20px; }
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(236, 72, 153, 0.025) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  z-index: 9998;
  mix-blend-mode: overlay;
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 9997;
}

/* ===== Typography ===== */
h1, h2, h3, h4, .display {
  font-family: "Orbitron", "Rajdhani", "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink-glow);
  text-transform: uppercase;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--pink-glow);
  text-shadow: 0 0 8px var(--pink);
}

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
}

/* ===== Navigation Bar ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(236, 72, 153, 0.15);
}

.nav-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--purple), transparent);
  animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}

.nav-brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-brand .dot {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  color: var(--pink-glow);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5), inset 0 0 8px rgba(236, 72, 153, 0.2);
  text-shadow: 0 0 6px var(--pink);
}

.nav-links a.active {
  color: var(--pink-glow);
  border-color: var(--pink);
  background: rgba(236, 72, 153, 0.12);
  box-shadow: inset 0 0 12px rgba(236, 72, 153, 0.25);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 14px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--pink);
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
}

/* ===== Glitch Logo ===== */
.glitch-logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  position: relative;
  display: inline-block;
  color: var(--pink-glow);
  text-shadow: 0 0 20px var(--pink), 0 0 40px rgba(236, 72, 153, 0.5);
  letter-spacing: 0.06em;
}

.glitch-logo::before,
.glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch-logo::before {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  animation: glitchTop 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-logo::after {
  color: var(--purple);
  text-shadow: 0 0 8px var(--purple);
  animation: glitchBottom 2.4s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-3px, -2px); }
  95% { transform: translate(3px, 1px); }
  97% { transform: translate(-2px, 2px); }
}

@keyframes glitchBottom {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(3px, 2px); }
  93% { transform: translate(-3px, -1px); }
  96% { transform: translate(2px, -2px); }
}

/* ===== Hero ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: heroGlow 6s ease-in-out infinite;
}

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

.hero-content {
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--cyan);
  border-radius: 30px;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
  margin-bottom: 28px;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.hero-logo {
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink);
  letter-spacing: 0.15em;
  margin-bottom: 36px;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-sub .accent { color: var(--pink-glow); text-shadow: 0 0 8px var(--pink); }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--pink);
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink-glow);
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 171, 252, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn:hover {
  background: rgba(236, 72, 153, 0.25);
  box-shadow: var(--shadow-pink);
  color: #fff;
  text-shadow: 0 0 6px var(--pink-glow);
}

.btn-cyan {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

.btn-cyan:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: var(--shadow-cyan);
  color: #fff;
}

.btn-ghost {
  border-color: var(--purple);
  background: transparent;
  color: var(--purple);
}

.btn-ghost:hover {
  background: rgba(167, 139, 250, 0.15);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(236, 72, 153, 0.6);
}

.section-header .subtitle {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--cyan);
}

.section-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
  box-shadow: 0 0 8px var(--pink);
}

/* ===== Cards (Holographic) ===== */
.holo-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(236, 72, 153, 0.12) 45%,
    rgba(6, 182, 212, 0.12) 55%,
    rgba(167, 139, 250, 0.12) 65%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.holo-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
  opacity: 0.6;
}

.holo-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
}

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

.holo-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--pink-glow);
}

.holo-card p {
  color: var(--ink);
  opacity: 0.85;
  font-size: 15px;
}

.holo-card .card-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 3px;
  background: rgba(6, 182, 212, 0.08);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Domain Status Display ===== */
.status-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid var(--pink);
  border-radius: 8px;
  box-shadow: var(--shadow-pink), inset 0 0 30px rgba(236, 72, 153, 0.08);
  position: relative;
}

.status-display::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.status-display::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 18px; height: 18px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.status-cell {
  text-align: center;
  padding: 12px;
  border-right: 1px solid rgba(236, 72, 153, 0.2);
}

.status-cell:last-child { border-right: none; }

.status-cell .label {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status-cell .value {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-glow);
  text-shadow: 0 0 10px var(--pink);
}

.status-cell .value.cyan { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }

@media (max-width: 700px) {
  .status-display { grid-template-columns: repeat(2, 1fr); }
  .status-cell:nth-child(2) { border-right: none; }
  .status-cell:nth-child(1), .status-cell:nth-child(2) { border-bottom: 1px solid rgba(236, 72, 153, 0.2); }
}

/* ===== Visitor Counter ===== */
.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(15, 15, 35, 0.7);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  box-shadow: var(--shadow-cyan);
}

.counter .label {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.counter-digits {
  display: flex;
  gap: 4px;
}

.digit {
  display: inline-block;
  min-width: 32px;
  padding: 8px 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid var(--pink);
  color: var(--pink-glow);
  text-shadow: 0 0 8px var(--pink);
  border-radius: 3px;
}

/* ===== Portal Grid (Quick Access) ===== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.portal-tile {
  position: relative;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 15, 35, 0.7));
  border: 1px solid var(--card-border);
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.portal-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-tile:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-pink);
}

.portal-tile:hover::before { opacity: 1; }

.portal-tile .icon {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  margin-bottom: 10px;
  display: block;
}

.portal-tile .name {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  color: var(--pink-glow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portal-tile .desc {
  font-size: 12px;
  color: var(--muted);
}

/* ===== List items ===== */
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 4px;
  transition: all 0.25s ease;
  margin-bottom: 10px;
}

.list-row:hover {
  border-color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.3);
  transform: translateX(4px);
}

.list-row .rank {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
  min-width: 40px;
}

.list-row .info { flex: 1; }
.list-row .info .title {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}
.list-row .info .meta {
  font-size: 12px;
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
}

/* ===== Heat Bar ===== */
.heat-bar {
  flex: 0 0 120px;
  height: 8px;
  background: rgba(15, 15, 35, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.heat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  box-shadow: 0 0 8px var(--pink);
  position: relative;
}

.heat-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: heatShine 2s linear infinite;
}

@keyframes heatShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.heat-value {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  color: var(--pink-glow);
  text-shadow: 0 0 6px var(--pink);
  min-width: 50px;
  text-align: right;
}

/* ===== Search Box ===== */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  background: rgba(15, 15, 35, 0.8);
  border: 1px solid var(--cyan);
  border-radius: 30px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-cyan);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  padding: 8px 0;
}

.search-box input::placeholder { color: var(--muted); }

.search-box button {
  background: var(--cyan);
  color: #0f0f23;
  border: none;
  padding: 10px 24px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-box button:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 14px var(--pink);
}

/* ===== Filter chips ===== */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.chip {
  padding: 6px 16px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 20px;
  cursor: pointer;
  background: rgba(167, 139, 250, 0.06);
  transition: all 0.25s ease;
}

.chip:hover, .chip.active {
  color: var(--pink-glow);
  border-color: var(--pink);
  background: rgba(236, 72, 153, 0.18);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

/* ===== Date Selector ===== */
.date-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.date-selector .arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  cursor: pointer;
  background: rgba(236, 72, 153, 0.1);
  transition: all 0.25s ease;
  font-size: 18px;
}

.date-selector .arrow:hover {
  background: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 14px var(--pink);
}

.date-display {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-glow);
  text-shadow: 0 0 10px var(--pink);
  padding: 10px 24px;
  border: 1px solid var(--pink);
  border-radius: 30px;
  background: rgba(236, 72, 153, 0.08);
  letter-spacing: 0.1em;
}

/* ===== Feed items (Community) ===== */
.signal-card {
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-left: 3px solid var(--purple);
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  position: relative;
}

.signal-card:hover {
  border-color: var(--pink);
  border-left-color: var(--pink);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.3);
  transform: translateX(4px);
}

.signal-card .sig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-card .sig-user {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
  letter-spacing: 0.08em;
}

.signal-card .sig-time {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.signal-card .sig-content {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 10px;
}

.signal-card .sig-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
}

.signal-card .sig-meta span:hover { color: var(--pink); cursor: pointer; }

/* ===== Tool Card ===== */
.tool-card {
  position: relative;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 8px var(--cyan);
}

.tool-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.tool-card .tool-icon {
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  margin-bottom: 14px;
}

.tool-card h3 {
  font-size: 16px;
  color: var(--pink-glow);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.tool-card .usage {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.1em;
}

/* ===== Stats grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-box {
  padding: 24px;
  text-align: center;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid var(--pink);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
}

.stat-box:hover {
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}

.stat-box .num {
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--pink-glow);
  text-shadow: 0 0 12px var(--pink);
  margin-bottom: 6px;
}

.stat-box .desc {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== Feature Box ===== */
.feature-box {
  padding: 28px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 15, 35, 0.7));
  border: 1px solid var(--pink);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(236, 72, 153, 0.1), transparent 30%);
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.feature-box > * { position: relative; z-index: 1; }

.feature-box h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--pink-glow);
  text-shadow: 0 0 10px var(--pink);
}

.feature-box p {
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 10px;
}

.feature-box .feat-tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 3px;
  margin-top: 8px;
}

/* ===== Matrix Table ===== */
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: "Rajdhani", sans-serif;
}

.matrix-table th {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.matrix-table td {
  padding: 14px;
  background: rgba(30, 27, 75, 0.5);
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
  vertical-align: middle;
}

.matrix-table tr td:first-child {
  border-left: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 4px 0 0 4px;
}

.matrix-table tr td:last-child {
  border-right: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 0 4px 4px 0;
}

.matrix-table tr:hover td {
  background: rgba(236, 72, 153, 0.12);
  box-shadow: inset 0 0 14px rgba(236, 72, 153, 0.2);
}

.matrix-table .rank-cell {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
  width: 60px;
}

.matrix-table .rank-cell.top {
  color: var(--pink-glow);
  text-shadow: 0 0 12px var(--pink), 0 0 20px var(--pink);
}

.matrix-table .title-cell {
  color: var(--ink);
  font-weight: 600;
}

.matrix-table .cat-cell {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Category cards (Portal) ===== */
.cat-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 15, 35, 0.7));
  border: 1px solid var(--purple);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.cat-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}

.cat-card .cat-num {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.cat-card h3 {
  font-size: 20px;
  color: var(--pink-glow);
  margin-bottom: 12px;
  text-shadow: 0 0 8px var(--pink);
}

.cat-card .cat-list {
  list-style: none;
  margin-top: 12px;
}

.cat-card .cat-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed rgba(236, 72, 153, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-card .cat-list li:last-child { border-bottom: none; }

.cat-card .cat-list li .count {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--cyan);
}

/* ===== Footer ===== */
.footer {
  padding: 50px 24px 30px;
  background: rgba(15, 15, 35, 0.9);
  border-top: 1px solid var(--pink);
  position: relative;
  margin-top: 60px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--purple), transparent);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: var(--pink-glow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 0 6px var(--pink);
}

.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer ul li a { font-size: 14px; color: var(--ink); opacity: 0.8; }
.footer ul li a:hover { color: var(--pink-glow); }

.footer-brand {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-bottom .icp { color: var(--cyan); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ASCII / Code-style block */
.code-block {
  font-family: "Orbitron", monospace;
  background: rgba(15, 15, 35, 0.85);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 20px;
  color: var(--cyan);
  text-shadow: 0 0 4px var(--cyan);
  font-size: 13px;
  line-height: 1.8;
  box-shadow: var(--shadow-cyan);
  overflow-x: auto;
}

.code-block .pink { color: var(--pink-glow); text-shadow: 0 0 4px var(--pink); }
.code-block .purple { color: var(--purple); text-shadow: 0 0 4px var(--purple); }
.code-block .muted { color: var(--muted); text-shadow: none; }

/* Tag badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-pink { background: rgba(236, 72, 153, 0.2); color: var(--pink-glow); border: 1px solid var(--pink); }
.badge-cyan { background: rgba(6, 182, 212, 0.2); color: var(--cyan); border: 1px solid var(--cyan); }
.badge-purple { background: rgba(167, 139, 250, 0.2); color: var(--purple); border: 1px solid var(--purple); }

/* Responsive Nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 35, 0.98);
    border-bottom: 1px solid var(--pink);
    padding: 12px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-status { display: none; }
}

@media (max-width: 700px) {
  section { padding: 50px 0; }
  .hero { min-height: 70vh; padding: 60px 16px 40px; }
  .nav-brand { font-size: 18px; }
}
