/* 배비 DeliveryAI — 공통 스타일 */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #242836;
  --accent: #ff6b4a;
  --accent2: #ffb347;
  --baeby: #6ee7b7;
  --text: #f0f2f8;
  --muted: #9aa3b8;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(ellipse at top, #1e2235 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--baeby); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 12px; font-size: 0.85rem; }

.baeby-zone {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  text-align: center;
}

.speech-bubble {
  background: var(--surface2);
  border-radius: 20px;
  padding: 14px 18px;
  margin: 12px auto 0;
  max-width: 320px;
  font-size: 0.95rem;
  position: relative;
  min-height: 48px;
  transition: opacity 0.3s;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--surface2);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  color: var(--text);
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8f70);
  color: #fff;
}

.btn-secondary {
  background: var(--surface2);
  border: 1px solid #3a4055;
}

.btn-accent {
  background: linear-gradient(135deg, #34d399, var(--baeby));
  color: #0f1117;
}

.btn-block { width: 100%; margin-top: 8px; }

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.tag {
  background: var(--surface2);
  border: 1px solid #3a4055;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tag:hover, .tag.active {
  background: rgba(255, 107, 74, 0.15);
  border-color: var(--accent);
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel h2 { font-size: 1rem; margin-bottom: 12px; }

.hidden { display: none !important; }

.input-row { margin-bottom: 12px; }

.input-row label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.input-row input,
.input-row select,
.input-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3a4055;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.95rem;
}

.input-row textarea { min-height: 80px; resize: vertical; }

.result-card {
  border: 1px solid #3a4055;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}

.result-card .menu-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent2);
}

.result-card .reasons {
  margin: 10px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-card .price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0;
}

.shop-list { margin-top: 12px; }

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--surface2);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.shop-item .label {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.order-text-box {
  background: #12141c;
  border: 1px dashed #3a4055;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
  margin: 10px 0;
  word-break: keep-all;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 24px;
}

.footer-links {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   인앱 알림 시스템
══════════════════════════════════════════════════════════════ */
.notif-wrap {
  position: relative;
  margin-right: 4px;
}

/* 벨 버튼 */
.notif-bell {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  position: relative;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
}
.notif-bell:hover { background: rgba(244,120,32,.12); }

/* 읽지 않은 수 배지 */
.notif-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f87171;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* 벨 흔들림 애니메이션 */
.notif-bell.ring {
  animation: bellRing 0.6s ease;
}
@keyframes bellRing {
  0%  { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-16deg); }
  45% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
  100%{ transform: rotate(0deg); }
}

/* 드롭다운 패널 */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #16192a;
  border: 1px solid #252a40;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 9000;
  overflow: hidden;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #f0f2f8;
  border-bottom: 1px solid #1e2235;
}
.notif-clear {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  color: #8892aa;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.notif-clear:hover { color: #F47820; }

.notif-list {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #252a40 transparent;
}
.notif-empty {
  text-align: center;
  color: #8892aa;
  font-size: 0.82rem;
  padding: 24px 16px;
}

/* 알림 아이템 */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #1a1d2e;
  transition: background 0.12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(244,120,32,.06); }
.notif-item.read { opacity: 0.6; }

.notif-item-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.notif-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--nc, #f0f2f8);
}
.notif-item-msg {
  font-size: 0.78rem;
  color: #c0c8d8;
  line-height: 1.4;
}
.notif-item-time {
  font-size: 0.7rem;
  color: #8892aa;
  margin-top: 2px;
}

/* 읽지 않음 점 */
.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── 즐겨찾기 버튼 ─────────────────────────────────── */
.fav-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: transform 0.2s;
  line-height: 1;
}
.fav-btn:hover { transform: scale(1.25); }
.fav-btn.on { animation: favPop 0.3s ease; }
@keyframes favPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ── 평점 표시 ─────────────────────────────────────── */
.hero-rating {
  font-size: 0.82rem;
  color: #FACC15;
  font-weight: 700;
  vertical-align: middle;
}

