/* =====================================================
   AX EMOTE BOT X — Complete UI Style
   PHP/MySQL Rebuild | Upgraded Design
   ===================================================== */

:root {
  /* Core palette */
  --bg-primary:     #070a10;
  --bg-secondary:   #0d1117;
  --bg-card:        #111824;
  --bg-card-hover:  #151e2e;
  --bg-input:       #0e1520;
  --bg-input-focus: #111d2e;

  /* Accent colours */
  --accent:         #6c63ff;
  --accent-hover:   #7c75ff;
  --accent-glow:    rgba(108,99,255,0.35);
  --accent-2:       #00d4ff;
  --accent-2-glow:  rgba(0,212,255,0.25);
  --gold:           #f4b942;
  --gold-glow:      rgba(244,185,66,0.3);
  --danger:         #ff4757;
  --danger-glow:    rgba(255,71,87,0.3);
  --success:        #2ed573;
  --warning:        #ffa502;

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #8b9cc8;
  --text-gray:      #5a6b8c;

  /* Borders */
  --border:         rgba(108,99,255,0.15);
  --border-hover:   rgba(108,99,255,0.4);
  --border-card:    rgba(255,255,255,0.06);

  /* Gradients */
  --grad-accent:    linear-gradient(135deg, #6c63ff, #00d4ff);
  --grad-gold:      linear-gradient(135deg, #f4b942, #ff6b6b);
  --grad-card:      linear-gradient(145deg, #111824, #0d1520);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --glow-accent: 0 0 20px var(--accent-glow);
  --glow-gold:   0 0 20px var(--gold-glow);

  /* Spacing / Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Font */
  --font: 'Inter', system-ui, sans-serif;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
.hidden { display: none !important; }

/* ─── GRID BACKGROUND ───────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── PARTICLES ─────────────────────────────────────── */
.particles-container, .dashboard-bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
  box-shadow: 0 0 6px var(--accent);
}
.particle:nth-child(1) { left:15%; top:20%; animation-delay:0s;   animation-duration:9s; }
.particle:nth-child(2) { left:75%; top:60%; animation-delay:2.5s; animation-duration:11s; }
.particle:nth-child(3) { left:45%; top:80%; animation-delay:5s;   animation-duration:8s;  }
.bg-particle {
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.06) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: bgFloat 20s infinite ease-in-out;
}
@keyframes particleFloat {
  0%,100% { opacity:0; transform: translateY(0) scale(1); }
  20%      { opacity:.9; }
  80%      { opacity:.5; }
  100%     { transform: translateY(-200px) scale(0.5); }
}
@keyframes bgFloat {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-60px,60px); }
}

