/* MAVIC BOT — Global Styles */
:root {
  --bg:       #05060f;
  --bg2:      #0d0e1f;
  --card:     rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --primary:  #7c3aed;
  --primary2: #6d28d9;
  --accent:   #06b6d4;
  --success:  #10b981;
  --danger:   #ef4444;
  --warn:     #f59e0b;
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --text3:    #475569;
  --glow:     0 0 40px rgba(124,58,237,0.25);
  --radius:   16px;
  --radius-sm:10px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Glass card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Gradient text */
.grad {
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(124,58,237,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,58,237,0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text); background: var(--card); }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}
.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.input-group input:focus {
  border-color: var(--primary);
  background: rgba(124,58,237,0.06);
}
.input-group input::placeholder { color: var(--text3); }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-online  { background: rgba(16,185,129,.15); color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.badge-offline { background: rgba(239,68,68,.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.badge-warn    { background: rgba(245,158,11,.15); color: var(--warn);    border: 1px solid rgba(245,158,11,.3); }

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-item {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  min-width: 220px;
  animation: slideIn .3s ease;
  backdrop-filter: blur(20px);
}
.toast-success { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); color: #34d399; }
.toast-error   { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }
.toast-info    { background: rgba(6,182,212,.15);  border: 1px solid rgba(6,182,212,.3);  color: #22d3ee; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Loader */
.loader {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Animated background */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  animation: float 12s ease-in-out infinite;
}
.bg-animated::before {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -100px;
}
.bg-animated::after {
  width: 500px; height: 500px;
  background: var(--accent);
  bottom: -200px; right: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,30px) scale(1.05); }
}

/* Responsive helpers */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}

/* ── Light Mode ───────────────────────────────────────── */
body.light {
  --bg:     #f8fafc;
  --bg2:    #f1f5f9;
  --card:   rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.08);
  --text:   #0f172a;
  --text2:  #475569;
  --text3:  #94a3b8;
  --glow:   0 0 40px rgba(124,58,237,0.15);
}

body.light .bg-animated::before,
body.light .bg-animated::after { opacity: .06; }

body.light ::-webkit-scrollbar-track { background: var(--bg2); }

body.light .input-group input {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
body.light .input-group input:focus {
  background: rgba(124,58,237,0.04);
}

body.light .navbar,
body.light .topbar {
  background: rgba(248,250,252,0.92);
}

body.light .sidebar {
  background: rgba(0,0,0,0.03);
}

body.light select {
  background: rgba(0,0,0,0.04) !important;
  color: var(--text) !important;
}

body.light .token-mono {
  background: rgba(0,0,0,0.06);
}

body.light .sidebar-overlay { background: rgba(0,0,0,0.4); }

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,58,237,0.08);
}

/* Announcement banner (user pages) */
.announce-banner {
  padding: 10px 20px;
  background: rgba(124,58,237,.12);
  border-bottom: 1px solid rgba(124,58,237,.2);
  font-size: 13px;
  text-align: center;
  color: #c4b5fd;
}
body.light .announce-banner {
  background: rgba(124,58,237,.08);
  color: #7c3aed;
}

/* Plan expiry info */
.plan-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
body.light .plan-info-bar {
  background: rgba(124,58,237,.05);
}

/* ── Social Icons ─────────────────────────────────── */
.social-bar {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text2);
}
.social-icon:hover { transform: translateY(-2px); opacity: .85; }
.social-icon.fb   { color: #1877f2; }
.social-icon.tg   { color: #26a5e4; }
.social-icon.gh   { color: #e6edf3; }
.social-icon.yt   { color: #ff0000; }
.social-icon.x    { color: #e7e9ea; }
.social-icon.ig   { color: #e1306c; }

/* Light mode social icon fixes */
body.light .social-icon {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.1);
}
body.light .social-icon.gh { color: #24292f; }
body.light .social-icon.x  { color: #000000; }

/* ── Site Footer ──────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 12px;
  margin-top: 40px;
}
.site-footer .footer-social { margin-bottom: 12px; }

