:root {
  /* Color Palette - Divine Fly Aviation Luxury Dark */
  --bg-primary: #060a12;
  --bg-surface: #0c1220;
  --bg-surface-elevated: #131b2e;
  --bg-glass: rgba(12, 18, 32, 0.75);
  --bg-glass-card: rgba(18, 26, 44, 0.65);
  --bg-glass-input: rgba(10, 15, 26, 0.6);

  /* Primary Accent - Divine Fly Cyan (#00BFD8) */
  --accent-cyan: #00BFD8;
  --accent-cyan-hover: #009eb5;
  --accent-cyan-glow: rgba(0, 191, 216, 0.4);

  /* Secondary Accent - Gold & Warm Glow */
  --accent-gold: #f6d365;
  --accent-gold-dark: #fda085;
  --accent-gold-glow: rgba(246, 211, 101, 0.3);

  /* Success, Error & Warning */
  --color-success: #10b981;
  --color-error: #f43f5e;
  --color-error-bg: rgba(244, 63, 94, 0.12);
  --color-error-border: rgba(244, 63, 94, 0.3);
  --color-warning: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #060a12;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-active: rgba(0, 210, 255, 0.5);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-cyan-glow);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, rgba(58, 123, 213, 0.05) 70%, transparent 100%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(246, 211, 101, 0.12) 0%, rgba(253, 160, 133, 0.03) 70%, transparent 100%);
}

.mesh-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism Containers */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-hover));
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-text-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Spinners & Utilities */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

.portal-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 210, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}