/* ─── LOGIN PAGE ─────────────────────────────────────── */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px; position: relative;
}
.login-container {
  width: 100%; max-width: 440px; position: relative; z-index: 10;
}
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(108,99,255,0.08);
}
.login-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-accent);
}
.login-glow-ring {
  position: absolute; inset: -2px; border-radius: calc(var(--radius-xl) + 2px);
  background: transparent;
  box-shadow: 0 0 50px rgba(108,99,255,0.12), inset 0 0 30px rgba(108,99,255,0.04);
  pointer-events: none;
}
.brand-section { text-align: center; margin-bottom: 36px; }
.lightning-icon-wrapper {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,212,255,0.1));
  border: 1px solid rgba(108,99,255,0.3);
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(108,99,255,0.2);
}
.lightning-icon { font-size: 32px; display: block; }
.pulse-anim { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(108,99,255,0.8)); }
}
.brand-name {
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tagline { font-size: 13px; color: var(--text-gray); margin-top: 6px; }

/* ─── LOGIN FORM ─────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 14px; }
.input-container { position: relative; }
.login-input {
  width: 100%; padding: 15px 48px 15px 18px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.login-input:focus {
  border-color: var(--accent); background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-input::placeholder { color: var(--text-gray); }
.lock-icon {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-gray); pointer-events: none;
}
.eye-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 4px; color: var(--text-gray);
  transition: color .2s;
}
.eye-toggle:hover { color: var(--text-primary); }
.eye-toggle svg { width: 18px; height: 18px; display: block; }
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: none; border-radius: var(--radius-md);
  background: var(--grad-accent); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.login-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(108,99,255,0.55); }
.login-btn:active { transform: translateY(0); }
.btn-icon svg { width: 18px; height: 18px; transition: transform .2s; }
.login-btn:hover .btn-icon svg { transform: translateX(4px); }
.error-message {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.3);
  color: var(--danger); font-size: 13px; text-align: center;
  display: none;
}
.error-message.visible { display: block; }
.social-footer {
  display: flex; justify-content: center; gap: 14px; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border-card);
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-card);
  color: var(--text-gray); transition: all .25s;
}
.social-link:hover {
  background: rgba(108,99,255,0.15); border-color: var(--accent);
  color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.social-link svg { width: 18px; height: 18px; }
.login-footer-text {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--text-gray);
}
.login-footer-text a { color: var(--accent); font-weight: 600; }

/* ─── DASHBOARD LAYOUT ───────────────────────────────── */
.dashboard-body { background: var(--bg-primary); }
.dashboard-container {
  max-width: 720px; margin: 0 auto;
  padding: 0 16px 40px;
  position: relative; z-index: 10;
}
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 20px;
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(to bottom, var(--bg-primary) 80%, transparent);
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-brand .lightning-icon { font-size: 26px; }
.header-brand h1 {
  font-size: 18px; font-weight: 900; letter-spacing: 1.5px;
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.stats-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(108,99,255,0.12); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.stats-pill-icon { font-size: 14px; }
.icon-button {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-card);
  color: var(--text-secondary); transition: all .2s;
}
.icon-button:hover {
  background: rgba(255,71,87,0.12); border-color: var(--danger);
  color: var(--danger);
}
.icon-button svg { width: 18px; height: 18px; }

/* ─── ANNOUNCEMENTS ──────────────────────────────────── */
.announcements-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.announcement-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid; animation: slideDown .3s ease;
}
@keyframes slideDown { from { transform: translateY(-10px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.announcement-card.type-info    { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.2); }
.announcement-card.type-warning { background: rgba(255,165,2,0.06); border-color: rgba(255,165,2,0.2); }
.announcement-card.type-success { background: rgba(46,213,115,0.06); border-color: rgba(46,213,115,0.2); }
.announcement-card.type-danger  { background: rgba(255,71,87,0.06);  border-color: rgba(255,71,87,0.2); }
.ann-icon { font-size: 18px; flex-shrink: 0; }
.ann-content { flex: 1; }
.ann-content strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ann-content span { font-size: 12px; color: var(--text-secondary); }
.ann-close {
  background: none; border: none; color: var(--text-gray);
  font-size: 14px; padding: 2px 6px; transition: color .2s;
}
.ann-close:hover { color: var(--text-primary); }

/* ─── QUICK STATS BAR ────────────────────────────────── */
.quick-stats-bar {
  display: flex; align-items: center; justify-content: space-around;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 20px;
}
.qs-item { display: flex; align-items: center; gap: 10px; }
.qs-icon { font-size: 20px; }
.qs-text { display: flex; flex-direction: column; }
.qs-val { font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.qs-label { font-size: 11px; color: var(--text-gray); margin-top: 2px; }
.qs-divider { width: 1px; height: 36px; background: var(--border-card); }

/* ─── PANEL SECTIONS ─────────────────────────────────── */
.panel-section {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.panel-section:hover { border-color: var(--border); }
.section-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--text-secondary);
}
.section-badge {
  margin-left: auto;
  background: rgba(108,99,255,0.15); color: var(--accent);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 99px; padding: 2px 10px;
  font-size: 11px; font-weight: 700;
}
.title-icon-wrapper {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(108,99,255,0.12); border: 1px solid var(--border);
  flex-shrink: 0;
}
.title-icon { width: 16px; height: 16px; color: var(--accent); }

/* ─── SERVER SELECT ──────────────────────────────────── */
.server-select-container { position: relative; }
.server-select {
  width: 100%; padding: 13px 40px 13px 16px;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c63ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  outline: none; appearance: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.server-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.server-select option { background: var(--bg-secondary); }

/* ─── CONFIG INPUTS ──────────────────────────────────── */
.input-section { }
.input-group-box { margin-bottom: 14px; }
.input-group-box label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-gray); letter-spacing: 1px; margin-bottom: 8px;
}
.required { color: var(--accent); }
.config-input {
  width: 100%; padding: 13px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.config-input:focus {
  border-color: var(--accent); background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.config-input::placeholder { color: var(--text-gray); }
.uid-input { font-family: monospace; letter-spacing: 1px; }
.add-uid-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: rgba(108,99,255,0.08); border: 1px dashed rgba(108,99,255,0.3);
  border-radius: var(--radius-md); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  transition: all .2s;
}
.add-uid-btn:hover:not(:disabled) {
  background: rgba(108,99,255,0.15); border-color: var(--accent);
  transform: translateY(-1px);
}
.add-uid-btn:disabled { opacity: .5; cursor: not-allowed; }
.add-uid-btn svg { width: 16px; height: 16px; }
.uid-field { animation: fadeIn .3s ease; }
.remove-uid-btn {
  flex-shrink: 0; padding: 12px; background: rgba(255,71,87,0.1);
  border: 1px solid rgba(255,71,87,0.2); border-radius: var(--radius-md);
  color: var(--danger); transition: all .2s;
}
.remove-uid-btn:hover { background: rgba(255,71,87,0.2); }
.remove-uid-btn svg { width: 16px; height: 16px; display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ─── EMOTE SECTION ──────────────────────────────────── */
.category-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex-shrink: 0; padding: 9px 18px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 99px; color: var(--text-gray);
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  transition: all .2s;
}
.category-tab:hover { border-color: var(--accent); color: var(--accent); }
.category-tab.active {
  background: var(--grad-accent); border-color: transparent;
  color: #fff; box-shadow: 0 3px 12px var(--accent-glow);
}
.emote-search-wrapper { margin-bottom: 14px; }
.emote-search-input {
  width: 100%; padding: 11px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.emote-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.emote-search-input::placeholder { color: var(--text-gray); }
.emote-grid-wrapper { overflow: hidden; }
.emote-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-height: 340px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.emote-grid::-webkit-scrollbar { width: 4px; }
.emote-grid::-webkit-scrollbar-track { background: transparent; }
.emote-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.emote-card {
  background: var(--bg-input); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  transition: all .2s; position: relative;
}
.emote-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.emote-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 20px var(--accent-glow);
}
.emote-card.selected::after {
  content: '✓';
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.emote-image-wrapper {
  aspect-ratio: 1; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
}
.emote-image-wrapper img { width: 100%; height: 100%; object-fit: contain; display: block; }
.emote-name {
  font-size: 10px; font-weight: 600; color: var(--text-gray);
  text-align: center; padding: 6px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.no-emotes {
  grid-column: 1/-1; text-align: center; padding: 40px 20px;
  color: var(--text-gray); font-size: 13px;
}
.loading-emotes {
  grid-column: 1/-1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 40px;
  color: var(--text-gray); font-size: 13px;
}

/* ─── STATUS SECTION ─────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.stat-icon { font-size: 20px; flex-shrink: 0; }
.stat-content { display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-size: 10px; font-weight: 700; color: var(--text-gray); letter-spacing: .5px; }
.stat-value {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Send History */
.send-history {
  background: var(--bg-input); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); overflow: hidden;
}
.send-history-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-card);
  font-size: 12px; font-weight: 700; color: var(--text-gray);
}
.clear-history-btn {
  background: none; border: none; color: var(--text-gray);
  font-size: 11px; font-weight: 600; transition: color .2s;
}
.clear-history-btn:hover { color: var(--danger); }
.send-history-list { max-height: 200px; overflow-y: auto; }
.no-history {
  text-align: center; padding: 20px; color: var(--text-gray); font-size: 12px;
}
.history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px; animation: fadeIn .3s ease;
}
.history-item:last-child { border-bottom: none; }
.history-icon-ok  { color: var(--success); font-size: 14px; }
.history-icon-err { color: var(--danger); font-size: 14px; }
.history-text { flex: 1; color: var(--text-secondary); }
.history-time { color: var(--text-gray); font-size: 11px; }
.history-ms { color: var(--accent); font-size: 11px; font-weight: 700; }

