/* ============================================================
   SUMIT.SH — CYBERSECURITY PORTFOLIO
   Premium Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-glow: rgba(0, 255, 65, 0.15);
  --green-glow-strong: rgba(0, 255, 65, 0.35);
  --cyan: #00d4ff;
  --cyan-dim: #00a8cc;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --red: #ff0055;
  --yellow: #ffcc00;
  --purple: #a855f7;

  --bg-primary: #0a0a0a;
  --bg-secondary: #0d1117;
  --bg-card: rgba(13, 17, 23, 0.7);
  --bg-card-hover: rgba(13, 17, 23, 0.9);
  --bg-glass: rgba(0, 255, 65, 0.03);
  --bg-nav: rgba(10, 10, 10, 0.85);

  --border: rgba(0, 255, 65, 0.12);
  --border-hover: rgba(0, 255, 65, 0.35);
  --border-active: rgba(0, 255, 65, 0.6);

  --text-primary: #e6edf3;
  --text-secondary: #a0aab5;
  --text-muted: #6e7681;
  --text-accent: var(--green);

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem);
  --container-max: 1200px;
  --nav-height: 64px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gb-honeypot-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

::selection {
  background: var(--green);
  color: var(--bg-primary);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--green-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ---------- Canvas & Overlays ---------- */
#matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.008) 2px,
    rgba(0, 255, 65, 0.008) 4px
  );
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  z-index: 10000;
  transition: width 50ms linear;
  box-shadow: 0 0 10px var(--green), 0 0 20px var(--green-glow);
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: text-shadow var(--transition-fast);
}
.nav-logo:hover {
  text-shadow: 0 0 15px var(--green-glow-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-links a:hover {
  color: var(--green);
  background: var(--green-glow);
}
.nav-links a.active {
  color: var(--green);
  background: var(--green-glow);
}

.nav-links a.nav-highlight {
  color: var(--cyan);
}
.nav-links a.nav-highlight:hover {
  color: var(--cyan);
  background: var(--cyan-glow);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(-101%);
  transition: transform var(--transition-base);
  z-index: -1;
}
.nav-cta:hover {
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--green-glow-strong);
}
.nav-cta:hover::before {
  transform: translateX(0);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--green);
  background: var(--green-glow);
}

/* ---------- Sections (Common) ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 5;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin-top: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--green-glow-strong);
}

/* Glitch hover on section titles */
.section-title:hover {
  animation: glitch-text 0.4s ease forwards;
}

@keyframes glitch-text {
  0% { transform: translate(0); }
  10% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  20% { transform: translate(2px, -1px); }
  30% { transform: translate(-1px, -1px); filter: hue-rotate(0deg); }
  40% { transform: translate(1px, 2px); }
  50% { transform: translate(-1px, 0); filter: hue-rotate(-90deg); }
  60% { transform: translate(2px, 1px); }
  70% { transform: translate(0, -2px); filter: hue-rotate(0deg); }
  80% { transform: translate(-2px, 0); }
  90% { transform: translate(1px, 1px); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--green);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-glow);
  width: fit-content;
  animation: pulse-badge 3s ease-in-out infinite;
}
.status-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.hero-name .cursor {
  display: inline-block;
  width: 4px;
  height: 0.8em;
  background: var(--green);
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
  vertical-align: baseline;
  box-shadow: 0 0 10px var(--green);
}

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

.hero-desc {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-primary);
}
.btn-primary:hover {
  box-shadow: 0 0 25px var(--green-glow-strong), 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-ghost:hover {
  background: var(--green);
  color: var(--bg-primary);
  box-shadow: 0 0 25px var(--green-glow-strong);
  transform: translateY(-2px);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--bg-primary);
  font-weight: 700;
}
.btn-cyan:hover {
  box-shadow: 0 0 25px var(--cyan-glow), 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-cyan-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.btn-cyan-outline:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

/* ---------- Terminal Card ---------- */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 40px var(--green-glow),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  position: relative;
}
.terminal-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 40%, transparent 60%, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  animation: border-rotate 8s linear infinite;
}

