/* ============================================================
   MIND WORKS v19 — 共通ベースCSS
   dashboard + single post で共有
   ============================================================ */

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

@property --trace-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --cyan: #00f0ff;
  --cyan-rgb: 0, 240, 255;
  --magenta: #ff00aa;
  --magenta-rgb: 255, 0, 170;
  --gold: #d4a853;
  --gold-rgb: 212, 168, 83;
  --bg: #050510;
  --card-bg: rgba(10, 10, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #e0e0e0;
  --text-dim: #888888;
}

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  background: #000;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background 0.5s ease;
}

/* ==================== GRID BACKGROUND ==================== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb), 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
  transition: background-image 0.5s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.7) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.7) 100%);
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(8, 8, 20, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 50%, rgba(var(--cyan-rgb), 0.02) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(var(--magenta-rgb), 0.015) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 70%, rgba(140, 80, 255, 0.015) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100vw;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta); }
  20% { text-shadow: -2px -1px var(--cyan), 2px 1px var(--magenta); }
  40% { text-shadow: 1px 2px var(--cyan), -1px -2px var(--magenta); }
  60% { text-shadow: -1px 1px var(--cyan), 1px -1px var(--magenta); }
  80% { text-shadow: 2px -1px var(--cyan), -2px 1px var(--magenta); }
}

@keyframes glitch-skew {
  0%, 100% { transform: skewX(0deg); }
  20% { transform: skewX(-1deg); }
  40% { transform: skewX(0.5deg); }
  60% { transform: skewX(-0.3deg); }
  80% { transform: skewX(0.8deg); }
}

@keyframes glitch-clip {
  0% { clip-path: inset(40% 0 61% 0); }
  10% { clip-path: inset(92% 0 1% 0); }
  20% { clip-path: inset(43% 0 1% 0); }
  30% { clip-path: inset(25% 0 58% 0); }
  40% { clip-path: inset(54% 0 7% 0); }
  50% { clip-path: inset(58% 0 43% 0); }
  60% { clip-path: inset(70% 0 7% 0); }
  70% { clip-path: inset(15% 0 62% 0); }
  80% { clip-path: inset(75% 0 20% 0); }
  90% { clip-path: inset(10% 0 55% 0); }
  100% { clip-path: inset(40% 0 61% 0); }
}

@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes border-race {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes holo-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes star-twinkle-slow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

@keyframes cube-rotate {
  0% { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

@keyframes geo-float-1 {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25% { transform: translateY(-30px) rotateX(90deg) rotateY(45deg) rotateZ(30deg); }
  50% { transform: translateY(-10px) rotateX(180deg) rotateY(90deg) rotateZ(60deg); }
  75% { transform: translateY(-40px) rotateX(270deg) rotateY(135deg) rotateZ(90deg); }
}

@keyframes geo-float-2 {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  33% { transform: translateY(-20px) rotateX(120deg) rotateY(120deg); }
  66% { transform: translateY(-35px) rotateX(240deg) rotateY(240deg); }
}

@keyframes shooting-star-1 {
  0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; width: 0; }
  5% { opacity: 1; width: 80px; }
  15% { opacity: 1; }
  25% { transform: translate(calc(100vw + 100px), calc(60vh)) rotate(-35deg); opacity: 0; width: 80px; }
  25.1%, 100% { opacity: 0; transform: translate(0, 0) rotate(-35deg); width: 0; }
}

@keyframes shooting-star-2 {
  0%, 50% { transform: translate(0, 0) rotate(-25deg); opacity: 0; width: 0; }
  55% { opacity: 1; width: 60px; }
  65% { opacity: 1; }
  75% { transform: translate(calc(80vw + 50px), calc(45vh)) rotate(-25deg); opacity: 0; width: 60px; }
  75.1%, 100% { opacity: 0; transform: translate(0, 0) rotate(-25deg); width: 0; }
}

@keyframes data-rain {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(calc(100vh + 100%)); opacity: 0; }
}

@keyframes neon-shooting-dot {
  0% { left: 0; opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes card-border-trace {
  to { --trace-angle: 360deg; }
}

/* ==================== WARP CANVAS ==================== */
#warp-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ==================== SPACE DEPTH: Star Field ==================== */
#space-stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#space-stars .star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

/* ==================== SPACE DEPTH: Nebula Blobs ==================== */
#space-nebula {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#space-nebula::before {
  content: '';
  position: absolute;
  top: 10%; left: -10%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,30,100,0.05) 0%, rgba(60,30,100,0.02) 40%, transparent 70%);
  filter: blur(60px);
}

#space-nebula::after {
  content: '';
  position: absolute;
  bottom: 5%; right: -5%;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,30,80,0.04) 0%, rgba(15,30,80,0.015) 40%, transparent 70%);
  filter: blur(60px);
}

