/* ============================================================
   GENESIS BIOTECHNOLOGY — Design Tokens
   Extracted from Stitch Design System "Genesis Ultra-Premium"
   ============================================================ */

:root {
  /* Foundation */
  --bg-primary: #0d0d0d;
  --bg-background: #131313;
  --bg-surface: #141414;
  --bg-surface-container-lowest: #0e0e0e;
  --bg-surface-container-low: #1c1b1b;
  --bg-surface-container: #201f1f;
  --bg-surface-container-high: #2a2a2a;
  --bg-surface-container-highest: #353534;
  --bg-elevated: #1c1c1c;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-faint: rgba(255, 255, 255, 0.05);

  /* Accents (champagne gold) */
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-bright: #e6c364;
  --gold-fixed: #ffe08f;
  --silver: #b8b8b8;
  --silver-light: #e0e0e0;

  /* Text */
  --text-primary: #e5e2e1;
  --text-secondary: #6b6b6b;
  --text-variant: #d0c5b2;
  --text-outline: #99907e;

  /* Status */
  --success: #2d7a5a;
  --pending: #c9a84c;
  --danger: #8b3a3a;
  --error: #ffb4ab;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #f0d080 50%, #c9a84c 100%);
  --gradient-gold-2: linear-gradient(135deg, #c9a84c 0%, #f0d080 100%);

  /* Spacing */
  --gutter: 24px;
  --margin-mobile: 24px;
  --margin-desktop: 64px;
  --section-padding: 120px;
  --container-max: 1280px;
}

/* ============================================================
   Component Helpers (reused across all screens)
   ============================================================ */

.gold-gradient {
  background: var(--gradient-gold-2);
}

.text-gold-gradient {
  background: var(--gradient-gold-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glass-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.glass-border {
  border: 1px solid var(--border-subtle);
}

/* Landing-page only helpers (Stitch "Genesis Ultra-Premium" landing) */
.etched-border {
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.glass-panel {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vial-glow { position: relative; }
.vial-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.gold-text-gradient {
  background: var(--gradient-gold-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Genesis medallion watermark */
.medallion-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.04;
}

.medallion-watermark img {
  width: min(600px, 60vw);
  height: auto;
  filter: grayscale(0.2);
}

/* Webkit autofill fix for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1c1b1b inset !important;
  -webkit-text-fill-color: #e5e2e1 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Status pill (commissions, orders) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-container);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--text-outline);
}

.status-pill.pill-paid { color: #6ee7b7; }
.status-pill.pill-paid .dot { background: #2d7a5a; }

.status-pill.pill-pending { color: var(--gold); }
.status-pill.pill-pending .dot { background: var(--gold); }

.status-pill.pill-available { color: var(--gold-light); }
.status-pill.pill-available .dot { background: var(--gold-light); box-shadow: 0 0 8px var(--gold); }

.status-pill.pill-cancelled { color: var(--error); }
.status-pill.pill-cancelled .dot { background: var(--danger); }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
}

.toast {
  padding: 0.875rem 1.25rem;
  background: var(--bg-surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s ease-out;
}

.toast.toast-success { border-left: 3px solid #2d7a5a; }
.toast.toast-error { border-left: 3px solid var(--danger); }
.toast.toast-info { border-left: 3px solid var(--gold); }

@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Material Symbols default weight tuning */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