@keyframes border-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.8;
  min-height: 180px;
}
.terminal-body .prompt {
  color: var(--text-muted);
}
.terminal-body .command {
  color: var(--green);
}
.terminal-body .output {
  color: var(--cyan);
}
.terminal-body .cursor-block {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--green);
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
}
.about-text p {
  margin-bottom: 1.25rem;
}
.about-text .highlight-text {
  color: var(--green);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--green-glow);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- SKILLS SECTION ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skills-grid .skill-category:nth-child(4),
.skills-grid .skill-category:nth-child(5) {
  /* last two items span differently */
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.skill-category::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 25px var(--green-glow);
}
.skill-category:hover::after {
  opacity: 0.6;
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: default;
}
.skill-tag:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
  box-shadow: 0 0 10px var(--green-glow);
  transform: translateY(-2px);
}

/* ---------- EXPERIENCE SECTION ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--green-dim), transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border: 2px solid var(--green);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--green-glow);
  transition: all var(--transition-fast);
}
.timeline-item:hover::before {
  background: var(--green);
  box-shadow: 0 0 20px var(--green-glow-strong);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-details {
  list-style: none;
}
.timeline-details li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.timeline-details li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- PROJECTS SECTION ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 40%, transparent 60%, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px var(--green-glow);
}
.project-card:hover::before {
  opacity: 0.7;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.project-id {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}
.project-status {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tag {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

/* ---------- CERTIFICATIONS & EDUCATION ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.certs-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.certs-column-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.cert-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 255, 65, 0.05);
  transition: all var(--transition-fast);
}
.cert-item:last-child {
  border-bottom: none;
}
.cert-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.65rem;
  top: 0.75rem;
}
.cert-item:hover {
  color: var(--text-primary);
  padding-left: 2rem;
}

.edu-item {
  margin-bottom: 1.25rem;
}
.edu-item:last-child {
  margin-bottom: 0;
}
.edu-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.edu-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hackathon-section {
  margin-top: 1.5rem;
}
.hackathon-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.hackathon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- CONTACT SECTION ---------- */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 30%, transparent 70%, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-email {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
  word-break: break-all;
}
.contact-email:hover {
  text-shadow: 0 0 20px var(--green-glow-strong);
  transform: scale(1.02);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-meta a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.contact-meta a:hover {
  color: var(--green);
}
.contact-meta .sep {
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 6rem);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 5;
}
.footer a {
  color: var(--green);
  text-decoration: none;
}
.footer .heart {
  color: var(--red);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

/* ============================================================
   JAM & WATCH PAGES
   ============================================================ */
.app-page {
  min-height: 100vh;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 5;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-bottom: 2rem;
}
.back-link:hover {
  color: var(--green);
}

.app-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px var(--green-glow-strong);
}
.app-title .cursor {
  display: inline-block;
  width: 4px;
  height: 0.75em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  vertical-align: baseline;
  box-shadow: 0 0 10px var(--cyan);
}

.app-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.app-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.app-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 25px var(--green-glow);
}
.app-card:hover::before {
  opacity: 0.5;
}

.app-card-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.app-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.app-input {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}
.app-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 15px var(--green-glow);
}
.app-input::placeholder {
  color: var(--text-muted);
}

.how-it-works {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 900px;
  margin-top: 1rem;
}

.how-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.how-list {
  list-style: none;
  counter-reset: how-counter;
}
.how-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-left: 1.75rem;
  position: relative;
  counter-increment: how-counter;
}
.how-list li::before {
  content: counter(how-counter) '.';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Room/Player Area ---------- */
.room-container {
  max-width: 900px;
  margin-top: 2rem;
  display: none;
}
.room-container.active {
  display: block;
}

.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.room-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.room-code:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
}

