/* ========================
   Dish Section — dish.css
   ======================== */

/* ── Body override ── */
.dish-body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
}

/* ── Header ── */
.dish-header { border-bottom: 1px solid var(--border); background: rgba(15,13,12,0.95); }
.dish-logo { font-size: 1.15rem; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; }
.dish-logo span { color: var(--accent); }
.dish-roulette-nav { background: var(--accent) !important; color: #1a1814 !important; padding: 0.35rem 0.9rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.dish-admin-nav { opacity: 0.6; font-size: 0.95rem; }
.dish-back-link { color: var(--text3) !important; font-size: 0.82rem; }

/* ── Container ── */
.dish-container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero ── */
.dish-hero {
  background: linear-gradient(135deg, #1e1a15 0%, #2a1e0a 60%, #1a1814 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.dish-hero-inner { max-width: 600px; margin: 0 auto; }
.dish-hero-emoji { font-size: 4rem; margin-bottom: 1rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dish-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 400; color: var(--text); margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.dish-hero-sub { color: var(--text2); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.6; }

/* ── Roulette CTA button ── */
.dish-roulette-btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4a847, #e8b85a);
  color: #1a1814;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212,168,71,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dish-roulette-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,168,71,0.45); }

/* ── Section ── */
.dish-section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.dish-section:last-child { border-bottom: none; }
.dish-section-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; letter-spacing: -0.01em; }

/* ── Category cards ── */
.dish-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .dish-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dish-cat-grid { grid-template-columns: 1fr; } }

.dish-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.dish-cat-card:hover { transform: translateY(-4px); }
.cat-home       { background: linear-gradient(135deg, #2a1e10, #3a2815); border-color: #5a3820; }
.cat-home:hover { border-color: #e87040; box-shadow: 0 8px 30px rgba(232,112,64,0.2); }
.cat-kit        { background: linear-gradient(135deg, #0e2028, #142a35); border-color: #204050; }
.cat-kit:hover  { border-color: #40a0b8; box-shadow: 0 8px 30px rgba(64,160,184,0.2); }
.cat-delivery          { background: linear-gradient(135deg, #0e2018, #142a20); border-color: #204830; }
.cat-delivery:hover    { border-color: #40c870; box-shadow: 0 8px 30px rgba(64,200,112,0.2); }
.cat-restaurant        { background: linear-gradient(135deg, #1a1028, #251535); border-color: #402060; }
.cat-restaurant:hover  { border-color: #9060e8; box-shadow: 0 8px 30px rgba(144,96,232,0.2); }

.dish-cat-icon  { font-size: 3rem; margin-bottom: 0.7rem; }
.dish-cat-name  { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.dish-cat-count { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem; }
.dish-cat-desc  { font-size: 0.82rem; color: var(--text3); }

/* ── Dish grid ── */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }

.dish-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.dish-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.dish-card-img {
  width: 100%; height: 160px;
  background-size: cover; background-position: center;
}
.dish-card-img-placeholder {
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.dish-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.dish-card-cat  { font-size: 0.78rem; color: var(--text3); font-weight: 500; }
.dish-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.dish-card-meta { font-size: 0.8rem; color: var(--text3); }
.dish-card-rating { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.dish-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }
.dish-review-count { font-size: 0.78rem; color: var(--text3); }

/* ── Category hero ── */
.dish-cat-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.dish-cat-hero-inner { display: flex; align-items: center; gap: 1.5rem; }
.dish-cat-hero-icon { font-size: 3.5rem; }
.dish-cat-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem; font-weight: 400; color: var(--text); }
.dish-cat-hero p  { color: var(--text2); font-size: 0.95rem; }
.cat-hero-home       .dish-cat-hero-inner { border-left: 4px solid #e87040; padding-left: 1rem; }
.cat-hero-kit        .dish-cat-hero-inner { border-left: 4px solid #40a0b8; padding-left: 1rem; }
.cat-hero-restaurant .dish-cat-hero-inner { border-left: 4px solid #9060e8; padding-left: 1rem; }

/* ── Toolbar ── */
.dish-category-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding: 1.5rem 0; }
.dish-subcat-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dish-subcat-btn {
  padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.dish-subcat-btn:hover, .dish-subcat-btn.active {
  background: var(--accent); color: #1a1814; border-color: var(--accent); font-weight: 700;
}
.dish-add-btn { padding: 0.4rem 1.1rem; border-radius: 20px; background: var(--bg3); border: 1px dashed var(--border); color: var(--text3); font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.dish-add-btn:hover { color: var(--accent); border-color: var(--accent); }
.dish-toolbar-right { display: flex; align-items: center; gap: 0.75rem; }
.dish-sort-btns { display: flex; gap: 0.3rem; }
.dish-sort-btn {
  padding: 0.3rem 0.85rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text3);
  text-decoration: none; transition: all 0.2s;
}
.dish-sort-btn:hover { color: var(--text); border-color: var(--text3); }
.dish-sort-btn.active { background: var(--bg2); color: var(--text); border-color: var(--text2); font-weight: 700; }
.dish-location-link { color: var(--text2); text-decoration: none; border-bottom: 1px dashed var(--text3); }
.dish-location-link:hover { color: var(--accent); border-color: var(--accent); }
.dish-buy-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0.8rem 0 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: 30px;
  background: linear-gradient(135deg, #3a9b5c, #2e7d48);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(46,125,72,0.4);
}
.dish-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,72,0.5); }

/* ── Empty state ── */
.dish-empty-state { text-align: center; padding: 4rem 2rem; }
.dish-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.dish-empty-state h3 { font-size: 1.3rem; color: var(--text2); margin-bottom: 0.5rem; }
.dish-empty-state p { color: var(--text3); margin-bottom: 1.5rem; }

/* ── Buttons ── */
.dish-btn-primary {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: 8px;
  background: var(--accent); color: #1a1814; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; text-decoration: none; transition: opacity 0.2s;
}
.dish-btn-primary:hover { opacity: 0.85; }
.dish-btn-ghost {
  display: inline-block; padding: 0.5rem 1.2rem; border-radius: 8px;
  background: transparent; color: var(--text2); font-weight: 500;
  border: 1px solid var(--border); cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.dish-btn-ghost:hover { color: var(--text); border-color: var(--text3); }
.dish-btn-danger {
  display: inline-block; padding: 0.5rem 1.2rem; border-radius: 8px;
  background: rgba(224,96,96,0.15); color: var(--red); font-weight: 600;
  border: 1px solid rgba(224,96,96,0.3); cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.dish-btn-danger:hover { background: rgba(224,96,96,0.25); }

/* ── Dish detail ── */
.dish-detail-container { padding-top: 2rem; }
.dish-breadcrumb { font-size: 0.82rem; color: var(--text3); margin-bottom: 1.5rem; }
.dish-breadcrumb a { color: var(--text3); text-decoration: none; }
.dish-breadcrumb a:hover { color: var(--accent); }

.dish-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .dish-detail-hero { grid-template-columns: 1fr; } }

.dish-detail-img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.dish-detail-img-placeholder { width: 100%; height: 280px; background: var(--bg3); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 6rem; border: 1px solid var(--border); }

.dish-detail-badges { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.dish-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.dish-badge-home       { background: rgba(232,112,64,0.15); color: #e87040; border: 1px solid rgba(232,112,64,0.3); }
.dish-badge-kit        { background: rgba(64,160,184,0.15); color: #40a0b8; border: 1px solid rgba(64,160,184,0.3); }
.dish-badge-delivery   { background: rgba(64,200,112,0.15); color: #40c870; border: 1px solid rgba(64,200,112,0.3); }
.dish-badge-restaurant { background: rgba(144,96,232,0.15); color: #9060e8; border: 1px solid rgba(144,96,232,0.3); }
.dish-badge-sub        { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }

.dish-detail-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem; font-weight: 400; color: var(--text); margin-bottom: 0.7rem; line-height: 1.2; }
.dish-detail-desc  { color: var(--text2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.dish-detail-meta  { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--text3); margin-bottom: 1.2rem; }
.dish-addr         { color: var(--text3); }

.dish-rating-summary { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.dish-avg-stars { font-size: 1.5rem; color: var(--accent); letter-spacing: 2px; }
.dish-avg-score { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.dish-avg-count { font-size: 0.85rem; color: var(--text3); font-weight: 400; }
.dish-no-rating { color: var(--text3); font-size: 0.9rem; }

/* ── Recipe ── */
.dish-recipe-content {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem; line-height: 1.8;
}
.dish-recipe-content h2, .dish-recipe-content h3 { font-family: 'DM Serif Display', Georgia, serif; color: var(--text); margin: 1.2rem 0 0.6rem; }
.dish-recipe-content p  { color: var(--text2); margin-bottom: 0.8rem; }
.dish-recipe-content ul, .dish-recipe-content ol { color: var(--text2); padding-left: 1.5rem; margin-bottom: 0.8rem; }
.dish-recipe-content li { margin-bottom: 0.3rem; }
.dish-recipe-content strong { color: var(--text); }
.dish-recipe-content hr { border: none; border-top: 1px solid var(--border); margin: 1.2rem 0; }

/* ── YouTube ── */
.dish-video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.dish-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Rating form ── */
.dish-rating-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; }
.dish-rating-form-inner { max-width: 480px; }
.dish-rating-input-group { margin-bottom: 1.2rem; }
.dish-rating-input-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.dish-rating-input-group input,
.dish-rating-input-group textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.2s; resize: vertical;
}
.dish-rating-input-group input:focus,
.dish-rating-input-group textarea:focus { outline: none; border-color: var(--accent); }

.dish-star-picker { display: flex; gap: 0.4rem; }
.dish-star-picker span {
  font-size: 2rem; cursor: pointer; transition: transform 0.15s, color 0.15s;
  color: var(--border);
}
.dish-star-picker span:hover, .dish-star-picker span.filled { color: var(--accent); transform: scale(1.15); }

.dish-rating-msg { margin-top: 0.8rem; font-size: 0.9rem; color: var(--green); min-height: 1.2rem; }
.dish-rating-msg.error { color: var(--red); }

/* ── Reviews ── */
.dish-reviews-title { font-size: 1rem; font-weight: 600; color: var(--text2); margin-bottom: 1rem; }
.dish-reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.dish-review-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; }
.dish-review-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.dish-review-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.dish-review-stars { color: var(--accent); font-size: 0.9rem; }
.dish-review-date { font-size: 0.78rem; color: var(--text3); margin-left: auto; }
.dish-review-text { color: var(--text2); font-size: 0.9rem; line-height: 1.5; }
.dish-no-reviews { color: var(--text3); text-align: center; padding: 2rem; }

/* ── Admin edit ── */
.dish-admin-edit { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-top: 0.5rem; }
.dish-admin-edit summary { cursor: pointer; color: var(--text3); font-size: 0.9rem; font-weight: 600; }
.dish-edit-form { margin-top: 1.2rem; }

/* ── Forms ── */
.dish-form-row { margin-bottom: 1rem; }
.dish-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .dish-form-row-2 { grid-template-columns: 1fr; } }
.dish-form-row label, .dish-form-row-2 label { display: block; font-size: 0.85rem; color: var(--text2); font-weight: 600; margin-bottom: 0.35rem; }
.dish-edit-form input, .dish-edit-form select, .dish-edit-form textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 0.55rem 0.8rem; border-radius: 8px; font-size: 0.9rem;
  font-family: inherit; transition: border-color 0.2s; resize: vertical;
}
.dish-edit-form input:focus, .dish-edit-form select:focus, .dish-edit-form textarea:focus { outline: none; border-color: var(--accent); }
.dish-form-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; }

/* ── Admin page ── */
.dish-admin-page { padding: 2rem 0; }
.dish-admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.dish-admin-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.dish-admin-section { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; margin-bottom: 1.5rem; }
.dish-admin-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.dish-admin-hint { font-size: 0.85rem; color: var(--text3); margin-bottom: 1.2rem; }
.dish-admin-hint a { color: var(--accent); text-decoration: none; }
.dish-admin-empty { color: var(--text3); font-size: 0.9rem; }
.dish-count-badge { font-size: 0.78rem; color: var(--green); background: rgba(90,184,120,0.15); border: 1px solid rgba(90,184,120,0.3); padding: 0.15rem 0.6rem; border-radius: 12px; margin-left: 0.5rem; }
.dish-admin-table-wrap { overflow-x: auto; }
.dish-admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dish-admin-table th { text-align: left; color: var(--text3); font-weight: 600; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dish-admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); color: var(--text2); }
.dish-admin-table tr:last-child td { border-bottom: none; }
.dish-row-inactive { opacity: 0.45; }
.dish-table-link { color: var(--text); text-decoration: none; font-weight: 600; }
.dish-table-link:hover { color: var(--accent); }
.dish-tbl-btn { font-size: 0.8rem; color: var(--text3); text-decoration: none; padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; }
.dish-tbl-btn:hover { color: var(--accent); border-color: var(--accent); }
.dish-active-badge   { font-size: 0.75rem; color: var(--green); background: rgba(90,184,120,0.15); padding: 0.15rem 0.5rem; border-radius: 10px; }
.dish-inactive-badge { font-size: 0.75rem; color: var(--text3); background: var(--bg3); padding: 0.15rem 0.5rem; border-radius: 10px; }

/* ── Roulette page ── */
.dish-roulette-page { padding: 3rem 0; text-align: center; }
.dish-roulette-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem; font-weight: 400; color: var(--text); margin-bottom: 0.5rem; }
.dish-roulette-sub { color: var(--text2); margin-bottom: 2rem; }

/* Category multi-select toggle */
.dish-roulette-cat-toggle { margin-bottom: 1.8rem; }
.dish-roulette-toggle-label { display: block; font-size: 0.82rem; color: var(--text3); font-weight: 600; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dish-roulette-cat-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.dish-cat-toggle-btn {
  padding: 0.5rem 1.3rem; border-radius: 24px; font-size: 0.95rem; font-weight: 600;
  background: var(--bg3); border: 2px solid var(--border); color: var(--text3);
  cursor: pointer; transition: all 0.2s;
}
.dish-cat-toggle-btn:hover { border-color: var(--cat-color, var(--accent)); color: var(--text); }
.dish-cat-toggle-btn.active {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 20%, transparent);
  border-color: var(--cat-color, var(--accent));
  color: var(--text);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cat-color, var(--accent)) 30%, transparent);
}
.dish-cat-all-btn { --cat-color: #d4a847; }

.dish-roulette-filter { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.dish-roulette-picks { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.5rem; max-width: 680px; margin: 0 auto 2rem; text-align: left; }
.dish-roulette-picks-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text2); font-weight: 600; }
.dish-roulette-pick-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text3); font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 8px; cursor: pointer; margin-left: 0.4rem; }
.dish-roulette-pick-btn:hover { color: var(--text); border-color: var(--text3); }
.dish-roulette-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; }
.dish-roulette-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; color: var(--text2); padding: 0.3rem 0.5rem; border-radius: 8px; transition: background 0.15s; }
.dish-roulette-check:hover { background: var(--bg3); color: var(--text); }
.dish-roulette-check input { display: none; }
.dish-pick-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.dish-roulette-wheel-wrap { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.dish-roulette-pointer { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; color: var(--accent); z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
#roulette-canvas { border-radius: 50%; box-shadow: 0 0 40px rgba(0,0,0,0.5), 0 0 0 4px var(--border); display: block; max-width: 360px; width: 90vw; height: auto; }

.dish-spin-btn {
  display: block; margin: 1.5rem auto 0;
  padding: 1rem 3rem; font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #d4a847, #f0c060);
  color: #1a1814; border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 0 6px 25px rgba(212,168,71,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dish-spin-btn:hover { transform: scale(1.05); box-shadow: 0 8px 35px rgba(212,168,71,0.55); }
.dish-spin-btn:active { transform: scale(0.97); }
.dish-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.dish-roulette-result {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}
.dish-roulette-result.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dish-result-inner {
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: 20px; padding: 3rem 4rem; text-align: center;
  box-shadow: 0 0 60px rgba(212,168,71,0.3);
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  max-width: 420px; width: 90%;
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dish-result-label { font-size: 0.9rem; color: var(--text3); margin-bottom: 0.5rem; }
.dish-result-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; line-height: 1.2; }
.dish-roulette-again { display: block; margin: 0.8rem auto 0; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 0.9rem; text-decoration: underline; }
.dish-roulette-again:hover { color: var(--text); }

/* ── Footer ── */
.dish-footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; }

/* ── New review card (injected via JS) ── */
.dish-review-new { animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Detail img wrap ── */
.dish-detail-img-wrap { overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: var(--bg3); }
.dish-detail-img { width: 100%; height: 280px; object-fit: cover; display: block; }
.dish-detail-img-placeholder { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; font-size: 6rem; }

/* ── Edit inline button ── */
.dish-edit-inline-btn { margin-left: auto; font-size: 0.82rem; color: var(--accent); text-decoration: none; padding: 0.2rem 0.6rem; border: 1px solid var(--accent); border-radius: 8px; }
.dish-edit-inline-btn:hover { background: rgba(212,168,71,0.1); }

/* ── Hero manage button ── */
.dish-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.dish-manage-btn { display: inline-block; padding: 0.7rem 1.8rem; border-radius: 50px; background: transparent; border: 2px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; }
.dish-manage-btn:hover { background: rgba(212,168,71,0.1); }

/* ── Form hints & image preview ── */
.dish-form-opt { font-size: 0.78rem; color: var(--text3); font-weight: 400; }
.dish-form-hint { font-size: 0.8rem; color: var(--text3); margin-top: 0.3rem; }
.dish-img-preview { margin-top: 0.6rem; }
.dish-img-preview img { height: 80px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); }

/* ── Admin table thumb ── */
.dish-tbl-thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 4px; display: block; }
.dish-tbl-no-img { color: var(--text3); font-size: 0.8rem; }
.dish-tbl-actions { display: flex; gap: 0.4rem; align-items: center; }
.dish-tbl-btn-del { color: var(--red) !important; border-color: rgba(224,96,96,0.3) !important; background: none; cursor: pointer; font-family: inherit; }
.dish-tbl-btn-del:hover { background: rgba(224,96,96,0.1) !important; }

/* ── Smart form: 카테고리 필드 + YouTube 자동 모드 ── */
.dish-form-section { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; }
.dish-autofill-section { border: 1px solid rgba(212,168,71,0.3); border-radius: 10px; padding: 1rem 1.2rem; background: rgba(212,168,71,0.04); }
.dish-autofill-badge { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(212,168,71,0.12); border-radius: 4px; padding: 0.25rem 0.6rem; margin-bottom: 0.8rem; }
.dish-automode-bar {
  background: rgba(212,168,71,0.08); border: 1px solid rgba(212,168,71,0.25);
  border-radius: 10px; padding: 0.65rem 1rem; margin-bottom: 0.8rem;
}
.dish-automode-label {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-size: 0.88rem; flex-wrap: wrap;
}
.dish-automode-label span:first-of-type { font-weight: 700; color: var(--accent); }
.dish-automode-desc { color: var(--text3); font-size: 0.8rem; }
.dish-yt-input-row { display: flex; gap: 0.5rem; align-items: stretch; }
.dish-yt-input-row input { flex: 1; }
.dish-yt-fetch-btn {
  padding: 0 1rem; background: #c0392b; color: #fff;
  border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.dish-yt-fetch-btn:hover { background: #e74c3c; }
.dish-yt-fetch-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.dish-yt-status { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text2); min-height: 1.4rem; }
.auto-locked {
  opacity: 0.6; cursor: not-allowed;
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── 배달 메뉴 카드 ─────────────────────────────────────────── */
.dish-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.dish-menu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.dish-menu-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.dish-menu-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); }
.dish-menu-img { width: 100%; height: 100%; object-fit: cover; }
.dish-menu-no-img { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text3); }
.dish-menu-info { padding: 0.75rem; }
.dish-menu-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: var(--accent); color: #1a1814;
  padding: 0.1rem 0.45rem; border-radius: 4px; margin-bottom: 0.3rem;
}
.dish-menu-name { font-weight: 600; font-size: 0.92rem; color: var(--text1); line-height: 1.35; }
.dish-menu-desc { font-size: 0.78rem; color: var(--text3); margin-top: 0.25rem; line-height: 1.4; }
.dish-menu-price { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-top: 0.4rem; }
.dish-menu-link-wrap { margin-top: 1rem; text-align: right; }
.dish-naver-btn {
  display: inline-block; padding: 0.5rem 1.2rem;
  background: #03c75a; color: #fff; border-radius: 8px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  transition: background 0.2s;
}
.dish-naver-btn:hover { background: #02a84a; }

@media (max-width: 600px) {
  .dish-menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