.nebula-blob-3 {
  position: absolute;
  top: 50%; left: 30%;
  width: 40vw; height: 40vw;
  max-width: 600px; max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,15,60,0.04) 0%, transparent 60%);
  filter: blur(70px);
  pointer-events: none;
}

/* ==================== SHOOTING STARS ==================== */
.shooting-star {
  position: fixed;
  height: 1px;
  border-radius: 1px;
  z-index: 1;
  pointer-events: none;
}

.shooting-star-1 {
  top: 8%; left: -50px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), #fff);
  box-shadow: 0 0 6px 1px rgba(180,200,255,0.5);
  animation: shooting-star-1 12s linear infinite;
}

.shooting-star-2 {
  top: 25%; right: -50px; left: auto;
  background: linear-gradient(90deg, transparent, rgba(200,210,255,0.8), #fff);
  box-shadow: 0 0 4px 1px rgba(160,180,255,0.4);
  animation: shooting-star-2 18s linear infinite;
  animation-delay: 5s;
}

/* ==================== CRYSTAL CUBE DECORATIONS ==================== */
.crystal-cube-wrap {
  position: fixed;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  perspective: 800px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

.crystal-cube-wrap-2 {
  position: fixed;
  top: 25%;
  left: -100px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  perspective: 600px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
}

.crystal-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-rotate 30s linear infinite;
}

.crystal-cube .face {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 20px;
  left: 20px;
  border: 1px solid rgba(150, 200, 255, 0.2);
  background: linear-gradient(135deg,
    rgba(0, 180, 255, 0.03),
    rgba(140, 80, 255, 0.02),
    rgba(255, 100, 200, 0.02),
    transparent);
  backdrop-filter: blur(1px);
}

.crystal-cube .face:nth-child(1) { transform: translateZ(80px); }
.crystal-cube .face:nth-child(2) { transform: rotateY(90deg) translateZ(80px); }
.crystal-cube .face:nth-child(3) { transform: rotateY(180deg) translateZ(80px); }
.crystal-cube .face:nth-child(4) { transform: rotateY(270deg) translateZ(80px); }
.crystal-cube .face:nth-child(5) { transform: rotateX(90deg) translateZ(80px); }
.crystal-cube .face:nth-child(6) { transform: rotateX(-90deg) translateZ(80px); }

.crystal-cube-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-rotate 20s linear infinite reverse;
}

.crystal-cube-inner .face {
  width: 100px;
  height: 100px;
  top: 50px;
  left: 50px;
  border-color: rgba(200, 150, 255, 0.15);
  background: linear-gradient(135deg,
    rgba(140, 80, 255, 0.03),
    rgba(0, 255, 180, 0.02),
    transparent);
}

.crystal-cube-inner .face:nth-child(1) { transform: translateZ(50px); }
.crystal-cube-inner .face:nth-child(2) { transform: rotateY(90deg) translateZ(50px); }
.crystal-cube-inner .face:nth-child(3) { transform: rotateY(180deg) translateZ(50px); }
.crystal-cube-inner .face:nth-child(4) { transform: rotateY(270deg) translateZ(50px); }
.crystal-cube-inner .face:nth-child(5) { transform: rotateX(90deg) translateZ(50px); }
.crystal-cube-inner .face:nth-child(6) { transform: rotateX(-90deg) translateZ(50px); }

/* ==================== FLOATING 3D GEOMETRY ==================== */
.floating-geo {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  perspective: 400px;
}

.geo-shape {
  transform-style: preserve-3d;
  animation: geo-float-1 25s ease-in-out infinite;
}

.geo-shape .edge {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.15), transparent);
  border-radius: 1px;
}

.geo-ring {
  width: 80px; height: 80px;
  border: 1px solid rgba(var(--cyan-rgb), 0.08);
  border-radius: 50%;
  position: relative;
}

.geo-ring::before {
  content: '';
  position: absolute;
  top: 15%; left: 15%;
  width: 70%; height: 70%;
  border: 1px solid rgba(140, 80, 255, 0.06);
  border-radius: 50%;
  transform: rotateX(60deg);
}

.geo-ring::after {
  content: '';
  position: absolute;
  top: 30%; left: 30%;
  width: 40%; height: 40%;
  border: 1px solid rgba(255, 100, 200, 0.05);
  border-radius: 50%;
  transform: rotateY(60deg);
}

.geo-diamond {
  width: 40px; height: 40px;
  position: relative;
  transform-style: preserve-3d;
}

.geo-diamond::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border: 1px solid rgba(var(--cyan-rgb), 0.1);
  transform: rotateX(45deg) rotateZ(45deg);
}