/* ── 쿠폰 입력 ─────────────────────────────────────── */
.coupon-row {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.coupon-row input {
  flex: 1;
  background: var(--surface2, #1e2235);
  border: 1px solid #3a4055;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text, #f0f2f8);
  font-size: 0.84rem;
  outline: none;
}
.coupon-row input:focus { border-color: var(--accent, #F47820); }
.coupon-apply-btn {
  background: rgba(244,120,32,.2);
  border: 1.5px solid #F47820;
  border-radius: 8px;
  color: #FFB066;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-result {
  font-size: 0.8rem;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(74,222,128,.08);
}

/* ── 식사 후 AI 피드백 ───────────────────────────────── */
.meal-feedback-card {
  background: var(--surface2, #1e2235);
  border-radius: 12px;
  border: 1px solid #3a4055;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.meal-feedback-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFB066;
  margin-bottom: 10px;
}
.meal-feedback-card textarea {
  width: 100%;
  background: var(--surface, #16192a);
  border: 1px solid #3a4055;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text, #f0f2f8);
  font-size: 0.84rem;
  min-height: 70px;
  resize: none;
  outline: none;
}
.meal-feedback-card input[type=text] {
  width: 100%;
  background: var(--surface, #16192a);
  border: 1px solid #3a4055;
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text, #f0f2f8);
  font-size: 0.82rem;
  outline: none;
}
.meal-feedback-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.meal-feedback-done {
  font-size: 0.84rem;
  color: #4ADE80;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(74,222,128,.1);
}
.meal-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 6, 18, .72);
  backdrop-filter: blur(8px);
}
.meal-feedback-modal {
  width: min(440px, 100%);
  position: relative;
  background: var(--surface2, #1e2235);
  border: 1px solid rgba(255,176,102,.36);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  padding: 22px;
}
.meal-feedback-modal h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.meal-feedback-kicker {
  color: #FFB066;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.meal-feedback-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--muted, #8892aa);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.meal-feedback-modal textarea,
.meal-feedback-modal input[type=text] {
  width: 100%;
  margin-top: 8px;
  background: var(--surface, #16192a);
  border: 1px solid #3a4055;
  border-radius: 10px;
  color: var(--text, #f0f2f8);
  font-size: .84rem;
  outline: none;
}
.meal-feedback-modal textarea {
  min-height: 68px;
  padding: 10px 12px;
  resize: vertical;
}
.meal-feedback-modal input[type=text] {
  padding: 9px 12px;
}
.meal-feedback-listen-status {
  margin: 10px 0;
  color: var(--muted, #8892aa);
  font-size: .8rem;
  line-height: 1.5;
}

/* .roulette-display — v2.0에서 .roulette-spin-label 로 대체됨 */
.roulette-display { display: none; }

.voice-status {
  font-size: 0.8rem;
  color: var(--baeby);
  min-height: 20px;
  margin-top: 8px;
}

.form-grid { display: grid; gap: 12px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.ops-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ops-table th, .ops-table td {
  border-bottom: 1px solid #3a4055;
  padding: 8px 6px;
  text-align: left;
}
.ops-table th { color: var(--muted); }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  background: var(--surface2);
}

.status-DRAFT { color: var(--accent2); }
.status-READY_TO_ORDER { color: var(--baeby); }
.status-COPIED { color: #8fd4ff; }
.status-PAYMENT_PENDING { color: var(--accent2); }
.status-ORDER_REQUESTED { color: var(--baeby); }
.status-PENDING_CONFIRMATION { color: var(--accent2); }
.status-ACCEPTED { color: var(--baeby); }
.status-REJECTED { color: #f87171; }
.status-OPEN { color: var(--accent2); }
.status-SENT { color: #8fd4ff; }
.status-CLOSED { color: var(--muted); }
.status-READY { color: var(--baeby); }
.status-APPROVED { color: var(--baeby); }
.status-PENDING { color: var(--accent2); }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
}

.badge-partner { background: rgba(52, 211, 153, 0.2); color: var(--baeby); }
.badge-partner-sm { background: rgba(52, 211, 153, 0.15); color: var(--baeby); font-size: 0.6rem; padding: 1px 6px; }
.badge-llm { background: rgba(255, 179, 71, 0.2); color: var(--accent2); }

.shop-partner { border-left: 3px solid var(--baeby); }

.copy-btn { margin-top: 8px; }

/* ── BaebyFlow v0.5 스테이지 ── */
.btn-icon {
  background: var(--surface2);
  border: 1px solid #3a4055;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
}

.side-menu {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-menu hr { border: none; border-top: 1px solid #3a4055; margin: 6px 0; }

.side-link {
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
}

.side-link:hover { background: var(--surface2); }
.side-link.muted { color: var(--muted); font-size: 0.8rem; }

.stage-panel {
  min-height: 80px;
  animation: stageIn 0.35s ease;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-choices.max-3 .btn { margin-top: 0; }

.stage-loading {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--baeby);
  border-radius: 50%;
  animation: dotPulse 1s infinite;
  margin-right: 8px;
}

.hero-result {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid #3a4055;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  overflow: hidden;
}

/* ── 추천 메뉴 이미지 ── */
.hero-image-wrap {
  margin: -20px -20px 14px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 180px;
}
.hero-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-image:hover { transform: scale(1.03); }
.hero-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin: -20px -20px 14px;
  background: linear-gradient(135deg, #1e2235, #2a2f40);
  border-radius: var(--radius) var(--radius) 0 0;
}
.hero-emoji { font-size: 3rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

.hero-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-menu {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: 8px;
}

.hero-price { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

.hero-reasons {
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero-reasons li { margin: 4px 0; }

.hero-shop { font-size: 0.8rem; color: var(--baeby); }

/* ── 룰렛 컨테이너 ── */
body.baeby-roulette-focus {
  overflow: hidden;
}

body.baeby-roulette-focus .top-nav,
body.baeby-roulette-focus .baeby-zone,
body.baeby-roulette-focus .footer-note,
body.baeby-roulette-focus .footer-links,
body.baeby-roulette-focus .side-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

body.baeby-roulette-focus .stage-panel {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,200,61,0.14), transparent 34%),
    rgba(7, 12, 26, 0.96);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.baeby-roulette-focus .stage-panel > :not(#roulette-wheel) {
  display: none !important;
}

body.baeby-roulette-focus #roulette-wheel {
  transform: scale(1.08);
  transition: transform 0.24s ease;
}

.roulette-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;       /* 포인터 공간 */
  margin: 0 auto;
  width: fit-content;
}

/* 상단 삼각형 포인터 */
.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left:  11px solid transparent;
  border-right: 11px solid transparent;
  border-top:   22px solid #FFC83D;
  filter: drop-shadow(0 3px 6px rgba(255, 200, 61, 0.7));
  z-index: 2;
}

/* Canvas */
.roulette-canvas {
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #1a1d27,
    0 0 24px rgba(126, 200, 255, 0.18),
    0 8px 32px rgba(0,0,0,0.5);
}

/* 스핀 중 컨테이너 외곽 글로우 */
.roulette-container.roulette-spinning .roulette-canvas {
  animation: rouletteSpinGlow 0.6s ease-in-out infinite alternate;
}

@keyframes rouletteSpinGlow {
  from { box-shadow: 0 0 0 3px #1a1d27, 0 0 18px rgba(255,200,61,0.25), 0 8px 32px rgba(0,0,0,0.5); }
  to   { box-shadow: 0 0 0 3px #1a1d27, 0 0 36px rgba(255,200,61,0.55), 0 0 60px rgba(126,200,255,0.2), 0 8px 32px rgba(0,0,0,0.5); }
}

/* 스핀 중 / 결과 라벨 */
.roulette-spin-label {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent2);
  text-align: center;
  min-height: 1.4em;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.roulette-label-winner {
  color: var(--baeby);
  font-size: 1.2rem;
  animation: rouletteWinPop 0.45s ease;
}

@keyframes rouletteWinPop {
  0%   { transform: scale(0.85); opacity: 0.5; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1);    opacity: 1;   }
}

/* 룰렛 필터 선택 안내 */
.roulette-filter-ask {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7EC8FF;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* 룰렛 필터 확정 배지 */
.roulette-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(110, 231, 183, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #6EE7B7;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  animation: shortcutPulse 2.4s ease-in-out infinite;
}

/* 음성 쇼트컷 인터럽트 힌트 — 룰렛·무드·서브타입 선택 중 표시 */
.shortcut-mic-hint {
  font-size: 0.78rem;
  color: rgba(255, 107, 53, 0.85);
  background: rgba(255, 107, 53, 0.10);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 20px;
  padding: 5px 16px;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.03em;
  transition: opacity 0.4s;
  animation: shortcutPulse 2.6s ease-in-out infinite;
}
@keyframes shortcutPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1;   }
}

/* 2단계 룰렛 — 단계 표시 라벨 */
.roulette-stage-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7EC8FF;
  background: rgba(126, 200, 255, 0.10);
  border: 1px solid rgba(126, 200, 255, 0.25);
  border-radius: 20px;
  padding: 3px 14px;
  margin-bottom: 10px;
  min-height: 1.4em;
  text-align: center;
  transition: all 0.4s ease;
}

.roulette-stage-flash {
  color: #FFC83D;
  border-color: rgba(255, 200, 61, 0.45);
  background: rgba(255, 200, 61, 0.12);
  animation: stageFlash 0.5s ease;
}

@keyframes stageFlash {
  0%   { transform: scale(0.9); opacity: 0.6; }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.voice-hint, .voice-live {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.profile-ai-guide {
  padding: 12px;
  border: 1px solid rgba(0, 200, 240, 0.24);
  border-radius: 16px;
  background: rgba(0, 200, 240, 0.08);
}

.profile-ai-guide strong {
  display: block;
  color: var(--accent2);
  margin-bottom: 4px;
}

.profile-ai-guide p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.voice-live { color: var(--baeby); min-height: 24px; }

.order-draft-card, .done-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.order-lines { margin: 10px 0 0 18px; color: var(--muted); }

.check-list { margin-bottom: 12px; }

.phase-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.5;
}

.expose-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.expose-links .btn { margin-top: 0; font-size: 0.8rem; padding: 10px 8px; }

.expose-panel {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.expose-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #12141c;
}

.expose-caption, .expose-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.payment-summary {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.payment-summary p { margin-bottom: 8px; }

.done-card {
  text-align: center;
  color: var(--baeby);
  font-weight: 600;
}

/* v0.7 app cards */
.app-card-v7 {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid #3a4055;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.app-card-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.app-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.app-card-row span { color: var(--muted); flex-shrink: 0; }
.app-card-row strong { text-align: right; font-weight: 600; }

.app-card-list {
  list-style: none;
  text-align: right;
  margin: 0;
  padding: 0;
}

.app-card-list li { margin: 2px 0; }

.app-card-price strong { color: var(--accent2); }

.app-card-hint, .app-card-meta, .app-card-summary {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

.app-card-summary strong { color: var(--text); }

.order-copy-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px;
  background: #12141c;
  border-radius: 12px;
  border: 1px dashed #3a4055;
}

.prep-list { display: flex; flex-direction: column; gap: 8px; }

.prep-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #3a4055;
  background: #12141c;
  color: var(--text);
  cursor: pointer;
}

.prep-list-title { grid-column: 1; font-weight: 600; }
.prep-list-meta { grid-column: 1; font-size: 0.78rem; color: var(--muted); }
.prep-list-row .status-badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.ops-history {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ops-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #2a2e3d;
}

.panel-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -4px 0 12px;
}

.ops-queue-item {
  background: #12141c;
  border: 1px solid #3a4055;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.ops-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-queue-meta, .ops-queue-row {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0;
}

.ops-queue-row span { color: var(--text); font-weight: 600; margin-right: 6px; }

.ops-queue-text { margin-top: 10px; font-size: 0.88rem; }

.ops-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ops-queue-actions .btn { flex: 1; min-width: 100px; }

.ops-history-label {
  list-style: none;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 8px 0 4px;
}

.partner-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

@media (max-width: 400px) {
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .baeby-zone { overflow: hidden; }
  .stage-panel { clear: both; }
  .hero-menu { font-size: 1.35rem; }
  .expose-links { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .app-shell { max-width: 100%; }
  .stage-choices { gap: 8px; }
  .hero-result { padding: 16px 12px; }
}
