/* ===== RESET & ROOT ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #040810;
  --surface:     #070c18;
  --surface-2:   #0b1022;

  --white:       #e8eef8;
  --gray:        #6b7a99;
  --gray-dim:    #3d4a65;

  --lime:        #b8f04a;
  --lime-glow:   rgba(184, 240, 74, 0.18);
  --sky:         #38bdf8;
  --sky-glow:    rgba(56, 189, 248, 0.15);
  --amber:       #fbbf24;

  --gradient:    linear-gradient(135deg, #b8f04a, #38bdf8);

  --border:      rgba(232, 238, 248, 0.06);
  --border-2:    rgba(232, 238, 248, 0.11);

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint:  cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== GRAIN ===== */
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ===== KEYFRAMES ===== */
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(28px, -35px) scale(1.06); }
  66%  { transform: translate(-16px, 18px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes limeGlowPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(184,240,74,0.16), 0 20px 60px rgba(184,240,74,0.14); }
  50%       { box-shadow: 0 0 0 1px rgba(184,240,74,0.26), 0 20px 80px rgba(184,240,74,0.26); }
}

/* ===== FADE-IN (scroll-animations.js) ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.30s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

.hero .fade-in { animation: heroIn 1.1s var(--ease-expo) forwards; opacity: 0; }
.hero .fade-in.fade-in-delay-1 { animation-delay: 0.18s; }
.hero .fade-in.fade-in-delay-2 { animation-delay: 0.34s; }
.hero .fade-in.fade-in-delay-3 { animation-delay: 0.52s; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, env(safe-area-inset-left));
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.nav-logo img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.28s var(--ease-expo);
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
}
.nav-btn-outline {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
}
.nav-btn-outline:hover {
  color: var(--white);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.04);
}
.nav-btn-primary {
  background: var(--lime);
  color: #040810;
  font-weight: 600;
}
.nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--lime-glow);
  filter: brightness(1.06);
}

/* Lang Selector */
.lang-selector { position: relative; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.28s var(--ease-expo);
}
.lang-btn:hover { color: var(--white); border-color: var(--border-2); background: rgba(255,255,255,0.04); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(7, 12, 24, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  min-width: 190px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 6px 0;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a { display: block; padding: 8px 16px; color: var(--gray); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.lang-dropdown a:hover { background: rgba(184,240,74,0.07); color: var(--white); }
.lang-dropdown::-webkit-scrollbar { width: 3px; }
.lang-dropdown::-webkit-scrollbar-thumb { background: rgba(184,240,74,0.22); border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--lime);
  border-radius: 980px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #040810;
  letter-spacing: -0.01em;
  transition: all 0.32s var(--ease-expo);
}
.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-expo); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(184,240,74,0.42); filter: brightness(1.05); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary.btn-large { padding: 17px 34px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 980px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  border: 1px solid var(--border);
  transition: all 0.28s var(--ease-expo);
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-2); background: rgba(255,255,255,0.04); }

/* ===== SECTION LAYOUT ===== */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid rgba(184,240,74,0.28);
  background: rgba(184,240,74,0.07);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--white);
}
.headline-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--gray);
  margin-top: 14px;
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 28px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,240,74,0.12) 0%, transparent 65%);
  top: -200px; left: -150px;
  animation: orbFloat 24s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.10) 0%, transparent 65%);
  bottom: 0; right: -100px;
  animation: orbFloat 19s ease-in-out infinite reverse;
  animation-delay: -7s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184,240,74,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 10%, transparent 70%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { text-align: left; }

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid rgba(184,240,74,0.28);
  background: rgba(184,240,74,0.07);
  margin-bottom: 22px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--white) 20%, var(--lime) 45%, var(--sky) 65%, var(--white) 80%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat { text-align: left; padding: 0 20px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }
.hero-stat-link { display: block; transition: transform 0.3s; }
.hero-stat-link:hover { transform: scale(1.05); }
.hero-stat-sep { width: 1px; height: 32px; background: var(--border-2); flex-shrink: 0; }

/* ===== DISCORD WINDOW ===== */
.discord-window {
  background: #1e1f2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 80px rgba(184,240,74,0.14);
  display: grid;
  grid-template-rows: 36px 1fr;
  grid-template-columns: 52px 162px 1fr;
  height: 540px;
  font-family: var(--font-body);
}

