/* ==========================================================================
   Anne Eli Ev Yemekleri - Premium Modern Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #A7353A;
  --primary-hover: #87282D;
  --primary-light: #FCEEEF;
  --primary-gradient: linear-gradient(135deg, #B94247 0%, #8C2930 100%);
  
  --secondary: #47724B;
  --secondary-light: #EDF5ED;
  
  --accent: #E6A93A;
  --accent-light: #FFF7E5;
  --social-purple: #7B1FA2;
  --social-purple-light: #F3E5F5;

  --bg-main: #F3F6F7;
  --bg-card: #FFFFFF;
  --bg-subtle: #E9EEF0;
  --bg-sidebar: #FFFFFF;

  --text-primary: #27313A;
  --text-secondary: #52606B;
  --text-muted: #75818A;
  --text-inverse: #FFFFFF;

  --border-color: #DCE3E7;
  --border-focus: #A7353A;

  --shadow-sm: 0 1px 3px rgba(35, 25, 20, 0.06), 0 1px 2px rgba(35, 25, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(35, 25, 20, 0.08), 0 2px 4px rgba(35, 25, 20, 0.04);
  --shadow-lg: 0 12px 28px rgba(35, 25, 20, 0.12), 0 4px 10px rgba(35, 25, 20, 0.06);
  --shadow-xl: 0 20px 40px rgba(35, 25, 20, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top Controller Bar (For Prototype Testing) */
.prototype-controller {
  background: #173B57;
  color: #F8FBFC;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(23, 59, 87, 0.22);
}

.controller-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.controller-badge {
  background: #E6A93A;
  color: #27313A;
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.controller-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-switcher {
  display: flex;
  background: #2B2826;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.role-btn {
  background: transparent;
  border: none;
  color: #A8A29E;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.role-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(217, 72, 30, 0.4);
}

.device-toggle-btn {
  background: #2B2826;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #EDE8E1;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.device-toggle-btn:hover {
  background: #383431;
}

/* App Wrapper: Supports both Mobile Frame and Full Web */
.app-viewport-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  min-height: calc(100vh - 56px);
  transition: all 0.3s ease;
}

