@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   Exodus / Cyber-Violet Luxury Dark Theme
   - Exact text gradient on headings (white to soft lavender)
   - Radial glow button style (+ / primary action)
   - Consistent modern dark-mode aesthetic
   ============================================================ */

:root {
  --bg-0: #06050a;
  --bg-1: #0b0914;
  --bg-2: #120e20;
  --bg-3: #1a152e;
  --bg-4: #251e3e;

  --panel: rgba(14, 11, 24, 0.75);
  --panel-border: rgba(168, 140, 255, 0.12);
  --border: rgba(168, 140, 255, 0.12);
  --border-hover: rgba(192, 132, 252, 0.35);

  --text-main: #f5f3ff;
  --text-secondary: #a39bc2;
  --text-muted: #665e84;

  --accent: #8b5cf6;
  --accent-strong: #6d28d9;
  --accent-bright: #c084fc;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-line: rgba(168, 85, 247, 0.28);

  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --blue: #38bdf8;
  --purple: #c084fc;
  --pink: #f472b6;
  --orange: #fb923c;

  --shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-0);
}

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  color: var(--text-main);
  background: var(--bg-0);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric aurora drift in background */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 15% 10%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(50% 50% at 85% 15%, rgba(192, 132, 252, 0.11), transparent 70%),
    radial-gradient(65% 60% at 50% 95%, rgba(91, 33, 182, 0.16), transparent 75%);
  filter: blur(45px);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.04), transparent 70%);
}

@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}

/* ============================================================
   Animated Background Layer
   ============================================================ */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.4;
  will-change: transform;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 70%);
  animation: orbFloat1 22s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  top: 20%;
  right: -100px;
  background: radial-gradient(circle at 30% 30%, #6d28d9, transparent 70%);
  animation: orbFloat2 28s ease-in-out infinite;
}

.orb-3 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  left: 18%;
  background: radial-gradient(circle at 30% 30%, #4c1d95, transparent 70%);
  animation: orbFloat3 32s ease-in-out infinite;
}

.orb-4 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: 22%;
  background: radial-gradient(circle at 30% 30%, #a855f7, transparent 70%);
  opacity: 0.3;
  animation: orbFloat4 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(120px, 80px, 0) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-140px, 100px, 0) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(100px, -90px, 0) scale(1.12); }
}

@keyframes orbFloat4 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-80px, -70px, 0) scale(1.15); }
}

.bg-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(168, 140, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 140, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.bg-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ============================================================
   Layout
   ============================================================ */

.main-content {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.workspace-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px 36px 64px;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 28px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane.active {
  display: flex;
}

/* ============================================================
   Header & Brand
   ============================================================ */

.header {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(10, 8, 16, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 25%, rgba(233, 213, 255, 0.45), transparent 60%),
    linear-gradient(135deg, #7c3aed 0%, #4c1d95 60%, #150927 100%);
  border: 1px solid rgba(216, 180, 254, 0.5);
  box-shadow:
    0 8px 24px rgba(124, 58, 237, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand-icon:hover {
  transform: scale(1.06) rotate(6deg);
  border-color: rgba(233, 213, 255, 0.8);
  box-shadow:
    0 12px 30px rgba(139, 92, 246, 0.7),
    0 0 20px rgba(192, 132, 252, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}


.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 20%, #e2d9fc 65%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  color: #e2d9fc;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 80%),
    rgba(18, 14, 30, 0.65);
  border: 1px solid rgba(168, 140, 255, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

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

.discord-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(135deg, #5865F2 0%, #4f46e5 55%, #3730a3 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow:
    0 4px 18px rgba(88, 101, 242, 0.42),
    0 0 12px rgba(124, 58, 237, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.discord-header-btn:hover {
  transform: translateY(-1px) scale(1.02);
  color: #ffffff;
  border-color: rgba(233, 213, 255, 0.75);
  box-shadow:
    0 8px 26px rgba(88, 101, 242, 0.6),
    0 0 20px rgba(168, 85, 247, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.discord-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.menu-toggle-btn,
.close-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #c4b5fd;
  background:
    radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.15), transparent 75%),
    rgba(18, 14, 30, 0.8);
  border: 1px solid rgba(168, 140, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.menu-toggle-btn:hover,
.close-btn:hover {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 30%, rgba(192, 132, 252, 0.3), transparent 80%),
    rgba(26, 20, 44, 0.95);
  border-color: rgba(216, 180, 254, 0.5);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.close-btn {
  font-size: 1.4rem;
  line-height: 1;
}

/* ============================================================
   Nav Drawer
   ============================================================ */

.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(10, 8, 16, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  background: rgba(3, 2, 8, 0.75);
  backdrop-filter: blur(4px);
  transition: opacity 0.24s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-nav-item:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(168, 140, 255, 0.2);
  transform: translateX(3px);
}

.drawer-nav-item.active {
  color: #fff;
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 180, 254, 0.25), transparent 70%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.6) 0%, rgba(76, 29, 149, 0.7) 100%);
  border-color: rgba(216, 180, 254, 0.35);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.drawer-nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.drawer-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--panel-border);
}

.drawer-discord-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.18), transparent 70%),
    rgba(18, 14, 30, 0.85);
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.drawer-discord-card:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background:
    radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.28), transparent 70%),
    rgba(24, 18, 40, 0.95);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.3);
  transform: translateY(-1px);
}

