/* =========================================================
   Spice Route — CloudOps & Smart Kitchen Platform Styling
   Modern, Rich Indian Warm Palette + Enterprise Cloud Dark Mode
   ========================================================= */

:root {
  --primary: #f2c14e;         /* Warm Saffron Gold */
  --primary-hover: #dfa82e;
  --secondary: #7a1f1f;       /* Deep Royal Crimson */
  --secondary-hover: #5d1515;
  --veg-green: #2e7d32;       /* Pure Veg Emblem Green */
  --veg-green-bg: #e8f5e9;
  --bg-cream: #faf7f2;
  --surface: #ffffff;
  --text-main: #242220;
  --text-muted: #666059;
  --border: #e8e2d8;
  
  --cloud-dark: #121824;
  --cloud-card: #1b2234;
  --cloud-accent: #3b82f6;
  --cloud-border: #2a344a;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.14);
  
  --radius: 16px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .logo, .badge, .category-title, .col-title {
  font-family: var(--font-heading);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* =========================================
   Top Cloud App Bar (Mode Switcher)
   ========================================= */
.cloud-app-bar {
  background: var(--cloud-dark);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cloud-border);
  position: sticky;
  top: 0;
  z-index: 1002;
  font-size: 0.9rem;
}

.cloud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #93c5fd;
}

.cloud-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.app-mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 30px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mode-btn.active {
  background: var(--primary);
  color: #1a1814;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(242, 193, 78, 0.4);
}

.badge-count {
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-track-quick {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* =========================================
   App Views Switcher
   ========================================= */
.app-view {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.app-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Navbar (Customer View)
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 48px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  color: var(--veg-green);
  font-size: 1.4rem;
}

.pure-veg-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--veg-green-bg);
  color: var(--veg-green);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(46, 125, 50, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

section, footer, #home, #menu, #booking, #order, #contact, #ai-assistant-anchor {
  scroll-margin-top: 110px;
}

.navbar nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  transition: all 0.25s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--secondary);
}

.navbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--secondary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(20, 10, 5, 0.78), rgba(40, 15, 10, 0.7)),
              url('images/hero_bg_1788088639894.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 40px 20px;
}

.hero-content {
  max-width: 860px;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 193, 78, 0.2);
  border: 1px solid rgba(242, 193, 78, 0.4);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary);
  color: #1a1814;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 193, 78, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-ai {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  border: none;
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* =========================================
   AI Banner Strip (Customer View)
   ========================================= */
.ai-banner-strip {
  padding: 30px 0;
  background: #f3ece0;
}

.ai-strip-card {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  padding: 32px 40px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.ai-badge-glowing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ai-strip-left h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.ai-strip-left p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.btn-ai-large {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
  white-space: nowrap;
}

.btn-ai-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

/* =========================================
   Menu Cards
   ========================================= */
.menu {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(122, 31, 31, 0.08);
  color: var(--secondary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2.6rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Menu Filter Controls (Search + Tabs)
   ========================================= */
.menu-filter-controls {
  background: #fbf8f2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.menu-search-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.menu-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.menu-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: 30px;
  border: 2px solid #e2dac9;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}

.menu-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.35);
}

.menu-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.menu-tab-btn {
  background: #ffffff;
  border: 1px solid #e2dac9;
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
}

.menu-tab-btn:hover {
  background: #f5eedf;
  transform: translateY(-1px);
}

.menu-tab-btn.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(122, 31, 31, 0.3);
}

.menu-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2dac9;
  flex-wrap: wrap;
  gap: 10px;
}

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

.menu-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 193, 78, 0.5);
}

.menu-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0ebe1;
}

.menu-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-img-wrapper img {
  transform: scale(1.08);
}

.veg-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--veg-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.calorie-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 20, 20, 0.75);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
}

.menu-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.menu-title-row h3 {
  font-size: 1.18rem;
  color: var(--text-main);
  font-weight: 700;
}

.price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--secondary);
}

.menu-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

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

