/**
 * YourBeans Coffee - Design System
 * Modern, clean, professional style guide
 * Version 2.0 - February 2026
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Primary Colors - Coffee-inspired warm palette */
  --color-primary-50: #faf5f0;
  --color-primary-100: #f5ebe0;
  --color-primary-200: #e8d5c0;
  --color-primary-300: #d4b896;
  --color-primary-400: #c49a6c;
  --color-primary-500: #a67c52;
  --color-primary-600: #8b6642;
  --color-primary-700: #6d4f34;
  --color-primary-800: #4a3524;
  --color-primary-900: #2d2018;

  /* Accent Colors - Fresh green for success/actions */
  --color-accent-50: #f0fdf4;
  --color-accent-100: #dcfce7;
  --color-accent-200: #bbf7d0;
  --color-accent-300: #86efac;
  --color-accent-400: #4ade80;
  --color-accent-500: #22c55e;
  --color-accent-600: #16a34a;
  --color-accent-700: #15803d;
  --color-accent-800: #166534;
  --color-accent-900: #14532d;

  /* Neutral Colors - Cool slate tones */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;

  /* Semantic Colors */
  --color-success-light: #dcfce7;
  --color-success: #22c55e;
  --color-success-dark: #15803d;

  --color-warning-light: #fef3c7;
  --color-warning: #f59e0b;
  --color-warning-dark: #b45309;

  --color-error-light: #fee2e2;
  --color-error: #ef4444;
  --color-error-dark: #b91c1c;

  --color-info-light: #e0f2fe;
  --color-info: #0ea5e9;
  --color-info-dark: #0369a1;

  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.8125rem;   /* 13px */
  --font-size-base: 0.875rem;  /* 14px */
  --font-size-md: 1rem;        /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
  min-height: 100vh;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
}

.text-display {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
}

.text-h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.015em;
}

.text-h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.text-h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

.text-body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

.text-body-sm {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.text-caption {
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
}

.text-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-neutral-500);
}

.text-mono {
  font-family: var(--font-family-mono);
}

/* Text Colors */
.text-primary { color: var(--color-neutral-900); }
.text-secondary { color: var(--color-neutral-600); }
.text-tertiary { color: var(--color-neutral-500); }
.text-muted { color: var(--color-neutral-400); }
.text-success { color: var(--color-success-dark); }
.text-warning { color: var(--color-warning-dark); }
.text-error { color: var(--color-error-dark); }
.text-accent { color: var(--color-accent-600); }

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */

/* Container */
.yb-container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-6);
}

/* App Shell */
.yb-app {
  background: var(--color-neutral-0);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-lg);
  padding: var(--space-10);
  margin: var(--space-6) auto;
  max-width: 960px;
}

/* Header */
.yb-header {
  text-align: center;
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-neutral-100);
}

.yb-header__logo {
  max-width: 260px;
  height: auto;
  margin-bottom: var(--space-4);
}

.yb-header__tagline {
  color: var(--color-neutral-500);
  font-size: var(--font-size-base);
}

/* Section */
.yb-section {
  margin-bottom: var(--space-8);
}

.yb-section__title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-400);
  margin-bottom: var(--space-4);
}

/* ============================================
   5. CARDS
   ============================================ */

.yb-card {
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.yb-card:hover {
  border-color: var(--color-neutral-300);
  box-shadow: var(--shadow-md);
}

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

.yb-card--interactive {
  cursor: pointer;
}

.yb-card--interactive:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Stat Card */
.yb-stat-card {
  background: linear-gradient(135deg, var(--color-accent-50) 0%, var(--color-accent-100) 100%);
  border: 1px solid var(--color-accent-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.yb-stat-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.yb-stat-card__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-700);
  margin-bottom: var(--space-2);
}

.yb-stat-card__value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-800);
  letter-spacing: -0.03em;
  line-height: 1;
}

.yb-stat-card__value--critical {
  color: var(--color-error-dark);
}

.yb-stat-card__value--warning {
  color: var(--color-warning-dark);
}

/* Feature Card */
.yb-feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.yb-feature-card:hover {
  background: var(--color-neutral-50);
}

.yb-feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.yb-feature-card__content {
  flex: 1;
}