.drawer-discord-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #3730a3);
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
  flex-shrink: 0;
}

.drawer-discord-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-discord-title {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.drawer-discord-sub {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.drawer-discord-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.drawer-discord-card:hover .drawer-discord-arrow {
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================
   Cards & Heading Text Gradients (Tick 1)
   ============================================================ */

.card {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  background: rgba(13, 10, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.08);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* Luxury Text Gradient on Headings (Tick 1) */
.card h2,
.card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 15%, #e2d9fc 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0;
}

/* ============================================================
   Progress
   ============================================================ */

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-track {
  width: 160px;
  height: 7px;
  overflow: hidden;
  background: rgba(26, 21, 42, 0.8);
  border: 1px solid rgba(168, 140, 255, 0.15);
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  border-radius: inherit;
  position: relative;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 1.6s linear infinite;
}

@keyframes progressShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ============================================================
   Valid-Accounts Hero Counter
   ============================================================ */

.joined-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    rgba(14, 11, 24, 0.75);
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.joined-hero-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, #7c3aed 0%, #4c1d95 65%, #180b2a 100%);
  border: 1px solid rgba(216, 180, 254, 0.4);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.joined-hero-icon svg {
  width: 28px;
  height: 28px;
}

.joined-hero-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.joined-hero-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.joined-hero-value {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 20%, #ddd6fe 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.joined-hero-value.bump {
  animation: joinBump 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes joinBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.joined-hero-sub {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.joined-hero-sub span {
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* ============================================================
   Stats Grid
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat-box {
  position: relative;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  text-align: center;
  background: rgba(18, 14, 30, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(24, 18, 40, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(139, 92, 246, 0.12);
}

.stat-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-val {
  display: block;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.stat-val.success { color: var(--green); }
.stat-val.warning { color: var(--yellow); }
.stat-val.danger  { color: var(--red); }
.stat-val.info    { color: #60a5fa; }

/* ============================================================
   Config & Live Status Layout
   ============================================================ */

.config-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(540px, 1.28fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  color: var(--text-main);
  background: rgba(10, 8, 16, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #645e7f;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(14, 11, 24, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22), 0 0 16px rgba(139, 92, 246, 0.15);
}

/* ============================================================
   Terminal / Logs
   ============================================================ */

.terminal {
  width: 100%;
  height: 480px;
  padding: 16px 18px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #d7e3f7;
  background: rgba(8, 6, 14, 0.85);
  border: 1px solid rgba(168, 140, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.log-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.45;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
}

.log-line:hover {
  background: rgba(139, 92, 246, 0.08);
}

.log-time {
  flex-shrink: 0;
  width: 84px;
  color: #6d648c;
  user-select: none;
  white-space: nowrap;
}

.log-tag {
  flex-shrink: 0;
  width: 88px;
  font-weight: 700;
  white-space: nowrap;
}

.log-msg {
  flex: 1;
  color: #ede9fe;
  white-space: nowrap;
}

.log-tag.success  { color: var(--green); }
.log-tag.failed   { color: var(--red); }
.log-tag.info     { color: #93c5fd; }
.log-tag.warn     { color: var(--yellow); }

/* ============================================================
   Buttons & Radial Glow Style (Tick 2 in image)
   ============================================================ */

.btn-row {
  display: flex;
  gap: 12px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Primary Button: Signature Exodus Radial Glow (Tick 2) */
.btn-primary {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 180, 254, 0.35), transparent 70%),
    linear-gradient(135deg, #7c3aed 0%, #4c1d95 65%, #241242 100%);
  border: 1px solid rgba(216, 180, 254, 0.45);
  box-shadow:
    0 8px 24px rgba(124, 58, 237, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  border-color: rgba(233, 213, 255, 0.7);
  box-shadow:
    0 12px 32px rgba(124, 58, 237, 0.58),
    0 0 20px rgba(192, 132, 252, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Secondary Button: Sleek Dark Glass with Violet Accent */
.btn-secondary {
  color: #e2d9fc;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.16), transparent 75%),
    rgba(18, 14, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 140, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover:not(:disabled) {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.26), transparent 80%),
    rgba(26, 20, 44, 0.9);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25), 0 0 12px rgba(168, 85, 247, 0.2);
}

.btn-compact {
  flex: none;
  min-height: auto;
  padding: 5px 12px;
  font-size: 0.74rem;
}

.btn-toolbar {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.82rem;
}

/* Danger / Stop Button */
.btn-danger {
  color: #fecaca;
  background:
    radial-gradient(circle at 50% 30%, rgba(248, 113, 113, 0.25), transparent 70%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.85) 0%, rgba(127, 29, 29, 0.9) 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(254, 202, 202, 0.6);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.5), 0 0 16px rgba(248, 113, 113, 0.3);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Table & Results Toolbar
   ============================================================ */

.toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.toolbar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-controls select {
  width: 150px;
  height: 42px;
  padding: 0 14px;
}

/* ============================================================
   Custom Exodus Theme Dropdown
   ============================================================ */

.custom-select-wrapper {
  position: relative;
  min-width: 190px;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e2d9fc;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18), transparent 75%),
    rgba(18, 14, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 140, 255, 0.22);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger:hover {
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
}

.custom-select-wrapper.open .custom-select-trigger {
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.trigger-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-wrapper.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 210px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.25), transparent 75%),
    rgba(14, 10, 24, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 140, 255, 0.32);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
  padding: 6px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  pointer-events: none;
}

.custom-select-wrapper.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-option:hover {
  background: rgba(139, 92, 246, 0.18);
  color: #ffffff;
}

.custom-option.selected {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(168, 85, 247, 0.14));
  color: #ffffff;
  font-weight: 700;
}

.opt-text {
  flex: 1;
  white-space: nowrap;
}

.opt-check {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-bright);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.18s ease;
}

.custom-option.selected .opt-check {
  opacity: 1;
  transform: scale(1);
}

/* Dots for statuses */
.opt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.dot-all       { color: #c084fc; background-color: #c084fc; }
.dot-nitro     { color: #ec4899; background-color: #ec4899; }
.dot-trial-1m  { color: #34d399; background-color: #34d399; }
.dot-trial-2w  { color: #38bdf8; background-color: #38bdf8; }
.dot-discount  { color: #fbbf24; background-color: #fbbf24; }
.dot-valid     { color: #10b981; background-color: #10b981; }
.dot-notrial   { color: #818cf8; background-color: #818cf8; }
.dot-fvs       { color: #06b6d4; background-color: #06b6d4; }
.dot-locked    { color: #f59e0b; background-color: #f59e0b; }
.dot-invalid   { color: #f87171; background-color: #f87171; }

.toolbar-controls input[type="text"] {
  width: 200px;
  height: 42px;
  padding: 0 14px;
}

.age-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  background: rgba(10, 8, 16, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
}

.age-filter-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.age-filter input[type="number"] {
  width: 52px;
  height: 30px;
  padding: 4px 6px;
  text-align: center;
  border-radius: 6px;
  background: rgba(18, 14, 30, 0.8);
  border: 1px solid rgba(168, 140, 255, 0.15);
  -moz-appearance: textfield;
}

.age-filter input[type="number"]::-webkit-outer-spin-button,
.age-filter input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.age-filter-dash,
.age-filter-unit {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.age-filter-count {
  min-width: 28px;
  padding: 2px 8px;
  text-align: center;
  border-radius: 999px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.table-container {
  overflow-x: auto;
  background: rgba(8, 6, 14, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(168, 140, 255, 0.08);
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  color: var(--text-secondary);
  background: rgba(14, 10, 24, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover td {
  background: rgba(139, 92, 246, 0.06);
}

td[onclick] {
  color: var(--accent-bright);
  cursor: pointer;
}

.empty-table-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 42px 18px;
}

.empty-msg-inner {
  position: sticky;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: calc(100vw - 80px);
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: normal;
}

.empty-msg-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-bright);
  opacity: 0.45;
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  border: 1px solid var(--accent-line);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  vertical-align: middle;
}

.user-avatar-fallback {
  text-transform: uppercase;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-success { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-danger  { color: var(--red); background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-warning { color: var(--yellow); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-info    { color: #60a5fa; background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-accent  { color: #c084fc; background: rgba(192, 132, 252, 0.12); border: 1px solid rgba(192, 132, 252, 0.3); }

/* ============================================================
   Toasts
   ============================================================ */

#toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(18, 14, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 140, 255, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(24px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

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

.toast-success { border-color: rgba(52, 211, 153, 0.5); }
.toast-warn    { border-color: rgba(251, 191, 36, 0.5); }
.toast-danger  { border-color: rgba(248, 113, 113, 0.5); }
.toast-info    { border-color: rgba(168, 140, 255, 0.5); }

/* ============================================================
   Scrollbars
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 140, 255, 0.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 140, 255, 0.35);
}

select option {
  color: var(--text-main);
  background: #120e20;
}

/* ============================================================
   Community Footer Bar
   ============================================================ */

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: rgba(13, 10, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-title {
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #ffffff 15%, #e2d9fc 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.btn-discord-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(135deg, #5865F2 0%, #4338ca 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-discord-footer:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.55), 0 0 16px rgba(168, 85, 247, 0.35);
  border-color: rgba(233, 213, 255, 0.75);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (max-width: 1240px) {
  .config-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .terminal { height: 420px; }
}

@media (max-width: 768px) {
  .header { padding: 0 18px; }
  .discord-header-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
  .app-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;
  }
  .btn-discord-footer {
    justify-content: center;
    width: 100%;
  }
  .workspace-scroll { padding: 16px 14px 100px; }
  .card { padding: 20px 16px; margin-bottom: 20px; }
  .status-badge { display: inline-flex; padding: 6px 12px; font-size: 0.74rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .joined-hero { flex-wrap: wrap; }
  .joined-hero-sub { margin-left: 0; width: 100%; }
  .btn-row { flex-direction: column; }
  .toolbar-header { flex-direction: column; align-items: stretch; }
  .toolbar-controls { flex-direction: column; align-items: stretch; }
  .toolbar-controls select,
  .toolbar-controls input[type="text"] { width: 100%; }
  .custom-select-wrapper { width: 100%; min-width: 100%; }
  .custom-select-dropdown { width: 100%; min-width: 100%; }
  .btn-toolbar { width: 100%; justify-content: center; }
  .table-container {
    border-radius: 10px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .terminal {
    height: 380px;
    padding: 12px 14px;
    font-size: 0.74rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .log-line {
    gap: 8px;
    padding: 2px 4px;
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
  }
  .log-time {
    width: 68px;
    font-size: 0.72rem;
  }
  .log-tag {
    width: 74px;
    font-size: 0.72rem;
  }
}