.tag-pill {
  background: #f1ede5;
  color: #555048;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-add-to-order {
  background: rgba(122, 31, 31, 0.06);
  color: var(--secondary);
  border: 1px solid rgba(122, 31, 31, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* =========================================
   Forms (Booking & Online Order)
   ========================================= */
.forms-section {
  background: #f5efe6;
}

.order-section-bg {
  background: #ece4d5;
}

.single-layout {
  max-width: 740px;
  margin: 0 auto;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(242, 193, 78, 0.2);
  color: var(--secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.delivery-icon {
  background: rgba(46, 125, 50, 0.15);
  color: var(--veg-green);
}

.form-header h2 {
  color: var(--secondary);
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-row {
  display: flex;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.input-group.half { flex: 1; }
.input-group.third { flex: 1; }

.input-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-form input,
.modern-form select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: #ffffff;
  transition: all 0.2s ease;
  width: 100%;
}

.modern-form input:focus,
.modern-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  font-size: 1.02rem;
  position: relative;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: var(--text-main);
  animation: spin 0.8s linear infinite;
  position: absolute;
}

.hidden {
  display: none !important;
}

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

/* =========================================
   VIEW 2: AI DIETARY SOMMELIER VIEW
   ========================================= */
.ai-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.ai-header {
  text-align: center;
  margin-bottom: 36px;
}

.ai-header .badge {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.ai-header h2 {
  font-size: 2.6rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.ai-interactive-card {
  margin-bottom: 40px;
}

.ai-filters-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.diet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip-btn {
  background: #f1ede5;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: #e4decb;
}

.chip-btn.selected {
  background: var(--veg-green);
  color: #ffffff;
  border-color: var(--veg-green);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.ai-input-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.ai-input-row input {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  width: 100%;
}

.btn-ai-run {
  padding: 13px 28px;
  white-space: nowrap;
}

.ai-verdict-bar {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 20px 28px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.ai-verdict-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-verdict-sub {
  color: #94a3b8;
  font-size: 0.9rem;
}

.ai-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ai-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ai-match-meter {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-dish-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}

.ai-nutrition-pills {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.nutri-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  color: #475569;
}

.ai-reasons-list {
  list-style: none;
  margin: 12px 0;
  font-size: 0.88rem;
  color: #065f46;
  background: #f0fdf4;
  padding: 10px 14px;
  border-radius: 8px;
}

.ai-reasons-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-warnings-list {
  list-style: none;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #991b1b;
  background: #fef2f2;
  padding: 8px 12px;
  border-radius: 8px;
}

/* =========================================
   VIEW 3: KITCHEN DISPLAY SYSTEM (KDS)
   ========================================= */
.kds-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px;
}

.kds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.kds-header h2 {
  font-size: 2rem;
  color: var(--secondary);
}

.kds-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.kds-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-refresh-kds {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-indicator {
  background: #dcfce7;
  color: #15803d;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseAnim 1.5s infinite;
}

.kds-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.kds-column {
  background: #f1ece1;
  border-radius: var(--radius);
  padding: 16px;
  min-height: 500px;
  border: 1px solid #e2dac9;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 700;
}

.col-header.placed { background: #fee2e2; color: #991b1b; }
.col-header.preparing { background: #fef3c7; color: #92400e; }
.col-header.delivery { background: #e0e7ff; color: #3730a3; }
.col-header.completed { background: #dcfce7; color: #166534; }

.col-badge {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.kds-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kds-ticket {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.kds-ticket:hover {
  box-shadow: var(--shadow-md);
}

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

.ticket-id {
  font-weight: 800;
  color: var(--secondary);
  font-size: 0.95rem;
}

.ticket-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.ticket-customer {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.ticket-items {
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
}

.ticket-address {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
}

.btn-ticket-action {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-ticket-action.start-prep { background: #d97706; color: #ffffff; }
.btn-ticket-action.start-prep:hover { background: #b45309; }

.btn-ticket-action.dispatch { background: #4f46e5; color: #ffffff; }
.btn-ticket-action.dispatch:hover { background: #4338ca; }

.btn-ticket-action.complete { background: #16a34a; color: #ffffff; }
.btn-ticket-action.complete:hover { background: #15803d; }

.empty-col-notice {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 30px 10px;
}

/* =========================================
   VIEW 4: CLOUDOPS OBSERVABILITY VIEW
   ========================================= */
.cloudops-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
}

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

.ops-header h2 {
  font-size: 2.2rem;
  color: var(--secondary);
}

.ops-header p {
  color: var(--text-muted);
}

.ops-cloud-pill {
  background: var(--cloud-dark);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-cloud-pill i {
  color: #f59e0b;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.ops-kpi-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.green { background: #ecfdf5; color: #059669; }
.kpi-icon.orange { background: #fff7ed; color: #ea580c; }
.kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }

.kpi-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.ops-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

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

.panel-header h3 {
  font-size: 1.3rem;
  color: var(--secondary);
}

.badge-free {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.load-preset-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.btn-preset {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-preset:hover {
  background: #f1f5f9;
}

.btn-preset.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.btn-run-test {
  width: 100%;
  padding: 14px;
}

.load-result-box {
  background: #0f172a;
  color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.meta-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.meta-key {
  font-weight: 600;
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

/* =========================================
   MODAL: LIVE ORDER TRACKER
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  background: var(--secondary);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}

.modal-close-btn:hover {
  opacity: 1;
}

.track-search-bar {
  padding: 20px 24px;
  background: #fdfbf7;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.track-search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.btn-track-submit {
  background: var(--primary);
  border: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.track-modal-body {
  padding: 28px 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.track-placeholder {
  text-align: center;
  color: #94a3b8;
  padding: 30px 10px;
}

.track-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* Stepper */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.stepper-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.stepper-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.stepper-step:last-child::before {
  display: none;
}

.stepper-step.completed::before {
  background: var(--veg-green);
}

.step-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
  font-weight: 700;
}

.stepper-step.completed .step-icon-circle {
  background: var(--veg-green);
  color: #ffffff;
}

.stepper-step.active .step-icon-circle {
  background: var(--primary);
  color: #1a1814;
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.35);
  animation: pulseAnim 1.5s infinite;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-content p {
  font-size: 0.82rem;
  color: #64748b;
}

/* =========================================
   Toast Notifications
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #ffffff;
  border-left: 5px solid var(--veg-green);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  transform: translateX(130%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: #d32f2f;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast.success .toast-icon { color: var(--veg-green); }
.toast.error .toast-icon { color: #d32f2f; }

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
  .kds-kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cloud-app-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .app-mode-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .kds-kanban-board {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .input-row, .ai-input-row {
    flex-direction: column;
  }
  .ai-strip-card {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
