/* ═══════════════════════════════════════════════════════════════
   GreenPantry — Premium Design System (Vanilla CSS)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --red-50:  #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --blue-50:  #eff6ff;
  --blue-200: #bfdbfe;
  --blue-700: #1d4ed8;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Surfaces */
  --bg-primary: #f6faf7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.05);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-up { animation: fadeUp 0.5s var(--ease-out) forwards; }
.fade-in { animation: fadeIn 0.3s ease forwards; }
.slide-down { animation: slideDown 0.35s var(--ease-out) forwards; }

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 26px;
  animation: float 3s ease-in-out infinite;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.5px;
}

.header-tagline {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid rgba(22, 197, 94, 0.15);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--green-600), #059669, var(--green-700));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Search Card (Glassmorphism) ──────────────────────────────── */
.search-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(22, 197, 94, 0.1);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 28px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Tag Container ────────────────────────────────────────────── */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  margin-top: 14px;
}

.tag-container:empty {
  min-height: 0;
  margin-top: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green-100), #e8fce8);
  color: var(--green-800);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(22, 197, 94, 0.15);
  animation: fadeUp 0.25s var(--ease-spring) forwards;
  transition: all 0.2s var(--ease-out);
}

.tag:hover {
  background: linear-gradient(135deg, var(--green-200), var(--green-100));
  transform: scale(1.03);
}

.tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22, 101, 52, 0.1);
  color: var(--green-700);
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: all 0.15s ease;
}

.tag button:hover {
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-600);
  transform: scale(1.1);
}

/* ── Input Row ────────────────────────────────────────────────── */
.input-row {
  display: flex;
  gap: 12px;
}

.input-field {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: white;
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.input-field::placeholder { color: var(--gray-400); }

.input-field:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: white;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-sans);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.35);
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Preset Combos ────────────────────────────────────────────── */
.presets {
  margin-top: 18px;
}

.presets-label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  background: white;
  color: var(--green-700);
  border: 1px solid var(--green-200);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.preset-btn:hover {
  background: var(--green-50);
  border-color: var(--green-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── Banners ──────────────────────────────────────────────────── */
.banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  margin-bottom: 24px;
  animation: slideDown 0.3s var(--ease-out);
}

.banner.visible { display: flex; }

.banner-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.banner-error {
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-700);
}

.banner-notes {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-700);
}

.banner-fallback {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
}

/* ── Section Headings ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.5px;
}

.section-count {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: white;
}

.section-count.green { background: var(--green-700); }
.section-count.amber { background: var(--amber-500); }

.section-subtitle {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* ── Recipe Grid ──────────────────────────────────────────────── */
.recipe-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Recipe Card (horizontal) ─────────────────────────────────── */
.recipe-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  cursor: pointer;
  opacity: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  display: flex;
  flex-direction: row;
  min-height: 140px;
}

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

.recipe-card:hover .card-img {
  transform: scale(1.06);
}

.card-img-wrapper {
  width: 190px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card-difficulty {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}

.diff-easy   { background: var(--green-100);  color: var(--green-700); }
.diff-medium { background: var(--amber-100);  color: var(--amber-700); }
.diff-hard   { background: var(--red-50);     color: var(--red-700); border: 1px solid var(--red-200); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.card-body {
  padding: 18px 22px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-400);
  flex-wrap: wrap;
  margin-top: auto;
}

.card-meta span { display: flex; align-items: center; gap: 4px; }

.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.card-tag-pill {
  font-size: 12px;
  color: var(--gray-400);
}

/* Missing ingredients badges */
.missing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.missing-badge {
  font-size: 11px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-700);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ── Search Status ────────────────────────────────────────────── */
.search-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
}

.search-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--green-200);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.search-status-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-800);
}

.search-status-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── Loading Skeleton ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-card { height: 130px; border-radius: var(--radius-xl); }
.skeleton-heading { height: 32px; width: 260px; margin-bottom: 24px; }

.loading-section { margin-bottom: 32px; }

/* ── Share Button ─────────────────────────────────────────────── */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  margin-top: 24px;
  width: 100%;
}

.share-btn:hover {
  background: var(--green-100);
  border-color: var(--green-300);
  transform: translateY(-1px);
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--gray-900);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  z-index: 200;
  pointer-events: none;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 10;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.35s var(--ease-out);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gray-500);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: white;
  color: var(--gray-800);
  transform: scale(1.1);
}

.modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-body { padding: 28px 32px 32px; }

.modal-difficulty {
  display: inline-block;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.modal-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.modal-section-label.amber { color: var(--amber-600); }

.ingredient-list {
  list-style: none;
  margin-bottom: 28px;
}

.ingredient-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  padding: 6px 0;
}

.ingredient-list li .check {
  color: var(--green-500);
  margin-top: 2px;
  flex-shrink: 0;
}

.instruction-list {
  list-style: none;
  counter-reset: steps;
}

.instruction-list li {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-700);
  padding: 8px 0;
  line-height: 1.65;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text { padding-top: 4px; }

.modal-missing-section { margin-bottom: 24px; }

.modal-missing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-missing-badge {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ── Empty State ──────────────────────────────────────────────── */
.empty-state {
  display: none;
  text-align: center;
  padding: 64px 20px;
}

.empty-state.visible { display: block; }

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 14px;
  color: var(--gray-400);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 60px;
  border-top: 1px solid rgba(22, 101, 52, 0.06);
}

.footer a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover { text-decoration: underline; }

/* ── Hidden Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Header */
  .header-tagline { display: none; }
  .logo-text { font-size: 18px; }

  /* Hero */
  .hero { padding: 28px 0 18px; }
  .hero h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 14px; }
  .hero-badge { font-size: 11px; }

  /* Search card */
  .search-card { padding: 16px; border-radius: var(--radius-xl); }
  .input-row { flex-direction: column; gap: 10px; }
  .input-field { padding: 13px 16px; font-size: 16px; /* 16px prevents iOS zoom */ }
  .btn-primary { width: 100%; text-align: center; padding: 14px; }

  /* Presets */
  .presets { margin-top: 14px; }
  .preset-btn { font-size: 11px; padding: 8px 12px; }

  /* Section headings */
  .section-title { font-size: 20px; }

  /* Recipe cards */
  .card-img-wrapper { width: 120px; }
  .card-body { padding: 14px 16px; }
  .card-title { font-size: 15px; }
  .card-desc { font-size: 12px; -webkit-line-clamp: 3; line-clamp: 3; }
  .card-meta { font-size: 12px; gap: 10px; }

  /* Card meta — allow wrapping */
  .card-meta { flex-wrap: wrap; gap: 8px 12px; }
  .card-tags { margin-left: 0; }

  /* Modal — bottom sheet style */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-height: 92vh;
    max-width: 100%;
    width: 100%;
  }
  .modal-img {
    height: 180px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
  .modal-body { padding: 20px 18px 32px; }
  .modal-title { font-size: 20px; }
  .modal-stats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .stat-box { flex: 1; min-width: 80px; padding: 8px 12px; }
  .modal-close { top: 12px; right: 12px; }
}
