/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --theme-color-rgb: 242, 31, 31; /* Default vibrant red */
}

html, body { height: 100%; width: 100%; font-family: 'Inter', sans-serif; }
body { background: #0a0e17; color: #e2e8f0; overflow: hidden; }
html.board-mode, body.board-mode { background: rgba(0,0,0,0) !important; overflow: hidden; }
.view  { display: block; }
.hidden { display: none !important; }

/* ============================================================
   BOARD VIEW â€” DARK RED THEME
   ============================================================ */
#view-board {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* The board card wrapper â€” transparent so TikTok stream shows through */
.board-wrap {
  width: 330px; margin: 0 auto;
  min-height: 580px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Background image overlay */
.board-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.38;
  z-index: 0;
  transition: opacity 0.5s;
}

/* Content above background */
.board-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 10px 8px;
  gap: 16px;
}

/* Top bars */
.board-bars { display: flex; flex-direction: column; gap: 8px; }

.board-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Inter', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  border-radius: 8px;
  padding: 10px 20px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--theme-color-rgb), 0.25);
  border-top: 1px solid rgba(var(--theme-color-rgb), 0.5);
  border-bottom: 1px solid rgba(var(--theme-color-rgb), 0.5);
  box-shadow: 0px 4px 15px rgba(var(--theme-color-rgb), 0.2), inset 0px 0px 20px rgba(var(--theme-color-rgb), 0.08);
}

.bar-icon {
  color: rgb(var(--theme-color-rgb));
  text-shadow: 0 0 8px rgba(var(--theme-color-rgb), 0.8);
  font-size: 16px;
}

.bar-voucher { }
.bar-minimum { }
.bar-snipe { }

.b-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display:none; }
.b-dot.red { background: #c0213a; box-shadow: 0 0 6px rgba(192,33,58,0.6); }

.b-check { color: #c0213a; font-weight: 900; font-size: 17px; line-height: 1; display:none; }
.b-shield { font-size: 15px; display:none; }
.snipe-text { color: rgba(255,255,255,1); }

/* Snipe seconds badge */
.snipe-badge {
  background: rgb(var(--theme-color-rgb));
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.5);
  min-width: 38px;
  text-align: center;
}

/* Main panel for background image (wraps card and leaderboard) */
.board-main-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  /* Add slight padding at bottom so participants aren't touching edge */
  padding-bottom: 6px;
}

/* Center brand / timer card */
.board-card { transition: opacity 0.5s ease; opacity: 1;
  background-color: rgba(15,5,5,0.82);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(80,15,15,0.5);
  border-radius: 16px;
  padding: 14px 20px 12px;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.bc-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2px;
}

.bc-dot { color: rgba(255,255,255,0.25); font-size: 14px; }

.bc-name {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
}

