/* ═══════════════════════════════════════════════════════════════════════════
   NYX — DARK BLUEPRINT GLASS DESIGN SYSTEM (MATCHING UI SCREENS)
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-core: #070913;
  --card-bg: rgba(13, 19, 34, 0.72);
  --card-border: rgba(43, 62, 99, 0.35);
  --accent-blue: #0070f3;
  --accent-cyan: #00d2ff;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --text-main: #f3f6fc;
  --text-muted: #8a9bb7;
  --text-dim: #4f6385;
}

html, body {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-core);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(13, 27, 60, 0.85) 0%, rgba(7, 9, 19, 0.98) 75%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Lock Screen */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(14, 22, 42, 0.97) 0%, rgba(5, 7, 14, 0.99) 100%);
  backdrop-filter: blur(35px);
  z-index: 999999;
  padding: 20px;
}

.lock-card {
  width: 100%;
  max-width: 420px;
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 112, 243, 0.2);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
}

.lock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.lock-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.45);
}

.logo-n {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  font-style: italic;
}

.logo-n-sm {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  font-style: italic;
}

.lock-brand h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.lock-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.error-text {
  color: var(--accent-red);
  font-size: 0.8rem;
  margin-top: -6px;
  margin-bottom: 12px;
  text-align: left;
}

.tiny-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* App Titlebar */
.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.app-titlebar {
  height: 44px;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43, 62, 99, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

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

.app-logo-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.titlebar-active-acc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 112, 243, 0.15);
  border: 1px solid rgba(0, 112, 243, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 700;
}

.titlebar-acc-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.titlebar-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.status-indicator-pill.online .status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.status-indicator-pill.voice .status-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
}