.discord-titlebar {
  grid-column: 1 / -1;
  background: #17181f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.discord-dots { display: flex; gap: 5px; }
.discord-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.discord-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
  margin-left: 6px;
}

/* Server icon sidebar */
.discord-server-sidebar {
  background: #111219;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
  overflow: hidden;
  scrollbar-width: none;
}
.discord-server-sidebar::-webkit-scrollbar { display: none; }
.discord-server {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.22s var(--ease-expo);
  border: 2px solid transparent;
  flex-shrink: 0;
  position: relative;
}
.discord-server:hover {
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
}
.discord-server.active {
  border-radius: 14px;
  border-color: var(--server-color, var(--lime));
  background: color-mix(in srgb, var(--server-color, var(--lime)) 18%, transparent);
}
/* Server tooltip */
.discord-server::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #18191f;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.1);
}
.discord-server:hover::after { opacity: 1; }

/* Channel sidebar */
.discord-channel-sidebar {
  background: #1a1b26;
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow-y: auto;
  scrollbar-width: none;
}
.discord-channel-sidebar::-webkit-scrollbar { display: none; }

.discord-server-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: -0.01em;
}
.discord-category-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 10px 4px;
}
.discord-channel {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  margin: 1px 4px;
  border-radius: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: all 0.15s;
}
.discord-channel:hover {
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.05);
}
.discord-channel.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.dc-ch-icon { font-size: 11px; flex-shrink: 0; opacity: 0.6; }
.dc-ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ch-badge {
  font-size: 7px;
  padding: 1px 4px;
  background: rgba(184,240,74,0.14);
  color: var(--lime);
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Chat wrap — 3rd column, holds scrollable chat + input bar */
.discord-chat-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e1f2e;
  min-width: 0;
}

