:root {
  --primary: #5865f2;
  --primary-hover: #4752c4;
  --bg-dark: #09090b;
  --bg-card: #111114;
  --bg-card-hover: #18181b;
  --text-main: #f4f4f5;
  --text-dim: #a1a1aa;
  --accent: #10b981;
  --danger: #ef4444;
  --sidebar-width: 260px;
  --border: #27272a;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Landing Page Styles */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at top, rgba(88, 101, 242, 0.15) 0%, transparent 50%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgba(88, 101, 242, 0.3);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(88, 101, 242, 0.4);
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
}

/* Badge Styles */
.badge-small {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-nitro {
  background: rgba(255, 115, 250, 0.1);
  color: #ff73fa;
  border: 1px solid rgba(255, 115, 250, 0.2);
}

.badge-mfa {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-email {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-none {
  background: rgba(161, 161, 170, 0.1);
  color: #a1a1aa;
  border: 1px solid rgba(161, 161, 170, 0.2);
}

/* Discord Account Badges */
.badge-hypesquad {
  background: rgba(114, 137, 218, 0.1);
  color: #7289da;
  border: 1px solid rgba(114, 137, 218, 0.2);
  margin-right: 4px;
}

.badge-bravery {
  background: rgba(155, 143, 233, 0.1);
  color: #9b8fee;
  border: 1px solid rgba(155, 143, 233, 0.2);
  margin-right: 4px;
}

.badge-brilliance {
  background: rgba(244, 123, 103, 0.1);
  color: #f47b67;
  border: 1px solid rgba(244, 123, 103, 0.2);
  margin-right: 4px;
}

.badge-balance {
  background: rgba(68, 213, 190, 0.1);
  color: #44d5be;
  border: 1px solid rgba(68, 213, 190, 0.2);
  margin-right: 4px;
}

.badge-bughunter {
  background: rgba(59, 165, 92, 0.1);
  color: #3ba55c;
  border: 1px solid rgba(59, 165, 92, 0.2);
  margin-right: 4px;
}

.badge-early {
  background: rgba(255, 115, 250, 0.1);
  color: #ff73fa;
  border: 1px solid rgba(255, 115, 250, 0.2);
  margin-right: 4px;
}

.badge-dev {
  background: rgba(85, 96, 241, 0.1);
  color: #5560f1;
  border: 1px solid rgba(85, 96, 241, 0.2);
  margin-right: 4px;
}

.badge-partner {
  background: rgba(88, 101, 242, 0.1);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.2);
  margin-right: 4px;
}

.badge-staff {
  background: rgba(88, 101, 242, 0.1);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.2);
  margin-right: 4px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.5s ease-out forwards;
}