/* =============================================
   LINE Mini App Restaurant System - style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #06C755;
  --color-primary-dark: #05A847;
  --color-primary-light: #E8F9EE;
  --color-secondary: #FF6B35;
  --color-dark: #1A1A2E;
  --color-gray-900: #1F2937;
  --color-gray-700: #374151;
  --color-gray-500: #6B7280;
  --color-gray-300: #D1D5DB;
  --color-gray-100: #F3F4F6;
  --color-white: #FFFFFF;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;
  --color-success: #10B981;

  --font-main: 'Sarabun', 'Noto Sans Thai', sans-serif;

  --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);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --bottom-nav-height: 64px;
  --header-height: 56px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --line-nav-height: 50px; /* LINE browser bottom navigation bar */
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--color-white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  gap: 16px;
}

.loading-logo {
  width: 80px; height: 80px;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-gray-200, #E5E7EB);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== HEADER ===== */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

.header-title {
  font-size: 18px; font-weight: 700;
  color: var(--color-gray-900);
}

.header-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-gray-700);
  font-size: 20px;
}

.header-action {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}

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

.cart-badge.show { display: flex; }

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200, #E5E7EB);
  height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--color-gray-500);
  font-size: 12px; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-item.active { color: var(--color-primary); }
.nav-item .nav-icon { font-size: 22px; }

.nav-cart-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--color-danger);
  color: white;
  min-width: 16px; height: 16px;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-cart-badge.show { display: flex; }

/* ===== PAGE WRAPPER ===== */
.page {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
}