/* ─── MAINTENANCE OVERLAY ────────────────────────────── */
.maintenance-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,10,16,0.97);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.maintenance-box {
  background: var(--bg-card); border: 1px solid rgba(244,185,66,0.3);
  border-radius: var(--radius-xl); padding: 48px 36px;
  text-align: center; max-width: 380px;
  box-shadow: 0 0 60px var(--gold-glow);
}
.maintenance-icon { font-size: 52px; margin-bottom: 20px; }
.maintenance-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.maintenance-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }
.maintenance-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--grad-gold);
  border-radius: 99px; color: #000; font-weight: 700; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.maintenance-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); color: #000; }
.maintenance-btn svg { width: 16px; height: 16px; }

/* ─── TOAST NOTIFICATIONS ────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none; min-width: 280px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 600;
  transform: translateY(20px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all; width: max-content; max-width: 360px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: rgba(46,213,115,0.15); border: 1px solid rgba(46,213,115,0.3); color: var(--success); }
.toast-error   { background: rgba(255,71,87,0.15);  border: 1px solid rgba(255,71,87,0.3);  color: var(--danger); }
.toast-info    { background: rgba(0,212,255,0.12);  border: 1px solid rgba(0,212,255,0.25); color: var(--accent-2); }
.toast-icon { font-size: 16px; }
.toast-message { flex: 1; }

/* ─── LOADING OVERLAY ────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(7,10,16,0.85); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.spinner-container { }
.spinner {
  width: 44px; height: 44px; border: 3px solid rgba(108,99,255,0.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-secondary); }

/* ─── DASHBOARD FOOTER ───────────────────────────────── */
.dashboard-footer { padding: 24px 0 8px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.footer-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-card);
  color: var(--text-gray); transition: all .25s;
}
.footer-link:hover {
  background: rgba(108,99,255,0.15); border-color: var(--accent);
  color: var(--accent); transform: translateY(-3px);
}
.footer-link svg { width: 17px; height: 17px; }
.footer-copy { font-size: 11px; color: var(--text-gray); }

