/* ==============
   GLOBAL VARIABLES & RESET
   ============== */

:root {
  /* Colors */
  --df-bg: #020617;
  --df-bg-alt: #050b1f;
  --df-primary: #1e6fe5;
  --df-primary-soft: #3b82f6;
  --df-accent: #fbbf24;
  --df-text: #e5e7eb;
  --df-text-muted: #9ca3af;
  --df-border: rgba(148, 163, 184, 0.25);
  
  /* Spacing & Layout */
  --df-radius-lg: 24px;
  --df-radius-md: 16px;
  --df-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
  --df-max: 1120px;
  --df-transition-fast: 0.18s ease-out;
  
  /* Typography */
  --df-font-body: "Outfit", system-ui, sans-serif;
  --df-font-heading: "Sora", system-ui, sans-serif;
}

/* =========================================================
   PRE-LAUNCH: HIDE APP FEATURES
   Remove this class to re-enable features for beta launch
   ========================================================= */
.pre-launch-hide {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body.df-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0b1120, #020617 55%);
  color: var(--df-text);
  font-family: var(--df-font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ==============
   TYPOGRAPHY
   ============== */

h1, h2, h3, h4, .df-heading {
  font-family: var(--df-font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--df-text);
  margin: 0;
}

p {
  line-height: 1.6;
}

/* ==============
   CONTAINER
   ============== */

.df-container {
  width: 100%;
  max-width: var(--df-max);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ==============
   THEME SYSTEM
   ============== */

:root {
  /* Theme variables (defaults - dark theme) */
  --df-bg-primary: #020617;
  --df-bg-secondary: #0f172a;
  --df-bg-card: rgba(15, 23, 42, 0.95);
  --df-text-primary: #f9fafb;
  --df-text-secondary: #e5e7eb;
  --df-text-muted: #9ca3af;
  --df-accent: #fbbf24;
  --df-accent-hover: #f59e0b;
  --df-border: rgba(148, 163, 184, 0.15);
}

/* Theme Selector Component */
.theme-selector {
  padding: 1rem;
}

.theme-selector-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--df-text-primary, #f9fafb);
  margin: 0 0 1rem;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option:hover:not([disabled]) {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
}

.theme-option.is-active {
  border-color: var(--df-accent, #fbbf24);
  background: rgba(251, 191, 36, 0.1);
}

.theme-option.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.theme-preview {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  border: 2px solid;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px;
}

.theme-accent {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.theme-name {
  font-size: 0.75rem;
  color: var(--df-text-secondary, #e5e7eb);
  text-align: center;
}

.theme-badge {
  font-size: 0.6rem;
  position: absolute;
  top: 4px;
  right: 4px;
}

.theme-option {
  position: relative;
}