.player-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.player-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.control-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.control-btn:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
}
.control-btn.active {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.url-input-group .app-input {
  margin-bottom: 0;
  flex: 1;
}

.queue-list {
  list-style: none;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}
.queue-item:hover {
  background: var(--green-glow);
}
.queue-item.active-track {
  color: var(--green);
  background: var(--green-glow);
}
.queue-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  transition: color var(--transition-fast);
}
.queue-remove:hover {
  color: var(--red);
}

/* Watch Party Chat */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  max-width: 1100px;
}

.jam-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.queue-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.jam-chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-height: 460px;
}

.jam-chat-panel.collapsed .chat-messages,
.jam-chat-panel.collapsed .chat-input-group {
  display: none;
}

.jam-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jam-chat-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.retry-banner {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.retry-banner .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
}

.chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 500px;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-msg {
  font-size: 0.82rem;
  line-height: 1.5;
}
.chat-msg .chat-user {
  color: var(--cyan);
  font-weight: 600;
}
.chat-msg .chat-text {
  color: var(--text-secondary);
}
.chat-msg.system-msg .chat-text {
  color: var(--text-muted);
  font-style: italic;
}

.chat-input-group {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-input-group input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
}
.chat-input-group input::placeholder {
  color: var(--text-muted);
}
.chat-input-group button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  background: var(--green);
  border: none;
  color: var(--bg-primary);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.chat-input-group button:hover {
  background: var(--green-dim);
}

/* ---------- Visualizer ---------- */
.visualizer-container {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.viz-bar {
  flex: 1;
  min-height: 4px;
  background: var(--green);
  border-radius: 2px 2px 0 0;
  transition: height 100ms ease;
  opacity: 0.7;
}

/* ---------- Notification Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--green-glow);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .jam-room-grid {
    grid-template-columns: 1fr;
  }
  .terminal-card {
    max-width: 500px;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .chat-panel {
    height: 350px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.25rem;
  }
  .jam-chat-panel {
    min-height: 280px;
  }

  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }
  .hero-name {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }

  .app-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  .contact-meta {
    flex-direction: column;
  }
}

/* ---------- Sync Quality Indicator ---------- */
.sync-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s, box-shadow 0.3s;
}

.sync-dot.good {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.sync-dot.adjusting {
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.sync-dot.poor {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: pulse-dot 1s ease-in-out infinite;
}

.sync-label {
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: lowercase;
}

.sync-rtt {
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-left: auto;
}

/* Connection banner */
.connection-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid rgba(255, 0, 85, 0.3);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  animation: fadeIn 0.3s var(--ease-out);
}

.connection-banner.visible {
  display: flex;
}

.connection-banner.connecting {
  background: rgba(255, 204, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.3);
  color: var(--yellow);
}

.connection-banner.connected {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.2);
  color: var(--green);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PARTY HUB PAGE
   ============================================================ */

/* Live Stats Banner */
.party-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.party-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.party-stat-icon {
  font-size: 1.1rem;
}

.party-stat-value {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.party-stat-label {
  color: var(--text-muted);
}

/* Quick Join */
.quick-join {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.quick-join-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.quick-join-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Activity Cards Grid */
.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.party-activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}

.party-activity-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--green), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.party-activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--green-glow);
}

.party-activity-card:hover::before {
  opacity: 0.7;
}

.activity-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.activity-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.jam-glow { background: var(--green); }
.watch-glow { background: var(--cyan); }
.chat-glow { background: var(--purple); }
.games-glow { background: var(--yellow); }

.party-activity-card:hover .activity-glow {
  opacity: 0.3;
}

.activity-title {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.activity-tag {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 500;
}

.activity-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 0.5rem;
  transition: color var(--transition-fast);
}

.party-activity-card:hover .activity-cta {
  color: var(--green);
}

