@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

:root {
  /* Gen Z Zen Palette */
  --sage-100: #e8f0ec;
  --sage-200: #c8dcd0;
  --sage-300: #a3c4b0;
  --sage-500: #6b9080;
  --sage-700: #425b50;
  --sage-900: #263831;

  --pastel-blue-100: #eef6fc;
  --pastel-blue-200: #d6e8f8;
  --pastel-blue-400: #a2d2ff;
  --pastel-blue-600: #70a9db;

  --warm-beige-50: #fdfbf7;
  --warm-beige-100: #f7f3ec;
  --warm-beige-200: #ece4d5;
  --warm-beige-300: #ded2bd;

  --zen-text-main: #1f2937;
  --zen-text-muted: #64748b;
  --zen-card-bg: rgba(255, 255, 255, 0.85);
  --zen-card-border: rgba(163, 196, 176, 0.35);

  --accent-gold: #e9b949;
  --success-emerald: #10b981;
  --danger-rose: #f43f5e;
}

* {
  box-sizing: border-box;
}

body, input, button, select, textarea {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Ensure Font Awesome Icons Never Get Overridden */
i[class*="fa-"], .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

i.fa-brands, .fa-brands, [class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
}

body {
  background-color: var(--warm-beige-50);
  background-image: 
    radial-gradient(at 0% 0%, rgba(162, 210, 255, 0.28) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(200, 220, 208, 0.35) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(247, 243, 236, 0.7) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--zen-text-main);
  min-height: 100vh;
}

.font-serif-zen {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 35px -5px rgba(66, 91, 80, 0.08), 0 0 0 1px rgba(107, 144, 128, 0.08);
}

.glass-card-dark {
  background: rgba(18, 28, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.3);
}

.glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(163, 196, 176, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-input:focus {
  outline: none;
  border-color: var(--sage-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(107, 144, 128, 0.15);
}

/* Dynamic Profile Frames */
.frame-zen-glow {
  border-radius: 9999px;
  box-shadow: 0 0 0 4px #ffffff, 0 0 25px 5px rgba(107, 144, 128, 0.35), 0 10px 20px -5px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(162, 210, 255, 0.6);
  transition: all 0.3s ease;
}
.frame-zen-glow:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 4px #ffffff, 0 0 35px 8px rgba(162, 210, 255, 0.45);
}

.frame-sage-circle {
  border-radius: 9999px;
  border: 4px solid var(--sage-500);
  box-shadow: 0 8px 24px -4px rgba(66, 91, 80, 0.25);
}

.frame-squircle-soft {
  border-radius: 2.2rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 12px 30px -8px rgba(107, 144, 128, 0.3);
  border: 2px solid var(--pastel-blue-400);
}

.frame-minimal-aura {
  border-radius: 9999px;
  border: 3px dashed var(--sage-300);
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
}

/* Preset Buttons */
.preset-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(163, 196, 176, 0.4);
  color: var(--sage-900);
  font-weight: 700;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
}
.preset-btn:hover {
  background: var(--sage-100);
  border-color: var(--sage-500);
  transform: translateY(-2px);
}
.preset-btn.active {
  background: var(--sage-500);
  color: #ffffff;
  border-color: var(--sage-500);
  box-shadow: 0 6px 18px -4px rgba(107, 144, 128, 0.4);
}

/* Zen Pulse Dots */
@keyframes zenPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.5;
  }
}
.zen-pulse {
  animation: zenPulse 2.4s infinite ease-in-out;
}

/* OBS Overlay Animations (Soft fade & float, silent) */
@keyframes overlayFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
    filter: blur(8px);
  }
}

.overlay-enter {
  animation: overlayFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay-leave {
  animation: overlayFadeOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(107, 144, 128, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 144, 128, 0.55);
}
