* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9fafb;
  color: #111;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ Login ============ */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-icon { font-size: 56px; margin-bottom: 16px; }
.login-card h1 { font-size: 24px; margin-bottom: 8px; color: #111; }
.login-card p { color: #6b7280; margin-bottom: 24px; font-size: 14px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-google:hover { background: #f9fafb; border-color: #d1d5db; }
.btn-google:disabled { opacity: 0.5; cursor: not-allowed; }
.login-footer {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* ============ Top bar ============ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-info { display: flex; align-items: center; gap: 12px; }
.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.brand-name { font-size: 16px; font-weight: 700; color: #111; }
.brand-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.btn-logout {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.15s;
}
.btn-logout:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* ============ Tabs ============ */
.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}
.tab.active { background: #7c3aed; color: #fff; }
.tab:hover:not(.active) { background: #f3f4f6; }

/* ============ Content ============ */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  color: #9ca3af;
  gap: 16px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-icon { font-size: 56px; opacity: 0.3; margin-bottom: 16px; }
.empty-title { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 4px; }
.empty-text { font-size: 13px; color: #6b7280; max-width: 300px; }

/* ============ Order cards ============ */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.order-id {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.order-customer { font-size: 13px; color: #4b5563; }
.order-customer strong { color: #111; font-weight: 600; }
.order-total {
  font-size: 22px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: -0.3px;
}
.order-items {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
}
.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.btn-action {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accept { background: #10b981; color: #fff; }
.btn-accept:hover:not(:disabled) { background: #059669; }
.btn-ready { background: #7c3aed; color: #fff; }
.btn-ready:hover:not(:disabled) { background: #6d28d9; }
.btn-cancel { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-cancel:hover:not(:disabled) { background: #fee2e2; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
  max-width: 90vw;
}
.toast.error { background: #ef4444; }
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}