[data-activity="chat"] .activity-title { color: var(--purple); }
[data-activity="chat"] .activity-cta { color: var(--purple); }
[data-activity="games"] .activity-title { color: var(--yellow); }
[data-activity="games"] .activity-cta { color: var(--yellow); }

/* ============================================================
   ANONYMOUS CHAT PAGE
   ============================================================ */

/* Chat Members Panel */
.chat-members-panel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.members-label {
  color: var(--green);
  font-weight: 600;
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.member-tag {
  padding: 0.2rem 0.5rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 0.72rem;
}

.member-tag.member-me {
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--green);
  font-weight: 600;
}

.chat-member-count {
  background: var(--green-glow);
  color: var(--green);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
}

/* Full Chat Panel (for standalone chat page) */
.chat-fullscreen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
}

/* Chat Bubbles */
.chat-bubble {
  display: inline-block;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 0.5rem 0.85rem;
  margin-top: 0.25rem;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-bubble-me {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

.chat-user-me {
  color: var(--green) !important;
}

.chat-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.my-msg {
  text-align: right;
}

.my-msg .chat-bubble {
  text-align: left;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 255, 65, 0.05);
}

.typing-indicator.visible {
  display: flex;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.typing-text {
  font-style: italic;
}

/* Reaction Bar */
.reaction-bar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(0, 255, 65, 0.05);
  flex-wrap: wrap;
}

.reaction-btn {
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.reaction-btn:hover {
  background: var(--green-glow);
  border-color: var(--border);
  transform: scale(1.2);
}

/* Floating Reactions */
.reaction-float {
  position: fixed;
  font-size: 2rem;
  bottom: 20%;
  animation: float-up 2s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-200px) scale(1.5); opacity: 0; }
}

/* ============================================================
   PARTY GAMES PAGE
   ============================================================ */

/* Game Players Panel */
.game-players-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.game-players-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.game-player-me {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.25);
}

.game-player-name {
  color: var(--text-primary);
  font-weight: 500;
}

.game-player-score {
  color: var(--green);
  font-weight: 700;
}

/* Game Selection Grid */
.game-select {
  display: none;
  margin-bottom: 1.5rem;
}

.game-select-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

.game-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.game-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-mono);
  text-align: center;
  color: var(--text-primary);
}

.game-select-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--green-glow);
  transform: translateY(-4px);
}

.game-select-icon {
  font-size: 2rem;
}

.game-select-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.game-select-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Game Waiting */
.game-waiting {
  display: none;
  padding: 2rem;
  text-align: center;
}

.game-waiting-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Game Area */
.game-area {
  display: none;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

/* Game Round Header */
.game-round-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.game-round-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 0.3rem 0.6rem;
  background: var(--cyan-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
}

.game-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timer Bar */
.game-timer {
  flex: 1;
  min-width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.game-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
  border-radius: 3px;
  width: 100%;
}

/* Trivia */
.game-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.game-option-btn {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.game-option-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-2px);
}

