/* ========================================================
   COSFIT - AI Beauty Intelligence Platform
   Premium Prediction Platform for Korean MZ Generation
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* ===== PRIMARY COLORS - Premium Intelligence ===== */
  --color-primary: #3B1E54;      /* Deep Plum - Authority */
  --color-bg: #FAF9F7;           /* Soft Ivory - Calm Background */
  --color-secondary: #B9A9C9;    /* Muted Lavender - Subtle Accent */
  --color-accent: #4ED1B3;       /* Mint - AI Score Highlight */
  
  /* ===== TEXT COLORS ===== */
  --color-text-primary: #1C1C1E;    /* Dark Gray - Main Text */
  --color-text-secondary: #6E6E73;  /* Medium Gray - Sub Text */
  --color-text-tertiary: #A8A8AB;   /* Light Gray - Tertiary */
  
  /* ===== UI COLORS ===== */
  --color-card-bg: #FFFFFF;         /* Card Background */
  --color-border: #E8E6E3;          /* Subtle Border */
  --color-divider: #F0EFED;         /* Divider */
  
  /* ===== STATUS COLORS ===== */
  --color-positive: #4ED1B3;        /* Mint - Positive Score */
  --color-negative: #E86A78;        /* Soft Red - Negative Score */
  --color-neutral: #B9A9C9;         /* Lavender - Neutral */
  --color-warning: #F5A962;         /* Warm Orange - Warning */
  
  /* ===== GRADIENT (Subtle) ===== */
  --gradient-hero: linear-gradient(135deg, rgba(59, 30, 84, 0.05) 0%, rgba(78, 209, 179, 0.05) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  
  /* ===== SPACING - Platform Scale ===== */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* ===== RADIUS - Premium Feel ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* ===== SHADOW - Sophisticated ===== */
  --shadow-sm: 0 1px 3px rgba(59, 30, 84, 0.06);
  --shadow-md: 0 4px 12px rgba(59, 30, 84, 0.08);
  --shadow-lg: 0 8px 24px rgba(59, 30, 84, 0.10);
  --shadow-score: 0 6px 20px rgba(78, 209, 179, 0.15);
  
  /* ===== TYPOGRAPHY ===== */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Inter', 'SF Mono', Consolas, monospace;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY - Premium Intelligence ===== */

/* Headings - Inter for Authority */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  font-weight: 800;
}

h2 {
  font-size: 22px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

/* Body Text - Pretendard for Readability */
p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Text Sizes */
.text-xl {
  font-size: 20px;
  line-height: 1.4;
}

.text-lg {
  font-size: 17px;
  line-height: 1.5;
}

.text-base {
  font-size: 15px;
  line-height: 1.6;
}

.text-sm {
  font-size: 13px;
  line-height: 1.5;
}

.text-xs {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-tertiary);
}

/* Text Colors */
.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-accent {
  color: var(--color-accent);
}

/* Font Weights */
.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

/* ===== SCORE TYPOGRAPHY - Authoritative ===== */
.score-display {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

.score-large {
  font-size: 64px;
}

.score-medium {
  font-size: 40px;
}

.score-small {
  font-size: 32px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-md);
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-md);
}

.section {
  margin-bottom: var(--space-xxl);
}

.section-tight {
  margin-bottom: var(--space-lg);
}

/* Bottom Nav Padding */
.pb-nav {
  padding-bottom: 80px;
}

