:root {
  --page-bg: #031426;
  --page-bg-2: #071b2e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --surface-solid: #0d1a2a;
  --text: #eaf2ff;
  --muted: #8fa1bf;
  --brand: #21c784;
  --brand-2: #12a56a;
  --brand-deep: #036e7e;
  --brand-deep-2: #025a66;
  --border: rgba(255, 255, 255, 0.14);
  --shadow-soft: 0 18px 38px rgba(2, 6, 23, 0.18);
}

body {
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

body[data-theme="light"] {
  --page-bg: #f5fbfd;
  --page-bg-2: #edf6f9;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --brand: #036e7e;
  --brand-2: #025a66;
  --brand-deep: #014651;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  color: var(--text);
}

.theme-surface,
.theme-card,
.theme-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.theme-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

body[data-theme="light"] .theme-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 250, 0.88));
}

.theme-pill,
.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-theme="light"] .theme-pill,
body[data-theme="light"] .theme-badge {
  background: rgba(3, 110, 126, 0.06);
}

.theme-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #f4f4f4;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(33, 199, 132, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.theme-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(33, 199, 132, 0.22);
}

body[data-theme="light"] .theme-button-primary {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-deep-2));
  color: #f4f4f4;
}

.theme-muted {
  color: var(--muted);
}

.theme-title {
  color: var(--text);
}

.theme-section {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