/* ─── ADMIN STYLES ───────────────────────────────────── */
.admin-alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  margin-bottom: 16px; font-size: 13px; font-weight: 600;
  animation: slideDown .3s ease;
}
.success-alert { background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.25); color: var(--success); }
.error-alert   { background: rgba(255,71,87,0.1);  border: 1px solid rgba(255,71,87,0.25);  color: var(--danger); }
.admin-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-btn-row { display: flex; gap: 10px; }
.action-btn-large {
  display: block; width: 100%; padding: 14px;
  background: var(--grad-accent); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
  transition: all .2s; box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}
.action-btn-large:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,99,255,0.5); }
.squad-btn {
  padding: 13px 20px; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  border: none; background: rgba(255,255,255,0.06);
  color: var(--text-secondary); transition: all .2s;
}
.squad-btn.leave { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.2); color: var(--danger); }
.squad-btn:hover { background: rgba(255,71,87,0.2); }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.region-header h3 {
  font-size: 11px; font-weight: 800; color: var(--text-gray);
  letter-spacing: 1px; padding: 10px 0 6px;
  text-transform: uppercase;
}
.admin-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-input); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 12px 14px;
  transition: border-color .2s;
}
.admin-item:hover { border-color: var(--border); }
.admin-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.admin-item-info strong { font-size: 13px; font-weight: 700; }
.admin-item-info span { font-size: 11px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-meta { font-size: 10px; color: rgba(108,99,255,0.7) !important; }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.action-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid;
  transition: all .2s;
}
.action-icon-btn svg { width: 14px; height: 14px; }
.action-icon-btn.pin   { background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.2); color: var(--accent); }
.action-icon-btn.pin:hover   { background: rgba(108,99,255,0.2); }
.action-icon-btn.close { background: rgba(255,71,87,0.1); border-color: rgba(255,71,87,0.2); color: var(--danger); }
.action-icon-btn.close:hover { background: rgba(255,71,87,0.25); }
.no-data { text-align: center; color: var(--text-gray); font-size: 13px; padding: 20px; }

/* Admin Stats */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat-card {
  background: var(--bg-input); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.asc-icon { font-size: 22px; margin-bottom: 8px; }
.asc-val { font-size: 22px; font-weight: 900; background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.asc-label { font-size: 11px; color: var(--text-gray); margin-top: 4px; }
.recent-logs-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 8px 12px; text-align: left; color: var(--text-gray); font-size: 10px; letter-spacing: 1px; border-bottom: 1px solid var(--border-card); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.02); color: var(--text-secondary); }
.admin-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}
.status-badge.success { background: rgba(46,213,115,0.15); color: var(--success); }
.status-badge.fail    { background: rgba(255,71,87,0.15);  color: var(--danger); }

/* Toggle */
.toggle-container { display: flex; align-items: center; gap: 14px; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 27px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); border: 1px solid var(--border);
  border-radius: 99px; transition: all .3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 19px; height: 19px; left: 3px; bottom: 3px;
  background: var(--text-gray); border-radius: 50%;
  transition: all .3s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(108,99,255,0.3); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(23px); background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* Emote preview */
.emote-preview-container { margin: -4px 0 4px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
  .login-box { padding: 32px 22px; }
  .emote-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quick-stats-bar { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 380px) {
  .emote-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}