.geo-diamond::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border: 1px solid rgba(140, 80, 255, 0.08);
  transform: rotateY(45deg) rotateZ(45deg);
}

/* ==================== SCAN LINES ==================== */
.scan-lines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.015) 3px,
    rgba(0, 0, 0, 0.015) 6px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ==================== DATA RAIN ==================== */
.data-rain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.08;
}

.rain-col {
  position: absolute;
  top: -200px;
  width: 12px;
  font-family: 'Outfit', monospace;
  font-size: 10px;
  line-height: 14px;
  color: var(--cyan);
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  animation: data-rain linear infinite;
  letter-spacing: 4px;
  text-shadow: 0 0 5px var(--cyan);
}

/* ==================== HEADER ==================== */
.header {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: border-color 0.5s ease;
}

/* Prismatic accent line under header */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 180, 255, 0.3),
    rgba(140, 80, 255, 0.3),
    rgba(255, 80, 200, 0.3),
    rgba(255, 200, 80, 0.2),
    rgba(80, 255, 160, 0.3),
    rgba(0, 180, 255, 0.3),
    transparent);
  background-size: 300% 100%;
  animation: border-race 6s linear infinite;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  animation: glitch 3s infinite, glitch-skew 3s infinite;
  position: relative;
  cursor: default;
  filter: drop-shadow(0 0 6px rgba(150, 180, 255, 0.25));
}

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

.logo::before,
.logo::after {
  content: 'MIND WORKS AI';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo::before {
  color: var(--cyan);
  animation: glitch-clip 2s infinite linear alternate-reverse;
  z-index: -1;
  left: 2px;
  transition: color 0.5s ease;
}

.logo::after {
  color: var(--magenta);
  animation: glitch-clip 3s infinite linear alternate;
  z-index: -1;
  left: -2px;
  transition: color 0.5s ease;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--cyan-rgb), 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  color: var(--cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: neon-pulse 3s ease-in-out infinite;
  text-transform: uppercase;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.member-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  transition: all 0.5s ease;
}

.member-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  animation: holo-shimmer 3s ease-in-out infinite;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}

.header-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5), 0 0 30px rgba(var(--cyan-rgb), 0.2);
}

/* ==================== TICKER ==================== */
.ticker-wrap {
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(var(--cyan-rgb), 0.1);
  overflow: hidden;
  padding: 10px 0;
  position: sticky;
  top: 68px;
  z-index: 99;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
  perspective: 500px;
  transform-style: preserve-3d;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
  transform: perspective(500px) rotateX(3deg) translateZ(20px);
  transform-origin: center bottom;
}

.ticker-item {
  white-space: nowrap;
  padding: 0 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.4), 0 2px 4px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.5s ease;
}

.ticker-item::before {
  content: '//';
  color: var(--magenta);
  font-weight: 700;
  transition: color 0.5s ease;
}

/* 3D depth lines on ticker edges */
.ticker-wrap .ticker-depth-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  pointer-events: none;
  z-index: 1;
}
.ticker-wrap .ticker-depth-line.left {
  left: 60px;
  background: linear-gradient(180deg, transparent, rgba(var(--cyan-rgb), 0.06), transparent);
}
.ticker-wrap .ticker-depth-line.right {
  right: 60px;
  background: linear-gradient(180deg, transparent, rgba(var(--cyan-rgb), 0.06), transparent);
}

/* ==================== TAB BAR ==================== */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 106px;
  z-index: 98;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  perspective: 800px;
  transform-style: preserve-3d;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  backdrop-filter: blur(4px);
  text-decoration: none;
  transform: translateZ(0);
}

.tab-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-item:hover:not(.active) {
  transform: translateZ(8px) scale(1.02);
}

.tab-item.active {
  color: #fff;
  font-weight: 700;
  transform: translateZ(16px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(var(--cyan-rgb), 0.15);
}

/* Tab color themes */
.tab-item[data-tab="all"].active {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255,238,0,0.06), rgba(0,255,102,0.06), rgba(255,68,204,0.06), rgba(0,240,255,0.06));
  box-shadow: 0 0 8px rgba(255,238,0,0.12), 0 0 8px rgba(0,255,102,0.12), 0 0 8px rgba(255,68,204,0.12), 0 0 8px rgba(0,240,255,0.12);
  color: #fff;
}

.tab-item[data-tab="news"].active {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(0, 255, 102, 0.25), 0 0 30px rgba(0, 255, 102, 0.08);
  color: #00ff66;
}

