/* ============================================================
   Chef Ordering System — Light Premium Theme
   美团/饿了么精致感 + 高端餐厅 APP
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. CSS Variables
   ──────────────────────────────────────────────────────────── */
:root {
  /* Color System */
  --bg:            #FAFAF8;
  --bg2:           #F2F0EB;
  --surface:       #FFFFFF;
  --border:        #E8E4DC;
  --text-primary:  #1A1208;
  --text-secondary:#6B6355;
  --text-hint:     #A89F93;

  --brand:         #C8401A;
  --brand-light:   #FDF0EB;
  --brand-dark:    #9E3215;
  --green:         #2D6A4F;
  --green-light:   #EAF4EF;
  --gold:          #B8860B;
  --gold-light:    #FEF3C7;
  --purple:        #6B21A8;
  --purple-light:  #F3EFF8;

  /* Border Radius */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow:    0 2px 12px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 16px 48px rgba(0,0,0,0.06);

  /* Animation */
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 480px;
  --header-height: 61px;
  --tab-height: 49px;
}

/* ────────────────────────────────────────────────────────────
   2. Reset + Base
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }

/* ────────────────────────────────────────────────────────────
   3. App Header
   ──────────────────────────────────────────────────────────── */
.app-header {
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-height);
}

.app-header-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; flex-shrink: 0;
  color: var(--text-primary);
  transition: background var(--duration-fast);
}
.app-header-back:active { background: var(--border); }

.app-header-info { flex: 1; min-width: 0; }

.app-header-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header-sub {
  font-size: 11px; color: var(--text-secondary); margin-top: 1px;
}

.app-header-badge {
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   4. Meal Tabs
   ──────────────────────────────────────────────────────────── */
.meal-tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}

.meal-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none; background: none;
  border-bottom: 2.5px solid transparent;
  transition: color 200ms, border-color 200ms;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
}
.meal-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}
.meal-tab-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 1px;
}

/* ────────────────────────────────────────────────────────────
   5. Section Title
   ──────────────────────────────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b6355;
  letter-spacing: 0.05em;
  padding: 18px 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title::before {
  content: '';
  display: block;
  width: 3px; height: 16px;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.section-title.veg::before     { background: #2d6a4f; }
.section-title.banquet::before { background: #b8860b; }

/* ────────────────────────────────────────────────────────────
   6. Dish Grid
   ──────────────────────────────────────────────────────────── */
.dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 14px;
}

/* ────────────────────────────────────────────────────────────
   7. Dish Card
   ──────────────────────────────────────────────────────────── */
.dish-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.dish-card:active { transform: scale(0.96); }
.dish-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200,64,26,0.10), 0 4px 20px rgba(0,0,0,0.10);
}
.dish-card.disabled { opacity: 0.4; pointer-events: none; }

/* 图片区 — 高度 160px */
.dish-photo-wrap {
  position: relative;
  height: 160px;
  background: #e8e0d6;
  overflow: hidden;
}
.dish-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.dish-card:active .dish-photo { transform: scale(1.04); }

/* 图片底部渐变遮罩 */
.dish-photo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(15,10,5,0.75) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* 菜名叠在图片上 */
.dish-name-overlay {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* 选中覆盖层 */
.dish-select-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200,64,26,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.dish-card.selected .dish-select-overlay { opacity: 1; }
.dish-check-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(200,64,26,0.45);
  transform: scale(0.5);
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1);
}
.dish-card.selected .dish-check-circle { transform: scale(1); }

/* 佛教角标 */
.dish-buddha-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(107,33,168,0.88);
  color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}

