@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Default: Dark Theme */
  --bg: #09090b;
  --bg-sub: #121215;
  --bg-card: #18181b;
  
  --violet: #ff7eb3;
  --violet-dim: rgba(255, 126, 179, 0.1);
  --violet-glow: rgba(255, 126, 179, 0.4);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --border: #27272a;
  --border-hi: #3f3f46;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.1);
  --green: #00ff88;
  --red: #ff2d55;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-sub: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-hi: #cbd5e1;
  --violet-dim: rgba(124, 58, 237, 0.05);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.15s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.1; font-weight: 800; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
.gradient-text {
  background: linear-gradient(to bottom right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.navbar-nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  gap: 8px;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); }

.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-sub); border-color: var(--border-hi); }

.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Bento Grid ────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { 
  border-color: var(--border-hi); 
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); 
  transform: translateY(-2px);
}

.glass {
  background: rgba(24, 24, 27, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ── Form Inputs ───────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}

.input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-dim);
  background: var(--bg-card);
}

.input::placeholder {
  color: var(--text-muted);
}

.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.orbitron { font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: -0.02em; } /* Orbitron fallback if not loaded */

/* ── Badge & UI Components ─────────────────────────────── */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-sub);
}
.badge-violet { color: var(--violet); border-color: var(--violet-dim); background: var(--violet-dim); }

/* ── Animation Classes ─────────────────────────────────── */
.fade-up { animation: fadeUp 0.5s ease-out forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Notifications Center ──────────────────────────────── */
.notif-bell-container { position: relative; }
.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
}
.notif-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: none;
  z-index: 2000;
  animation: slideInNotif 0.2s ease-out;
}
.notif-dropdown.active { display: block; }
@keyframes slideInNotif {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: rgba(123, 47, 255, 0.05); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .grid-cols-2, .grid-cols-3, .grid-cols-12 { grid-template-columns: 1fr !important; }
  .section { padding: 60px 0; }
  .notif-dropdown { width: 280px; position: fixed; right: 20px; left: 20px; top: 70px; }
}