.yb-feature-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-1);
}

.yb-feature-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-500);
}

/* ============================================
   6. BUTTONS
   ============================================ */

.yb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.yb-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.yb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.yb-btn--primary {
  background: var(--color-accent-600);
  color: var(--color-neutral-0);
  border-color: var(--color-accent-600);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.1);
}

.yb-btn--primary:hover:not(:disabled) {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
}

.yb-btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Secondary Button */
.yb-btn--secondary {
  background: var(--color-neutral-0);
  color: var(--color-neutral-700);
  border-color: var(--color-neutral-300);
}

.yb-btn--secondary:hover:not(:disabled) {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-400);
}

/* Ghost Button */
.yb-btn--ghost {
  background: transparent;
  color: var(--color-neutral-600);
  border-color: transparent;
}

.yb-btn--ghost:hover:not(:disabled) {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}

/* Danger Button */
.yb-btn--danger {
  background: var(--color-error);
  color: var(--color-neutral-0);
  border-color: var(--color-error);
}

.yb-btn--danger:hover:not(:disabled) {
  background: var(--color-error-dark);
  border-color: var(--color-error-dark);
}

/* Outline Danger */
.yb-btn--danger-outline {
  background: var(--color-neutral-0);
  color: var(--color-error);
  border-color: var(--color-error-light);
}

.yb-btn--danger-outline:hover:not(:disabled) {
  background: var(--color-error-light);
  border-color: var(--color-error);
}

/* Button Sizes */
.yb-btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.yb-btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-md);
}

/* Button Group */
.yb-btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ============================================
   7. NAVIGATION
   ============================================ */

.yb-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  padding: var(--space-1);
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
}

.yb-nav__item {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
}

.yb-nav__item:hover {
  color: var(--color-neutral-800);
  background: var(--color-neutral-0);
}

.yb-nav__item--active {
  color: var(--color-neutral-0);
  background: var(--color-neutral-800);
}

.yb-nav__item--active:hover {
  color: var(--color-neutral-0);
  background: var(--color-neutral-700);
}

/* ============================================
   8. ALERTS & BANNERS
   ============================================ */

.yb-banner {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.yb-banner--welcome {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
  border: 1px solid var(--color-primary-200);
}

.yb-banner--welcome .yb-banner__title {
  color: var(--color-primary-800);
}

.yb-banner--welcome .yb-banner__text {
  color: var(--color-primary-700);
}

.yb-banner--info {
  background: linear-gradient(135deg, var(--color-info-light) 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

.yb-banner--info .yb-banner__title {
  color: var(--color-info-dark);
}

.yb-banner--info .yb-banner__text {
  color: #1e40af;
}

.yb-banner__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.yb-banner__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Alert */
.yb-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.yb-alert--success {
  background: var(--color-success-light);
  border-color: var(--color-accent-200);
}

.yb-alert--success .yb-alert__icon { color: var(--color-success); }
.yb-alert--success .yb-alert__text { color: var(--color-success-dark); }

.yb-alert--warning {
  background: var(--color-warning-light);
  border-color: #fde68a;
}

.yb-alert--warning .yb-alert__icon { color: var(--color-warning); }
.yb-alert--warning .yb-alert__text { color: var(--color-warning-dark); }

.yb-alert--error {
  background: var(--color-error-light);
  border-color: #fca5a5;
}

.yb-alert--error .yb-alert__icon { color: var(--color-error); }
.yb-alert--error .yb-alert__text { color: var(--color-error-dark); }

.yb-alert--info {
  background: var(--color-info-light);
  border-color: #7dd3fc;
}

.yb-alert--info .yb-alert__icon { color: var(--color-info); }
.yb-alert--info .yb-alert__text { color: var(--color-info-dark); }

.yb-alert__icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.yb-alert__content {
  flex: 1;
}

.yb-alert__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.yb-alert__text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   9. FORM ELEMENTS
   ============================================ */

.yb-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  background: var(--color-neutral-0);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.yb-input:focus {
  outline: none;
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.yb-input::placeholder {
  color: var(--color-neutral-400);
}

.yb-input--error {
  border-color: var(--color-error);
}

.yb-input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Label */
.yb-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
}

/* Select */
.yb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: var(--space-10);
}

/* ============================================
   10. STATUS INDICATORS
   ============================================ */

.yb-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.yb-badge--success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.yb-badge--warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.yb-badge--error {
  background: var(--color-error-light);
  color: var(--color-error-dark);
}

.yb-badge--info {
  background: var(--color-info-light);
  color: var(--color-info-dark);
}

.yb-badge--neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

/* Status Box */
.yb-status {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.yb-status--ready {
  background: var(--color-success-light);
  border-color: var(--color-accent-200);
}

.yb-status--ready .yb-status__title { color: var(--color-success-dark); }

.yb-status--pending {
  background: var(--color-warning-light);
  border-color: #fde68a;
}

.yb-status--pending .yb-status__title { color: var(--color-warning-dark); }

.yb-status--loading {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-200);
}

.yb-status__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.yb-status__text {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
}

/* ============================================
   11. LISTS
   ============================================ */

.yb-list {
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-100);
  overflow: hidden;
}

.yb-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-neutral-100);
  transition: background var(--transition-fast);
}

