/* ============================================================
   4FUND DISCORD PANEL — style.css
   Aesthetic: Dark Industrial / Terminal Futurism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:           #0e0f14;
  --bg-2:         #13141c;
  --bg-3:         #1a1b27;
  --bg-4:         #21233a;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);

  --purple:       #7C6FF7;
  --purple-dim:   rgba(124,111,247,0.15);
  --teal:         #3ECFCF;
  --teal-dim:     rgba(62,207,207,0.12);
  --gold:         #F5B73A;
  --gold-dim:     rgba(245,183,58,0.12);
  --red:          #F76F6F;
  --red-dim:      rgba(247,111,111,0.12);
  --green:        #4ADE80;
  --green-dim:    rgba(74,222,128,0.12);

  --text-1:       #eeedf5;
  --text-2:       #9896b8;
  --text-3:       #5c5a80;

  --sidebar-w:    240px;
  --topbar-h:     64px;
  --radius:       12px;
  --radius-sm:    8px;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

a { text-decoration: none; cursor: pointer; }
button { cursor: pointer; border: none; outline: none; }
input, select { outline: none; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124,111,247,0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--text-1);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-3);
  color: var(--text-1);
}

.nav-item.active {
  background: var(--purple-dim);
  color: var(--purple);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--purple);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.server-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* ── MOBILE TOGGLE ─────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 200;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  gap: 4px;
  flex-direction: column;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left { display: flex; align-items: baseline; gap: 10px; }

.page-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-breadcrumb {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.server-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

.server-selector select {
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.server-selector select option {
  background: var(--bg-3);
}

.topbar-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.refresh-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.refresh-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: rotate(90deg);
}

/* ── PAGES ─────────────────────────────────────────────────── */
.page {
  display: none;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-hover); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--bg-4);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.badge.green { background: var(--green-dim); color: var(--green); border-color: rgba(74,222,128,0.2); }

/* ── STAT CARDS ────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card:hover { transform: translateY(-2px); }

.accent-purple::before { background: linear-gradient(90deg, var(--purple), transparent); }
.accent-teal::before   { background: linear-gradient(90deg, var(--teal), transparent); }
.accent-gold::before   { background: linear-gradient(90deg, var(--gold), transparent); }
.accent-red::before    { background: linear-gradient(90deg, var(--red), transparent); }

.accent-purple { box-shadow: 0 0 20px var(--purple-dim); }
.accent-teal   { box-shadow: 0 0 20px var(--teal-dim); }
.accent-gold   { box-shadow: 0 0 20px var(--gold-dim); }
.accent-red    { box-shadow: 0 0 20px var(--red-dim); }

.stat-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.stat-info { flex: 1; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.stat-trend {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 99px;
  position: absolute;
  top: 14px;
  right: 14px;
}

.stat-trend.up { background: var(--green-dim); color: var(--green); }
.stat-trend.down { background: var(--red-dim); color: var(--red); }
.stat-trend.neutral { background: var(--bg-4); color: var(--text-3); }

/* ── TWO COLUMN LAYOUT ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* ── ACTIVITY CHART ────────────────────────────────────────── */
.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.activity-chart .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.activity-chart .bar {
  width: 100%;
  background: linear-gradient(to top, var(--purple), rgba(124,111,247,0.3));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity 0.2s;
}

.activity-chart .bar:hover { opacity: 0.7; }

.activity-chart .bar-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-3);
}

/* ── BOT STATUS ────────────────────────────────────────────── */
.bot-status-list { display: flex; flex-direction: column; gap: 10px; }

.bot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}

.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.bot-avatar.community { background: var(--purple-dim); color: var(--purple); }
.bot-avatar.trading   { background: var(--teal-dim); color: var(--teal); }

.bot-info { flex: 1; }
.bot-name { font-weight: 700; font-size: 13px; }
.bot-desc { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); margin-top: 2px; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 99px;
}

.status-badge.online { background: var(--green-dim); color: var(--green); }
.status-badge.offline { background: var(--red-dim); color: var(--red); }

/* ── QUICK STATS ───────────────────────────────────────────── */
.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}

.qs-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.qs-val { font-weight: 700; font-size: 12px; color: var(--teal); }

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── INNOVATION BANNER ─────────────────────────────────────── */
.innovation-banner {
  background: linear-gradient(135deg, rgba(124,111,247,0.1), rgba(62,207,207,0.05)) !important;
  border-color: rgba(124,111,247,0.25) !important;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.inno-icon { font-size: 36px; flex-shrink: 0; }

.inno-content { flex: 1; min-width: 200px; }
.inno-content h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.inno-content p  { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); line-height: 1.6; }

.inno-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.inno-tag {
  padding: 5px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
}

/* ── SERVER PROFILE ────────────────────────────────────────── */
.server-profile-card { padding: 0 !important; overflow: hidden; }

