/* ========================================
   Light Theme (default)
======================================== */
:root,
[data-theme="light"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.1);
  --bg-main: #f5f5f5;
  --bg-card: #ffffff;
  --bg-surface: #f9fafb;
  --bg-input: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-sub: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --card-img-bg: #f3f4f6;
  --modal-overlay: rgba(0,0,0,0.5);
  --loading-bg: #ffffff;
  --chart-grid: rgba(0,0,0,0.08);
  --chart-label: #6b7280;
  --chart-fill: rgba(59,130,246,0.15);
  --chart-border: #3b82f6;
}


/* ========================================
   Dark Theme
======================================== */
[data-theme="dark"] {
  --primary: #d4a574;
  --primary-dark: #b8895c;
  --primary-light: rgba(212, 165, 116, 0.15);
  --bg-main: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-surface: #222222;
  --bg-input: #2a2a2a;
  --text-primary: #f5f0eb;
  --text-secondary: #b0a898;
  --text-muted: #706a60;
  --text-sub: #888888;
  --border-color: #333333;
  --border-light: #2a2a2a;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-bg: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  --footer-bg: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  --card-img-bg: #222222;
  --modal-overlay: rgba(0,0,0,0.7);
  --loading-bg: #0a0a0a;
  --chart-grid: rgba(255,255,255,0.1);
  --chart-label: #b0a898;
  --chart-fill: rgba(212,165,116,0.15);
  --chart-border: #d4a574;
}

/* ========================================
   Base
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ========================================
   Loading Overlay
======================================== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--loading-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading-overlay p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Header
======================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.cart-btn {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-btn:active {
  transform: scale(0.95);
  background: var(--bg-input);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ========================================
   Footer Navigation
======================================== */
.app-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.footer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.footer-tab .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.footer-tab .tab-label {
  font-size: 10px;
}

.footer-tab.active {
  color: var(--primary);
}

.footer-tab:active {
  transform: scale(0.92);
}

/* ========================================
   Screens
======================================== */
.screen {
  display: none;
  padding-bottom: 80px;
}

.screen.active {
  display: block;
}

/* ========================================
   Sommelier Banner
======================================== */
.sommelier-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.sommelier-banner:active {
  transform: scale(0.98);
}

.banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.banner-sub {
  font-size: 12px;
  color: var(--primary);
}

.banner-arrow {
  font-size: 20px;
  color: var(--primary);
}

/* ========================================
   Category Tabs
======================================== */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}


.cat-btn:active {
  transform: scale(0.95);
}

/* ========================================
   Menu Grid & Cards
======================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 20px;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.menu-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}

.menu-card.added {
  animation: cardPulse 0.4s ease;
}

@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); box-shadow: 0 0 0 3px var(--primary); }
  100% { transform: scale(1); }
}

.menu-card.sold-out {
  opacity: 0.5;
  pointer-events: none;
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card-img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--card-img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--text-muted);
}

.sold-out-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.card-body {
  padding: 10px 12px;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Skeleton Loading
======================================== */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-input) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-input) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ========================================
   Modal System
======================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  display: flex;
}

.modal-backdrop.center {
  align-items: center;
}

.modal-sheet {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  animation: slideUp 0.3s ease;
}

.modal-center-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: scaleIn 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:active {
  background: var(--bg-input);
}

/* ========================================
   Table Input
======================================== */
.table-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.table-input:focus {
  border-color: var(--primary);
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-ghost {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-ghost:active {
  background: var(--bg-surface);
}

/* ========================================
   Cart
======================================== */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.ci-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ci-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  font-family: 'Noto Sans JP', sans-serif;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
}

.cart-total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Toast
======================================== */
.toast-msg {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}

.toast-msg.out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

/* ========================================
   Dot Loader
======================================== */
.dot-loader {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.dot-loader .dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotBounce 1.2s infinite ease-in-out;
}

.dot-loader .dot:nth-child(2) { animation-delay: 0.2s; }
.dot-loader .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ========================================
   My Taste Screen
======================================== */
.taste-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.chart-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
}

.share-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.share-btn:active {
  background: var(--primary-light);
}

/* ========================================
   Level Display
======================================== */
.level-display {
  text-align: center;
  margin-bottom: 16px;
}

.level-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.level-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.level-title {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar-container {
  margin-top: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ========================================
   Level List
======================================== */
.level-list-toggle {
  cursor: pointer;
}

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

.level-list-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.level-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.level-arrow.open {
  transform: rotate(180deg);
}

.level-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.level-list.open {
  max-height: 1000px;
}

.level-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.level-item:last-child {
  border-bottom: none;
}

.level-item.locked {
  opacity: 0.5;
}

.level-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.level-item-name {
  font-size: 14px;
  font-weight: 700;
}

.now-badge {
  display: inline-block;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 8px;
  margin-left: 6px;
}

.level-item-req {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.level-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag-sommelier {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.tag-shop {
  font-size: 11px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* ========================================
   History Items
======================================== */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.history-item:last-child {
  border-bottom: none;
}

.h-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.h-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.h-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Sommelier Screen
======================================== */
.sommelier-hero {
  text-align: center;
  padding: 40px 20px 24px;
}

.hero-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.sommelier-hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sommelier-hero p {
  font-size: 13px;
  color: var(--text-muted);
}

.sommelier-card {
  margin: 0 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.sommelier-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.sc-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sc-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.sc-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   AI Recommendation Results
======================================== */
.rec-analysis {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.ra-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ra-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.rec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.rc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rc-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.rc-name {
  font-size: 15px;
  font-weight: 700;
}

.rc-match {
  background: var(--primary);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 8px;
}

.rc-reason {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.rc-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

.btn-cart-add {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
}

.btn-cart-add:active {
  background: var(--primary);
  color: #000;
}

/* ========================================
   Consult Modal
======================================== */
.consult-bubble {
  margin-bottom: 20px;
}

.cb-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 16px;
}

.cb-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cb-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cb-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.consult-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.consult-opt {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
}

.consult-opt:active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.consult-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.consult-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.consult-dot.active {
  background: var(--primary);
}

.consult-dot.inactive {
  background: var(--border-color);
}

.consult-result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
}

.cr-emoji {
  font-size: 36px;
  flex-shrink: 0;
}

.cr-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cr-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.cr-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Order Complete
======================================== */
.order-complete {
  text-align: center;
}

.oc-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.order-complete h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-complete p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.taste-update-link {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.taste-update-link:active {
  background: var(--primary);
  color: #000;
}

.tul-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tul-sub {
  font-size: 12px;
  color: var(--primary);
}

/* ========================================
   Level Up Modal
======================================== */
.levelup-modal {
  text-align: center;
}

.lu-label {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.lu-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.lu-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lu-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.levelup-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.confetti-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  margin-bottom: 16px;
  animation: confettiBounce 0.6s ease;
}

@keyframes confettiBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }

/* 会計ボタン */
.bill-btn {
  background: var(--bg-card, #fff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.bill-btn:hover {
  border-color: var(--accent);
}


/* 会計明細行 */
.bill-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #eee);
  font-size: 14px;
}
.bill-item-row:last-child {
  border-bottom: none;
}
.bill-item-name {
  font-weight: 600;
  flex: 1;
}
.bill-item-option {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bill-item-qty {
  color: var(--text-sub);
  font-size: 13px;
  margin: 0 12px;
  white-space: nowrap;
}
.bill-item-price {
  font-weight: 700;
  white-space: nowrap;
}