/* Chat area */
.discord-chat {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1e1f2e;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  min-height: 0;
}
.discord-chat::-webkit-scrollbar { width: 3px; }
.discord-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Chat message */
.dc-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
}
.dc-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--avatar-bg, #4b5563);
}
.dc-avatar-bot { background: linear-gradient(135deg, #38bdf8, #b8f04a); }
.dc-avatar-indigo { background: #6366f1; }
.dc-avatar-red { background: #f87171; }
.dc-body { flex: 1; min-width: 0; }
.dc-name { font-size: 11px; font-weight: 600; color: var(--white); margin-bottom: 1px; }
.dc-name-bot { color: #7dd3fc; }
.dc-name-staff { color: #b8f04a; }
.dc-channel-link { background: rgba(88,101,242,0.18); color: #7289da; padding: 0 3px; border-radius: 3px; cursor: pointer; font-weight: 500; }
.dc-channel-link:hover { background: rgba(88,101,242,0.35); text-decoration: underline; }
.dc-text { font-size: 11.5px; color: rgba(220,225,240,0.65); line-height: 1.45; }
.dc-text strong { color: rgba(220,225,240,0.85); font-weight: 600; }
.dc-text-sky { color: var(--sky); }
.dc-text-lime { color: var(--lime); }
.dc-text-amber { color: #fbbf24; }
.dc-text-gray { color: var(--gray); }
.dc-text-danger { color: #f87171; }
.dc-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 4px 0; }
.dc-system-msg { text-align: center; color: rgba(255,255,255,0.28); font-size: 10px; padding: 6px 12px; }

/* GlobalChat style messages */
.dc-global-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
}
.dc-flag-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dc-global-body { flex: 1; min-width: 0; }
.dc-global-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 1px; }
.dc-global-server { font-size: 11px; font-weight: 600; color: var(--white); }
.dc-global-tag {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  border: 1px solid;
}
.dc-global-tag.tag-own { background: rgba(184,240,74,0.12); color: #b8f04a; border-color: rgba(184,240,74,0.2); }
.dc-global-tag.tag-translated { background: rgba(251,191,36,0.10); color: #fde68a; border-color: rgba(251,191,36,0.18); }
.dc-global-text { font-size: 11.5px; color: rgba(220,225,240,0.65); line-height: 1.45; }
.dc-global-text-muted { color: var(--gray); font-style: italic; }

/* Log entries */
.dc-log {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  margin: 2px 0;
  font-size: 11px;
  color: rgba(220,225,240,0.6);
}
.dc-log-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }

/* Leaderboard */
.dc-leaderboard { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.dc-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 11px;
}
.dc-lb-row.dc-lb-highlight { background: rgba(184,240,74,0.07); border: 1px solid rgba(184,240,74,0.15); }
.dc-lb-rank { width: 16px; font-weight: 700; color: var(--gray); text-align: center; flex-shrink: 0; }
.dc-lb-avatar { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; background: var(--avatar-bg, #4b5563); }
.dc-lb-name { flex: 1; font-weight: 500; color: rgba(220,225,240,0.8); }
.dc-lb-level { font-size: 10px; color: var(--gray); }
.dc-lb-xp { font-size: 10px; font-weight: 600; color: var(--lime); }

/* Welcome message */
.dc-welcome {
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(56,189,248,0.06));
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0;
}
.dc-welcome-title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.dc-welcome-desc { font-size: 11px; color: rgba(220,225,240,0.6); line-height: 1.5; }
.dc-welcome-member { font-size: 10px; color: var(--gray); margin-top: 6px; }

/* Roles menu */
.dc-roles-title { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 8px; padding: 4px 0; }
.dc-roles-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-role-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(220,225,240,0.75);
  cursor: pointer;
}

/* Music player in chat */
.dc-player {
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0;
}
.dc-player-track { font-size: 12px; font-weight: 700; color: var(--white); }
.dc-player-artist { font-size: 10px; color: var(--gray); margin-bottom: 8px; }
.dc-player-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 4px; }
.dc-player-fill { height: 100%; width: var(--dc-fill, 0%); background: #a78bfa; border-radius: 2px; }
.dc-player-times { display: flex; justify-content: space-between; font-size: 9px; color: var(--gray); margin-bottom: 8px; }
.dc-player-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dc-ctrl { font-size: 14px; cursor: pointer; color: rgba(220,225,240,0.7); }
.dc-ctrl-play { font-size: 18px; color: #a78bfa; }
.dc-ctrl-shuffle { margin-left: auto; font-size: 12px; }
.dc-player-queue { font-size: 10px; color: var(--gray); }
.dc-player-queue div { padding: 2px 0; color: rgba(220,225,240,0.5); }

/* Ticket in chat */
.dc-ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dc-ticket-title { font-size: 12px; font-weight: 700; color: var(--white); }
.dc-ticket-status { font-size: 9px; padding: 2px 7px; border-radius: 4px; font-weight: 600; background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.dc-ticket-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dc-ticket-btn { padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,0.06); color: rgba(220,225,240,0.65); border: 1px solid rgba(255,255,255,0.08); }
.dc-ticket-btn.btn-claim { background: rgba(184,240,74,0.1); color: var(--lime); border-color: rgba(184,240,74,0.2); }

/* Translate demo */
.dc-translate-box {
  background: rgba(184,240,74,0.05);
  border: 1px solid rgba(184,240,74,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 5px;
}
.dc-translate-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); margin-bottom: 3px; }
.dc-translate-text { font-size: 11.5px; color: rgba(220,225,240,0.8); }
.dc-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: rgba(220,225,240,0.6);
  margin-top: 4px;
}

/* Demo banner above window */
.discord-demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(184,240,74,0.07);
  border: 1px solid rgba(184,240,74,0.18);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 11px;
  color: rgba(220,225,240,0.65);
  font-weight: 500;
}
.demo-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.discord-demo-banner strong { color: var(--lime); }
.demo-live-badge {
  background: rgba(184,240,74,0.16);
  color: var(--lime);
  border: 1px solid rgba(184,240,74,0.3);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}
.demo-interact-hint {
  margin-left: auto;
  font-size: 10px;
  color: rgba(220,225,240,0.6);
}
.demo-try-sample {
  color: var(--lime);
  font-weight: 700;
}

/* Interactive "▶ Try" channel badge (pulsing) */
.dc-ch-badge-live {
  font-size: 7px;
  padding: 1px 4px;
  background: rgba(184,240,74,0.18);
  color: var(--lime);
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Translate: info banner (prominent, top of channel) */
.dc-translate-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(184,240,74,0.06);
  border: 1px solid rgba(184,240,74,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.dc-translate-info-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.dc-translate-info-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.dc-translate-info-desc {
  font-size: 10.5px;
  color: rgba(220,225,240,0.7);
  line-height: 1.5;
}
.dc-translate-info-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0 3px;
  font-size: 11px;
  line-height: 1.5;
}

/* Translate: per-message 🌐 react button (appears on hover) */
.dc-msg-translatable { position: relative; }
.dc-msg-react-btn {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  color: inherit;
}
.dc-msg-translatable:hover .dc-msg-react-btn { opacity: 1; }
.dc-msg-react-btn:hover {
  background: rgba(184,240,74,0.15);
  border-color: rgba(184,240,74,0.35);
}

/* Translate: reaction buttons */
.dc-reactions { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.dc-react-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 13px;
  cursor: pointer;
  color: rgba(220,225,240,0.7);
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.6;
}
.dc-react-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.dc-react-btn.active {
  background: rgba(184,240,74,0.14);
  border-color: rgba(184,240,74,0.35);
}
.dc-translate-result { margin: 2px 0 6px 34px; }
.dc-translate-embed-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dc-translate-embed-box {
  border-left: 3px solid var(--lime);
  background: rgba(184,240,74,0.04);
  border-radius: 0 6px 6px 0;
  padding: 6px 10px;
  flex: 1;
  min-width: 0;
}
.dc-translate-embed-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 3px;
}
.dc-translate-embed-text { font-size: 11.5px; color: rgba(220,225,240,0.85); line-height: 1.45; }
.dc-translate-embed-footer { font-size: 9px; color: var(--gray); margin-top: 4px; }

/* Log embeds — Discord embed style (colored left border + fields) */
.dc-log-embed {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--embed-color, #5865f2);
  border-radius: 0 6px 6px 0;
  padding: 7px 10px;
  margin: 3px 0;
  position: relative;
}
.dc-embed-thumb {
  position: absolute;
  right: 8px; top: 7px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(220,225,240,0.55);
}
.dc-embed-body { flex: 1; min-width: 0; padding-right: 28px; }
.dc-embed-title { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.dc-embed-field { font-size: 10.5px; color: rgba(220,225,240,0.6); line-height: 1.6; }
.dc-embed-field-name { font-weight: 600; color: rgba(220,225,240,0.82); }
.dc-embed-footer { font-size: 9px; color: var(--gray); margin-top: 5px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 4px; }

/* ===== DISCORD INPUT BAR ===== */
#discord-input-container { flex-shrink: 0; position: relative; }

.discord-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #1e1f2e;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.discord-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.discord-input::placeholder { color: rgba(255,255,255,0.3); }
.discord-input:focus { border-color: rgba(184,240,74,0.35); }
.discord-input:disabled { opacity: 0.5; cursor: not-allowed; }
.discord-input-send {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--lime);
  border: none;
  color: #040810;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.discord-input-send:hover { filter: brightness(1.1); }
.discord-input-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Flag picker button in translate input bar */
.dc-flag-picker-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  transition: all 0.15s;
}
.dc-flag-picker-btn:hover {
  background: rgba(184,240,74,0.1);
  border-color: rgba(184,240,74,0.3);
  color: var(--lime);
}
.dc-flag-picker-btn.active {
  background: rgba(184,240,74,0.15);
  border-color: rgba(184,240,74,0.4);
}

/* Flag emoji picker panel (global fixed-position overlay, positioned via JS) */
.dc-flag-picker {
  position: fixed;
  z-index: 999;
  width: 280px;
  background: #161724;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.dc-flag-picker.open { display: flex; }
.dc-flag-picker-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.dc-flag-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.dc-flag-emoji-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 2px 4px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1.5;
  transition: all 0.1s;
  color: inherit;
}
.dc-flag-emoji-btn:hover {
  background: rgba(184,240,74,0.1);
  border-color: rgba(184,240,74,0.25);
  transform: scale(1.15);
}

/* Typing indicator */
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}
.dc-typing {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.dc-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: typingBounce 1.2s infinite;
}
.dc-typing span:nth-child(2) { animation-delay: 0.15s; }
.dc-typing span:nth-child(3) { animation-delay: 0.30s; }

/* Streaming cursor — shown while SSE stream is active */
.dc-stream-cursor::after {
  content: '▋';
  color: var(--lime);
  animation: cursor-blink 0.7s step-end infinite;
  margin-left: 1px;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Discord window layout with input */
.discord-window {
  flex-direction: unset;
}
.discord-chat-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e1f2e;
}
.discord-chat {
  flex: 1;
  min-height: 0;
}

/* ===== TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  padding: 14px 0;
  background: rgba(184,240,74,0.04);
  border-top: 1px solid rgba(184,240,74,0.10);
  border-bottom: 1px solid rgba(184,240,74,0.10);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
}
.ticker-item-icon { font-size: 15px; }
.ticker-sep {
  color: rgba(184,240,74,0.35);
  font-size: 16px;
  padding: 0 4px;
}

/* ===== FEATURE TABS ===== */
.features-section {
  padding: 120px 0 100px;
  position: relative;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 44px 0 56px;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.26s var(--ease-expo);
}
.feature-tab:hover { color: var(--white); border-color: var(--border-2); background: rgba(255,255,255,0.04); }
.feature-tab.active {
  background: var(--lime);
  border-color: transparent;
  color: #040810;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(184,240,74,0.32);
}
.feature-tab-icon { font-size: 15px; }

.feature-showcase {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-info { text-align: left; }

.feature-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 980px;
  margin-bottom: 16px;
  border: 1px solid;
}

.feature-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(232,238,248,0.75);
  line-height: 1.45;
}
.feature-points li::before {
  content: '✓';
  color: var(--lime);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Feature Demo area */
.feature-demo {
  background: rgba(7, 12, 24, 0.98);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  min-height: 320px;
}

.demo-window-bar {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.02);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; }
.demo-dot-r { background: #ff5f57; }
.demo-dot-y { background: #ffbd2e; }
.demo-dot-g { background: #28c840; }
.demo-window-title {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
  font-weight: 500;
}

.demo-body { padding: 18px; }

/* Chat demo */
.demo-chat { display: flex; flex-direction: column; gap: 12px; }
.demo-chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.demo-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.demo-bubble { display: flex; flex-direction: column; gap: 2px; }
.demo-name { font-size: 11px; font-weight: 600; color: var(--white); }
.demo-name-bot { color: #7dd3fc; }
.demo-text { font-size: 12px; color: rgba(220,225,240,0.65); line-height: 1.5; }
.demo-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 2px 0; }

/* Global demo */
.demo-global { display: flex; flex-direction: column; gap: 12px; }
.demo-global-msg { display: flex; gap: 10px; align-items: flex-start; }
.demo-flag-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.demo-global-body { display: flex; flex-direction: column; gap: 2px; }
.demo-global-meta { display: flex; align-items: center; gap: 6px; }
.demo-global-server { font-size: 11px; font-weight: 600; color: var(--white); }
.demo-global-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(251,191,36,0.12);
  color: #fde68a;
  font-weight: 600;
  border: 1px solid rgba(251,191,36,0.2);
}
.demo-global-text { font-size: 12px; color: rgba(220,225,240,0.65); line-height: 1.5; }

/* Music player demo */
.demo-player { padding: 8px 0; }
.demo-player-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.demo-player-artist { font-size: 11px; color: var(--gray); margin-bottom: 14px; }
.demo-progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 6px; position: relative; overflow: hidden; }
.demo-progress-fill { height: 100%; background: var(--lime); border-radius: 2px; width: 38%; }
.demo-progress-times { display: flex; justify-content: space-between; font-size: 10px; color: var(--gray); margin-bottom: 16px; }
.demo-player-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.demo-ctrl-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.demo-ctrl-btn.demo-ctrl-play {
  width: 42px; height: 42px;
  font-size: 18px;
  background: var(--lime);
  color: #040810;
}
.demo-queue-title { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 8px; }
.demo-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
  color: rgba(220,225,240,0.6);
}
.demo-queue-num { color: var(--gray-dim); width: 14px; flex-shrink: 0; }

/* Translate demo */
.demo-translate { display: flex; flex-direction: column; gap: 12px; }
.demo-translate-msg { display: flex; gap: 10px; align-items: flex-start; }
.demo-reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}
.demo-translate-result {
  background: rgba(184,240,74,0.06);
  border: 1px solid rgba(184,240,74,0.16);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
}
.demo-translate-label { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.demo-translate-text { font-size: 12px; color: rgba(220,225,240,0.75); }

/* Ticket demo */
.demo-ticket { display: flex; flex-direction: column; gap: 10px; }
.demo-ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.demo-ticket-title { font-size: 13px; font-weight: 600; color: var(--white); }
.demo-ticket-status {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
}
.demo-ticket-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.demo-ticket-actions { display: flex; gap: 8px; margin-top: 8px; }
.demo-ticket-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: rgba(220,225,240,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.demo-ticket-btn.demo-ticket-btn-lime {
  background: rgba(184,240,74,0.12);
  color: var(--lime);
  border-color: rgba(184,240,74,0.2);
}

/* ===== MODULES GRID ===== */
.modules-section {
  padding: 100px 0 120px;
  background: var(--surface);
  position: relative;
}
.modules-section::before, .modules-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.modules-section::before { top: 0; }
.modules-section::after  { bottom: 0; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
  text-align: left;
}

.module-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: default;
  transition: all 0.3s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,240,74,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.module-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.module-card:hover::before { opacity: 1; }

.module-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.module-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.module-info { flex: 1; min-width: 0; }
.module-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.module-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  color: white;
}
.module-tagline {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.45;
}

/* Module card hover: show description */
.module-desc {
  font-size: 12px;
  color: rgba(220,225,240,0.55);
  line-height: 1.5;
  margin-top: 8px;
  display: none;
}
.module-card:hover .module-tagline { display: none; }
.module-card:hover .module-desc { display: block; }

/* ===== COMPARISON ===== */
.compare-section {
  padding: 120px 0;
  text-align: center;
}

.bot-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 44px auto 48px;
  max-width: 700px;
}
.bot-pill {
  padding: 8px 18px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-expo);
}
.bot-pill:hover { border-color: var(--border-2); color: var(--white); background: rgba(255,255,255,0.04); }
.bot-pill.active { background: var(--lime); border-color: transparent; color: #040810; font-weight: 600; box-shadow: 0 4px 18px rgba(184,240,74,0.3); }

.comparison-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 820px;
  margin: 0 auto 28px;
}
.compare-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: left;
  transition: all 0.4s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.competitor-card { border-color: rgba(244,63,94,0.2); }
.competitor-card:hover { border-color: rgba(244,63,94,0.35); }
.kiksi-card {
  border-color: rgba(184,240,74,0.42);
  background: linear-gradient(160deg, rgba(184,240,74,0.08) 0%, rgba(56,189,248,0.04) 60%, var(--surface-2) 100%);
  animation: limeGlowPulse 4s ease-in-out infinite;
}
.kiksi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,240,74,0.9), rgba(56,189,248,0.7), transparent);
}
.kiksi-card:hover { border-color: rgba(184,240,74,0.65); box-shadow: 0 0 0 1px rgba(184,240,74,0.28), 0 28px 80px rgba(184,240,74,0.2); transform: translateY(-2px); animation: none; }

