/* ============================================================
   NP Bot Dashboard — Shared Design System
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-root:    #080a0f;
  --bg-surface: #0d0f18;
  --bg-card:    #11131d;
  --bg-card-2:  #161924;
  --bg-input:   #0d0f18;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.065);
  --border-hover: rgba(88, 101, 242, 0.55);
  --border-focus: rgba(88, 101, 242, 0.8);

  /* Brand */
  --blurple:        #5865f2;
  --blurple-light:  #7289da;
  --blurple-dark:   #4752c4;
  --violet:         #8b5cf6;
  --green:          #3ba55c;
  --red:            #ed4245;

  /* Text */
  --text-primary:   #e3e5e8;
  --text-secondary: #b9bbbe;
  --text-muted:     #52545c;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #5865f2 0%, #8b5cf6 100%);
  --grad-glow:  radial-gradient(circle at 50% 50%, rgba(88,101,242,0.18) 0%, transparent 65%);

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 40px rgba(88, 101, 242, 0.18);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(88, 101, 242, 0.15);

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

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--bg-root);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Ambience ───────────────────────────────────── */
.bg-ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-ambience::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(88,101,242,0.14) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(0px);
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}
.bg-ambience::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 65%);
  border-radius: 50%;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}
.bg-grid {
  display: none;
}

@keyframes orb-drift-1 {
  from { transform: translate(0, 0) scale(1);   }
  to   { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes orb-drift-2 {
  from { transform: translate(0, 0) scale(1);    }
  to   { transform: translate(-60px, -50px) scale(1.1); }
}

/* ── Glass Components ──────────────────────────────────────── */
.glass {
  background: rgba(13, 15, 24, 0.65);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ── Gradient Text & BG ────────────────────────────────────── */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-btn {
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(88,101,242,0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.gradient-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(88,101,242,0.5);
  transform: translateY(-1px);
}
.gradient-btn:active {
  transform: translateY(0px);
}

/* ── Form Elements ─────────────────────────────────────────── */
.np-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.np-input::placeholder { color: var(--text-muted); }
.np-input:focus {
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.2);
}

/* ── Avatar ────────────────────────────────────────────────── */
.avatar-ring {
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 2px;
  transition: var(--transition);
}
.avatar-ring:hover {
  border-color: var(--blurple);
  box-shadow: 0 0 14px rgba(88,101,242,0.5);
}
.avatar-ring img {
  border-radius: 50%;
  display: block;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}
.badge-blurple  { background: rgba(88,101,242,0.18); color: #7289da; border: 1px solid rgba(88,101,242,0.3); }
.badge-green    { background: rgba(59,165,92,0.18);  color: #3ba55c; border: 1px solid rgba(59,165,92,0.3);  }
.badge-red      { background: rgba(237,66,69,0.18);  color: #ed4245; border: 1px solid rgba(237,66,69,0.3);  }
.badge-owner    { background: linear-gradient(135deg, rgba(88,101,242,0.25), rgba(139,92,246,0.25)); color: #a78bfa; border: 1px solid rgba(139,92,246,0.35); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(88,101,242,0.3); }
  50%       { border-color: rgba(88,101,242,0.7); }
}

.anim-fade-up   { animation: fade-up  0.45s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade-in   { animation: fade-in  0.35s ease both; }
.anim-scale-in  { animation: scale-in 0.4s  cubic-bezier(0.16,1,0.3,1) both; }

/* stagger helpers */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s;  }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s;  }
.delay-5 { animation-delay: 0.25s; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar             { width: 6px; height: 6px; }
::-webkit-scrollbar-track       { background: var(--bg-root); }
::-webkit-scrollbar-thumb       { background: #2a2d3a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3a3d4e; }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(88,101,242,0.35); color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.np-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.np-footer a { color: var(--text-muted); transition: var(--transition); }
.np-footer a:hover { color: var(--blurple-light); }
