/* ==========================================================================
   Café Zaiqa — Design System & Stylesheet (style.css)
   Clean, mobile-first, warm café palette, system fonts only, zero external assets
   ========================================================================== */

:root {
  /* Warm café color palette */
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-surface-soft: #f4ede4;
  --color-surface-hover: #ede3d6;
  --color-border: #e6dacb;
  --color-border-subtle: #efe7dc;

  --color-espresso: #24140e;
  --color-coffee-dark: #3a2218;
  --color-coffee: #5c3a28;
  --color-caramel: #b85d19;
  --color-caramel-hover: #9c4c11;
  --color-amber: #d97706;

  --color-sage: #2d6a4f;
  --color-sage-light: #e8f3ee;
  --color-sage-hover: #22543d;

  --color-text-main: #24140e;
  --color-text-muted: #6e5849;
  --color-text-light: #947e70;

  --color-status-new: #d97706;
  --color-status-prep: #2563eb;
  --color-status-ready: #16a34a;
  --color-status-served: #6b7280;

  --shadow-sm: 0 1px 3px rgba(36, 20, 14, 0.06), 0 1px 2px rgba(36, 20, 14, 0.04);
  --shadow-md: 0 4px 12px rgba(36, 20, 14, 0.08), 0 2px 4px rgba(36, 20, 14, 0.04);
  --shadow-lg: 0 12px 28px rgba(36, 20, 14, 0.12), 0 4px 8px rgba(36, 20, 14, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1140px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-caramel);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-caramel-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Demo Badges & Disclaimers */
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-full);
}

.demo-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
}

.demo-alert-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  text-align: center;
  font-weight: 500;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-espresso);
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-espresso);
  background-color: var(--color-surface-soft);
}

.nav-links a.active {
  color: var(--color-espresso);
  background-color: var(--color-surface-soft);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--color-caramel) !important;
  color: #ffffff !important;
  border-radius: var(--radius-full) !important;
  padding: 0.45rem 1rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: var(--color-caramel-hover) !important;
  color: #ffffff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-espresso);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-caramel);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(184, 93, 25, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-caramel-hover);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(184, 93, 25, 0.3);
}

.btn-secondary {
  background-color: var(--color-coffee-dark);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-espresso);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-espresso);
}

.btn-outline:hover {
  background-color: var(--color-surface-soft);
  border-color: var(--color-coffee);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-pill {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-espresso);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-feature-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Steps Section */
.steps-section {
  padding: 4rem 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-espresso);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--color-coffee-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.payment-note-box {
  background: var(--color-sage-light);
  border: 1px solid #b7dfca;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.payment-note-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.payment-note-text {
  font-size: 0.9375rem;
  color: var(--color-sage-hover);
}

.payment-note-text strong {
  color: var(--color-espresso);
}

/* Menu Page & Cards */
.menu-controls {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--color-caramel);
  box-shadow: 0 0 0 3px rgba(184, 93, 25, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-espresso);
}

.category-pill.active {
  background-color: var(--color-espresso);
  color: #ffffff;
  border-color: var(--color-espresso);
}

.menu-category-section {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-espresso);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-card-top {
  margin-bottom: 1rem;
}

.menu-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.menu-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-espresso);
}

.menu-card-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-caramel);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 0.5rem;
}

.menu-card-tag {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background-color: var(--color-bg);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Order Page & Chat System */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
  align-items: start;
}

.chat-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 620px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.25rem;
  background-color: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-coffee-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  position: relative;
}

.agent-avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.agent-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-espresso);
}

.agent-status-line {
  font-size: 0.75rem;
  color: var(--color-sage);
  font-weight: 500;
}

.sim-disclaimer-pill {
  font-size: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fbf9f5;
}

.chat-bubble {
  display: flex;
  gap: 0.65rem;
  max-width: 84%;
}

.chat-bubble-agent {
  align-self: flex-start;
}

.chat-bubble-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.agent-avatar-icon {
  width: 2rem;
  height: 2rem;
  background: var(--color-coffee-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.bubble-content {
  display: flex;
  flex-direction: column;
}

.bubble-text {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}

.chat-bubble-agent .bubble-text {
  background-color: var(--color-surface);
  color: var(--color-espresso);
  border: 1px solid var(--color-border);
  border-top-left-radius: 2px;
}

.chat-bubble-user .bubble-text {
  background-color: var(--color-caramel);
  color: #ffffff;
  border-top-right-radius: 2px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
  padding: 0 0.35rem;
}

.chat-bubble-user .bubble-meta {
  justify-content: flex-end;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.chat-action-btn {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Typing animation */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--color-text-light);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Quick chips */
.chat-quick-chips {
  padding: 0.65rem 1rem;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip-btn {
  white-space: nowrap;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--color-espresso);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--color-caramel);
  color: #fff;
  border-color: var(--color-caramel);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 0.85rem 1rem;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.65rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--color-bg);
  transition: border-color 0.15s ease;
}

.chat-input:focus {
  border-color: var(--color-caramel);
  background-color: #ffffff;
}

.chat-send-btn {
  background-color: var(--color-caramel);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease;
}

.chat-send-btn:hover {
  background-color: var(--color-caramel-hover);
}

/* Live Order Tray Panel */
.order-tray-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tray-header {
  padding: 1.15rem 1.25rem;
  background-color: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tray-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tray-items-count {
  font-size: 0.8125rem;
  background-color: var(--color-espresso);
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.tray-items-list {
  padding: 1rem 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tray-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-muted);
}

.tray-empty-state .empty-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.tray-empty-state p {
  font-weight: 600;
  color: var(--color-espresso);
}

.tray-empty-state small {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.tray-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--color-border-subtle);
}

.tray-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-espresso);
}