.bc-sub {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bc-timer-area { display: flex; flex-direction: column; align-items: center; }

.bc-timer-mode {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bc-timer-digits {
  font-size: 60px;
  font-weight: 900;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(192,33,58,0.5), 0 2px 4px rgba(0,0,0,0.8);
  font-variant-numeric: tabular-nums;
}

.bc-timer-finished {
  font-size: 38px;
  font-weight: 900;
  color: #c0213a;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 0 20px rgba(192,33,58,0.5);
  animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Leaderboard */
.board-leaderboard { transition: opacity 0.5s ease; opacity: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  position: relative; 
  z-index: 1; 
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 10px 14px;
  transition: transform 0.25s ease;
}
.lb-row:hover { transform: translateX(2px); }

.rank-1 {
  background: linear-gradient(135deg, #250a0a, #1c0808);
  border: 1px solid rgba(130,25,25,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.rank-2 {
  background: linear-gradient(135deg, #161616, #111);
  border: 1px solid rgba(50,50,50,0.6);
}
.rank-3 {
  background: linear-gradient(135deg, #161212, #120e0e);
  border: 1px solid rgba(50,30,30,0.5);
}

/* Medal badges (numbered) */
.lb-medal {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.lb-medal.gold   { background: linear-gradient(135deg, #c8a020, #9a7810); box-shadow: 0 2px 8px rgba(200,160,32,0.4); }
.lb-medal.silver { background: linear-gradient(135deg, #909090, #606060); }
.lb-medal.bronze { background: linear-gradient(135deg, #b06020, #804010); }

/* Avatars */
.lb-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a2060, #201040);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; color: #fff;
  flex-shrink: 0; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.lb-avatar.rank2-av { background: linear-gradient(135deg, #202060, #101040); }
.lb-avatar.rank3-av { background: linear-gradient(135deg, #402020, #201010); }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.lb-info { flex: 1; min-width: 0; }

.lb-name {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.lb-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}

/* Yellow coin dot */
.lb-coin-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe060, #c89000);
  box-shadow: 0 1px 4px rgba(200,160,0,0.5);
  flex-shrink: 0;
}

/* Participants */
.board-participants { transition: opacity 0.5s ease; opacity: 1;
  background: rgba(10,5,5,0.65);
  border: 1px solid rgba(50,15,15,0.4);
  border-radius: 8px;
  padding: 6px 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.part-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6050c0;
  box-shadow: 0 0 4px rgba(100,80,200,0.5);
}

/* Gift notification */
.gift-notif {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(192,33,58,0.92);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  animation: slideUp 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(192,33,58,0.5);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   DASHBOARD â€” TOP NAV
   ============================================================ */
.dash-nav {
  background: #0a0a18;
  border-bottom: 1px solid #1a1a30;
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dash-nav-left { display: flex; align-items: center; gap: 8px; }
.dash-logo-icon { font-size: 16px; }
.dash-logo-text { font-size: 12px; color: #5a80b0; letter-spacing: 0.06em; font-weight: 600; }
.dash-logo-text strong { color: #7aaad8; }
.dash-logo-sub { font-size: 10px; color: #303050; margin-left: 6px; padding-left: 6px; border-left: 1px solid #202040; }

.dash-nav-right { display: flex; align-items: center; gap: 4px; }

.nav-tab {
  background: none; border: none; color: #4a5568;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  height: 44px; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.nav-tab:hover { color: #8090a8; }
.nav-tab.active { color: #4a9eff; border-bottom-color: #4a9eff; background: rgba(74,158,255,0.05); }

/* ============================================================
   DASHBOARD â€” LAYOUT
   ============================================================ */
.dash-layout { display: flex; height: calc(100vh - 44px); overflow: hidden; }

/* Sidebar */
.dash-sidebar {
  width: 340px; flex-shrink: 0;
  background: #080815; border-right: 1px solid #181830;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px 12px; gap: 12px;
}

.sidebar-label { font-size: 10px; font-weight: 700; color: #303055; letter-spacing: 0.1em; text-transform: uppercase; align-self: flex-start; }

.board-preview-wrap {
  width: 316px; height: 385px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #1e1e38;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  flex-shrink: 0; position: relative;
}

#board-iframe {
  width: 460px; height: 580px;
  transform: scale(0.687);
  transform-origin: top left;
  pointer-events: none;
}

.sidebar-obs-btn { width: 100%; }

.btn-full-obs {
  width: 100%; background: #141428; border: 1px solid #282850;
  border-radius: 7px; color: #6a8ac0; padding: 9px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-full-obs:hover { background: #1e1e40; color: #90b8e8; border-color: #4a9eff; }

/* Main panel */
.dash-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #0e0e20; min-width: 0; }

.dash-tab-panel { flex: 1; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.dash-tab-panel.hidden { display: none; }

/* Title bar */
.dash-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: #0e0e20; border-bottom: 1px solid #181830; flex-shrink: 0;
}
.dash-title-left { display: flex; align-items: center; gap: 8px; }
.dash-title-icon { font-size: 16px; }
.dash-title-text { font-size: 20px; font-weight: 900; letter-spacing: 0.08em; color: #e2e8f0; }
.dash-title-right { display: flex; align-items: center; gap: 8px; }

.room-pill { background: #181830; border: 1px solid #252548; border-radius: 5px; padding: 3px 9px; font-size: 11px; color: #8090a8; font-weight: 600; }
.room-pill strong { color: #c8d8f0; }

.lifetime-badge { background: linear-gradient(135deg, #1a3a6a, #2a4a8a); border: 1px solid #3a5aa0; border-radius: 5px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: #90c8ff; letter-spacing: 0.06em; }

.btn-logout { background: #1a1030; border: 1px solid #2a1840; border-radius: 5px; padding: 4px 10px; font-size: 11px; color: #c06070; cursor: pointer; font-weight: 600; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-logout:hover { background: #280818; border-color: #c0403a; }

/* ============================================================
   TIMER BAR
   ============================================================ */
.timer-bar { background: #0a0a18; border-bottom: 1px solid #181830; padding: 8px 16px; flex-shrink: 0; }

.timer-bar-row1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.tbar-label { font-size: 11px; font-weight: 800; color: #4a6a98; letter-spacing: 0.08em; white-space: nowrap; }
.tbar-in { width: 52px !important; padding: 5px 8px !important; font-size: 13px !important; }
.tbar-unit { font-size: 11px; color: #404060; }
.tbar-sep { width: 1px; height: 20px; background: #222240; margin: 0 4px; }
.tbar-btn { padding: 6px 12px !important; font-size: 12px !important; }

.timer-live-display {
  font-size: 18px; font-weight: 800; color: #4a9eff;
  font-variant-numeric: tabular-nums; min-width: 48px;
  text-align: center; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.05em;
}

/* ============================================================
   AUTO TIE + AUTO WIN CARDS
   ============================================================ */
.auto-row { display: flex; gap: 10px; padding: 10px 14px; flex-shrink: 0; }

.auto-card {
  flex: 1; background: #111125; border-radius: 10px; padding: 14px;
  border: 1px solid #1e1e38; display: flex; flex-direction: column;
  gap: 0; min-width: 0; transition: border-color 0.2s;
}
.auto-card:hover { border-color: #2a2a50; }

.auto-tie-card { border-top: 2px solid #e2c060; }
.auto-win-card  { border-top: 2px solid #22c55e; }

.auto-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.auto-card-head-left { display: flex; align-items: center; gap: 6px; }
.auto-ico { font-size: 16px; }

.auto-title { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; }
.tie-title { color: #e2c060; }
.win-title  { color: #4ade80; }

.auto-status-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; background: #1e1e35; color: #404060;
  border: 1px solid #282848; letter-spacing: 0.06em; transition: all 0.3s;
}
.auto-status-badge.active { background: rgba(74,222,128,0.12); color: #4ade80; border-color: rgba(74,222,128,0.3); }
.auto-status-badge.tie-active { background: rgba(226,192,96,0.12); color: #e2c060; border-color: rgba(226,192,96,0.3); }

.auto-card-sub { font-size: 11px; color: #404060; line-height: 1.4; }

.auto-input-group { display: flex; align-items: center; gap: 6px; }
.auto-text-inp { flex: 1; min-width: 0; }

.auto-toggle-list { display: flex; flex-direction: column; gap: 0; }

.auto-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; background: #0d0d20; border-radius: 7px; border: 1px solid #181832;
}
.auto-toggle-row.mt8 { margin-top: 6px; }

.auto-toggle-info { flex: 1; min-width: 0; }
.auto-toggle-label { font-size: 12px; font-weight: 600; color: #c0ccdc; display: block; }
.auto-toggle-desc  { font-size: 10px; color: #404060; line-height: 1.4; margin-top: 1px; display: block; }

.auto-active-indicator {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: #0a0a18; border-radius: 6px;
  border: 1px solid #141428; margin-top: 8px; font-size: 11px; color: #404060;
}

.indicator-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #303050; }
.indicator-dot.on  { background: #4ade80; box-shadow: 0 0 5px #4ade80; animation: blink 1.5s ease infinite; }
.indicator-dot.tie { background: #e2c060; box-shadow: 0 0 5px #e2c060; animation: blink 1.5s ease infinite; }
.indicator-dot.off { background: #303050; }

/* ============================================================
   MANUAL COIN ADJUSTMENTS
   ============================================================ */
.coins-section {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0; border-top: 1px solid #181830; margin: 0 14px 14px; padding-top: 10px;
}

.coins-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; flex-shrink: 0;
}

.coins-sec-title { font-size: 13px; font-weight: 700; color: #9090b8; letter-spacing: 0.04em; }

.coins-count-badge {
  font-size: 11px; font-weight: 600; color: #404060;
  background: #111128; border: 1px solid #1e1e38; padding: 2px 8px; border-radius: 20px;
}

.coin-list-scroll {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px;
}

.coin-list-scroll::-webkit-scrollbar { width: 4px; }
.coin-list-scroll::-webkit-scrollbar-thumb { background: #222244; border-radius: 2px; }

/* Coin rows */
.coin-row {
  display: flex; align-items: center; gap: 10px;
  background: #111125; border: 1px solid #1a1a35; border-radius: 8px;
  padding: 8px 12px; transition: border-color 0.2s; flex-shrink: 0;
}
.coin-row:hover { border-color: #2a2a50; }

.coin-row-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #3a2a7a, #1a0a5a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; overflow: hidden;
}
.coin-row-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.coin-row-info { flex: 1; min-width: 0; }
.coin-row-name { font-weight: 700; font-size: 13px; color: #d8e0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-row-cur  { font-size: 11px; color: #404060; margin-top: 1px; }

.coin-row-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

.coin-row-input {
  width: 68px; background: #0a0a18; border: 1px solid #1e1e38;
  border-radius: 5px; color: #d0d8f0; padding: 4px 7px;
  font-size: 12px; font-family: 'Inter', sans-serif;
}
.coin-row-input:focus { outline: none; border-color: #3a6adf; }

.btn-coin-add  { background: linear-gradient(135deg, #16803a, #0d5a28); border: none; border-radius: 5px; color: #fff; padding: 4px 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.btn-coin-add:hover  { background: linear-gradient(135deg, #22c55e, #16803a); }
.btn-coin-set  { background: #1a1a35; border: 1px solid #2a2a50; border-radius: 5px; color: #8090a8; padding: 4px 9px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.btn-coin-set:hover  { background: #242448; color: #d0d8f0; }
.btn-coin-remove { background: rgba(180,20,40,0.12); border: 1px solid rgba(180,20,40,0.25); border-radius: 5px; color: #d06070; padding: 4px 8px; font-size: 12px; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.btn-coin-remove:hover { background: rgba(180,20,40,0.25); }

/* ============================================================
   SETTINGS TAB
   ============================================================ */
.settings-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 16px; overflow-y: auto; flex: 1;
}
.settings-grid::-webkit-scrollbar { width: 4px; }
.settings-grid::-webkit-scrollbar-thumb { background: #222244; border-radius: 2px; }

.settings-card { background: #111125; border: 1px solid #1e1e38; border-radius: 10px; padding: 16px; }

.settings-card-title {
  font-size: 13px; font-weight: 700; color: #9090b8; letter-spacing: 0.04em;
  padding-bottom: 10px; border-bottom: 1px solid #1a1a35;
}

.obs-card { background: #0a0a18; border: 1px solid #181832; border-radius: 8px; padding: 10px; }
.obs-label { font-size: 11px; font-weight: 700; color: #5a8ac0; margin-bottom: 6px; }

/* ============================================================
   SHARED FORM ELEMENTS
   ============================================================ */
.input-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.btn-row   { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.label-txt  { font-size: 12px; color: #5a6878; white-space: nowrap; }
.meta-txt   { font-size: 11px; color: #404060; }
.tip-txt    { font-size: 11px; color: #404060; line-height: 1.5; }

.mt4  { margin-top: 4px; }
.mt6  { margin-top: 6px; }
.mt8  { margin-top: 8px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.ml8  { margin-left: 8px; }
.flex1 { flex: 1; min-width: 0; }
.w80  { width: 80px; }
.w160 { width: 160px; }

.num-input {
  background: #0a0a18; border: 1px solid #1e1e38; border-radius: 6px;
  color: #d0d8f0; padding: 6px 8px; font-size: 13px; font-weight: 600;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.num-input:focus { outline: none; border-color: #3a6adf; }

.text-input {
  background: #0a0a18; border: 1px solid #1e1e38; border-radius: 6px;
  color: #d0d8f0; padding: 7px 10px; font-size: 12px;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.text-input:focus { outline: none; border-color: #3a6adf; }
.text-input::placeholder { color: #282848; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #2a5acc, #1a3a9a); border: none; border-radius: 6px; color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-primary:hover { background: linear-gradient(135deg, #3a6adc, #2a4aaa); }
.btn-primary.sm { padding: 5px 10px; font-size: 11px; }

.btn-success { background: linear-gradient(135deg, #16803a, #0d5a28); border: none; border-radius: 6px; color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-success:hover { background: linear-gradient(135deg, #22c55e, #16803a); }

.btn-danger { background: linear-gradient(135deg, #c0213a, #8b0010); border: none; border-radius: 6px; color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-danger:hover { background: linear-gradient(135deg, #e0304a, #c0213a); }

.btn-danger-solid { background: linear-gradient(135deg, #c0213a, #8b0000); border: none; border-radius: 6px; color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; box-shadow: 0 2px 8px rgba(192,33,58,0.35); }
.btn-danger-solid:hover { background: linear-gradient(135deg, #e02040, #a00010); }
.btn-danger-solid.mt12 { margin-top: 12px; }

.btn-gray { background: #1a1a35; border: 1px solid #2a2a50; border-radius: 6px; color: #8090a8; padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-gray:hover { background: #242448; color: #d0d8f0; }
.btn-gray.sm { padding: 5px 10px; font-size: 11px; }

.btn-icon { background: #181830; border: 1px solid #252548; border-radius: 6px; color: #7090c0; padding: 6px 9px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { background: #202040; }

.btn-connect { background: linear-gradient(135deg, #16803a, #0d5a28); border: none; border-radius: 6px; color: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; white-space: nowrap; }
.btn-connect:hover { background: linear-gradient(135deg, #22c55e, #16803a); }
.btn-connect.connected { background: linear-gradient(135deg, #991020, #7a0010); }

.btn-quick-add { background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.3); border-radius: 5px; color: #3ab860; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-quick-add:hover { background: rgba(22,163,74,0.25); }
.btn-quick-rem { background: rgba(192,33,58,0.12); border: 1px solid rgba(192,33,58,0.3); border-radius: 5px; color: #c06070; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-quick-rem:hover { background: rgba(192,33,58,0.25); }

/* Toggle switches */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #1a1a35; border-radius: 22px; transition: 0.3s; border: 1px solid #2a2a50; }
.slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 2px; top: 2px; background: #505070; border-radius: 50%; transition: 0.3s; }
.switch input:checked + .slider { background: #16803a; border-color: #22c55e; }
.switch input:checked + .slider::before { background: #fff; transform: translateX(20px); }

/* Connect */
.connect-dot { width: 7px; height: 7px; border-radius: 50%; background: #4aff88; box-shadow: 0 0 5px #4aff88; }
.connect-dot.off { background: #404060; box-shadow: none; }
.connect-info-txt { font-size: 11px; color: #404060; margin-top: 6px; line-height: 1.5; }
.status-offline { color: #c09030; }
.status-online  { color: #4ade80; }

.sep { height: 1px; background: #181830; width: 100%; }
.empty-state { text-align: center; color: #282848; font-size: 12px; padding: 20px; font-style: italic; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* â”€â”€ Paste Zone (board background image) â”€â”€ */
.paste-zone {
  border: 2px dashed #2a2a50;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(10,10,24,0.5);
  margin-top: 10px;
  position: relative;
}
.paste-zone:hover, .paste-zone.drag-over {
  border-color: #4a9eff;
  background: rgba(74,158,255,0.05);
}
.paste-zone-icon { font-size: 28px; margin-bottom: 6px; }
.paste-zone-title { font-size: 13px; font-weight: 700; color: #8090a8; margin-bottom: 3px; }
.paste-zone-sub { font-size: 11px; color: #404060; }

.paste-preview {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: none;
}
.paste-preview img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.paste-preview-remove {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(192,33,58,0.85);
  border: none; border-radius: 5px;
  color: #fff; padding: 3px 8px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.paste-preview-remove:hover { background: #c0213a; }

/* Overlays */
.winner-overlay, .vouch-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 12px;
  padding: 30px 20px;
  margin-top: 10px;
  transition: opacity 0.5s ease-out; opacity: 1;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.winner-title {
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.winner-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #c8a14d;
  box-shadow: 0 0 20px rgba(200,161,77,0.4);
  background: #111;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-name {
  color: #ffda44;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255,218,68,0.5);
  margin-bottom: 10px;
  text-align: center;
}

.winner-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #ffda44;
  text-shadow: 0 0 15px rgba(255,218,68,0.6);
  margin-bottom: 20px;
}

.winner-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}
.level-up-text { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.15em; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hustler-text { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,0.7); letter-spacing: 0.05em; }

.vouch-title {
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.vouch-name {
  color: #ffda44;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255,218,68,0.3);
}
.vouch-desc { color: #fff; font-size: 14px; font-weight: 600; text-align: center; margin-bottom: 30px; }
.vouch-hl { color: #ffda44; }
.vouch-footer { color: #aaa; font-size: 11px; font-weight: 500; }


/* OVERRIDE VOUCH OVERLAY TO BE A FLOATING WINDOW */
.vouch-overlay {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90% !important;
  max-width: 320px !important;
  background: #000000 !important;
  border-top: 3px solid #ff2442 !important;
  border-bottom: 3px solid #ff2442 !important;
  border-radius: 4px !important;
  padding: 30px 20px !important;
  z-index: 100 !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important;
  animation: popup-scale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  margin-top: 0 !important;
}

@keyframes popup-scale {
  from { opacity: 0; transform: translate(-50%, -35%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.vouch-overlay.hidden {
  display: none !important;
}

/* FORCE TRANSPARENCY ON BOARD CARD AND ROWS SO BACKGROUND IMAGE SHOWS */
.board-card { transition: opacity 0.5s ease; opacity: 1;
  background-color: rgba(15, 5, 5, 0.4) !important;
}

.rank-1, .rank-2, .rank-3 {
  background: rgba(10, 10, 10, 0.4) !important;
}

#b-winner-messages {
  background: rgba(20, 15, 5, 0.9);
  border: 1px solid rgba(255,218,68,0.5);
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 15px rgba(255,218,68,0.2);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
}
#b-winner-messages .wm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid #ffda44;
}
#b-winner-messages .wm-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#b-winner-messages .wm-title {
  color: #ffda44;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 2px;
  text-shadow: 0 0 5px rgba(255,218,68,0.5);
}
#b-winner-messages .wm-text {
  font-size: 20px;
  letter-spacing: 1px;
}
#b-winner-messages .wm-text .wm-user {
  color: #ffda44;
}

.winner-overlay {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100%;
}

.winner-title {
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 28px !important;
  letter-spacing: 3px !important;
  margin-bottom: 25px !important;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.9) !important;
}

.winner-avatar {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  border: 6px solid #d4af37 !important;
  outline: 4px solid #8c6a1c !important;
  box-shadow: 0 0 40px rgba(212,175,55,0.8), inset 0 0 15px rgba(0,0,0,0.8) !important;
  background: #111 !important;
  margin-bottom: 25px !important;
}

.winner-name {
  color: #ffd700 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  letter-spacing: 1px !important;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 4px 15px rgba(255,215,0,0.6) !important;
  margin-bottom: 12px !important;
}

.winner-coins {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 54px !important;
  color: #ffd700 !important;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 4px 20px rgba(255,215,0,0.8) !important;
}
/* Tie Overlay Premium Design */
.tie-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100%;
  z-index: 10;
  transition: opacity 0.5s ease-out; opacity: 1;
}

.tie-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 2px solid #d4af37;
  padding: 8px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(212,175,55,0.2), inset 0 0 10px rgba(212,175,55,0.2);
  position: relative;
  margin-bottom: 40px;
  background-color: rgba(20,20,20,0.8);
}
.tie-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: -60px; right: -60px; height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  z-index: -1;
}

.tie-handshake {
  font-size: 32px;
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.8));
}

.tie-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.tie-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.tie-avatar-box {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(180deg, #fff200, #d4af37);
  box-shadow: 0 0 25px rgba(212,175,55,0.4);
  margin-bottom: 15px;
}
.tie-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #111;
}

.tie-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tie-coins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212,175,55,0.4);
  padding: 6px 18px;
  border-radius: 20px;
  color: #ffd700;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.tie-coin-dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd700);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,215,0,0.8);
  display: inline-block;
}

.tie-center-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d4af37, #8c6a1c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.8);
  border: 2px solid #ffd700;
  position: absolute;
  top: 35px; /* Align with avatars */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.tie-center-inner {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.tie-players::before {
  content: '';
  position: absolute;
  top: 60px; left: 60px; right: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  z-index: 0;
}

.overlay-hidden { opacity: 0 !important; pointer-events: none !important; }





/* ============================================================
   PINNED ANIMATIONS WIDGET (NEON THEME)
   ============================================================ */
.pinned-widget {
  width: 100%;
  box-sizing: border-box;
  background: #0B0E14;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
  margin-top: 15px;
}

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

.pinned-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pinned-pin-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 8px rgba(100, 100, 255, 0.8));
}

.pinned-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.pinned-title .t-pinned { color: #ffffff; }
.pinned-title .t-anims { color: #6a5acd; }

.pinned-popout-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 12px;
  color: #cacedb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.pinned-popout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pinned-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pinned-slot {
  display: flex;
  align-items: stretch;
  background: #111520;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
  gap: 8px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.pinned-slot-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #d232ff, #248bfb);
  box-shadow: 0 0 10px rgba(36, 139, 251, 0.6);
}

.pinned-slot-number {
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  margin-left: 6px;
}
.pinned-slot-number .lbl {
  font-size: 9px;
  color: #8ba3cb;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pinned-slot-number .num {
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

.pinned-select-wrapper {
  display: none;
}
.pinned-slot.expanded .pinned-select-wrapper {
  display: flex;
  flex: 1;
}

.pinned-anim-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}
.pinned-anim-info .anim-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}
.pinned-anim-info .anim-coins {
  color: #8ba3cb;
  font-size: 10px;
}
.pinned-slot.expanded .pinned-anim-info {
  display: none;
}

.pinned-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pinned-slot.expanded .pinned-actions {
  display: none;
}

.pinned-select {
  width: 100%;
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.pinned-select:focus {
  border-color: rgba(36, 139, 251, 0.5);
}

.pinned-btn-play {
  background: rgba(36, 139, 251, 0.15);
  border: 1px solid rgba(36, 139, 251, 0.4);
  border-radius: 8px;
  padding: 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 0 10px rgba(36, 139, 251, 0.1);
  transition: all 0.2s;
  height: 32px;
}
.pinned-btn-play:hover {
  background: rgba(36, 139, 251, 0.25);
}
.pinned-btn-play svg {
  width: 12px;
  height: 12px;
  fill: #3ba4ff;
  filter: drop-shadow(0 0 4px #3ba4ff);
}

.pinned-btn-add {
  background: rgba(30, 215, 96, 0.15);
  border: 1px solid rgba(30, 215, 96, 0.4);
  border-radius: 8px;
  padding: 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 0 10px rgba(30, 215, 96, 0.1);
  transition: all 0.2s;
  height: 32px;
}
.pinned-btn-add:hover {
  background: rgba(30, 215, 96, 0.25);
}
.pinned-btn-add span {
  color: #ffd700;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

.pinned-grip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
  border-radius: 4px;
}
.pinned-grip:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.pinned-grip svg {
  width: 14px;
  height: 14px;
  fill: #8ba3cb;
}

/* ══════════════════════════════════════════════════════════════
   🤖 BOT COMMANDER & CALIBRATOR-STYLE PANEL STYLES
   ══════════════════════════════════════════════════════════════ */

.bot-view-container {
  display: flex;
  min-height: calc(100vh - 120px);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #07090e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .bot-view-container {
    flex-direction: column;
  }
}

.bot-sidebar-card {
  width: 360px;
  min-width: 360px;
  background: #0d1117;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bot-card-header {
  padding: 18px 20px 14px;
  background: #0a0e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bot-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.bot-header-sub {
  font-size: 11px;
  color: #6b7a95;
  margin-top: 3px;
}

.bot-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bot-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0a0e17;
}

.btn-bot-popout-large {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-bot-popout-large:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.bot-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-group-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a78bfa;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-main-card {
  flex: 1;
  background: #07090e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}


.bot-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bot-helper-text {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

/* Chips Container */
.bot-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px;
}

.bot-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.bot-user-chip:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.5);
  color: #ffffff;
}

.bot-user-chip.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.4));
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}

.bot-chip-del {
  font-size: 11px;
  color: #94a3b8;
  padding: 0 2px;
  border-radius: 50%;
  transition: color 0.15s;
}

.bot-chip-del:hover {
  color: #ef4444;
}

/* Words To Type (Phrases Grid) */
.bot-phrases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
}

.bot-phrase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bot-phrase-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(124, 58, 237, 0.3));
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.bot-phrase-btn:active {
  transform: scale(0.97);
}

.bot-phrase-btn .del-btn {
  opacity: 0.4;
  font-size: 10px;
  transition: opacity 0.15s;
}

.bot-phrase-btn:hover .del-btn {
  opacity: 0.9;
}

.bot-phrase-btn .del-btn:hover {
  color: #ef4444;
}

/* Transmitter & Live Console */
.bot-status-badges {
  display: flex;
  gap: 8px;
}

.bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.bot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.bot-live-send-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-send-now {
  white-space: nowrap;
  font-weight: 700;
  padding: 0 18px;
}

.bot-log-wrapper {
  background: rgba(5, 7, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.bot-log-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}

.bot-activity-feed {
  flex: 1;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #7c3aed;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.bot-log-text {
  color: #f1f5f9;
  font-weight: 500;
}

.bot-log-time {
  font-size: 10.5px;
  color: #64748b;
}

.bot-log-empty {
  color: #64748b;
  font-size: 12px;
  text-align: center;
  margin: auto;
  padding: 30px;
}

/* ══════════════════════════════════════════════════════════════
   🤖 BOT POPOUT VIEW STYLES
   ══════════════════════════════════════════════════════════════ */
.bot-popout-widget {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.bot-popout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-popout-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.bot-popout-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #22c55e;
  font-weight: 700;
}

