/* FitPulse AI — Design System Ultra-Moderno (Dark Graphite + Neon Green + Electric Cyan) */
:root {
  --fp-bg: #090B0E;
  --fp-bg-elevated: #11151B;
  --fp-card: rgba(19, 24, 32, 0.82);
  --fp-card-solid: #131820;
  --fp-border: rgba(255, 255, 255, 0.08);
  --fp-border-strong: rgba(0, 255, 135, 0.28);
  --fp-text: #F1F5F9;
  --fp-muted: #94A3B8;
  --fp-neon: #00FF87;
  --fp-cyan: #00D4FF;
  --fp-danger: #FF4D6D;
  --fp-warn: #FFB703;
  --fp-grad: linear-gradient(135deg, #00FF87 0%, #00D4FF 100%);
  --fp-glow: 0 0 28px rgba(0, 255, 135, 0.22);
  --fp-radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--fp-bg);
  color: var(--fp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.025em;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Ambient Neon Grid Background */
.fp-bg-mesh {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 255, 135, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

/* Glass Cards */
.fp-card {
  background: var(--fp-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-card-hover:hover {
  border-color: var(--fp-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 255, 135, 0.08);
}

.fp-card-glow {
  border: 1px solid rgba(0, 255, 135, 0.32);
  box-shadow: 0 0 36px rgba(0, 255, 135, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Gradient Text */
.fp-text-grad {
  background: var(--fp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.fp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--fp-grad);
  color: #07090C;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.78rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 6px 24px rgba(0, 255, 135, 0.22);
}

.fp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 255, 135, 0.35);
}

.fp-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fp-text);
  font-weight: 600;
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  padding: 0.72rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Inputs */
.fp-input, .fp-select, .fp-textarea {
  width: 100%;
  background: rgba(9, 11, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--fp-text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-input:focus, .fp-select:focus, .fp-textarea:focus {
  border-color: var(--fp-neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.14);
}

.fp-select option {
  background: #11151B;
  color: #F1F5F9;
}

/* Badges */
.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 135, 0.28);
  background: rgba(0, 255, 135, 0.09);
  color: var(--fp-neon);
}

.fp-badge-cyan {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.1);
  color: var(--fp-cyan);
}

/* Pulse animation */
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.fp-pulse-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--fp-neon);
}

.fp-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--fp-neon);
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Bottom Nav Safe Area on Mobile */
.fp-bottom-nav {
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--fp-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #090B0E; }
::-webkit-scrollbar-thumb { background: #232B36; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