.page-content { padding: 0 16px 16px; }

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #06C755 0%, #05A847 50%, #048A3A 100%);
  padding: 24px 16px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hero-banner::after {
  content: '';
  position: absolute; bottom: -60px; left: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero-greeting {
  font-size: 14px; opacity: 0.9; margin-bottom: 4px;
}

.hero-title {
  font-size: 24px; font-weight: 700; margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 13px; opacity: 0.8;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--color-white);
  color: var(--color-gray-600, #4B5563);
  border: 1.5px solid var(--color-gray-200, #E5E7EB);
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===== MENU GRID ===== */
.menu-section { padding: 16px 16px 0; }

.section-title {
  font-size: 16px; font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ===== MENU CARD ===== */
.menu-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.menu-card:active { transform: scale(0.98); }

.menu-card-img-wrap {
  width: 100%; aspect-ratio: 1;
  background: var(--color-gray-100);
  overflow: hidden;
  position: relative;
}

.menu-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.menu-card:hover .menu-card-img-wrap img { transform: scale(1.04); }

.menu-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

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

.menu-card-name {
  font-size: 13px; font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-desc {
  font-size: 11px;
  color: var(--color-gray-500);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}

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

.menu-card-price span { font-size: 11px; font-weight: 400; color: var(--color-gray-500); }

/* ===== ADD TO CART BUTTON ===== */
.btn-add-cart {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(6,199,85,0.4);
  transition: all 0.2s;
  line-height: 1;
}

.btn-add-cart:active { transform: scale(0.9); }

/* Item counter in card */
.item-counter {
  display: none;
  align-items: center; gap: 4px;
}

.item-counter.show { display: flex; }

.counter-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: background 0.15s;
}

.counter-btn:active { background: var(--color-gray-300); }

.counter-minus { background: var(--color-primary-light); color: var(--color-primary-dark); }
.counter-plus { background: var(--color-primary); color: white; }

.counter-qty {
  font-size: 14px; font-weight: 700;
  min-width: 24px; text-align: center;
  color: var(--color-gray-900);
}

/* ===== CART PAGE ===== */
.cart-empty {
  text-align: center; padding: 80px 24px;
}

.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cart-empty-text { font-size: 14px; color: var(--color-gray-500); }

.cart-list { display: flex; flex-direction: column; gap: 0; }

.cart-item {
  background: var(--color-white);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-gray-100);
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-gray-100);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

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

.cart-item-price {
  font-size: 13px; color: var(--color-primary-dark); font-weight: 600;
}

.cart-item-controls {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

.cart-item-qty {
  font-size: 15px; font-weight: 700;
  min-width: 28px; text-align: center;
  color: var(--color-gray-900);
}

.btn-qty {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}

.btn-qty-minus {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.btn-qty-minus.danger { background: #FEE2E2; color: var(--color-danger); }
.btn-qty-plus { background: var(--color-primary); color: white; }

/* ===== ORDER SUMMARY BAR ===== */
.order-summary-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--color-white);
  padding: 12px 16px;
  /* ✅ รองรับ LINE browser nav bar + safe area */
  padding-bottom: calc(12px + var(--safe-area-bottom) + var(--line-nav-height));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
}

.order-summary-bar.show { display: block; }

.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
  font-size: 13px; color: var(--color-gray-600, #4B5563);
}

.summary-total {
  font-size: 18px; font-weight: 700;
  color: var(--color-gray-900);
}

.summary-total-label { font-size: 13px; color: var(--color-gray-500); font-weight: 400; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer; border: none;
  transition: all 0.2s;
  width: 100%;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(6,199,85,0.35);
}

.btn-primary:active { box-shadow: 0 2px 6px rgba(6,199,85,0.25); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-white {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.checkout-section-title {
  font-size: 14px; font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.order-items-list { display: flex; flex-direction: column; gap: 8px; }

.order-item-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}

.order-item-name { color: var(--color-gray-700); }
.order-item-qty { color: var(--color-gray-500); font-size: 13px; }
.order-item-subtotal { font-weight: 600; color: var(--color-gray-900); }

.divider {
  border: none; border-top: 1px solid var(--color-gray-100);
  margin: 12px 0;
}

.price-breakdown { display: flex; flex-direction: column; gap: 6px; }

.price-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--color-gray-600, #4B5563);
}

.price-row.total {
  font-size: 17px; font-weight: 700;
  color: var(--color-gray-900);
  padding-top: 8px;
  border-top: 2px solid var(--color-gray-100);
  margin-top: 4px;
}

.price-row.total .price-value { color: var(--color-primary-dark); }

/* Payment method card */
.payment-method {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
}

.payment-icon {
  width: 44px; height: 44px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.payment-info { flex: 1; }
.payment-name { font-weight: 700; font-size: 15px; }
.payment-desc { font-size: 12px; color: var(--color-gray-500); }
.payment-check { color: var(--color-primary); font-size: 20px; }

/* ===== ORDER STATUS PAGE ===== */
.status-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.status-icon {
  font-size: 64px; margin-bottom: 16px;
  animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.status-title {
  font-size: 22px; font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.status-subtitle { font-size: 14px; color: var(--color-gray-500); }

.order-id-badge {
  display: inline-block;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-top: 12px;
}

/* Progress stepper */
.progress-stepper {
  display: flex; align-items: flex-start;
  padding: 16px 0;
  position: relative;
}

.progress-stepper::before {
  content: '';
  position: absolute; top: 28px; left: 20px; right: 20px;
  height: 2px;
  background: var(--color-gray-200, #E5E7EB);
  z-index: 0;
}

.progress-fill {
  position: absolute; top: 28px; left: 20px;
  height: 2px;
  background: var(--color-primary);
  z-index: 1;
  transition: width 0.6s ease;
}

.step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  position: relative; z-index: 2;
}

.step-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 1px var(--color-gray-300);
  transition: all 0.3s;
}

.step.active .step-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6,199,85,0.2);
}

.step.done .step-dot { background: var(--color-primary); }

.step-label {
  font-size: 10px; font-weight: 600;
  color: var(--color-gray-400, #9CA3AF);
  text-align: center;
  line-height: 1.2;
}

.step.active .step-label, .step.done .step-label { color: var(--color-primary-dark); }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-80px);
  max-width: calc(100% - 32px);
  background: var(--color-gray-900);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }

/* ===== SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-img { width: 100%; aspect-ratio: 1; }
.skeleton-text { height: 14px; margin: 8px 12px 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-price { height: 20px; width: 40%; margin: 8px 12px 12px; }

/* ===== ADMIN & KITCHEN ===== */
.admin-header {
  background: var(--color-dark);
  padding: 16px;
  color: white;
}

.admin-title { font-size: 20px; font-weight: 700; }
.admin-subtitle { font-size: 13px; opacity: 0.7; margin-top: 2px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 16px;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.stat-label { font-size: 12px; color: var(--color-gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--color-gray-900); }
.stat-unit { font-size: 13px; font-weight: 400; color: var(--color-gray-500); }

.orders-section { padding: 0 16px 16px; }

.order-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-gray-300);
}

.order-card.status-pending { border-left-color: var(--color-warning); }
.order-card.status-paid { border-left-color: var(--color-info); }
.order-card.status-cooking { border-left-color: var(--color-secondary); }
.order-card.status-done { border-left-color: var(--color-success); }

.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-gray-100);
}

.order-card-id { font-size: 13px; font-weight: 700; color: var(--color-gray-700); }
.order-card-time { font-size: 12px; color: var(--color-gray-400, #9CA3AF); }
.order-card-body { padding: 12px 16px; }
.order-card-items { font-size: 13px; color: var(--color-gray-600, #4B5563); line-height: 1.7; }
.order-card-total { font-size: 15px; font-weight: 700; color: var(--color-gray-900); margin-top: 8px; }

.order-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--color-gray-100);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* Status badge */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
}

.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-paid { background: #DBEAFE; color: #1E40AF; }
.badge-cooking { background: #FEE2E2; color: #991B1B; }
.badge-done { background: #D1FAE5; color: #065F46; }

/* Action button small */
.btn-sm {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: var(--font-main);
  transition: all 0.15s;
}

.btn-sm:active { transform: scale(0.96); }
.btn-sm-primary { background: var(--color-primary); color: white; }
.btn-sm-outline { background: transparent; border: 1.5px solid var(--color-gray-300); color: var(--color-gray-700); }

/* ===== KITCHEN DISPLAY ===== */
.kitchen-page { background: #0F1117; min-height: 100vh; }
.kitchen-header {
  background: #1A1D2B;
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kitchen-title { font-size: 18px; font-weight: 700; color: white; }
.kitchen-clock { font-size: 24px; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }

.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px;
}

.kitchen-card {
  background: #1A1D2B;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  animation: newOrder 0.5s ease-out;
}

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

.kitchen-card.urgent { border-color: var(--color-secondary); animation: urgentPulse 2s ease-in-out infinite; }

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
  50% { box-shadow: 0 0 0 4px rgba(255,107,53,0.3); }
}

.kitchen-card-header {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}

.kitchen-order-id { font-size: 16px; font-weight: 800; color: white; }
.kitchen-order-time { font-size: 12px; color: rgba(255,255,255,0.5); }
.kitchen-card-body { padding: 14px 16px; }

.kitchen-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.kitchen-item-qty {
  width: 32px; height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white;
  flex-shrink: 0;
}

.kitchen-item-name { font-size: 15px; font-weight: 600; color: white; flex: 1; }

.kitchen-card-footer { padding: 12px 16px; }

.btn-done {
  width: 100%; padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: white; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-main);
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(6,199,85,0.3);
}

.btn-done:active { transform: scale(0.98); }

.kitchen-empty {
  grid-column: 1/-1;
  text-align: center; padding: 80px 24px;
  color: rgba(255,255,255,0.4);
}

.kitchen-empty-icon { font-size: 64px; margin-bottom: 16px; }
.kitchen-empty-text { font-size: 18px; font-weight: 600; }

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

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

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-handle {
  width: 40px; height: 4px;
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  margin: -12px auto 20px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }

/* Hide scrollbars globally */
::-webkit-scrollbar { width: 0; height: 0; }

/* Smooth transitions */
* { -webkit-tap-highlight-color: transparent; }