.game-option-btn.selected {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.game-option-btn.correct {
  border-color: var(--green) !important;
  background: rgba(0, 255, 65, 0.15) !important;
  box-shadow: 0 0 15px var(--green-glow) !important;
  color: var(--green) !important;
}

.game-option-btn.wrong {
  border-color: var(--red) !important;
  background: rgba(255, 0, 85, 0.1) !important;
  color: var(--red) !important;
  opacity: 0.7;
}

.game-option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.game-answer-status {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Speed Type Race */
.typing-prompt {
  font-size: 1.1rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.typing-input {
  width: 100%;
  min-height: 80px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  resize: none;
  transition: border-color var(--transition-fast);
  margin-bottom: 0.75rem;
}

.typing-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 15px var(--green-glow);
}

.typing-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.typing-wpm {
  color: var(--green);
  font-weight: 700;
}

.typing-accuracy {
  color: var(--cyan);
}

.typing-progress-label {
  color: var(--text-muted);
}

/* Race Progress Bars */
.typing-race-progress {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.race-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.race-player-name {
  width: 100px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-bar-container {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.race-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 7px;
  transition: width 200ms ease;
  min-width: 0;
}

.race-wpm {
  width: 30px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.72rem;
}

/* Emoji Charades */
.charades-word {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.charades-word strong {
  color: var(--green);
  font-size: 1.5rem;
}

.charades-instructions {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.charades-emoji-display {
  min-height: 60px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.charades-emoji-item {
  display: inline-block;
  animation: emoji-pop 0.3s var(--ease-spring);
}

@keyframes emoji-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.charades-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
}

.emoji-pick-btn {
  font-size: 1.4rem;
  padding: 0.3rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.emoji-pick-btn:hover {
  background: var(--green-glow);
  border-color: var(--border);
  transform: scale(1.2);
}

.charades-guess-input {
  display: flex;
  gap: 0.5rem;
}

.charades-result {
  text-align: center;
  padding: 1.5rem;
}

.charades-result-word {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.charades-result-word strong {
  color: var(--green);
}

.charades-winner {
  font-size: 1rem;
  color: var(--cyan);
}

/* Game Role Badges */
.game-role-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.describer-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple);
}

.guesser-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan);
}

/* Would You Rather */
.wyr-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.wyr-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.wyr-option-btn {
  width: 100%;
  max-width: 500px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-mono);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.wyr-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.wyr-a:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  box-shadow: 0 5px 20px var(--cyan-glow);
}

.wyr-b:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 5px 20px rgba(168, 85, 247, 0.15);
}

.wyr-option-btn.selected {
  box-shadow: 0 0 20px var(--green-glow);
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.1);
}

.wyr-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  min-width: 30px;
}

.wyr-b .wyr-label {
  color: var(--purple);
}

.wyr-text {
  font-size: 0.95rem;
}

.wyr-vs {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem;
}

/* WYR Results */
.wyr-results {
  text-align: center;
}

.wyr-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

.wyr-result-bar {
  display: flex;
  height: 50px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.wyr-result-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  transition: width 1s var(--ease-out);
  min-width: 0;
}

.wyr-fill-a {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.15));
  color: var(--cyan);
}

.wyr-fill-b {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.3));
  color: var(--purple);
}

.wyr-result-counts {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Leaderboard */
.game-leaderboard {
  display: none;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.leaderboard-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}

.leaderboard-row:hover {
  background: var(--green-glow);
}

.leaderboard-me {
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.15);
}

.leaderboard-rank {
  font-size: 1.1rem;
  min-width: 30px;
}

.leaderboard-name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}

.leaderboard-score {
  color: var(--green);
  font-weight: 700;
}

/* Game Chat (compact) */
.game-chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 250px;
  margin-bottom: 1rem;
}

.game-chat-messages {
  font-size: 0.78rem;
}

/* Game Over Screen */
.game-over-screen {
  text-align: center;
  padding: 1.5rem;
}

.game-over-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 30px var(--green-glow-strong);
}