.server-banner { height: 70px; }
.server-banner.purple { background: linear-gradient(135deg, var(--purple), #3a2fa0); }
.server-banner.teal   { background: linear-gradient(135deg, var(--teal), #1a7a7a); }

.server-profile-body { padding: 20px; }

.server-ava {
  font-size: 36px;
  margin-top: -24px;
  display: inline-block;
  background: var(--bg-3);
  border: 3px solid var(--bg-2);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.server-profile-body h2 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.server-id-text { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-bottom: 12px; }

.server-badges { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.sb {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 99px;
}

.sb.active { background: var(--green-dim); color: var(--green); }
.sb.crypto { background: var(--gold-dim); color: var(--gold); }
.sb.saham  { background: var(--purple-dim); color: var(--purple); }

.server-channels { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.ch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}

.ch-type { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.ch-id { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); }

.server-since { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }

/* ── TABLES ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.data-table thead tr {
  border-bottom: 1px solid var(--border);
}

.data-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}

.data-table tbody tr:hover { background: var(--bg-3); }

.data-table td {
  padding: 10px 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.user-tag {
  background: var(--purple-dim);
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
}

.money { color: var(--gold); font-weight: 700; }

.pnl.up      { color: var(--green); }
.pnl.down    { color: var(--red); }
.pnl.neutral { color: var(--text-3); }

/* ── CONFIG FORMS ──────────────────────────────────────────── */
.config-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-form input[type="number"],
.config-form input[type="text"],
.full-input,
.color-text {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100%;
  transition: border-color 0.2s;
}

.config-form input:focus, .full-input:focus, .color-text:focus {
  border-color: var(--purple);
}

.input-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.color-picker {
  width: 40px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

.color-text { flex: 1; }

.form-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}

.form-toggle label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}

.toggle {
  width: 40px;
  height: 22px;
  background: var(--bg-4);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-3);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s, background 0.3s;
}

.toggle.active {
  background: var(--purple-dim);
  border-color: var(--purple);
}

.toggle.active::after {
  transform: translateX(18px);
  background: var(--purple);
}

.btn-save {
  background: linear-gradient(135deg, var(--purple), #5549cc);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-save:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }

/* ── LEADERBOARD ───────────────────────────────────────────── */
.leaderboard { display: flex; flex-direction: column; gap: 8px; }

.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.lb-item.rank1 { border-color: rgba(245,183,58,0.3); background: rgba(245,183,58,0.05); }

.lb-rank { font-size: 20px; flex-shrink: 0; }

.lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.lb-info { flex: 1; }
.lb-name { font-weight: 700; font-size: 13px; margin-bottom: 5px; }

.lb-xp-bar-wrap {
  height: 4px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}

.lb-xp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 99px;
}

.lb-stats { text-align: right; }
.lb-xp { font-weight: 700; font-size: 13px; color: var(--gold); }
.lb-level { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); margin-top: 2px; }

.lb-empty {
  text-align: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── XP DETAIL ─────────────────────────────────────────────── */
.xp-breakdown {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.xp-type {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.xp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.xp-dot.text  { background: var(--purple); }
.xp-dot.voice { background: var(--teal); }

.xp-type span { flex: 1; color: var(--text-2); font-size: 11px; }
.xp-type strong { color: var(--text-1); font-weight: 700; }

.xp-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.level-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.level-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }

.level-progress-bar {
  height: 8px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 99px;
  position: relative;
}

.level-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px var(--purple);
}

.level-xp-info { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-align: right; }

/* ── WELCOME EMBED PREVIEW ─────────────────────────────────── */
.embed-preview {
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  margin-bottom: 12px;
}

.embed-bar {
  width: 4px;
  flex-shrink: 0;
}

.embed-content { padding: 12px 14px; flex: 1; }

.embed-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.embed-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.embed-title { font-weight: 700; font-size: 13px; }
.embed-server { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); }

.embed-body { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.embed-body p { margin-bottom: 4px; }

.ch-mention {
  background: rgba(124,111,247,0.2);
  color: var(--purple);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.embed-footer {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  margin-top: 8px;
}

.hint-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 8px;
}

/* ── POSITIONS ─────────────────────────────────────────────── */
.position-list { display: flex; flex-direction: column; gap: 10px; }

.pos-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.pos-ticker {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pos-ticker.hype { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,183,58,0.2); }

.pos-info { flex: 1; }
.pos-user { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.pos-amount { font-weight: 700; font-size: 14px; }

.pos-price { text-align: right; }
.pos-avg { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.pos-value { font-family: var(--font-mono); font-size: 12px; color: var(--teal); font-weight: 700; margin-top: 3px; }

/* ── TRADING CONFIG GRID ───────────────────────────────────── */
.trading-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tc-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.tc-item input[type="number"] {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100%;
  transition: border-color 0.2s;
}

.tc-item input:focus { border-color: var(--purple); }

/* ── AUDIT LOG ─────────────────────────────────────────────── */
.filter-row select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.action-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.action-badge.REGISTER    { background: var(--teal-dim); color: var(--teal); }
.action-badge.BUY         { background: var(--green-dim); color: var(--green); }
.action-badge.SELL        { background: var(--red-dim); color: var(--red); }
.action-badge.ADD_BALANCE { background: var(--gold-dim); color: var(--gold); }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { color: var(--text-2); font-size: 13px; margin-bottom: 6px; }

/* ── TOAST NOTIFICATION ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  pointer-events: none;
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(74,222,128,0.4); }
.toast.error   { border-color: rgba(247,111,111,0.4); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .trading-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .topbar { padding: 0 16px 0 56px; }
  .topbar-time { display: none; }
  .quick-stats { grid-template-columns: 1fr; }
}