.tab-item[data-tab="basics"].active {
  border-color: #ffee00;
  background: rgba(255, 238, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(255, 238, 0, 0.25), 0 0 30px rgba(255, 238, 0, 0.08);
  color: #ffee00;
}

.tab-item[data-tab="play"].active {
  border-color: #ff44cc;
  background: rgba(255, 68, 204, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(255, 68, 204, 0.25), 0 0 30px rgba(255, 68, 204, 0.08);
  color: #ff44cc;
}

.tab-item[data-tab="work"].active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(0, 240, 255, 0.25), 0 0 30px rgba(0, 240, 255, 0.08);
  color: #00f0ff;
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tab-dot.dot-all { background: conic-gradient(#ffee00, #00ff66, #ff44cc, #00f0ff, #ffee00); }
.tab-dot.dot-news { background: #00ff66; box-shadow: 0 0 4px #00ff66; }
.tab-dot.dot-basics { background: #ffee00; box-shadow: 0 0 4px #ffee00; }
.tab-dot.dot-play { background: #ff44cc; box-shadow: 0 0 4px #ff44cc; }
.tab-dot.dot-work { background: #00f0ff; box-shadow: 0 0 4px #00f0ff; }

/* ==================== NEON LINE ==================== */
.neon-line {
  height: 2px;
  border-radius: 0;
  position: relative;
  overflow: visible;
  transition: background 0.5s ease;
  transform: perspective(400px) rotateX(4deg);
  transform-origin: left center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), 0 0 8px rgba(var(--cyan-rgb), 0.06);
}

.neon-line::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.neon-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 80px;
  height: 5px;
  border-radius: 0 3px 3px 0;
  filter: blur(6px);
  transition: background 0.5s ease;
}

.neon-line.cyan {
  background: linear-gradient(to right, var(--cyan), rgba(140,80,255,0.3), transparent 80%);
}
.neon-line.cyan::before {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan), 0 0 12px var(--cyan);
}
.neon-line.cyan::after {
  background: linear-gradient(to right, var(--cyan), rgba(140,80,255,0.4));
}

.neon-line.magenta {
  background: linear-gradient(to right, var(--magenta), rgba(140,80,255,0.3), transparent 80%);
}
.neon-line.magenta::before {
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta), 0 0 12px var(--magenta);
}
.neon-line.magenta::after {
  background: linear-gradient(to right, var(--magenta), rgba(200,60,255,0.4));
}

.neon-line.gold {
  background: linear-gradient(to right, var(--gold), rgba(0,180,255,0.2), transparent 80%);
}
.neon-line.gold::before {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold);
}
.neon-line.gold::after {
  background: linear-gradient(to right, var(--gold), rgba(0,180,255,0.3));
}

/* Neon line shooting dot */
.neon-line .shooting-dot {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px currentColor, 0 0 16px 6px currentColor;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: neon-shooting-dot 0.8s ease-in-out forwards;
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
  text-align: center;
}

.footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 180, 255, 0.08),
    rgba(140, 80, 255, 0.1),
    rgba(255, 100, 200, 0.08),
    transparent);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

/* ==================== HORIZON LINE ==================== */
.horizon-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg,
    rgba(100, 120, 180, 0.04) 0%,
    rgba(80, 100, 160, 0.02) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.horizon-line::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,140,200,0.08), rgba(150,170,220,0.12), rgba(120,140,200,0.08), transparent);
  pointer-events: none;
}

/* ==================== RESPONSIVE: 768px ==================== */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .member-badge {
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 1px;
  }

  .ticker-wrap {
    top: 52px;
  }

  .tab-bar {
    padding: 10px 8px;
    gap: 6px;
    top: 90px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .tab-item {
    padding: 8px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .shooting-star-2 { display: none; }
  .crystal-cube-wrap, .crystal-cube-wrap-2 { display: none; }
  .floating-geo { opacity: 0.1 !important; }

  #space-nebula::before {
    width: 80vw; height: 80vw;
  }

  #space-nebula::after {
    width: 70vw; height: 70vw;
  }

  .ticker-item {
    font-size: 11px;
    padding: 0 20px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 11px;
  }
}

/* ==================== RESPONSIVE: 480px ==================== */
@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
  }

  .logo {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .member-badge {
    font-size: 8px;
    padding: 3px 8px;
    letter-spacing: 1px;
  }

  .header-right .header-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .ticker-wrap {
    top: 44px;
  }

  .tab-bar {
    padding: 8px 4px;
    gap: 4px;
    top: 80px;
    justify-content: center;
  }

  .tab-item {
    padding: 6px 8px;
    font-size: 11px;
    gap: 3px;
    flex-shrink: 0;
  }

  .tab-dot {
    width: 5px;
    height: 5px;
  }

  .ticker-item {
    font-size: 11px;
    padding: 0 20px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 11px;
  }
}