.game-over-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.game-over-winner {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.game-over-standings {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 400px;
  margin: 0 auto;
}

.game-over-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.game-over-row span:first-child {
  min-width: 30px;
  font-size: 1.1rem;
}

.game-over-row span:nth-child(2) {
  flex: 1;
  text-align: left;
  color: var(--text-primary);
}

.game-over-row span:last-child {
  color: var(--green);
  font-weight: 700;
}

.game-over-me {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Game Countdown */
.game-countdown {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 2rem;
  animation: pulse-text 1.5s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 768px) {
  .party-grid {
    grid-template-columns: 1fr;
  }
  .game-select-grid {
    grid-template-columns: 1fr;
  }
  .game-options {
    grid-template-columns: 1fr;
  }
  .party-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  .quick-join-row {
    flex-direction: column;
  }
  .quick-join-row .app-input {
    width: 100%;
  }
  .wyr-option-btn {
    max-width: 100%;
  }
  .race-player-name {
    width: 70px;
    font-size: 0.7rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  #matrix-rain, #particle-canvas {
    display: none;
  }
}

/* ============================================================
   NEW FEATURES (Phases 1-3) STYLES
   ============================================================ */

/* --- Now Page --- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.now-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-base);
}
.now-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.now-card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.now-card-title { color: var(--green); font-size: 1.1rem; margin-bottom: 0.75rem; }
.now-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.now-list li::before { content: "› "; color: var(--cyan); }
.now-cta { margin-top: 3rem; text-align: center; background: rgba(0,255,65,0.03); border: 1px dashed var(--border); padding: 2rem; border-radius: var(--radius-md); }

/* --- Guestbook --- */
.gb-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem; margin-top: 2rem; }
.gb-form-title { color: var(--green); margin-bottom: 1rem; font-size: 1.1rem; }
.gb-form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.gb-label { font-size: 0.85rem; color: var(--text-primary); }
.gb-textarea { min-height: 100px; resize: vertical; }
.gb-char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
.gb-entries { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.gb-entry { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; }
.gb-entry-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.gb-entry-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan-glow); color: var(--cyan); border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85rem; }
.gb-entry-name { font-weight: 600; color: var(--green); text-decoration: none; }
.gb-entry-date { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.gb-entry-message { font-size: 0.9rem; color: var(--text-secondary); white-space: pre-wrap; }
.gb-status-success { color: var(--green); margin-top: 0.5rem; }
.gb-status-error { color: var(--red); margin-top: 0.5rem; }
.gb-loading, .gb-empty { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* --- Polls & Q&A --- */
.poll-container { margin-top: 2rem; }
.poll-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; position: relative; }
.poll-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(255,0,85,0.15); color: var(--red); border: 1px solid var(--red); font-size: 0.7rem; font-weight: bold; margin-bottom: 1rem; }
.poll-question { font-size: 1.3rem; margin-bottom: 1.5rem; color: #fff; }
.poll-options { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.poll-option { position: relative; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; cursor: pointer; overflow: hidden; transition: var(--transition-fast); }
.poll-option:hover { border-color: var(--cyan); background: rgba(0,212,255,0.05); }
.poll-option.selected { border-color: var(--green); background: rgba(0,255,65,0.05); }
.poll-option-fill { position: absolute; top: 0; left: 0; bottom: 0; background: var(--green-glow); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.poll-option-label { position: relative; z-index: 1; display: flex; justify-content: space-between; font-weight: 500; }
.poll-footer { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.qa-section { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2.5rem; }
.qa-title { color: var(--cyan); font-size: 1.2rem; margin-bottom: 0.5rem; }
.qa-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.qa-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; margin-top: 1rem; }
.qa-q { font-weight: 600; color: #fff; margin-bottom: 0.5rem; display: flex; gap: 0.5rem; }
.qa-q-prefix { color: var(--cyan); }
.qa-a { color: var(--text-secondary); font-size: 0.9rem; display: flex; gap: 0.5rem; background: rgba(0,255,65,0.02); padding: 0.75rem; border-radius: 4px; }
.qa-a-prefix { color: var(--green); font-weight: bold; }

/* --- Presence / Multiplayer Cursors --- */
.presence-cursor { position: absolute; top: 0; left: 0; pointer-events: none; transition: transform 0.08s linear; z-index: 99999; }
.presence-name { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; color: #000; font-weight: bold; margin-left: 12px; margin-top: 12px; white-space: nowrap; }
.presence-bubble { position: absolute; top: 24px; left: 16px; background: #161b22; border: 1px solid var(--cyan); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 0.75rem; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.presence-bubble.active { opacity: 1; transform: translateY(0); }

/* --- Whiteboard --- */
.draw-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.draw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: rgba(0,0,0,0.4); padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.draw-status { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.draw-status.connected { color: var(--green); }
.draw-status.error { color: var(--red); }
.draw-colors, .draw-sizes, .draw-actions { display: flex; align-items: center; gap: 0.5rem; }
.color-btn { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease; }
.color-btn.active { border-color: #fff; transform: scale(1.2); }
.size-btn { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.size-btn.active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }
.canvas-container { width: 100%; overflow: auto; display: flex; justify-content: center; background: #0a0a0a; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); }
#whiteboardCanvas { display: block; background: #0a0a0a; cursor: crosshair; touch-action: none; max-width: 100%; height: auto; }

/* --- Code Playground & JSON Tools --- */
.playground-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 900px) { .playground-grid { grid-template-columns: 1fr; } }
.pg-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; overflow: hidden; height: 500px; }
.pg-panel-header { background: #161b22; padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--green); font-weight: bold; }
.pg-actions { display: flex; gap: 0.5rem; }
.pg-editor { flex: 1; width: 100%; background: #0c1017; border: none; padding: 1rem; color: #e6edf3; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; resize: none; outline: none; }
.pg-console { flex: 1; background: #080b0f; padding: 1rem; overflow-y: auto; font-family: var(--font-mono); font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pg-line { line-height: 1.4; word-break: break-word; }
.pg-line-log { color: var(--green); }
.pg-line-warn { color: var(--yellow); }
.pg-line-error { color: var(--red); }
.pg-line-info { color: var(--cyan); }


/* ============================================================
   JAM.SYNC — PREMIUM DESIGN SYSTEM & ROOM STYLING
   ============================================================ */

.jam-body {
  background: #06080c;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Blurred Backdrop derived from track artwork */
.ambient-backdrop {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  filter: blur(80px) brightness(0.35) saturate(1.8);
  opacity: 0;
  transition: opacity 1.2s ease, background-image 1.2s ease;
}
.ambient-backdrop.active {
  opacity: 0.85;
}

/* Navigation Bar */
.jam-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.jam-nav-left, .jam-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.jam-back-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.jam-back-btn:hover { color: var(--green); }

.jam-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.jam-logo-icon { font-size: 1.2rem; }
.jam-dot { color: var(--green); }

.jam-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}
.jam-nav-btn:hover {
  background: rgba(0, 255, 65, 0.12);
  border-color: var(--green);
  color: var(--green);
}
.jam-nav-btn.active {
  background: var(--green-glow-strong);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.jam-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.jam-user-pill:hover { border-color: var(--cyan); }
.avatar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* Container & Lobby */
.jam-container {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.jam-lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.jam-hero-badge {
  display: inline-block;
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.jam-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
}
.text-gradient {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jam-hero-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* Profile Customizer Card */
.jam-profile-card {
  width: 100%;
  max-width: 600px;
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: left;
}
.jam-card-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.jam-profile-inputs {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.avatar-color-picker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-option.active {
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 12px currentColor;
}

/* Action Cards & Presets */
.jam-action-card {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.jam-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.jam-join-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.jam-presets-section {
  width: 100%;
  max-width: 800px;
  margin-top: 1rem;
  text-align: left;
}
.jam-presets-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.jam-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.preset-btn {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.preset-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* ROOM VIEW */
.jam-room-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.jam-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}
.room-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.room-title-area h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.room-code-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 255, 65, 0.08);
  border: 1px dashed var(--green);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.room-code-badge:hover {
  background: rgba(0, 255, 65, 0.18);
}
.code-lbl { color: var(--text-muted); font-size: 0.72rem; }
.code-val { color: var(--green); font-weight: 800; letter-spacing: 1px; }
.copy-icon { font-size: 0.8rem; }
.room-lock-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 4px;
}

.room-status-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Stacked Collaborator Avatars */
.collaborator-stack {
  display: flex;
  align-items: center;
}
.collaborator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0a0e14;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: bold;
  color: #000;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}
.collaborator-avatar:first-child { margin-left: 0; }
.collaborator-avatar:hover { transform: translateY(-4px) scale(1.1); z-index: 10; }
.collaborator-avatar.host-avatar::after {
  content: '👑';
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 0.65rem;
}
.collaborator-more {
  background: #1c2331;
  color: var(--text-secondary);
  border-color: #0a0e14;
}

/* HERO PLAYER STAGE */
.jam-hero-player-stage {
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.jam-artwork-card {
  width: 100%;
  height: 360px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#jamAlbumArt {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Waveform Visualizer Canvas overlay */
.visualizer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Reaction Burst Floating Overlay */
.reaction-burst-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.reaction-burst-particle {
  position: absolute;
  bottom: 10px;
  font-size: 2.2rem;
  user-select: none;
  animation: floatBurst 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}
@keyframes floatBurst {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-160px) scale(1.3) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-320px) scale(1) rotate(-15deg);
  }
}

.jam-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* Track Info Bar & Reaction Toolbar */
.jam-track-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.jam-track-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.jam-source-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}
.jam-track-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.jam-track-artist {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.jam-reaction-bar {
  display: flex;
  gap: 0.4rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 30px;
}
.reaction-burst-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}
.reaction-burst-btn:hover {
  transform: scale(1.3);
  background: rgba(255,255,255,0.1);
}
.reaction-burst-btn:active {
  transform: scale(0.95);
}

/* Controls Stage & Progress Bar */
.jam-controls-stage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.jam-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.time-stamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 45px;
  text-align: center;
}
.progress-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.15s ease;
}
.progress-bar-container:hover {
  height: 12px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.jam-control-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.play-btn {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 800 !important;
  padding: 8px 24px !important;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 0 15px var(--green-glow-strong);
}
.play-btn:hover {
  transform: scale(1.05);
}
.btn-small {
  font-size: 0.75rem !important;
  padding: 6px 12px !important;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.vol-icon { cursor: pointer; font-size: 0.9rem; }
.volume-control input[type="range"] {
  width: 80px;
  accent-color: var(--green);
  cursor: pointer;
}
.bg-mode-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Add Media Bar */
.jam-add-media-bar {
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.url-input-group {
  display: flex;
  gap: 0.75rem;
}
.file-upload-btn {
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Host Controls Panel */
.jam-host-controls-panel {
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed var(--purple);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: bold;
}
.host-control-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Dual Grid: Queue & Live Chat */
.jam-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 850px) {
  .jam-room-grid {
    grid-template-columns: 1fr;
  }
}

.queue-panel, .jam-chat-panel {
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: hidden;
}

.panel-header, .jam-chat-header {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-actions { display: flex; gap: 0.4rem; align-items: center; }

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.queue-item.now-playing-item {
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.06);
}
.empty-queue-item {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  justify-content: center;
  border: none;
}

/* Presence Drawer */
.presence-drawer {
  background: #0d1117;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  max-height: 180px;
  overflow-y: auto;
}
.drawer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.kick-btn {
  background: rgba(255,0,85,0.15);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}

/* Typing Indicator Bar */
.typing-indicator-bar {
  padding: 4px 12px;
  background: rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Focus Mode Layout overrides */
body.focus-mode .jam-nav-btn { background: var(--green-glow-strong); border-color: var(--green); }
body.focus-mode .jam-room-grid { display: none !important; }
body.focus-mode .jam-artwork-card { height: 500px; }

/* Announcement Banner */
.announcement-banner {
  background: rgba(0, 255, 65, 0.08);
  border-bottom: 1px solid var(--green);
  color: var(--text-primary);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: none;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 255, 65, 0.15);
}
.announcement-banner.show {
  display: block;
}
.announcement-banner a {
  color: var(--cyan);
  margin-left: 8px;
  font-weight: bold;
  text-decoration: underline;
}
