:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-elevated: #1a1a24;
  --border: #2a2a3a;
  --text: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-900: #1e1b4b;
  --success: #34d399;
  --error: #f87171;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.header-right {
  display: flex;
  gap: 10px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.logo-text span,
.logo-tld {
  color: var(--purple-400);
}

.logo-tld {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease-out;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--purple-500);
}

.nav-link.active {
  color: var(--purple-400);
  border-color: var(--purple-500);
  background: var(--purple-900);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.content {
  width: 100%;
  max-width: 600px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  animation: toast-in 0.2s ease-out;
  transition: opacity 0.3s ease-out;
}

.toast.success {
  border-color: var(--success);
  color: var(--success);
}

.toast.error {
  border-color: var(--error);
  color: var(--error);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-left {
    width: 100%;
    justify-content: center;
  }
  
  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 10px 12px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 20px 16px;
  }
}