/* 卡片底部标签区 */
.dish-info {
  padding: 8px 10px 10px;
}
.dish-chip-row {
  display: flex; flex-wrap: wrap; gap: 3px;
}
.dish-chip {
  font-size: 10px; padding: 2px 7px;
  border-radius: 6px; font-weight: 600;
}
.chip-veg  { background: #eaf4ef; color: #2d6a4f; }
.chip-bq   { background: #fef3c7; color: #92400e; }

/* 佛教说明直接显示在卡片下方 */
.dish-bud-text {
  font-size: 11px;
  line-height: 1.5;
  color: #6b21a8;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-health-text {
  font-size: 10px;
  line-height: 1.4;
  color: #2d6a4f;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* fallback emoji */
.dish-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}

/* ────────────────────────────────────────────────────────────
   8. Floating Bottom Bar
   ──────────────────────────────────────────────────────────── */
.order-bar {
  position: fixed;
  bottom: 0;
  left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: var(--max-width);
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 200;
  transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1);
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .order-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.order-bar.visible { transform: translateX(-50%) translateY(0); }

.order-bar-count {
  min-width: 40px; height: 40px;
  background: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200,64,26,0.35);
  transition: transform 150ms cubic-bezier(0.34,1.56,0.64,1);
}
.order-bar-count.bump { animation: bump 250ms cubic-bezier(0.34,1.56,0.64,1); }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.order-bar-text { flex: 1; }
.order-bar-label    { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.order-bar-sublabel { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }

.btn-float {
  background: var(--brand);
  color: white;
  border: none; border-radius: 22px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(200,64,26,0.3);
  white-space: nowrap;
  transition: transform 120ms, box-shadow 120ms;
}
.btn-float:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(200,64,26,0.2);
}

/* ────────────────────────────────────────────────────────────
   9. Welcome Screen
   ──────────────────────────────────────────────────────────── */
.welcome-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.welcome-hero {
  background: linear-gradient(160deg, #C8401A 0%, #8B1A05 100%);
  padding: 56px 28px 44px;
  color: white;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.welcome-hero::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.welcome-hero-emoji {
  font-size: 52px; display: block; margin-bottom: 14px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}
.welcome-hero-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.welcome-hero-sub   { font-size: 14px; opacity: 0.75; margin-top: 5px; }

.welcome-body { flex: 1; padding: 32px 20px 40px; }

.welcome-field-label {
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-input {
  width: 100%; padding: 16px 18px;
  font-size: 17px; font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  -webkit-appearance: none;
}
.welcome-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200,64,26,0.1);
}
.welcome-input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}
.welcome-input::placeholder { color: var(--text-hint); }

.welcome-btn {
  display: block; width: 100%;
  margin-top: 24px;
  padding: 17px;
  background: var(--brand);
  color: white; border: none;
  border-radius: var(--radius);
  font-size: 17px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 20px rgba(200,64,26,0.3);
  transition: transform 120ms, box-shadow 120ms;
}
.welcome-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(200,64,26,0.2);
}
.welcome-btn:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none !important;
}

/* ────────────────────────────────────────────────────────────
   10. Order Screen
   ──────────────────────────────────────────────────────────── */
/* screen-order visibility controlled by JS showScreen() */