.compare-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.compare-card-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.compare-card-price { font-size: 14px; font-weight: 600; color: #fb923c; }
.kiksi-price { color: var(--lime) !important; }
.compare-card-yearly { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
.kiksi-yearly { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 500; }

.compare-features { list-style: none; padding: 0; margin: 0; }
.compare-features li { padding: 6px 0 6px 22px; position: relative; font-size: 13px; color: rgba(232,238,248,0.65); }
.compare-features li::before { position: absolute; left: 0; font-weight: 700; }
.feature-negative::before { content: "\2717"; color: #f87171; }
.feature-positive::before { content: "\2713"; color: var(--lime); }

.vs-divider { display: flex; align-items: center; justify-content: center; }
.vs-divider span {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--gray);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}

.savings-highlight {
  background: linear-gradient(135deg, rgba(184,240,74,0.06), rgba(56,189,248,0.05));
  border: 1px solid rgba(184,240,74,0.2);
  border-radius: 18px;
  padding: 22px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.savings-amount { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--lime); }
.savings-desc { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ===== CTA ===== */
.cta-section {
  padding: 160px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 420px;
  background: radial-gradient(ellipse, rgba(184,240,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--white);
  position: relative;
}
.cta-sub { font-size: clamp(15px, 2vw, 19px); color: var(--gray); margin-top: 14px; position: relative; }
.cta-note { margin-top: 20px; font-size: 13px; color: var(--gray-dim); position: relative; }
.btn-large { margin-top: 46px; }

/* ===== SAVINGS TEASER (before footer) ===== */
.savings-teaser {
  text-align: center;
  padding: 28px 28px;
  background: rgba(184,240,74,0.04);
  border-top: 1px solid rgba(184,240,74,0.10);
}

.savings-teaser-text {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  display: block;
}

.savings-teaser-text strong { color: var(--lime); }

.savings-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.savings-teaser-link:hover { opacity: 1; }

/* ===== FOOTER: handled by style.css (global) ===== */

/* ===== TICKET: SUPPORT CHANNEL ===== */
.dc-ticket-support-embed {
  background: rgba(184, 240, 74, 0.05);
  border: 1px solid rgba(184, 240, 74, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 5px;
  margin-bottom: 8px;
}
.dc-ticket-support-icon { font-size: 18px; margin-bottom: 4px; }
.dc-ticket-support-title { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.dc-ticket-support-desc { font-size: 11px; color: rgba(220,225,240,0.65); line-height: 1.5; margin-bottom: 6px; }
.dc-ticket-support-meta { font-size: 10px; color: var(--gray); }

.dc-ticket-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 6px;
  background: var(--lime);
  color: #040810;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  margin-top: 2px;
}
.dc-ticket-create-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ===== TICKET: TICKET CHANNEL ===== */
.dc-ticket-channel-embed {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--lime);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin-top: 5px;
}
.dc-ticket-channel-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dc-ticket-channel-title { font-size: 12px; font-weight: 700; color: var(--white); }
.dc-ticket-status-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
  font-weight: 600;
}
.dc-ticket-channel-body { font-size: 11.5px; color: rgba(220,225,240,0.75); line-height: 1.5; margin-bottom: 8px; }
.dc-ticket-channel-hint { font-size: 10.5px; color: var(--gray); margin-top: 3px; }

.dc-user-mention {
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

.dc-ticket-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dc-ticket-action-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.dc-ticket-btn-forward {
  background: rgba(255,255,255,0.06);
  color: rgba(220,225,240,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.dc-ticket-btn-forward:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.dc-ticket-btn-close {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.2);
}
.dc-ticket-btn-close:hover { background: rgba(248,113,113,0.18); }
.dc-ticket-btn-close:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== TICKET: FEEDBACK (Coming Soon) ===== */
.dc-ticket-feedback-embed {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 5px;
  text-align: center;
}
.dc-ticket-feedback-title { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.dc-ticket-feedback-desc { font-size: 11px; color: rgba(220,225,240,0.55); margin-bottom: 10px; }
.dc-ticket-feedback-stars { font-size: 17px; letter-spacing: 3px; opacity: 0.28; margin-bottom: 6px; cursor: not-allowed; }
.dc-ticket-feedback-coming-soon {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 8px;
}
.dc-ticket-feedback-transcript { font-size: 10.5px; color: var(--gray); }

/* ===== DM VIEW ===== */
.dc-ticket-dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 6px;
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.22);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  margin-top: 2px;
}
.dc-ticket-dm-btn:hover { background: rgba(56,189,248,0.2); border-color: rgba(56,189,248,0.38); }

.dc-dm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.dc-dm-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dc-dm-bot-tag {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #5865f2;
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dc-dm-sub { font-size: 10px; color: var(--gray); }

/* ===== DM BUTTON IN SERVER SIDEBAR ===== */
.discord-dm-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #b8f04a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s var(--ease-expo);
  flex-shrink: 0;
  position: relative;
}
.discord-dm-icon:hover { border-radius: 14px; filter: brightness(1.1); }
.discord-dm-icon.active { border-radius: 14px; box-shadow: 0 0 0 2px var(--lime); }
.discord-dm-icon::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #18191f;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.1);
}
.discord-dm-icon:hover::after { opacity: 1; }

.discord-sidebar-sep {
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 2px 0;
}

/* DM contact in channel sidebar */
.discord-dm-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.discord-dm-contact:hover { background: rgba(255,255,255,0.05); }
.discord-dm-contact.active { background: rgba(255,255,255,0.1); }
.dc-avatar-sm { width: 22px !important; height: 22px !important; font-size: 9px !important; }
.discord-dm-contact-info { display: flex; align-items: center; gap: 5px; }
.discord-dm-contact-name { font-size: 13px; font-weight: 500; color: var(--white); }

/* DM-only ticket notice */
.dc-ticket-dm-notice {
  font-size: 10.5px;
  color: var(--gray);
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.14);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

/* ===== VOICE CHANNELS ===== */
.dc-channel-voice {
  color: var(--gray);
  cursor: default;
  font-size: 11px;
  opacity: 0.7;
}
.dc-channel-voice:hover {
  background: transparent !important;
  color: var(--gray);
}
.dc-voice-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray);
  font-size: 11px;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* ===== SONG REQUEST CHANNEL ===== */
.dc-song-request {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  gap: 8px;
}
.dc-song-request-embed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dc-song-request-input {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dc-song-request-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 11px;
  outline: none;
  font-family: var(--font-body);
}
.dc-song-request-input input::placeholder { color: var(--gray); }
.dc-song-request-input button {
  background: var(--lime);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dc-song-request-input button:hover { opacity: 0.85; }

/* ===== NOW PLAYING EMBED ===== */
.dc-now-playing {
  background: var(--surface-2);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  padding: 10px 12px;
  max-width: 380px;
}
.dc-now-playing-playing { border-left-color: var(--lime); }
.dc-now-playing-added  { border-left-color: var(--sky); }
.dc-web-player-card    { border-left-color: var(--sky); }
.dc-now-playing-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.dc-now-playing-subtitle {
  font-size: 10.5px;
  color: rgba(232,238,248,0.65);
  line-height: 1.5;
  margin-bottom: 8px;
}
.dc-now-playing-meta {
  font-size: 10px;
  color: var(--gray);
  margin-bottom: 6px;
}
.dc-np-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.dc-np-btn {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9.5px;
  cursor: default;
  white-space: nowrap;
}
.dc-np-btn-link {
  cursor: pointer;
  border-color: rgba(56,189,248,0.3);
  color: var(--sky);
}
.dc-np-btn-link:hover { background: rgba(56,189,248,0.08); }
.dc-embed-footer {
  font-size: 9px;
  color: var(--gray);
  margin-top: 8px;
  opacity: 0.6;
}

/* ===== SELECTION EMBED ===== */
.dc-selection-embed {
  background: var(--surface-2);
  border-left: 3px solid #5865F2;
  border-radius: 4px;
  padding: 10px 12px;
  max-width: 380px;
}
.dc-selection-options {
  font-size: 10.5px;
  line-height: 1.9;
  margin-bottom: 8px;
  color: rgba(232,238,248,0.8);
}
.dc-selection-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dc-selection-btn {
  background: #5865F2;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: var(--font-body);
}
.dc-selection-btn:hover { opacity: 0.82; }
.dc-selection-btn.cancel {
  background: var(--surface);
  color: var(--gray);
  border: 1px solid var(--border);
}

/* ===== PUBLIC CONTROL DEMO ===== */
.dc-public-control-demo {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
}
.dc-web-player-hint {
  background: var(--surface-2);
  border-left: 3px solid var(--sky);
  border-radius: 4px;
  padding: 10px 12px;
  max-width: 380px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 580px; }
  .hero-text { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat:first-child { padding-left: 20px; }
  .hero-preview { max-width: 500px; margin: 0 auto; }
  .hero-grid { mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, black 10%, transparent 70%); }
  .feature-showcase { grid-template-columns: 1fr; gap: 40px; }
  .feature-info { text-align: center; }
  .feature-points { align-items: flex-start; max-width: 420px; margin: 0 auto; }
  .nav-links { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .comparison-cards { grid-template-columns: 1fr; gap: 12px; }
  .vs-divider { padding: 4px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .discord-window {
    height: 420px;
    grid-template-columns: 44px 130px 1fr;
  }
}
