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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #010409;
  --bg-tertiary: #161b22;
  --surface: #161b22;
  --surface-hover: #21262d;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: #30363d;
  --glass-hover: #21262d;
  --primary: #d4a843;
  --primary-light: #e6c87a;
  --primary-dark: #b88d36;
  --primary-glow: rgba(212, 168, 67, 0.1);
  --secondary: #21262d;
  --accent: #d4a843;
  --accent-light: #e6c87a;
  --success: #2ea043;
  --warning: #d29922;
  --error: #f85149;
  --text: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #d1d5db;
  --border: #30363d;
  --border-light: #21262d;
  --shadow: 0 8px 24px rgba(1, 4, 9, 0.2);
  --shadow-lg: 0 12px 48px rgba(1, 4, 9, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.1);
  --radius-sm: 6px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --topnav-height: 64px;
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono: "JetBrains Mono", monospace;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(88, 166, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 166, 255, 0.3);
}

::selection {
  background: rgba(88, 166, 255, 0.2);
  color: var(--primary-light);
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}

.text-gradient {
  color: var(--primary-light);
}

.text-mono {
  font-family: var(--font-mono);
}
.mb-sm {
  margin-bottom: 8px;
}
.mb-md {
  margin-bottom: 16px;
}
.mb-lg {
  margin-bottom: 24px;
}
.mt-sm {
  margin-top: 8px;
}
.mt-md {
  margin-top: 16px;
}
.mt-lg {
  margin-top: 24px;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 16px;
}
.w-full {
  width: 100%;
}
.text-sm {
  font-size: 0.82rem;
}
.text-xs {
  font-size: 0.72rem;
}
.text-muted {
  color: var(--text-muted);
}
.text-secondary {
  color: var(--text-secondary);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-gap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flex-wrap {
  flex-wrap: wrap;
}

:root.light-mode {
  --bg-primary: #f6f6f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ebf1f6;
  --surface: #ffffff;
  --surface-hover: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: #e8e8e3;
  --glass-hover: #ebf1f6;
  --primary: #d4a843;
  --primary-light: #b88d36;
  --primary-dark: #8c6a21;
  --primary-glow: rgba(212, 168, 67, 0.15);
  --secondary: #ebf1f6;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --text: #1e293b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e8e8e3;
  --border-light: #e1e7ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.12);
}

/* Theme option cards */
.theme-card {
  transition: all var(--transition);
}
.theme-card:hover {
  border-color: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.theme-card.active {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-gold);
}