/* ===== HERO CARD - Intelligence Dashboard ===== */
.hero-card {
  background: var(--gradient-hero);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.hero-stat:last-child {
  margin-bottom: 0;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ===== AI CONFIDENCE BAR ===== */
.ai-confidence-bar {
  width: 100%;
  height: 8px;
  background: var(--color-divider);
  border-radius: 4px;
  overflow: hidden;
  margin: var(--space-md) 0;
}

.ai-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CARDS - Premium Platform ===== */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-bordered {
  border: 2px solid var(--color-primary);
}

/* Card Variants */
.card-positive {
  background: linear-gradient(135deg, rgba(78, 209, 179, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: var(--color-positive);
}

.card-negative {
  background: linear-gradient(135deg, rgba(232, 106, 120, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: var(--color-negative);
}

.card-neutral {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

/* ===== PREDICTION CARD - Netflix Style ===== */
.prediction-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.prediction-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.prediction-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-divider);
}

.prediction-card-content {
  padding: var(--space-lg);
}

.prediction-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.prediction-card-brand {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.prediction-card-score {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.prediction-card-score-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
}

.prediction-card-score-label {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.prediction-card-explanation {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

/* ===== INGREDIENT CHIP - Intelligence Badge ===== */
.ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-divider);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.ingredient-chip-positive {
  background: rgba(78, 209, 179, 0.1);
  color: var(--color-positive);
  border: 1px solid var(--color-positive);
}

.ingredient-chip-negative {
  background: rgba(232, 106, 120, 0.1);
  color: var(--color-negative);
  border: 1px solid var(--color-negative);
}

.ingredient-chip-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}

/* ===== BUTTONS - Premium CTA ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #2D1640;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: #3FB89D;
  box-shadow: var(--shadow-score);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-divider);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--color-divider);
  color: var(--color-text-primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 16px;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 14px;
}

/* ===== GRID - Two Column ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

.section-link {
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover {
  text-decoration: underline;
}

/* ===== ALTERNATIVE CARD ===== */
.alternative-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternative-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.alternative-info {
  flex: 1;
}

.alternative-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.alternative-brand {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* ===== PREMIUM RESULT PAGE STYLES ===== */
.card-premium {
  border: none;
  box-shadow: 0 10px 40px rgba(59, 30, 84, 0.2);
}

.card-stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-sub);
  font-weight: 500;
}

.card-analysis {
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
}

.analysis-item {
  margin-bottom: var(--space-md);
}

.analysis-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-xs);
}

.analysis-value {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.scorecard-row {
  padding-bottom: var(--space-md);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ED1B3 0%, #3BA891 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.chip-sm {
  padding: 4px 10px;
  font-size: 11px;
}

.chip-positive {
  background: rgba(78, 209, 179, 0.15);
  color: #2A9D7F;
}

.chip-negative {
  background: rgba(255, 107, 107, 0.15);
  color: #D64545;
}

.sticky-bottom {
  position: sticky;
  bottom: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, var(--color-bg-primary) 80%, transparent);
  margin: 0 calc(var(--space-lg) * -1);
  padding: var(--space-md) var(--space-lg);
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-text-sub);
  font-size: 14px;
  cursor: pointer;
  padding: var(--space-xs) 0;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--color-primary);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== REGISTER PAGE STYLES ===== */
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-xs);
}

.input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 30, 84, 0.1);
}

.chip-reaction {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.chip-reaction:hover {
  border-color: var(--color-primary);
}

.chip-selected {
  background: rgba(59, 30, 84, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.alert {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
}

.alert-info {
  background: rgba(78, 209, 179, 0.1);
  color: var(--color-text-main);
  border: 1px solid rgba(78, 209, 179, 0.3);
}

.card-info {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.info-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-xs);
}

.info-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ===== CHECK PAGE STYLES ===== */
.card-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 30, 84, 0.15);
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-content {
  flex: 1;
}

.method-arrow {
  font-size: 24px;
  color: var(--color-text-sub);
  flex-shrink: 0;
}

.supported-sites {
  padding: var(--space-md);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.process-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B1E54 0%, #5D3A7A 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.process-content {
  flex: 1;
}

.process-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-xs);
}

.process-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ===== ONBOARDING PAGE STYLES ===== */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

.feature-grid {
  display: grid;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.step-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-item {
  display: flex;
  gap: var(--space-md);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B1E54 0%, #5D3A7A 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.step-visual {
  margin-top: var(--space-sm);
}

.step-arrow {
  text-align: center;
  font-size: 24px;
  color: var(--color-text-sub);
  padding: var(--space-sm) 0;
}

.alternative-score-diff {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-positive);
}

/* ===== BOTTOM NAVIGATION - Platform Style ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(59, 30, 84, 0.06);
  z-index: 100;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-sm) 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs);
  text-decoration: none;
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
}

.nav-item:hover {
  color: var(--color-primary);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active .nav-icon {
  background: rgba(59, 30, 84, 0.1);
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: all 0.2s;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-md) var(--space-lg);
  background: rgba(59, 30, 84, 0.95);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  animation: toast-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.toast-fade-out {
  animation: toast-fade-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-fade-out {
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

.toast-success {
  background: rgba(78, 209, 179, 0.95);
  color: white;
}

.toast-error {
  background: rgba(232, 106, 120, 0.95);
  color: white;
}

/* ===== LOADING OVERLAY ===== */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-card {
  background: var(--color-card-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-divider);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spinner-rotate 1s linear infinite;
  margin: 0 auto var(--space-md);
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-xxl {
  margin-bottom: var(--space-xxl);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}