.tray-item-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.tray-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-espresso);
}

.qty-btn:hover {
  background-color: var(--color-surface-hover);
}

.qty-display {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 0.35rem;
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tray-line-total {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-caramel);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 60px;
}

.tray-footer {
  padding: 1.25rem;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.tray-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tray-total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.tray-grand-total {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}

.tray-instructions {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.35;
}

/* Dashboard Page (Main Computer / Counter Screen) */
.dashboard-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dashboard-filter-btn {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-filter-btn:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-espresso);
}

.dashboard-filter-btn.active {
  background-color: var(--color-espresso);
  color: #ffffff;
  border-color: var(--color-espresso);
}

.dashboard-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.order-card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.order-card.status-new {
  border-color: #f59e0b;
  background-color: #fffdf9;
}

.order-card.status-preparing {
  border-color: #3b82f6;
  background-color: #fbfdff;
}

.order-card.status-ready {
  border-color: #22c55e;
  background-color: #f9fdfa;
}

.order-card.status-served {
  border-color: #e5e7eb;
  opacity: 0.8;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.order-id-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.order-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-espresso);
}

.order-time {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.order-status-badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-new { background-color: #fef3c7; color: #92400e; }
.badge-preparing { background-color: #dbeafe; color: #1e40af; }
.badge-ready { background-color: #dcfce7; color: #15803d; }
.badge-served { background-color: #f3f4f6; color: #4b5563; }

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.order-item-qty {
  font-weight: 700;
  color: var(--color-caramel);
  min-width: 1.75rem;
}

.order-item-name {
  flex: 1;
  color: var(--color-espresso);
  font-weight: 500;
}

.order-item-price {
  font-weight: 600;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.order-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-total-display {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.6875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.total-amount {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}

.order-actions-row {
  display: flex;
  gap: 0.4rem;
}

.btn-status-advance {
  background-color: var(--color-sage);
  color: #ffffff;
}

.btn-status-advance:hover {
  background-color: var(--color-sage-hover);
}

.status-complete-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-sage);
  padding: 0.35rem 0.6rem;
  background-color: var(--color-sage-light);
  border-radius: var(--radius-sm);
}

.order-status-selector {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--color-border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.status-pills-row {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.status-pill-opt {
  flex: 1;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 0.2rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
}

.status-pill-opt.active {
  background: var(--color-coffee);
  color: #fff;
  border-color: var(--color-coffee);
}

/* Architecture & Info Boxes */
.architecture-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.architecture-box h3 {
  font-size: 1.125rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.architecture-box p {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.architecture-box ul {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* Pricing Card on About Page */
.pricing-card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-caramel);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 2.5rem auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pricing-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-espresso);
  margin-bottom: 0.25rem;
}

.pricing-monthly {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-caramel);
  margin-bottom: 1.5rem;
}

.pricing-features-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.pricing-features-list li::before {
  content: "✓";
  color: var(--color-sage);
  font-weight: 800;
}

/* WhatsApp Transcript Container */
.whatsapp-chat-box {
  max-width: 480px;
  margin: 2rem auto;
  background-color: #efeae2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #d1d7db;
}

.whatsapp-header {
  background-color: #075e54;
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background-color: #128c7e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.whatsapp-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.whatsapp-subtitle {
  font-size: 0.75rem;
  color: #bbf7d0;
}

.whatsapp-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-image: radial-gradient(#d1d7db 1px, transparent 1px);
  background-size: 16px 16px;
}

.wa-msg {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.13);
  word-break: break-word;
}

.wa-incoming {
  align-self: flex-start;
  background-color: #ffffff;
  color: #111b21;
}

.wa-outgoing {
  align-self: flex-end;
  background-color: #d9fdd3;
  color: #111b21;
}

.wa-time {
  font-size: 0.6875rem;
  color: #667781;
  text-align: right;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--color-espresso);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background-color: var(--color-sage); }
.toast-info { background-color: var(--color-coffee-dark); }

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--color-espresso);
  color: #d5c8be;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #3d2319;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a89487;
  max-width: 400px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #a89487;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8125rem;
  color: #947e70;
}

.footer-disclaimer {
  color: #fca5a5;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Kitchen Ticket Thermal Print Styles (@media print)
   ========================================================================== */
.printable-only {
  display: none;
}

@media print {
  /* Hide non-printable elements */
  .site-header,
  .site-footer,
  .demo-alert-banner,
  .dashboard-toolbar,
  .dashboard-metrics-bar,
  .architecture-box,
  .toast-container,
  .order-card,
  #dashboard-empty-state,
  .nav-links,
  .mobile-toggle,
  .order-layout {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: monospace !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .printable-only {
    display: block !important;
    width: 80mm;
    margin: 0 auto;
    padding: 10px;
  }

  .kitchen-ticket {
    page-break-after: always;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.35;
    color: #000000;
  }

  .ticket-header {
    text-align: center;
    margin-bottom: 8px;
  }

  .ticket-cafe-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .ticket-tag {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0;
  }

  .ticket-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 4px;
  }

  .ticket-divider {
    overflow: hidden;
    white-space: nowrap;
    margin: 4px 0;
  }

  .ticket-items {
    margin: 8px 0;
  }

  .print-ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .print-qty {
    font-weight: bold;
    width: 28px;
  }

  .print-name {
    flex: 1;
    padding-right: 8px;
    font-weight: bold;
  }

  .print-price {
    font-weight: bold;
    text-align: right;
  }

  .ticket-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: bold;
    margin: 6px 0;
  }

  .ticket-note {
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
  }
}

/* Responsive adjustments */
@media (max-width: 840px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
  }
}
