:root {
  --dark-900: #0b0f19;
  --dark-800: #111827;
  --dark-700: #1f2937;
  --dark-600: #374151;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --red-500: #ef4444;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

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

body {
  background-color: var(--dark-900);
  color: var(--gray-100);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Header & Nav */
header {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--emerald-500);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav ul li a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--white);
}

.nav-cta {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-500);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background-color: var(--emerald-500);
  color: var(--dark-900);
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--white);
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), #d97706);
  color: #111827;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--emerald-500);
  color: var(--dark-900);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--emerald-600);
}

.btn-secondary {
  background-color: var(--dark-700);
  color: var(--gray-100);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--dark-600);
}

.btn-danger {
  background-color: var(--red-500);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* Cards & Layouts */
.card {
  background-color: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.1);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.bento-item {
  background-color: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.bento-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 73px);
  max-width: 100%;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--dark-800);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.sidebar-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  width: 100%;
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.sidebar-link.active {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--emerald-500);
  font-weight: 600;
}

.admin-content {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
  max-width: calc(100vw - 260px);
}

/* Admin Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

/* Progress bar */
.progress-bar {
  background-color: var(--dark-600);
  height: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--emerald-500);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--red-500);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
  padding: 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--gray-300);
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-300);
}

textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
}

textarea:focus, input:focus {
  border-color: var(--emerald-500);
}

/* Footer */
footer {
  max-width: 1200px;
  margin: 64px auto 32px;
  padding: 0 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
}

footer p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .admin-content {
    padding: 24px;
    max-width: 100%;
  }
}
