/* ============================================================
   NEXUSBOT – Global Styles  (Dark Gaming Theme)
   ============================================================ */

:root {
  --bg-900: #0a0b0f;
  --bg-800: #0f1117;
  --bg-700: #151820;
  --bg-600: #1c2030;
  --bg-500: #232840;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --accent2: #00d4ff;
  --accent3: #ff6b35;
  --green: #57f287;
  --yellow: #fee75c;
  --red: #ed4245;
  --text: #e8eaf0;
  --text-muted: #8b92b0;
  --text-dim: #555e7e;
  --border: rgba(255,255,255,0.07);
  --card-bg: rgba(21,24,32,0.9);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glow: 0 0 24px rgba(88,101,242,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-900);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: all .2s;
  white-space: nowrap;
}
.btn-lg { padding: .85rem 2rem; font-size: 1.1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--glow); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-600); }
.btn-discord { background: #5865f2; color: #fff; width: 100%; justify-content: center; font-size: 1.1rem; padding: 1rem; border-radius: var(--radius); }
.btn-discord:hover { background: #4752c4; color: #fff; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: background .3s;
}
.navbar.scrolled { background: rgba(10,11,15,0.97); }
.nav-container {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.logo-icon { width: 34px; height: 34px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.accent { color: var(--accent2); }
.nav-links { display: flex; list-style: none; gap: 2rem; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links .nav-link-special { color: var(--accent2); }
.nav-actions { display: flex; gap: .75rem; margin-left: 1rem; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  position: relative;
  display: flex; align-items: center; gap: 4rem;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg-900); }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(88,101,242,.12) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0,212,255,.07) 0%, transparent 50%);
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(88,101,242,.15); border: 1px solid rgba(88,101,242,.3);
  color: var(--accent2); padding: .4rem 1rem; border-radius: 99px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title { margin-bottom: 1.2rem; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.hstat { display: flex; flex-direction: column; }
.hstat-num { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.hstat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.hstat-divider { width: 1px; height: 40px; background: var(--border); }

/* BOT CARD MOCK */
.hero-visual { flex: 0 0 380px; }
.bot-card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(88,101,242,.15);
}
.bot-card-header {
  background: var(--bg-600);
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.bc-dot { width: 12px; height: 12px; border-radius: 50%; }
.bc-dot.red { background: #ed4245; }
.bc-dot.yellow { background: #fee75c; }
.bc-dot.green { background: #57f287; }
.bc-title { color: var(--text-muted); font-size: .85rem; margin-left: .5rem; }
.bot-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.mock-cmd { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; }
.cmd-tag { font-size: .7rem; font-weight: 700; padding: .2rem .45rem; border-radius: 4px; letter-spacing: .05em; }
.cmd-tag.mod { background: rgba(237,66,69,.2); color: #ed4245; }
.cmd-tag.fun { background: rgba(87,242,135,.2); color: #57f287; }
.cmd-tag.eco { background: rgba(254,231,92,.2); color: #fee75c; }
.cmd-tag.lvl { background: rgba(0,212,255,.2); color: #00d4ff; }
.cmd-tag.util { background: rgba(88,101,242,.2); color: #818cf8; }
.mock-online { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--green); font-weight: 600; margin-top: .5rem; }
.green-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ── SECTIONS ── */
section { padding: 80px 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-sub { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--accent2); font-weight: 600; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ── FEATURES ── */
.features { background: var(--bg-800); }
.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.fc-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.fc-icon.mod { background: rgba(237,66,69,.15); color: #ed4245; }
.fc-icon.eco { background: rgba(254,231,92,.15); color: #fee75c; }
.fc-icon.lvl { background: rgba(0,212,255,.15); color: #00d4ff; }
.fc-icon.fun { background: rgba(87,242,135,.15); color: #57f287; }
.fc-icon.util { background: rgba(88,101,242,.15); color: #818cf8; }
.fc-icon.dash { background: rgba(255,107,53,.15); color: #ff6b35; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ── COMMANDS SECTION ── */
.commands-section { max-width: 1200px; margin: 0 auto; }
.cmd-filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.cmd-filter {
  background: var(--bg-700); border: 1px solid var(--border); color: var(--text-muted);
  padding: .45rem 1.1rem; border-radius: 99px; cursor: pointer; font-size: .9rem; transition: all .2s;
}
.cmd-filter:hover, .cmd-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.commands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cmd-card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  transition: border-color .2s;
}
.cmd-card:hover { border-color: var(--accent); }
.cmd-card-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.cmd-name { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cmd-cat-badge {
  font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .05em; margin-left: auto;
}
.cat-moderation { background: rgba(237,66,69,.2); color: #ed4245; }
.cat-economy { background: rgba(254,231,92,.2); color: #fee75c; }
.cat-leveling { background: rgba(0,212,255,.2); color: #00d4ff; }
.cat-fun { background: rgba(87,242,135,.2); color: #57f287; }
.cat-utility { background: rgba(88,101,242,.2); color: #818cf8; }
.cat-giveaway { background: rgba(255,107,53,.2); color: #ff6b35; }
.cmd-desc { color: var(--text-muted); font-size: .88rem; }

/* ── STATS BANNER ── */
.stats-banner { background: linear-gradient(135deg, var(--bg-700) 0%, var(--bg-600) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 2rem; }
.stats-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.stat-item i { font-size: 2rem; color: var(--accent); }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 2.2rem; font-weight: 700; }
.stat-lbl { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── CTA ── */
.cta-section { padding: 80px 2rem; }
.cta-box {
  max-width: 700px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(88,101,242,.15) 0%, rgba(0,212,255,.08) 100%);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 20px; padding: 3.5rem 2rem; text-align: center;
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--bg-800); border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); margin-right: auto; }
.footer-links { display: flex; list-style: none; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--accent2); }
.footer-copy { color: var(--text-dim); font-size: .85rem; width: 100%; text-align: center; }

/* ── AUTH PAGES ── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg-900); }
.auth-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(88,101,242,.12) 0%, transparent 70%);
}
.auth-container { width: 100%; max-width: 440px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.auth-logo { display: flex; align-items: center; gap: .6rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.auth-card { width: 100%; background: var(--bg-700); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.auth-card-header { padding: 2rem; text-align: center; border-bottom: 1px solid var(--border); }
.auth-avatar { width: 64px; height: 64px; background: rgba(88,101,242,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent); margin: 0 auto 1rem; }
.auth-card-header h2 { margin-bottom: .4rem; }
.auth-card-header p { color: var(--text-muted); font-size: .95rem; }
.auth-card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.auth-divider { text-align: center; color: var(--text-dim); font-size: .85rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-perms { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.auth-perms li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--text-muted); }
.auth-perms .fa-check-circle { color: var(--green); }
.auth-perms .deny { color: var(--red); }
.auth-back { color: var(--text-muted); font-size: .9rem; }

/* ── SPINNER ── */
.spinner-wrap { display: flex; justify-content: center; }
.spinner { width: 52px; height: 52px; border: 4px solid var(--bg-500); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOADING SHIMMER ── */
.loading-shimmer {
  height: 60px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-600) 25%, var(--bg-500) 50%, var(--bg-600) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite; margin-bottom: .75rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; text-align: center; }
  .hero-desc, .hero-buttons, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-actions .btn-outline { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
}