/* Menu list wrapper */
.menu-list {
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

/* Spacer at bottom so content isn't hidden behind float bar */
.menu-bottom-spacer { height: 90px; }

/* ────────────────────────────────────────────────────────────
   11. Banners
   ──────────────────────────────────────────────────────────── */
.recommend-banner {
  margin: 12px 16px 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF8F0, #FEF0E7);
  border: 1px solid #F9D8C0;
  overflow: hidden;
  position: relative;
}
.recommend-banner::after {
  content: '🍃';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 40px; opacity: 0.18; pointer-events: none;
}
.recommend-banner-label { font-size: 11px; font-weight: 700; color: #C87941; letter-spacing: 0.05em; }
.recommend-banner-title { font-size: 16px; font-weight: 700; color: #7A3A15; margin: 3px 0 4px; }
.recommend-banner-dishes { font-size: 12px; color: #A86940; }

.buddhist-banner {
  margin: 12px 16px 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: linear-gradient(135deg, #F5F0FF, #EDE8FC);
  border: 1px solid #D6C8F5;
  position: relative; overflow: hidden;
}
.buddhist-banner::after {
  content: '☸';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: rgba(107,33,168,0.15);
  pointer-events: none;
  animation: dharma-spin 20s linear infinite;
}
@keyframes dharma-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.buddhist-banner-label { font-size: 11px; font-weight: 700; color: var(--purple); letter-spacing: 0.05em; }
.buddhist-banner-title { font-size: 15px; font-weight: 700; color: #4B1C8C; margin: 3px 0 3px; }
.buddhist-banner-desc  { font-size: 12px; color: #7B5CB8; }

/* ────────────────────────────────────────────────────────────
   12. Note Screen
   ──────────────────────────────────────────────────────────── */
/* screen-note visibility controlled by JS showScreen() */
#screen-note {
  min-height: 100vh;
  background: var(--bg);
}

.note-body { padding: 20px 16px 80px; }

.note-section-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.note-dishes-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
}

.note-dishes-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.note-dish-pill {
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px; padding: 4px 12px;
  border-radius: 20px; font-weight: 600;
}

.note-textarea {
  width: 100%; height: 100px;
  padding: 14px 16px; font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  outline: none; resize: none;
  transition: border-color 200ms, box-shadow 200ms;
  -webkit-appearance: none;
  line-height: 1.6;
}
.note-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200,64,26,0.1);
}
.note-textarea::placeholder { color: var(--text-hint); }

.submit-btn {
  display: block; width: 100%;
  margin-top: 20px; padding: 17px;
  background: var(--brand); color: white;
  border: none; border-radius: var(--radius);
  font-size: 17px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 20px rgba(200,64,26,0.28);
  transition: transform 120ms, box-shadow 120ms;
}
.submit-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(200,64,26,0.18);
}
.submit-btn:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none !important;
}

/* ────────────────────────────────────────────────────────────
   13. Success Screen
   ──────────────────────────────────────────────────────────── */
.success-screen {
  position: fixed; inset: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
  z-index: 300;
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}
/* success-screen visibility controlled by JS showScreen() */

.success-icon-wrap {
  width: 82px; height: 82px;
  background: linear-gradient(135deg, #C8401A, #F97316);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: white;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(200,64,26,0.3);
  animation: popIn 400ms cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.success-subtitle {
  font-size: 15px; color: var(--text-secondary);
  margin-top: 8px; line-height: 1.5; max-width: 260px;
}

.success-order-card {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  width: 100%; max-width: 320px;
  text-align: left;
}

.info-row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row .label { color: var(--text-secondary); }
.info-row .value { font-weight: 600; color: var(--text-primary); }

.success-actions {
  display: flex; flex-direction: column;
  gap: 10px; width: 100%; max-width: 280px;
  margin-top: 20px;
}

.btn-primary-red {
  background: var(--brand); color: white;
  border: none; border-radius: var(--radius);
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,64,26,0.25);
  transition: transform 120ms;
}
.btn-primary-red:active { transform: scale(0.97); }

.btn-secondary-light {
  background: var(--bg2); color: var(--text-secondary);
  border: none; border-radius: var(--radius);
  padding: 13px 24px; font-size: 15px;
  font-family: inherit; cursor: pointer;
  transition: background 150ms;
}
.btn-secondary-light:active { background: var(--border); }

/* ────────────────────────────────────────────────────────────
   14. Buddhist Modal
   ──────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.bud-modal-wrap {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: var(--max-width);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUp 280ms cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.bud-modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 12px auto 0;
}

.bud-modal-header {
  background: linear-gradient(135deg, #4B1C8C, #7B2FBE);
  padding: 24px 20px 20px;
  color: white;
  position: relative; overflow: hidden;
}
.bud-modal-header::before {
  content: '☸';
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  color: rgba(255,255,255,0.12);
  pointer-events: none;
  animation: dharma-spin 20s linear infinite;
}
.bud-modal-subtitle {
  font-size: 11px; font-weight: 600;
  color: rgba(251,191,36,0.80);
  letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px;
}
.bud-modal-dish-name {
  font-size: 24px; font-weight: 800;
  line-height: 1.2;
}

.bud-modal-body { padding: 20px 20px 0; }
.bud-modal-section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-hint);
  text-transform: uppercase; margin-bottom: 8px;
}
.bud-modal-text {
  font-size: 15px; line-height: 1.75;
  color: var(--text-primary);
}
.bud-health-card {
  margin: 16px 0 0;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px; line-height: 1.6;
  color: var(--green);
}
.bud-health-label {
  font-size: 11px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.bud-close-btn {
  display: block; width: calc(100% - 40px);
  margin: 16px 20px 32px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg2);
  border: none; border-radius: var(--radius);
  cursor: pointer; font-family: inherit;
  transition: background 150ms;
}
.bud-close-btn:active { background: var(--border); }

/* ────────────────────────────────────────────────────────────
   15. Loading Skeleton
   ──────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4de 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-img {
  height: 160px;
  border-radius: 0;
}

.skeleton-info { padding: 10px; }

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 8px;
}

/* ────────────────────────────────────────────────────────────
   16. Toast
   ──────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 12px;
  z-index: 600;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--text-primary);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 350ms cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: auto;
  max-width: 280px;
}
.toast.toast-out {
  animation: toast-out 200ms ease-in both;
}
.toast-icon { font-size: 16px; flex-shrink: 0; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(80%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(80%) scale(0.9); }
}

/* ────────────────────────────────────────────────────────────
   17. Animations
   ──────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ────────────────────────────────────────────────────────────
   18. Utilities
   ──────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