/* Mobile Frame Simulation */
.app-viewport-container.mobile-frame {
  background: radial-gradient(circle at top, #E8DFD5 0%, #D4C6B6 100%);
  padding: 24px 0 48px;
}

.app-wrapper {
  width: 100%;
  max-width: 1200px;
  background: var(--bg-main);
  transition: all 0.3s ease;
  position: relative;
}

.mobile-frame .app-wrapper {
  max-width: 420px;
  min-height: 880px;
  border-radius: 46px;
  border: 11px solid #1A1715;
  box-shadow: 0 28px 60px -10px rgba(26, 23, 21, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Mobile Notch / Dynamic Island */
.mobile-notch {
  display: none;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #1A1715;
  border-radius: 16px;
  z-index: 999;
}

.mobile-frame .mobile-notch {
  display: block;
}

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

.mobile-frame .app-header {
  padding-top: 36px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(217, 72, 30, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Location Selector */
.location-pill {
  font: inherit;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.location-pill:hover {
  border-color: var(--primary);
  background: white;
}

/* Cart Button */
.cart-toggle-btn {
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.cart-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Quick Mode Banner */
.mode-banner {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.mode-banner.customer-mode {
  background: #FFF7ED;
  color: #C2410C;
  border-bottom: 1px solid #FFEDD5;
}

.mode-banner.cook-mode {
  background: #F0FDF4;
  color: #15803D;
  border-bottom: 1px solid #DCFCE7;
}

/* Explicit Demo Mode & Unavailable Banners */
.demo-mode-banner {
  background: #FFFBEB;
  color: #B45309;
  border-bottom: 2px solid #FCD34D;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
}
.demo-mode-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-unavailable-banner {
  background: #FEF2F2;
  color: #B91C1C;
  border-bottom: 2px solid #FCA5A5;
  padding: 10px 16px;
  font-size: 0.8rem;
}
.service-unavailable-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.service-unavailable-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.service-unavailable-card {
  text-align: center;
  padding: 40px 20px;
  background: #FFF;
  border: 1px dashed #FCA5A5;
  border-radius: 12px;
  margin: 20px 0;
}
.service-unavailable-card h3 {
  color: #B91C1C;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.service-unavailable-card p {
  color: #6B7280;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Main Container */
.app-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Hero / Search Section */
.search-hero {
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF6F0 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.search-title span {
  color: var(--primary);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 72, 30, 0.12);
}

/* Category Filter Pills */
.category-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  background: white;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(217, 72, 30, 0.25);
}

/* Map / Privacy Perimeter Section */
.radar-map-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.map-header-title {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacy-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.simulated-map-canvas {
  height: 200px;
  background: #EAF0EC;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid & Streets pattern */
.simulated-map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(#D3DEC5 1px, transparent 1px),
    linear-gradient(90deg, #D3DEC5 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
}

/* User Location Pin */
.user-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-pulse-circle {
  width: 18px;
  height: 18px;
  background: #2563EB;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25);
  animation: pulse 2s infinite;
}

.user-pin-label {
  background: #1E293B;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Cook Privacy Protected Zones (Blur Radius) */
.cook-radius-zone {
  position: absolute;
  border-radius: 50%;
  background: rgba(217, 72, 30, 0.12);
  border: 2px dashed rgba(217, 72, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 4;
  padding: 0;
  font: inherit;
}

.cook-radius-zone:hover {
  background: rgba(217, 72, 30, 0.22);
  transform: scale(1.04);
}

.cook-zone-1 {
  width: 110px;
  height: 110px;
  top: 15%;
  left: 18%;
}

.cook-zone-2 {
  width: 120px;
  height: 120px;
  bottom: 12%;
  right: 15%;
}

.cook-zone-3 {
  width: 95px;
  height: 95px;
  top: 25%;
  right: 22%;
}

.cook-zone-icon {
  background: white;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1.5px solid var(--primary);
}

.map-privacy-notice {
  padding: 10px 14px;
  background: #F8FAFC;
  font-size: 0.74rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

/* Section Containers */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Bi Tabak Daha (Zero Waste Highlight) */
.zero-waste-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FDBA74;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}

.zero-waste-badge {
  position: absolute;
  top: 12px;
  right: -28px;
  background: #EA580C;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 34px;
  transform: rotate(45deg);
}

.zero-waste-content {
  display: flex;
  gap: 14px;
  align-items: center;
}

.zero-waste-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.zero-waste-info {
  flex: 1;
}

.zero-waste-name {
  font-size: 1rem;
  font-weight: 700;
  color: #7C2D12;
}

.zero-waste-cook {
  font-size: 0.78rem;
  color: #9A3412;
  margin-top: 2px;
}

.zero-waste-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.original-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #9A3412;
  opacity: 0.65;
}

.discounted-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #EA580C;
}

.zero-waste-counter {
  font-size: 0.76rem;
  font-weight: 700;
  color: #C2410C;
  background: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 4px;
}

/* Dish Grid */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mobile-frame .dish-grid {
  grid-template-columns: 1fr;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #D6CCC2;
}

.dish-media {
  position: relative;
  width: 100%;
  height: 170px;
  background: #F0EAE1;
  overflow: hidden;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dish-card:hover .dish-img {
  transform: scale(1.05);
}

.category-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 23, 21, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.delivery-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dish-details {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dish-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.dish-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.cook-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cook-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E25C34;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.cook-rating {
  color: #D97706;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dish-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-extra-badge {
  font-size: 0.74rem;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}

.add-cart-btn {
  margin-top: auto;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.add-cart-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(217, 72, 30, 0.3);
}

/* Askıda Yemek (Social Responsibility Banner) */
.askida-card {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1.5px solid #D8B4FE;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

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

.askida-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #6B21A8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.askida-counter-badge {
  background: #7E22CE;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.askida-desc {
  font-size: 0.84rem;
  color: #581C87;
  line-height: 1.45;
}

.askida-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.askida-btn {
  background: #7E22CE;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.askida-btn:hover {
  background: #6B21A8;
}

/* Subscription Model Card */
.subscription-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-desc {
  font-size: 0.84rem;
  color: #047857;
  line-height: 1.45;
}

/* ==========================================================================
   COOK (EV HANIMI) DASHBOARD STYLES
   ========================================================================== */

.cook-panel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-card.highlight {
  background: var(--primary-light);
  border-color: #FDBA74;
}

.metric-card.highlight .metric-value {
  color: var(--primary);
}

/* Phone Support Callout (Cumhur Bey Destek Ekibi) */
.support-callout {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-text {
  font-size: 0.82rem;
  color: #92400E;
  flex: 1;
}

.support-btn {
  background: #D97706;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Cook Action Bar */
.cook-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-card-btn {
  background: white;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 150px;
  transition: var(--transition-fast);
}

.action-card-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.action-card-btn.primary {
  background: var(--primary);
  border-style: solid;
  border-color: var(--primary);
  color: white;
}

.action-card-btn.primary:hover {
  background: var(--primary-hover);
}

/* Orders List (For Cook) */
.order-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bg-subtle);
  padding-bottom: 8px;
}

.order-id {
  font-weight: 800;
  font-size: 0.9rem;
}

.order-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pending {
  background: #FEF3C7;
  color: #B45309;
}

.status-completed {
  background: #DCFCE7;
  color: #15803D;
}

.pin-verification-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pin-input-group {
  display: flex;
  gap: 8px;
}

.pin-input {
  flex: 1;
  padding: 10px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 4px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
}

.pin-verify-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================================================
   MODAL DIALOGS & DRAWERS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 21, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cook-application-modal { max-width: 720px; }
.application-intro { background: #fff7ed; border: 1px solid #ffedd5; padding: 12px; border-radius: 8px; font-size: .82rem; color: #9a3412; }
.application-status { margin: 12px 0; padding: 9px 12px; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: .82rem; font-weight: 800; }
.application-status[data-status="submitted"] { background: #eff6ff; color: #1d4ed8; }
.application-status[data-status="approved"] { background: #f0fdf4; color: #166534; }
.application-status[data-status="revision"] { background: #fff7ed; color: #9a3412; }
.application-revision { margin-bottom: 12px; padding: 10px 12px; border-left: 4px solid #f97316; background: #fff7ed; color: #9a3412; font-size: .82rem; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.application-grid-wide { grid-column: 1 / -1; }
.application-declaration { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: .84rem; }
.application-declaration input { margin-top: 2px; }
.application-documents { margin-top: 16px; padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: #f8fafc; }
.application-documents h4 { margin: 0; font-size: .95rem; }
.application-documents p,.application-muted { margin: 3px 0 10px; color: var(--text-muted); font-size: .78rem; }
.application-document-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border-color); }
.application-document-row strong,.application-document-row small { display: block; }
.application-document-row small { margin-top: 3px; color: var(--text-muted); }
.application-document-row input[type="file"] { max-width: 260px; font-size: .78rem; }
.application-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.application-actions .add-cart-btn { width: auto; padding: 11px 16px; }
.address-manage-button { margin-top: 8px; align-self: flex-start; }

.delivery-district-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.delivery-district-grid label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: white; font-size: .82rem; }
.checkout-fulfillment-terms { margin-bottom: 14px; padding: 11px 12px; border: 1px solid #BFDBFE; border-radius: 8px; background: #EFF6FF; color: #1E3A8A; font-size: .82rem; line-height: 1.45; }
.checkout-fulfillment-terms.is-error { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.address-book-modal { max-width: 680px; }
.saved-address-list { display: grid; gap: 9px; margin-bottom: 18px; }
.saved-address-card { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-subtle); }
.saved-address-card span { display: block; margin-top: 4px; color: var(--text-muted); font-size: .8rem; }
.saved-address-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.saved-address-actions button { border: 0; background: none; color: var(--primary); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.saved-address-actions button.danger { color: #b91c1c; }
.address-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.address-form-wide { grid-column: 1 / -1; }
.admin-document-list { display: grid; gap: 5px; margin-top: 6px; }
.admin-document-list button { border: 0; padding: 0; background: none; color: var(--primary); font: inherit; font-size: .74rem; text-align: left; cursor: pointer; text-decoration: underline; }

@media (max-width: 620px) {
  .application-grid { grid-template-columns: 1fr; }
  .application-grid-wide { grid-column: auto; }
  .application-document-row { grid-template-columns: 1fr; }
  .application-document-row input[type="file"] { max-width: 100%; }
  .application-actions { align-items: stretch; flex-direction: column; }
  .application-actions .add-cart-btn { width: 100%; }
  .address-form-grid { grid-template-columns: 1fr; }
  .address-form-wide { grid-column: auto; }
  .saved-address-card { flex-direction: column; }
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 72, 30, 0.12);
}

/* Bottom Bar for Mobile View */
.mobile-bottom-nav {
  display: none;
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px 20px;
  position: sticky;
  bottom: 0;
  z-index: 99;
}

.mobile-frame .mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  min-width: 44px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-icon {
  font-size: 1.25rem;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -6px 0 24px rgba(0,0,0,0.15);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAF8F5;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

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

.toast {
  background: #1C1917;
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

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

/* Product-ready responsive layer */
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 4000;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: var(--text-primary);
  font-weight: 800;
}

.skip-link:focus { top: 12px; }
.controller-logo { font-size: 1.3rem; }
.guide-btn { background: rgba(255,255,255,.13); }
.reset-btn { color: #D9E4EA; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #DCE6EB;
  border-bottom: 1px solid #D5E0E5;
}

.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: #F8FBFC;
  color: #45606F;
  font-size: .73rem;
  font-weight: 700;
  text-align: center;
}

.trust-strip b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #173B57;
  color: white;
  font-size: .68rem;
}

.dish-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.stock-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: .7rem;
  font-weight: 800;
}

.stock-badge.low-stock { background: #FFF1E7; color: #B44A18; }
.add-cart-btn:disabled { cursor: not-allowed; filter: grayscale(.4); opacity: .55; }
.secondary-action { background: #173B57 !important; }
.cart-item-cook { margin-top: 2px; color: var(--text-muted); font-size: .72rem; }

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: white;
}

.quantity-stepper button {
  width: 30px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #173B57;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.quantity-stepper span { min-width: 25px; text-align: center; font-size: .78rem; font-weight: 800; }
.cart-remove-btn { border: 0; background: transparent; color: #A7353A; cursor: pointer; font-size: 1rem; }

.escrow-explainer,
.demo-note {
  padding: 13px 14px;
  border: 1px solid #D7E4EA;
  border-left: 4px solid #173B57;
  border-radius: 10px;
  background: #F2F7F9;
  color: #385263;
  font-size: .8rem;
  line-height: 1.55;
}

.escrow-explainer strong { display: block; color: #173B57; margin-bottom: 2px; }
.checkout-summary { padding: 12px 14px; border-radius: 10px; background: #27313A; color: white; text-align: center; font-weight: 800; }

.pin-receipt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 2px dashed #A7353A;
  border-radius: 14px;
  background: var(--primary-light);
}

.pin-receipt-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pin-receipt-list span { text-align: left; color: var(--text-secondary); font-size: .78rem; font-weight: 700; }
.pin-receipt-list strong { color: var(--primary); font-size: 1.55rem; letter-spacing: 4px; }
.modal-kicker { margin-top: 3px; color: var(--text-muted); font-size: .76rem; }
.guide-modal { max-width: 580px; }

.test-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  counter-reset: steps;
}

.test-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.test-steps li::before {
  content: counter(steps);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #173B57;
  color: white;
  font-weight: 800;
}

.test-steps b { font-size: .87rem; }
.test-steps span { grid-column: 2; color: var(--text-secondary); font-size: .78rem; line-height: 1.5; }
.empty-state { display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px dashed var(--border-color); border-radius: 14px; text-align: center; color: var(--text-secondary); }
.modal-open { overflow: hidden; }
.cook-dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cook-profile-actions { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 8px; }
.cook-profile-actions label { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.cook-profile-actions .form-select { min-width: 145px; padding: 7px 9px; }
.kitchen-docs-btn { grid-column: 1 / -1; background: #173B57; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(230, 169, 58, .65);
  outline-offset: 2px;
}

.app-status-banner {
  position: relative;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-bottom: 1px solid #E7D7CC;
  background: #FFF7ED;
  color: #713F12;
  font-size: .9rem;
  box-sizing: border-box;
}
.app-status-banner[hidden] { display: none; }
.app-status-banner > div { line-height: 1.4; }
.app-status-banner button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #7F1D3F;
  border-radius: 8px;
  background: #7F1D3F;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.app-status-banner .status-secondary { background: #fff; color: #7F1D3F; }
.app-status-offline { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.form-error-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #FCA5A5;
  border-radius: 9px;
  background: #FEF2F2;
  color: #991B1B;
  font-weight: 700;
  line-height: 1.45;
}
[aria-invalid="true"] { border-color: #B91C1C !important; box-shadow: 0 0 0 1px #B91C1C; }
button, input, select, textarea, [role="button"] { min-height: 44px; }

@media (min-width: 900px) {
  .app-body { padding: 24px 28px 40px; }
  .search-hero { padding: 26px; }
  .search-title { max-width: 720px; font-size: clamp(1.65rem, 2.5vw, 2.4rem); letter-spacing: -.04em; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dish-card { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(230px, 1.1fr); }
  .dish-media { height: 100%; min-height: 260px; }
  .dish-details { justify-content: center; }
  .cook-panel-wrapper .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cook-panel-wrapper .dish-card { display: flex; }
}

@media (max-width: 760px) {
  .app-status-banner { align-items: stretch; flex-wrap: wrap; justify-content: flex-start; padding: 10px 12px; }
  .app-status-banner > div { flex: 1 0 100%; }
  .app-status-banner button { flex: 1; }
  body { background: white; padding-bottom: 70px; }
  .prototype-controller { position: relative; padding: 10px 12px; gap: 9px; }
  .controller-brand { width: 100%; justify-content: center; }
  .controller-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; overflow: hidden; }
  .role-switcher { grid-column: 1 / -1; min-width: 0; justify-content: center; }
  .role-btn { flex: 1; min-width: 0; justify-content: center; min-height: 40px; padding: 7px 8px; white-space: nowrap; }
  #btnToggleDevice { display: none; }
  .guide-btn { grid-column: 1 / 2; justify-content: center; }
  .reset-btn { grid-column: 2 / 3; justify-content: center; }
  .prototype-controller .cart-toggle-btn { display: none; }
  .app-viewport-container { display: block; min-height: auto; padding: 0; }
  .app-wrapper, .mobile-frame .app-wrapper { max-width: none; min-height: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .mobile-notch, .mobile-frame .mobile-notch { display: none; }
  .app-header, .mobile-frame .app-header { top: 0; padding: 12px 14px; }
  .brand-subtitle { display: none; }
  .location-pill { max-width: 190px; padding: 7px 10px; }
  #currentLocationText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mode-banner { padding: 8px 12px; font-size: .72rem; }
  .mode-banner .support-btn { padding: 5px 8px !important; font-size: .67rem !important; }
  .trust-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .trust-strip span { min-width: 220px; justify-content: flex-start; scroll-snap-align: start; }
  .app-body { padding: 12px 12px 24px; gap: 18px; }
  .search-hero { margin-inline: -12px; padding: 18px 12px; border-inline: 0; border-radius: 0; box-shadow: none; }
  .search-title { max-width: 100%; font-size: 1.5rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .category-filter-scroll { margin-inline: -12px; padding-inline: 12px; }
  .dish-grid, .mobile-frame .dish-grid { grid-template-columns: 1fr; }
  .dish-card:hover { transform: none; }
  .zero-waste-content { align-items: flex-start; }
  .zero-waste-img { width: 78px; height: 78px; }
  .dish-facts { align-items: flex-start; }
  .dish-extra-badge { white-space: normal; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metric-card:last-child { grid-column: 1 / -1; }
  .mobile-bottom-nav, .mobile-frame .mobile-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 12px max(10px, env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -8px 22px rgba(23,59,87,.1); }
  .cart-drawer { max-width: none; right: -105%; padding-bottom: env(safe-area-inset-bottom); }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-container { max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(35px); }
  .modal-body { padding: 18px 16px max(18px, env(safe-area-inset-bottom)); }
  .toast-container { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .toast { width: 100%; }
  .cook-dashboard-header { flex-direction: column; }
  .cook-profile-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .cook-profile-actions .form-select { min-width: 0; }
}

@media (max-width: 390px) {
  .controller-badge { display: none; }
  .role-btn { font-size: .74rem; }
  .metrics-row { grid-template-columns: 1fr; }
  .metric-card:last-child { grid-column: auto; }
  .map-header { align-items: flex-start; gap: 8px; }
  .privacy-badge { font-size: .62rem; }
  .pin-input-group { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Authentication */
.is-auth-hidden { display: none !important; }
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
  min-height: 100dvh;
  background: #F3F6F7;
}
.auth-gate.is-hidden { display: none; }
.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 88px);
  color: white;
  background: #173B57;
}
.auth-story::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: 14%;
  border: 90px solid rgba(230,169,58,.13);
  border-radius: 50%;
}
.auth-brand-mark,
.admin-brand > span,
.provider-nav-brand > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #A7353A;
  color: white;
  font-weight: 800;
  letter-spacing: -.05em;
}
.auth-story h1 { margin: 12px 0 14px; max-width: 560px; font-size: clamp(3.8rem, 8vw, 7.5rem); line-height: .86; letter-spacing: -.075em; }
.auth-story p { max-width: 560px; color: #D9E7EF; font-size: 1.05rem; }
.auth-story .auth-kicker { color: #F4C86F; font-size: .78rem; font-weight: 800; }
.auth-story blockquote { position: relative; z-index: 1; max-width: 560px; padding-left: 18px; border-left: 3px solid #E6A93A; color: #EAF1F5; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }
.auth-panel { display: grid; place-items: center; overflow-y: auto; padding: 34px; }
.auth-panel-inner { width: min(100%, 430px); }
.auth-kicker { margin-bottom: 7px; color: #A7353A; font-size: .76rem; font-weight: 800; }
.auth-panel h2 { color: #173B57; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.auth-helper { margin: 9px 0 25px; color: var(--text-secondary); font-size: .9rem; }
.auth-role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border-bottom: 1px solid #CBD7DD; }
.auth-role-tab { padding: 11px 5px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #647985; font-weight: 700; cursor: pointer; }
.auth-role-tab.active { border-bottom-color: #A7353A; color: #A7353A; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-submit { min-height: 48px; border: 0; border-radius: 10px; background: #A7353A; color: white; font-weight: 800; cursor: pointer; }
.auth-submit:hover { background: #87282D; }
.auth-error { min-height: 20px; color: #B42318; font-size: .78rem; font-weight: 700; }
.auth-join-block { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #D7E1E6; color: #60747F; font-size: .78rem; }
.auth-join-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.auth-secondary,
.auth-provider { min-height: 44px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.auth-secondary { border: 1px solid #A7353A; background: white; color: #A7353A; }
.auth-secondary:hover { background: #FCEEEF; }
.auth-provider { border: 1px solid #173B57; background: #173B57; color: white; }
.auth-provider:hover { background: #0F2B40; }
.auth-back { margin-bottom: 18px; padding: 0; border: 0; background: transparent; color: #526C7A; font-size: .78rem; font-weight: 800; cursor: pointer; }
.auth-back:hover { color: #A7353A; }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.auth-grid-wide { grid-column: 1 / -1; }
.auth-form-grid .form-group { margin: 0; }
.auth-form-grid small { color: #71838C; font-size: .68rem; }
.auth-consent { display: flex; align-items: flex-start; gap: 9px; color: #5E727D; font-size: .74rem; line-height: 1.45; }
.auth-consent input { margin-top: 2px; }
.auth-demo-warning { margin-top: 16px; padding: 11px 13px; border-left: 3px solid #7B96A4; background: #EDF3F5; color: #526975; font-size: .7rem; line-height: 1.5; }
.demo-account-note { display: flex; flex-direction: column; gap: 3px; margin-top: 20px; padding: 13px 15px; border-left: 3px solid #E6A93A; background: #FFF9EC; color: #5E4A22; font-size: .78rem; }

/* Authenticated chrome */
.session-chip { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.session-chip > span:last-child { display: flex; flex-direction: column; }
.session-chip strong { color: white; font-size: .78rem; }
.session-chip small { color: #BFD0DA; font-size: .66rem; }
.session-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E6A93A; color: #173B57; font-size: .72rem; font-weight: 900; }
.privacy-info-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #476371; font-size: .72rem; font-weight: 800; cursor: pointer; }
.privacy-info-button span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #9FB1BA; border-radius: 50%; font-size: .68rem; }
.compact-notice { padding: 10px 14px; }
.compact-notice[hidden] { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Provider workspace */
.provider-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; }
.provider-nav { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid #D7E1E6; background: white; }
.provider-nav-brand { display: flex; align-items: center; gap: 10px; padding: 10px 8px 17px; margin-bottom: 4px; border-bottom: 1px solid #E4EAED; color: #173B57; }
.provider-nav-brand > span { width: 34px; height: 34px; font-size: .7rem; }
.provider-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-left: 3px solid transparent; background: transparent; color: #526975; text-align: left; font-weight: 700; cursor: pointer; }
.provider-nav-item span { width: 18px; color: #78909B; font-size: 1rem; }
.provider-nav-item.active { border-left-color: #A7353A; background: #FCEEEF; color: #8E2C31; }
.provider-content { min-width: 0; }
.provider-page { display: none !important; }
.provider-page.active { display: block !important; }
.provider-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #DCE3E7; }
.provider-page-heading p { color: #6B7D87; font-size: .73rem; }
.provider-page-heading h3 { color: #173B57; font-size: 1.45rem; letter-spacing: -.03em; }
.provider-page-heading > span { color: #667B86; font-size: .78rem; font-weight: 800; }
.verification-pill,
.status-dot-label { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 6px 9px; border-radius: 999px; background: #EAF5EB; color: #37623B; font-size: .7rem; font-weight: 800; }
.verification-pill[data-status="pending"] { background: #FFF4DD; color: #8D5D12; }
.verification-pill[data-status="revision"] { background: #FCEEEF; color: #8D3035; }
.status-dot-label i { width: 7px; height: 7px; border-radius: 50%; background: #3E8A49; box-shadow: 0 0 0 4px rgba(62,138,73,.12); }
.delivery-settings-grid { display: grid; gap: 1px; border: 1px solid #DCE3E7; background: #DCE3E7; }
.delivery-settings-grid article { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 22px; background: white; }
.delivery-settings-grid h4 { color: #173B57; }
.delivery-settings-grid p { margin-top: 3px; color: #6A7C85; font-size: .8rem; }
.setting-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #EDF3F6; color: #173B57; font-weight: 900; }
.switch { position: relative; display: inline-grid; place-items: center; width: 48px; min-height: 44px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { display: block; position: relative; width: 48px; height: 28px; border-radius: 99px; background: #BAC7CD; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + span { background: #47724B; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(230, 169, 58, .65); outline-offset: 3px; }
.text-button { border: 0; background: transparent; color: #A7353A; font-weight: 800; cursor: pointer; }
.provider-profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px; border: 1px solid #DCE3E7; background: white; }
.provider-profile-avatar { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #173B57; color: white; font-weight: 900; }
.provider-profile-card h4 { color: #173B57; font-size: 1.15rem; }
.provider-profile-card p { color: #A7353A; font-size: .8rem; font-weight: 700; }
.provider-profile-card span { display: block; margin-top: 6px; color: #6A7C85; font-size: .76rem; }

/* Desktop admin */
.admin-session .prototype-controller { position: fixed; right: 16px; top: 8px; width: auto; padding: 5px 8px; border: 0; border-radius: 10px; box-shadow: none; background: #173B57; }
.admin-session .controller-brand,
.admin-session #btnToggleDevice,
.admin-session #btnOpenGuide,
.admin-session .reset-btn,
.admin-session .cart-toggle-btn { display: none; }
.admin-session .session-chip { min-width: 0; }
.admin-mode { display: block; min-height: 100vh; padding: 0; }
.admin-mode .app-wrapper { max-width: none; min-height: 100vh; }
.admin-mode .app-body { padding: 0; }
.admin-view { grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: #F2F5F6; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 18px 20px; background: #173B57; color: white; }
.admin-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 42px; padding: 0 8px; }
.admin-brand > span { width: 38px; height: 38px; font-size: .7rem; }
.admin-brand div { display: flex; flex-direction: column; }
.admin-brand strong { font-size: 1rem; }
.admin-brand small { color: #AFC2CC; font-size: .66rem; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.admin-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border: 0; border-left: 3px solid transparent; background: transparent; color: #C5D4DB; text-align: left; font-weight: 700; cursor: pointer; }
.admin-nav-item > span { width: 18px; font-size: 1.05rem; }
.admin-nav-item b { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: #A7353A; color: white; font-size: .68rem; }
.admin-nav-item.active { border-left-color: #E6A93A; background: rgba(255,255,255,.09); color: white; }
.admin-sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.13); }
.admin-sidebar-user > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E6A93A; color: #173B57; font-size: .68rem; font-weight: 900; }
.admin-sidebar-user div { display: flex; flex-direction: column; }
.admin-sidebar-user strong { font-size: .75rem; }
.admin-sidebar-user small { color: #ABC0CA; font-size: .63rem; }
.admin-main { min-width: 0; padding: 0 32px 50px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; border-bottom: 1px solid #D5E0E5; }
.admin-topbar p { color: #70838D; font-size: .7rem; text-transform: capitalize; }
.admin-topbar h2 { color: #173B57; font-size: 1.45rem; letter-spacing: -.03em; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; padding-right: 210px; }
.admin-top-actions > button { padding: 9px 13px; border: 1px solid #CBD7DD; background: white; color: #173B57; font-weight: 800; cursor: pointer; }
.admin-search { display: flex; align-items: center; gap: 8px; width: 250px; padding: 8px 11px; border: 1px solid #CBD7DD; background: white; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #27313A; }
.admin-page { display: none; padding-top: 28px; }
.admin-page.active { display: block; }
.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 24px; border: 1px solid #D8E1E5; background: #D8E1E5; }
.admin-summary article { display: flex; gap: 15px; padding: 21px; background: white; }
.admin-summary article > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #EDF3F6; color: #173B57; font-weight: 900; }
.admin-summary article div { display: flex; flex-direction: column; }
.admin-summary p { color: #70838D; font-size: .7rem; }
.admin-summary strong { color: #173B57; font-size: 1.7rem; line-height: 1.25; }
.admin-summary small { color: #6C7F89; font-size: .67rem; }
.admin-two-column { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
.admin-panel { border: 1px solid #D8E1E5; background: white; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: end; padding: 19px 20px 14px; border-bottom: 1px solid #E1E7EA; }
.admin-panel-head p { color: #7A8B93; font-size: .68rem; }
.admin-panel-head h3 { color: #173B57; font-size: 1rem; }
.admin-panel-head button,
.approval-compact button { border: 0; background: transparent; color: #A7353A; font-size: .74rem; font-weight: 800; cursor: pointer; }
.approval-compact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 20px; border-bottom: 1px solid #E8EDEF; }
.approval-compact:last-child { border-bottom: 0; }
.approval-compact div,
.record-person div { display: flex; flex-direction: column; min-width: 0; }
.approval-compact strong,
.record-person strong { color: #263941; font-size: .78rem; }
.approval-compact small,
.record-person small { overflow: hidden; color: #71838C; font-size: .66rem; text-overflow: ellipsis; }
.record-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #EAF0F3; color: #173B57; font-size: .65rem; font-weight: 900; }
.record-avatar.customer { background: #F7E9EA; color: #8F2C31; }
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; padding: 14px 20px; border-bottom: 1px solid #E8EDEF; }
.activity-item:last-child { border-bottom: 0; }
.activity-item div { display: flex; flex-direction: column; gap: 3px; }
.activity-item strong { color: #344850; font-size: .74rem; font-weight: 700; }
.activity-item small { color: #7B8B92; font-size: .65rem; }
.activity-mark { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #91A2AA; }
.activity-mark.approved { background: #47724B; }
.activity-mark.revision { background: #D28A21; }
.admin-page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-page-intro h3 { color: #173B57; font-size: 1.25rem; }
.admin-page-intro p { margin-top: 4px; color: #6C7F89; font-size: .78rem; }
.admin-filters { display: flex; border-bottom: 1px solid #CBD7DD; }
.admin-filters button { padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #667B86; font-size: .72rem; font-weight: 800; cursor: pointer; }
.admin-filters button.active { border-bottom-color: #A7353A; color: #A7353A; }
.admin-count-label { color: #617680; font-size: .76rem; font-weight: 800; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #D8E1E5; background: white; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 14px; border-bottom: 1px solid #D8E1E5; background: #F7F9FA; color: #687C86; font-size: .66rem; font-weight: 800; }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid #E6ECEF; color: #3E515A; font-size: .73rem; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td > small { display: block; margin-top: 2px; color: #7C8C94; font-size: .63rem; }
.record-person { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.admin-status { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: .64rem; font-weight: 800; }
.admin-status.approved,
.admin-status.active { background: #EAF5EB; color: #37623B; }
.admin-status.pending { background: #FFF4DD; color: #8D5D12; }
.admin-status.revision { background: #FCEEEF; color: #8D3035; }
.admin-status.suspended { background: #E8EDF0; color: #52646D; }
.table-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.table-action { padding: 6px 8px; border: 1px solid #CBD7DD; background: white; color: #425963; font-size: .65rem; font-weight: 800; cursor: pointer; }
.table-action.approve { border-color: #47724B; background: #47724B; color: white; }
.table-action.muted { color: #6B7D86; }
.admin-empty { padding: 30px; color: #71838C; font-size: .8rem; text-align: center; }
.admin-queue-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-queue-summary article { padding: 16px 18px; border: 1px solid #D8E1E5; background: white; }
.admin-queue-summary p { color: #70838D; font-size: .68rem; }
.admin-queue-summary strong { display: block; margin: 2px 0; color: #173B57; font-size: 1.5rem; }
.admin-queue-summary small { color: #6C7F89; font-size: .65rem; }
.admin-operations-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.admin-queue-panel { min-width: 0; }
.admin-queue-panel.overdue { border-top: 3px solid #D28A21; }
.admin-queue-panel.failed { border-top: 3px solid #A7353A; }
.admin-queue-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #E8EDEF; }
.admin-queue-item:last-child { border-bottom: 0; }
.admin-queue-item > div:first-child { min-width: 0; }
.admin-queue-item strong { color: #263941; font-size: .73rem; }
.admin-queue-item small { display: block; margin-top: 2px; color: #71838C; font-size: .62rem; }
.admin-queue-item p { overflow: hidden; margin-top: 4px; color: #52656E; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-queue-item.failed strong { color: #8D3035; }
.admin-orders-heading { margin-top: 4px; }
.customer-notification-history { border-top: 1px solid var(--border-color); margin-top: 16px; padding-top: 12px; }
.customer-notification-history h4 { margin: 0; font-size: .95rem; }
.customer-notification-history > p { color: var(--text-secondary); font-size: .78rem; margin: 5px 0 9px; }
.notification-history-item { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px; margin: 7px 0; padding: 9px; }
.notification-history-item p { font-size: .82rem; margin: 4px 0; }
.notification-history-item small, .notification-empty { color: var(--text-secondary); font-size: .75rem; }
.notification-load-more { margin-top: 8px; }
.admin-order-link { border: 0; padding: 0; background: transparent; color: #A7353A; font: inherit; font-weight: 900; cursor: pointer; text-decoration: underline; }
.admin-order-timeline { margin-top: 22px; border: 1px solid #D8E1E5; background: white; }
.admin-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #D8E1E5; }
.admin-timeline-head p { color: #70838D; font-size: .67rem; }
.admin-timeline-head h3 { color: #173B57; font-size: 1.15rem; }
.admin-timeline-head small { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: #657983; font-size: .67rem; }
.admin-incident-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; padding: 16px 20px; border-bottom: 1px solid #E2E8EB; background: #F7F9FA; }
.admin-incident-card { padding: 14px; border: 1px solid #D8E1E5; background: white; }
.admin-incident-card header { display: flex; justify-content: space-between; gap: 12px; }
.admin-incident-card header div { display: flex; flex-direction: column; }
.admin-incident-card strong { color: #263941; font-size: .76rem; }
.admin-incident-card p { margin: 8px 0; color: #435861; font-size: .7rem; }
.admin-incident-card small { color: #71838C; font-size: .62rem; }
.admin-incident-card .table-actions { flex-wrap: wrap; margin-top: 10px; white-space: normal; }
.admin-timeline-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-timeline-columns > section { min-width: 0; padding: 18px 20px; border-right: 1px solid #E2E8EB; }
.admin-timeline-columns > section:last-child { border-right: 0; }
.admin-timeline-columns h4 { margin-bottom: 10px; color: #173B57; font-size: .8rem; }
.admin-timeline-columns ol { display: grid; gap: 10px; list-style: none; }
.admin-timeline-columns li { padding-left: 10px; border-left: 3px solid #B9C8CF; }
.admin-timeline-columns li.failed { border-left-color: #A7353A; }
.admin-timeline-columns li span,
.admin-timeline-columns li small { display: block; color: #7B8B92; font-size: .6rem; }
.admin-timeline-columns li strong { color: #344850; font-size: .7rem; }
.admin-timeline-columns li p { margin: 2px 0; color: #52656E; font-size: .66rem; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .auth-gate { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { padding: 24px; }
  .provider-shell { grid-template-columns: 1fr; gap: 14px; }
  .provider-nav { position: sticky; top: 62px; z-index: 40; flex-direction: row; overflow-x: auto; padding: 5px; }
  .provider-nav-brand { display: none; }
  .provider-nav-item { flex: 0 0 auto; width: auto; padding: 9px 10px; border-left: 0; border-bottom: 3px solid transparent; }
  .provider-nav-item.active { border-bottom-color: #A7353A; }
  .admin-view { grid-template-columns: 76px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 8px; }
  .admin-brand div,
  .admin-nav-item:not(.active) b,
  .admin-nav-item { font-size: 0; }
  .admin-nav-item > span { font-size: 1.1rem; }
  .admin-nav-item { justify-content: center; }
  .admin-sidebar-user div { display: none; }
  .admin-main { padding-inline: 18px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two-column { grid-template-columns: 1fr; }
  .admin-operations-layout,
  .admin-timeline-columns { grid-template-columns: 1fr; }
  .admin-timeline-columns > section { border-right: 0; border-bottom: 1px solid #E2E8EB; }
  .admin-top-actions { padding-right: 0; }
}

@media (max-width: 620px) {
  .auth-panel { align-items: start; overflow-y: auto; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-grid-wide { grid-column: auto; }
  .provider-profile-card { grid-template-columns: auto 1fr; }
  .provider-profile-card button { grid-column: 1 / -1; }
  .delivery-settings-grid article { grid-template-columns: 38px 1fr; }
  .delivery-settings-grid article > :last-child { grid-column: 2; justify-self: start; }
  .admin-session .prototype-controller { display: none; }
  .admin-view { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 12px; }
  .admin-brand,
  .admin-sidebar-user { display: none; }
  .admin-sidebar nav { flex-direction: row; overflow-x: auto; }
  .admin-nav-item { min-width: 54px; border-left: 0; border-bottom: 3px solid transparent; }
  .admin-nav-item.active { border-bottom-color: #E6A93A; }
  .admin-main { padding: 0 12px 30px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .admin-top-actions { width: 100%; }
  .admin-search { width: 100%; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-queue-summary { grid-template-columns: 1fr; }
  .admin-page-intro { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   Live-Test Trial Components & Accessibility Additions
   ========================================================================== */

.test-notice-pill {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guest-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-bende-yaparim {
  background: #E6A93A;
  color: #173B57;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-bende-yaparim:hover {
  background: #D99826;
  transform: translateY(-1px);
}

.bende-yaparim-banner {
  background: linear-gradient(135deg, #FFF7E5 0%, #FEF3C7 100%);
  border: 1.5px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bende-yaparim-banner h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #92400E;
  margin-bottom: 4px;
}

.bende-yaparim-banner p {
  font-size: 0.82rem;
  color: #78350F;
}

.dish-placeholder-img {
  width: 100%;
  height: 100%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 6px;
}

.dish-placeholder-img span {
  font-size: 2rem;
}

.order-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

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

.pin-reveal-box {
  background: #EFF6FF;
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  margin-top: 10px;
}

.pin-reveal-code {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #1E40AF;
  margin: 4px 0;
}

.order-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-action-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-action-success {
  background: #166534;
  color: white;
}

.btn-action-danger {
  background: #991B1B;
  color: white;
}

.btn-action-secondary {
  background: #E2E8F0;
  color: #334155;
}

.btn-action-sm:hover {
  opacity: 0.9;
}

.pause-banner-active {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meal-availability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.upload-status {
  min-height: 1.2em;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.upload-status.is-error { color: #B91C1C; }
.upload-status.is-success { color: #166534; }

.dish-image-error {
  width: 100%;
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, #FFF7ED, #F8FAFC);
}

@media (max-width: 520px) {
  .meal-availability-grid { grid-template-columns: 1fr; }
}