.titlebar-win-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titlebar-win-btn svg { width: 14px; height: 14px; }
.titlebar-win-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.titlebar-win-btn.close:hover { background: rgba(239, 68, 68, 0.3); color: #f87171; }

/* Body & Dock */
.app-body {
  display: flex;
  flex-grow: 1;
  min-height: calc(100vh - 44px);
}

.side-dock {
  width: 62px;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(43, 62, 99, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 10px;
  flex-shrink: 0;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.dock-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.dock-btn.active {
  background: rgba(0, 112, 243, 0.15);
  border-color: rgba(0, 112, 243, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(0, 112, 243, 0.3);
}

.mt-auto { margin-top: auto; }

/* Main Stage */
.main-stage {
  flex-grow: 1;
  padding: 24px 32px;
  max-width: 1550px;
  width: calc(100% - 62px);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREENSHOT 1: DASHBOARD & NOTIFICATION CENTER
   ═══════════════════════════════════════════════════════════════════════════ */

.dash-2col-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

@media (max-width: 1150px) {
  .dash-2col-layout { grid-template-columns: 1fr; }
}

.greeting-row h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.user-highlight { color: #38bdf8; }

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-ring-frame {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.avatar-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 3px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
  pointer-events: none;
}

.avatar-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #111;
}

.avatar-box img#dash-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.deco-img {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124% !important;
  height: 124% !important;
  max-width: none !important;
  pointer-events: none;
  z-index: 10;
}

.avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #0e1320;
  background: #eab308;
}

.avatar-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.profile-details { flex-grow: 1; }

.badges-list { display: flex; gap: 6px; margin-bottom: 3px; }
.badge-icon { color: #a855f7; display: flex; align-items: center; }
.badge-icon svg { width: 15px; height: 15px; }

.profile-name { font-size: 1.25rem; font-weight: 800; color: #ffffff; }

.profile-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.vac-badge {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vac-badge svg { width: 11px; height: 11px; }

.profile-actions { display: flex; flex-direction: column; gap: 8px; }

.btn-glass-blue {
  background: rgba(0, 112, 243, 0.15);
  border: 1px solid rgba(0, 112, 243, 0.4);
  color: #60a5fa;
  padding: 7px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-glass-subtle {
  background: rgba(22, 30, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.card-hr { height: 1px; background: rgba(43, 62, 99, 0.3); }

.profile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-col { display: flex; flex-direction: column; gap: 6px; }
.meta-lbl { font-size: 0.72rem; color: var(--text-dim); font-style: italic; }
.meta-val { font-size: 0.84rem; font-weight: 600; color: #c9d8ee; }

.stats-counters { display: flex; gap: 20px; }
.counter-box { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.counter-ring { position: relative; width: 72px; height: 72px; }
.counter-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 8; }
.ring-val { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; }
.ring-val.cyan { stroke: #00d2ff; stroke-dashoffset: 160; }
.ring-val.blue { stroke: #0070f3; stroke-dashoffset: 220; }

.ring-txt { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font-size: 1.05rem; font-weight: 800; color: #ffffff; line-height: 1; }
.ring-sub { font-size: 0.6rem; color: var(--text-dim); font-weight: 600; }
.counter-tag { font-size: 0.6rem; font-weight: 800; background: rgba(30, 41, 68, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); color: #8da4ca; padding: 2px 7px; border-radius: 8px; }

/* Dash Meta Card (Version, Commands, Uptime, Toggles) */
.dash-meta-card { display: flex; flex-direction: column; gap: 14px; }
.meta-metrics-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 14px; align-items: center; }
.metric-item { background: rgba(8, 12, 22, 0.6); border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 10px; padding: 10px 14px; }
.metric-tag { font-size: 0.72rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.metric-tag svg { width: 13px; height: 13px; color: #0070f3; }
.metric-val { font-size: 1.25rem; font-weight: 800; color: #ffffff; }

.metric-toggle-group { display: flex; flex-direction: column; gap: 6px; }
.toggle-row-sm { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; font-weight: 600; color: var(--text-muted); background: rgba(8, 12, 22, 0.4); padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(43, 62, 99, 0.2); }

.dash-meta-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(43, 62, 99, 0.25); padding-top: 12px; }
.uptime-block { display: flex; align-items: center; gap: 12px; }
.uptime-lbl { font-size: 0.74rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.uptime-lbl svg { width: 14px; height: 14px; }
.uptime-digits { display: flex; gap: 6px; }
.uptime-digits span { background: rgba(8, 12, 22, 0.8); border: 1px solid rgba(43, 62, 99, 0.3); border-radius: 6px; padding: 3px 6px; font-family: 'Fira Code', monospace; font-size: 0.82rem; font-weight: 700; color: #ffffff; }
.uptime-digits span small { font-size: 0.55rem; color: var(--text-dim); margin-left: 2px; }

.btn-subtle-pill { background: rgba(22, 30, 48, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); padding: 6px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }

/* Notification Center */
.notif-card { display: flex; flex-direction: column; height: 100%; min-height: 520px; }
.notif-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(43, 62, 99, 0.3); padding-bottom: 12px; margin-bottom: 16px; }
.notif-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: #ffffff; }
.notif-title svg { width: 18px; height: 18px; color: #38bdf8; }

.notif-feed { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 560px; }
.notif-item { display: flex; gap: 12px; padding: 14px; background: rgba(8, 12, 22, 0.6); border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 12px; }
.notif-avatar-ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(0, 112, 243, 0.15); color: #38bdf8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-avatar-ico svg { width: 17px; height: 17px; }
.notif-content { flex-grow: 1; }
.notif-body { font-size: 0.78rem; color: #cbd5e1; line-height: 1.45; }
.highlight-mention { color: #818cf8; background: rgba(99, 102, 241, 0.15); padding: 1px 4px; border-radius: 3px; }
.notif-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 0.7rem; color: var(--text-dim); }
.notif-actions { display: flex; gap: 6px; }
.btn-micro { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 2px 4px; }
.btn-micro svg { width: 14px; height: 14px; }
.btn-micro-jump { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.btn-micro-jump svg { width: 11px; height: 11px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SCREENSHOT 2: PYTHON MULTI-TAB CODE WORKSPACE
   ═══════════════════════════════════════════════════════════════════════════ */

.scripts-top-nav { display: flex; align-items: center; justify-content: space-between; }
.scripts-nav-tabs { display: flex; gap: 16px; }
.tab-item-nav { background: transparent; border: none; font-size: 0.95rem; font-weight: 700; color: var(--text-dim); cursor: pointer; position: relative; padding-bottom: 6px; }
.tab-item-nav.active { color: #ffffff; border-bottom: 2px solid #0070f3; }

.scripts-nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-circle-action { width: 36px; height: 36px; border-radius: 8px; background: rgba(22, 30, 48, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-circle-action svg { width: 16px; height: 16px; }

.scripts-workspace-layout { display: grid; grid-template-columns: 310px 1fr; gap: 20px; }
@media (max-width: 950px) { .scripts-workspace-layout { grid-template-columns: 1fr; } }

.scripts-sidebar-card { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 180px); }
.scripts-sidebar-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 800; color: var(--text-dim); letter-spacing: 0.05em; border-bottom: 1px solid rgba(43, 62, 99, 0.25); padding-bottom: 8px; }
.sidebar-head-tools { display: flex; gap: 6px; }
.tool-btn { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; }
.tool-btn svg { width: 15px; height: 15px; }

.installed-scripts-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.script-card-item { background: rgba(8, 12, 22, 0.6); border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 12px; padding: 12px; cursor: pointer; transition: all 0.2s ease; }
.script-card-item.active { border-color: #0070f3; background: rgba(0, 112, 243, 0.08); }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sc-title { font-size: 0.9rem; font-weight: 700; color: #ffffff; }
.sc-date { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 8px; }
.sc-block { background: rgba(4, 6, 12, 0.7); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.sc-lbl { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.sc-lbl svg { width: 12px; height: 12px; }
.sc-val { font-size: 0.76rem; color: #cbd5e1; }

.script-editor-container { display: flex; flex-direction: column; height: calc(100vh - 180px); padding: 0; overflow: hidden; }
.editor-tabs-bar { display: flex; background: rgba(6, 9, 18, 0.9); border-bottom: 1px solid rgba(43, 62, 99, 0.3); padding: 6px 10px 0 10px; gap: 4px; overflow-x: auto; }
.editor-tab { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(13, 19, 34, 0.6); border: 1px solid rgba(43, 62, 99, 0.3); border-bottom: none; border-radius: 8px 8px 0 0; font-size: 0.78rem; font-family: 'Fira Code', monospace; color: var(--text-muted); cursor: pointer; }
.editor-tab.active { background: #05070e; color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.tab-close { background: transparent; border: none; color: var(--text-dim); font-size: 0.85rem; cursor: pointer; padding: 0 2px; }
.tab-close:hover { color: #f87171; }

.code-editor-body { display: flex; flex-grow: 1; background: #05070e; overflow: hidden; }
.line-numbers-gutter { width: 44px; padding: 14px 8px; font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #334155; text-align: right; user-select: none; border-right: 1px solid rgba(255, 255, 255, 0.04); }
.editor-textarea { flex-grow: 1; padding: 14px; background: transparent; border: none; font-family: 'Fira Code', monospace; font-size: 0.82rem; line-height: 1.5; color: #38bdf8; outline: none; resize: none; overflow-y: auto; }

.script-terminal-bottom { background: #04050a; border-top: 1px solid rgba(43, 62, 99, 0.3); height: 110px; display: flex; flex-direction: column; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; font-size: 0.72rem; color: var(--text-dim); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.terminal-lines { padding: 8px 12px; overflow-y: auto; flex-grow: 1; font-family: 'Fira Code', monospace; font-size: 0.72rem; display: flex; flex-direction: column; gap: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SCREENSHOT 3: PROFILES & RICH PRESENCE STUDIO
   ═══════════════════════════════════════════════════════════════════════════ */

.rpc-studio-grid { display: grid; grid-template-columns: 240px 1fr 310px; gap: 20px; height: calc(100vh - 140px); }
@media (max-width: 1200px) { .rpc-studio-grid { grid-template-columns: 1fr; height: auto; } }

.rpc-sidebar { display: flex; flex-direction: column; gap: 14px; }
.rpc-sidebar-title { display: flex; align-items: center; gap: 10px; }
.rpc-sidebar-title svg { width: 22px; height: 22px; color: #38bdf8; }
.rpc-sidebar-title h4 { font-size: 0.95rem; font-weight: 800; color: #ffffff; }
.rpc-sidebar-title p { font-size: 0.72rem; color: var(--text-dim); }

.rpc-sidebar-actions { display: flex; gap: 8px; }
.flex-1 { flex-grow: 1; }

.profile-presets-list { display: flex; flex-direction: column; gap: 6px; }
.preset-item { padding: 10px 12px; background: rgba(8, 12, 22, 0.6); border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.preset-item.active { background: rgba(0, 112, 243, 0.15); border-color: #0070f3; color: #38bdf8; }

.rpc-preview-ctrls { border-top: 1px solid rgba(43, 62, 99, 0.25); padding-top: 12px; }
.ctrls-title { font-size: 0.72rem; color: var(--text-dim); display: block; margin-bottom: 6px; }
.ctrls-btns { display: flex; gap: 8px; }
.active-play { color: #0070f3 !important; }

/* Flow Canvas */
.rpc-flow-card { display: flex; flex-direction: column; }
.rpc-flow-topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(43, 62, 99, 0.3); padding-bottom: 12px; margin-bottom: 20px; }
.flow-selected-meta { display: flex; align-items: center; gap: 10px; }
.sel-lbl { font-size: 0.68rem; color: var(--text-dim); }
.flow-selected-meta h4 { font-size: 0.95rem; font-weight: 800; color: #ffffff; }

.flow-actions { display: flex; align-items: center; gap: 10px; }
.btn-make-live { background: linear-gradient(135deg, #0070f3, #00d2ff); color: #ffffff; border: none; border-radius: 10px; padding: 6px 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 0 20px rgba(0, 112, 243, 0.4); text-align: left; }
.btn-make-live svg { width: 18px; height: 18px; }
.btn-make-live strong { font-size: 0.84rem; display: block; }
.btn-make-live small { font-size: 0.65rem; opacity: 0.85; }

.flow-canvas { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; padding: 20px; }
.flow-keyframe-box { width: 100%; max-width: 480px; background: rgba(8, 12, 22, 0.8); border: 2px solid rgba(0, 112, 243, 0.4); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.kf-header { display: flex; align-items: center; gap: 8px; }
.kf-chip { font-size: 0.72rem; font-weight: 700; color: #ffffff; }
.kf-preview-chip { font-size: 0.65rem; background: rgba(234, 179, 8, 0.15); border: 1px solid rgba(234, 179, 8, 0.3); color: #facc15; padding: 1px 6px; border-radius: 8px; }
.close-kf { margin-left: auto; }

.kf-presence-block { background: rgba(13, 19, 34, 0.9); border: 1px solid rgba(43, 62, 99, 0.4); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.presence-block-head { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 700; color: #ffffff; }
.presence-block-body { display: flex; align-items: center; gap: 8px; }
.presence-select-wrap { flex-grow: 1; }
.presence-select-wrap select { width: 100%; height: 34px; background: rgba(4, 6, 12, 0.8); border: 1px solid rgba(43, 62, 99, 0.4); border-radius: 6px; padding: 0 10px; color: #ffffff; font-size: 0.8rem; }
.btn-customize-rpc { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #ffffff; padding: 6px 12px; border-radius: 6px; font-size: 0.76rem; cursor: pointer; display: flex; align-items: center; gap: 5px; }

.btn-add-variant { width: 100%; padding: 8px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.15); border-radius: 8px; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }

.flow-connector-line { display: flex; flex-direction: column; align-items: center; margin: 8px 0; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #0070f3; }
.conn-dash { width: 2px; height: 30px; background: repeating-linear-gradient(to bottom, #0070f3 0px, #0070f3 4px, transparent 4px, transparent 8px); }

.btn-new-keyframe { padding: 8px 16px; background: rgba(8, 12, 22, 0.8); border: 1px solid rgba(43, 62, 99, 0.4); border-radius: 8px; color: #ffffff; font-size: 0.8rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }

/* Discord Live Popout Preview */
.rpc-preview-card { display: flex; flex-direction: column; padding: 16px; }
.rpc-preview-topbar { margin-bottom: 12px; text-align: right; }
.kf-counter-badge { font-size: 0.68rem; background: rgba(255, 255, 255, 0.06); padding: 2px 8px; border-radius: 6px; color: var(--text-dim); }

.discord-popout-preview { background: #111214; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.popout-banner { height: 60px; background: linear-gradient(135deg, #1e1b4b, #312e81); }
.popout-avatar-wrap { position: relative; width: 68px; height: 68px; margin-top: -34px; margin-left: 14px; }
.popout-avatar { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #111214; background: #000; }
.popout-status-moon { position: absolute; bottom: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #eab308; border: 3px solid #111214; }

.popout-user-meta { padding: 8px 14px 4px 14px; }
.popout-user-meta h3 { font-size: 1.1rem; font-weight: 800; color: #ffffff; }
.popout-tags { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }

.popout-custom-status { margin: 8px 14px; padding: 8px 10px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; font-size: 0.74rem; color: #cbd5e1; display: flex; gap: 6px; }
.status-text-val small { color: #64748b; }

.popout-activity-box { margin: 10px 14px 14px 14px; padding: 10px; background: rgba(0, 0, 0, 0.4); border-radius: 8px; }
.act-header { font-size: 0.65rem; font-weight: 800; color: #94a3b8; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }
.act-details { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.act-large-icon { width: 44px; height: 44px; border-radius: 8px; background: #000; color: #38bdf8; display: flex; align-items: center; justify-content: center; }
.act-text-group strong { font-size: 0.84rem; color: #ffffff; display: block; }
.act-sub-1, .act-sub-2 { font-size: 0.7rem; color: #94a3b8; display: block; }
.act-timer { font-size: 0.7rem; color: #4ade80; display: block; margin-top: 2px; }
.btn-activity-action { width: 100%; padding: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); border: none; color: #ffffff; font-weight: 600; font-size: 0.76rem; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   GENERIC FORM INPUTS & BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-head.slim { margin-bottom: 12px; }
.card-head.space-between { justify-content: space-between; }

.head-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0, 112, 243, 0.15); border: 1px solid rgba(0, 112, 243, 0.3); color: #38bdf8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.head-icon svg { width: 18px; height: 18px; }
.head-txt h4 { font-size: 0.95rem; font-weight: 700; color: #ffffff; }
.head-txt p { font-size: 0.74rem; color: var(--text-muted); }

.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #c9d8ee; margin-bottom: 6px; }
.label-desc { font-size: 0.7rem; color: var(--text-dim); margin-top: -3px; margin-bottom: 6px; }

.input-wrapper, .select-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.input-icon, .select-icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--text-dim); pointer-events: none; }
.input-wrapper input, .select-wrapper select { width: 100%; height: 42px; background: rgba(8, 12, 22, 0.85); border: 1px solid rgba(43, 62, 99, 0.35); border-radius: 10px; padding: 0 44px 0 44px; color: #e2e4ed; font-size: 0.84rem; outline: none; }
.select-wrapper select { appearance: none; cursor: pointer; }
.input-wrapper input:focus, .select-wrapper select:focus { border-color: #0070f3; box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.2); }

.peek-btn { position: absolute; right: 12px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.peek-btn svg { width: 16px; height: 16px; }

.action-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(135deg, #0070f3, #0099ff); color: #ffffff; box-shadow: 0 4px 16px rgba(0, 112, 243, 0.4); }
.btn-secondary { background: rgba(22, 30, 48, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.btn-success { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }
.btn-danger { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1050px) { .grid-2col { grid-template-columns: 1fr; } }

/* Options Switch */
.options-stack { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(9, 13, 24, 0.5); border: 1px solid rgba(43, 62, 99, 0.2); border-radius: 10px; }
.opt-name { font-size: 0.82rem; font-weight: 600; color: #e1e3ea; }
.opt-sub { font-size: 0.7rem; color: var(--text-dim); }

.switch { position: relative; display: inline-block; width: 40px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.08); border-radius: 20px; transition: 0.2s ease; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: #ffffff; border-radius: 50%; transition: 0.2s ease; }
input:checked + .slider { background-color: #0070f3; box-shadow: 0 0 10px rgba(0, 112, 243, 0.5); }
input:checked + .slider:before { transform: translateX(20px); }

/* Modules View Styling */
.stage-header {
  margin-bottom: 20px;
}

.stage-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.stage-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.module-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.mod-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mod-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 112, 243, 0.15);
  border: 1px solid rgba(0, 112, 243, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mod-ico svg {
  width: 20px;
  height: 20px;
}

.mod-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-soon {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 6px;
}

.mod-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.mod-notice {
  font-size: 0.72rem;
  color: #64748b;
  font-family: 'Fira Code', monospace;
}

.mod-notice code {
  color: #38bdf8;
  background: rgba(0, 112, 243, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.mod-btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(43, 62, 99, 0.2);
}

.btn-configure {
  background: rgba(22, 30, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-configure svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.btn-configure:hover {
  background: rgba(0, 112, 243, 0.2);
  border-color: rgba(0, 112, 243, 0.4);
  color: #ffffff;
}

.btn-configure.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modules & Marketplace */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.market-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(10, 15, 26, 0.5); border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 12px; }
.market-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 112, 243, 0.15); color: #38bdf8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.market-info h3 { font-size: 0.88rem; font-weight: 700; color: #ffffff; }
.market-info p { font-size: 0.72rem; color: var(--text-muted); }
.market-toggle-wrap { margin-left: auto; }

/* Player, Console, Settings */
.player-box { margin-bottom: 20px; }
.now-playing-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.art-badge { width: 56px; height: 56px; border-radius: 12px; background: rgba(0, 112, 243, 0.15); color: #38bdf8; display: flex; align-items: center; justify-content: center; }
.now-meta { flex-grow: 1; }
.now-lbl { font-size: 0.72rem; color: var(--text-dim); }
.now-name { font-size: 0.92rem; font-weight: 700; color: #ffffff; }
.track-bar { display: flex; flex-direction: column; gap: 4px; }
.bar-bg { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.bar-val { height: 100%; background: #0070f3; width: 0%; border-radius: 4px; }
.track-times { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-dim); }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; }
.btn-ctrl { width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: none; color: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-ctrl.main { width: 42px; height: 42px; border-radius: 10px; background: #0070f3; }
.badge-loop { font-size: 0.62rem; font-weight: 800; }
.vol-slider-row { display: flex; align-items: center; gap: 10px; max-width: 260px; margin: 0 auto; color: var(--text-muted); font-size: 0.72rem; }
.vol-slider-row input { flex-grow: 1; accent-color: #0070f3; }

.tabs-nav { display: flex; gap: 6px; margin-bottom: 12px; }
.tab-btn { padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-muted); font-size: 0.76rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.tab-btn.active { background: rgba(0, 112, 243, 0.15); border-color: #0070f3; color: #38bdf8; }
.drop-zone { border: 2px dashed rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); }

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.sb-btn {
  background: rgba(13, 19, 34, 0.7);
  border: 1px solid rgba(43, 62, 99, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  text-align: left;
}

.sb-btn:hover {
  background: rgba(0, 112, 243, 0.2);
  border-color: #38bdf8;
  transform: translateY(-2px);
  color: #ffffff;
}

.sb-btn:active {
  transform: scale(0.96);
}

.console-box-full { background: #04050a; border: 1px solid rgba(43, 62, 99, 0.25); border-radius: 10px; height: 240px; padding: 12px; overflow-y: auto; font-family: 'Fira Code', monospace; font-size: 0.74rem; display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-muted); font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.console-bar { display: flex; align-items: center; background: rgba(8, 12, 22, 0.85); border: 1px solid rgba(43, 62, 99, 0.35); border-radius: 8px; padding: 0 10px; }
.prompt-arrow { color: #0070f3; font-weight: 700; font-family: monospace; margin-right: 8px; }
.console-bar input { flex-grow: 1; height: 36px; background: transparent; border: none; color: #ffffff; font-size: 0.8rem; outline: none; }
.btn-icon { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.alert-box { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 10px; padding: 16px; font-size: 0.8rem; }
.alert-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #f87171; margin-bottom: 8px; }
.alert-box ul { padding-left: 18px; color: var(--text-muted); line-height: 1.6; }

.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   GIVEAWAY JOINER CONTROL PANEL & PLUGIN TABS
   ═══════════════════════════════════════════════════════════════════════════ */

.dock-plugin-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
  margin: 6px 0;
  padding-top: 6px;
  border-top: 1px solid rgba(43, 62, 99, 0.25);
}

.dock-btn-plugin {
  position: relative;
}

.plugin-code-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #38bdf8;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
  font-family: monospace;
}

.gw-3col-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 20px;
}

@media (max-width: 1200px) {
  .gw-3col-layout { grid-template-columns: 1fr; }
}

.gw-sec-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.gw-sec-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}

.gw-opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.gw-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gw-stats-list b { color: #ffffff; }

.gw-input {
  width: 100%;
  height: 38px;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(43, 62, 99, 0.35);
  border-radius: 8px;
  color: #ffffff;
  padding: 0 12px;
  font-size: 0.82rem;
  outline: none;
}

.gw-input:focus {
  border-color: #0070f3;
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.3);
}

.gw-add-bot-bar {
  display: flex;
  gap: 10px;
}

.gw-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(43, 62, 99, 0.35);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
}

.gw-search-bar svg { width: 15px; height: 15px; color: var(--text-dim); }
.gw-search-bar input { flex-grow: 1; background: transparent; border: none; color: #ffffff; font-size: 0.8rem; outline: none; }
.gw-row-counter { font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; }

.gw-table-wrap {
  border: 1px solid rgba(43, 62, 99, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.gw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.gw-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-dim);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.gw-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(43, 62, 99, 0.15);
  color: #ffffff;
}

.gw-bot-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.btn-gw-remove {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.btn-gw-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.gw-delay-row { display: flex; gap: 10px; }
.gw-sub-tip { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

.gw-pagination-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gw-page-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(43, 62, 99, 0.35);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gw-page-btn:hover {
  border-color: #0070f3;
  color: #ffffff;
}

.gw-page-btn.active {
  background: #0070f3;
  border-color: #0070f3;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.4);
}

/* Global Polished Form Controls */
select {
  appearance: none;
  background-color: rgba(6, 10, 18, 0.7);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px !important;
}

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

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 10, 18, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(43, 62, 99, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0070f3;
}

/* Multi-Token Account Chips */
.token-accounts-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.token-acc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(43, 62, 99, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.token-acc-chip:hover {
  border-color: #0070f3;
  color: #ffffff;
}

.token-acc-chip.active {
  background: rgba(0, 112, 243, 0.18);
  border-color: #0070f3;
  color: #38bdf8;
  font-weight: 700;
}

.token-acc-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.token-acc-del {
  margin-left: 4px;
  opacity: 0.6;
  font-size: 0.75rem;
}

.token-acc-del:hover {
  opacity: 1;
  color: #f87171;
}

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999999; }
.toast { background: rgba(14, 18, 30, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 16px; border-radius: 8px; font-size: 0.8rem; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.toast.success { border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
.toast.error { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
