@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Outfit:wght@300;400;500;600&display=swap');

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

:root {
  --void: #060610;
  --deep: #0a0e2e;
  --surface: #111128;
  --surface2: #181834;
  --border: rgba(157, 54, 255, 0.18);
  --border2: rgba(0, 245, 255, 0.15);
  --purple: #9d36ff;
  --purple-bright: #b44dff;
  --purple-glow: #c77dff;
  --blue: #00f5ff;
  --blue-bright: #40f8ff;
  --blue-dim: #00b8d4;
  --text: #e8e4ff;
  --text-muted: #8b83b8;
  --text-dim: #4a4570;
  --accent: #ff6bff;
  --green: #00ffaa;
  --red: #ff5f6d;
  --orange: #ff9f43;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(157, 54, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 54, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
header {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(157, 54, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  position: relative;
}

header h1 .brand-phygital { color: var(--purple-glow); }
header h1 .brand-pos { color: var(--blue); }

header p {
  color: var(--text-muted);
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

header .nav-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  position: relative;
}

header .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

header .nav-links a:hover,
header .nav-links a.active {
  color: var(--purple-glow);
  border-color: var(--border);
  background: rgba(157, 54, 255, 0.08);
}

.demo-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  background: rgba(255, 107, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 255, 0.3);
  margin-left: 12px;
  vertical-align: middle;
}

/* BUTTONS */
button {
  padding: 12px 24px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

button:active { transform: scale(0.98); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue-dim) 100%);
  color: white;
  box-shadow: 0 0 20px rgba(157, 54, 255, 0.3), 0 0 40px rgba(0, 245, 255, 0.08);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(157, 54, 255, 0.5), 0 0 60px rgba(0, 245, 255, 0.15);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--green));
  color: #060610;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}
.btn-success:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(0, 255, 170, 0.4);
  transform: translateY(-1px);
}

.btn-warning {
  background: linear-gradient(135deg, #d97706, var(--orange));
  color: #060610;
  box-shadow: 0 0 20px rgba(255, 159, 67, 0.2);
}
.btn-warning:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(255, 159, 67, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, var(--red));
  color: white;
  box-shadow: 0 0 20px rgba(255, 95, 109, 0.2);
}
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(255, 95, 109, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--purple);
  color: var(--text);
  background: var(--surface);
}

/* INPUTS */
input, select {
  padding: 12px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 100%;
  min-height: 60px;
  transition: border-color 0.2s;
}
input::placeholder { color: var(--text-dim); }
input:focus, select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(157, 54, 255, 0.2);
}
select option { background: var(--deep); color: var(--text); }

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.card h2 {
  margin-bottom: 15px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* GRID */
.grid { display: grid; gap: 15px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ALERTS */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: rgba(0, 255, 170, 0.08); color: var(--green); border-color: rgba(0, 255, 170, 0.25); }
.alert-error { background: rgba(255, 95, 109, 0.08); color: var(--red); border-color: rgba(255, 95, 109, 0.25); }
.alert-warning { background: rgba(255, 159, 67, 0.08); color: var(--orange); border-color: rgba(255, 159, 67, 0.25); }
.alert-info { background: rgba(0, 245, 255, 0.08); color: var(--blue-bright); border-color: rgba(0, 245, 255, 0.25); }

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}
.badge-pending { background: rgba(255, 159, 67, 0.12); color: var(--orange); border: 1px solid rgba(255, 159, 67, 0.3); }
.badge-in-progress { background: rgba(0, 245, 255, 0.1); color: var(--blue-bright); border: 1px solid rgba(0, 245, 255, 0.25); }
.badge-complete { background: rgba(0, 255, 170, 0.1); color: var(--green); border: 1px solid rgba(0, 255, 170, 0.25); }

/* STAT CARDS */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.stat-card .stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--purple-glow);
}
.stat-card .stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* LOADING */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
}
.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}

/* UTILITIES */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