.yb-list__item:last-child {
  border-bottom: none;
}

.yb-list__item:hover {
  background: var(--color-neutral-0);
}

.yb-list__item-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.yb-list__item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-md);
}

.yb-list__item-title {
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-800);
}

.yb-list__item-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-500);
}

.yb-list__item-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.yb-list__item-value {
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.yb-list__item-value--positive { color: var(--color-success); }
.yb-list__item-value--negative { color: var(--color-error); }

/* ============================================
   12. LOADING STATES
   ============================================ */

.yb-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-neutral-200);
  border-top-color: var(--color-accent-600);
  border-radius: 50%;
  animation: yb-spin 0.8s linear infinite;
}

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

.yb-skeleton {
  background: linear-gradient(90deg, var(--color-neutral-100) 25%, var(--color-neutral-200) 50%, var(--color-neutral-100) 75%);
  background-size: 200% 100%;
  animation: yb-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes yb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.yb-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: var(--color-neutral-500);
  gap: var(--space-4);
}

/* ============================================
   13. MODALS
   ============================================ */

.yb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.yb-modal {
  background: var(--color-neutral-0);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: yb-modal-in 0.2s ease-out;
}

@keyframes yb-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.yb-modal__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-4);
}

.yb-modal__body {
  font-size: var(--font-size-base);
  color: var(--color-neutral-600);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.yb-modal__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */

/* Spacing */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* Text Alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Border */
.border-t { border-top: 1px solid var(--color-neutral-200); }
.border-b { border-bottom: 1px solid var(--color-neutral-200); }

/* Rounded */
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Background */
.bg-white { background-color: var(--color-neutral-0); }
.bg-neutral-50 { background-color: var(--color-neutral-50); }
.bg-neutral-100 { background-color: var(--color-neutral-100); }

/* ============================================
   15. RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
  }

  .yb-app {
    padding: var(--space-6);
    margin: var(--space-4);
    border-radius: var(--radius-xl);
  }

  .yb-container {
    padding: var(--space-4);
  }

  .yb-header {
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
  }

  .yb-modal {
    padding: var(--space-6);
    margin: var(--space-4);
  }
}

/* ============================================
   16. ANIMATIONS
   ============================================ */

@keyframes yb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes yb-slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: yb-fade-in 0.3s ease-out;
}

.animate-slide-up {
  animation: yb-slide-up 0.3s ease-out;
}

/* ============================================
   12. BUTTONS - Shopify-style action buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-neutral-300);
  background: var(--color-neutral-0);
  color: var(--color-neutral-700);
}

.btn:hover {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-400);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary action button - Green (Shopify-style) */
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);
  color: var(--color-neutral-0);
  border: none;
  font-weight: var(--font-weight-semibold);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button - Outlined */
.btn-secondary,
.btn.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-neutral-300);
  color: var(--color-neutral-700);
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-400);
}

/* Outline button - Coffee-themed */
.btn-outline,
.btn.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary-600);
  color: var(--color-primary-600);
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background: var(--color-primary-50);
}

/* Small button */
.btn-sm,
.btn.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
}
