@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette - Premium Warm/Amber Theme */
  --bg-main: hsl(222, 24%, 7%);
  --bg-card: hsla(222, 24%, 16%, 0.95);
  --bg-card-hover: hsla(222, 24%, 21%, 0.95);
  --border-color: hsla(222, 20%, 25%, 0.4);
  --border-focus: hsl(35, 100%, 55%);
  
  --text-main: hsl(0, 0%, 95%);
  --text-muted: hsl(215, 15%, 65%);
  --text-muted-dark: hsl(215, 15%, 45%);
  
  /* Accent Colors */
  --accent: hsl(38, 92%, 50%); /* Amber Gold */
  --accent-rgb: 242, 153, 12;
  --accent-light: hsl(38, 95%, 65%);
  --success: hsl(142, 70%, 45%); /* Emerald */
  --success-bg: hsla(142, 70%, 45%, 0.15);
  --info: hsl(200, 95%, 50%); /* Ocean blue */
  --danger: hsl(350, 80%, 55%); /* Crimson Red */
  
  /* Layout Dimensions */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  font-family: 'Inter', sans-serif;
}

/* Base resets and scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ecosystem Switcher Bar (Shell Header) */
.shell-header {
  background: linear-gradient(180, hsla(222, 24%, 5%, 0.95) 0%, hsla(222, 24%, 7%, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.shell-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shell-nav {
  display: flex;
  background: hsla(222, 24%, 3%, 0.6);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.shell-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.shell-btn:hover {
  color: var(--text-main);
}

.shell-btn.active {
  background: var(--accent);
  color: var(--bg-main);
  box-shadow: 0 4px 15px rgba(242, 153, 12, 0.4);
}

/* App Main Container Layout */
.app-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 1.5rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.view-panel {
  display: none;
  width: 100%;
}

.view-panel.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

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

/* Phone Mockup Frame for Mobile Views (Client and Waiter) */
.phone-mockup {
  width: 410px;
  height: 840px;
  background: #090d16;
  border: 12px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255,255,255,0.05);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Notch & Status Bar Simulation */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: #1e293b;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.phone-notch::before {
  content: '';
  width: 50px;
  height: 4px;
  background: #0f172a;
  border-radius: 2px;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 25px; /* Leave space for notch */
  position: relative;
}

/* Generic Desktop View Container */
.desktop-view-container {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.desktop-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: 720px;
}

/* ==========================================================================
   CLIENT MOBILE VIEW STYLES
   ========================================================================== */
.client-header {
  background: hsla(222, 24%, 5%, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.restaurant-info {
  display: flex;
  align-items: center;
}

.restaurant-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.header-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.settings-mini-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  height: 38px;
  width: 95px;
  box-sizing: border-box;
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-mini-btn:hover {
  background: var(--border-color);
}

.category-trigger-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg-main);
  padding: 8px 14px;
  height: 38px;
  width: 95px;
  box-sizing: border-box;
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.2s ease;
}

.category-trigger-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.lang-btn, .currency-btn {
  flex: 1;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Horizontal category anchors removed */

/* Menu scrolling section */
.menu-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 80px; /* Spacer for fixed bottom cart */
}

.category-group-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  letter-spacing: 0.5px;
}

/* Dish Cards */
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.dish-card.disabled {
  opacity: 0.4;
  filter: grayscale(80%);
}

.dish-image-wrapper {
  position: relative;
  width: 100%;
  height: 170px;
  background: #1e293b;
  overflow: hidden;
}

.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Badges */
.dish-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: #fff;
}

.badge-new { background: var(--info); }
.badge-day { background: var(--accent); color: var(--bg-main); }
.badge-discount { background: var(--danger); }

.dish-card-body {
  padding: 1.25rem;
}

.dish-title-row {
  margin-bottom: 1.25rem;
}

.dish-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.tts-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}

.tts-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.tts-btn:active {
  transform: scale(0.95);
}

.dish-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.ingredient-tag {
  background: hsla(222, 20%, 20%, 0.5);
  border: 1px solid hsla(222, 20%, 30%, 0.3);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
}

.dish-meta {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted-dark);
  margin-bottom: 0.75rem;
}

.dish-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-local {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-converted {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
}

.add-to-cart-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-val {
  font-size: 0.8rem;
  font-weight: 700;
  width: 22px;
  text-align: center;
}

.cart-checkbox {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.cart-checkbox.selected {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.client-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(222, 24%, 5%, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
  z-index: 100;
  box-sizing: border-box;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--bg-main);
  border: none;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 153, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.checkout-btn:disabled {
  background: var(--border-color);
  color: var(--text-muted-dark);
  box-shadow: none;
  cursor: not-allowed;
}

.order-locked-banner {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 500;
}

/* Custom Guest translation request box */
.custom-request-box {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 8px;
  margin-top: 8px;
}

.custom-request-box p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.request-input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.75rem;
}

.request-send-btn {
  background: var(--accent);
  color: var(--bg-main);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Modals for Client Panel (Language / Currency select) */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-content {
  background: #222d45; /* Lighter solid background, no transparency for high readability */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  width: 100%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

#settings-modal .modal-content {
  height: 85%;
  max-height: 90%;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2.5rem; /* Increased distance below title/close button */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 2.2rem; /* Increased size by 1.5x */
  margin-right: 18px; /* Shifted left to align with the inputs border line */
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--danger);
}

.search-input {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  width: 100%;
}

.list-options {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.option-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
}

.option-item:hover {
  border-color: var(--accent);
  background: hsla(38, 92%, 50%, 0.1);
}

.option-item.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-main);
  font-weight: bold;
}

/* Cookie History logs */
.client-history-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 101;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
}

/* ==========================================================================
   KITCHEN PANEL STYLES
   ========================================================================== */
.kitchen-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.kitchen-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.kitchen-order-card.ready {
  border-color: var(--success);
  box-shadow: 0 0 15px hsla(142, 70%, 45%, 0.2);
}

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

.k-table-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.k-waiter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.k-time {
  font-size: 0.7rem;
  color: var(--text-muted-dark);
}

.k-item-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.k-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.k-item-qty {
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}

.k-item-name {
  flex: 1;
}

.k-item-requests {
  font-size: 0.75rem;
  color: var(--danger);
  background: hsla(350, 80%, 55%, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.k-action-btn {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.k-action-btn.is-ready {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   WAITER VIEW STYLES
   ========================================================================== */
.waiter-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.waiter-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waiter-alert-card {
  background: var(--success-bg);
  border: 1px solid var(--success);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.waiter-alert-text {
  font-size: 0.8rem;
  font-weight: 600;
}

.waiter-alert-dismiss {
  background: var(--success);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
}

.waiter-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.waiter-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.waiter-table-card.active {
  border-color: var(--accent);
  background: hsla(38, 92%, 50%, 0.05);
}

.waiter-table-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.waiter-table-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-sidebar {
  width: 250px;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.admin-nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.admin-nav-item.active {
  background: hsla(38, 92%, 50%, 0.15);
  color: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.admin-main-section {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  height: 720px;
}

/* Category Manager UI */
.cat-manager-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cat-presets-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  cursor: pointer;
}

.preset-chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.admin-category-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dish CRUD Form styling */
.admin-form-group {
  margin-bottom: 1rem;
}

.admin-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 15px 18px; /* Doubled height padding */
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: hsla(222, 24%, 10%, 0.8);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.badge-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.badge-option {
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  background: var(--bg-card);
}

.badge-option.selected {
  border-color: var(--accent);
  background: hsla(38, 92%, 50%, 0.1);
  color: var(--accent-light);
}

/* Translation Override editor inside dish editor */
.translation-overrides-container {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  background: hsla(222, 24%, 5%, 0.5);
  margin-bottom: 1rem;
}

#admin-dishes-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

/* Admin Dish Grid List */
.admin-dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* QR Code Display Grid */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 8px;
  padding: 10px;
}

/* ==========================================================================
   DESKTOP SYNCHRONIZATION VIEWER
   ========================================================================== */
.sync-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sync-status-banner {
  background: hsla(200, 95%, 50%, 0.1);
  border: 1px solid var(--info);
  color: var(--info);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sync-log-container {
  flex: 1;
  background: hsla(222, 24%, 3%, 0.7);
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--success);
  padding: 1rem;
  margin: 0 1.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sync-table-container {
  padding: 0 1.5rem 1.5rem 1.5rem;
  overflow-x: auto;
}

.sync-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.sync-table th, .sync-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.sync-table th {
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   DISH REVIEWS SLIDE & GESTURES
   ========================================================================== */
.dish-reviews-slide {
  position: absolute;
  top: 25px; /* Leave space for notch */
  bottom: 0;
  left: 100%;
  width: 100%;
  background: var(--bg-main);
  z-index: 450;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dish-reviews-slide.active {
  transform: translateX(-100%);
}

.menu-scroll-container.scroll-locked {
  overflow-y: hidden !important;
}

/* Review Cards styling */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.review-author {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-light);
}

.review-rating {
  font-size: 0.7rem;
}

.review-text {
  font-size: 0.75rem;
  color: var(--text-main);
  line-height: 1.3;
}

.review-date {
  font-size: 0.65rem;
  color: var(--text-muted-dark);
  text-align: right;
}

.dish-reviews-badge-rect {
  transition: all 0.2s ease;
}

.dish-reviews-badge-rect:hover {
  background: rgba(242, 153, 12, 0.1) !important;
  border-color: var(--accent) !important;
}

.dish-reviews-badge-rect:active {
  transform: scale(0.96);
}

.cart-rect-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--bg-card-hover) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
  color: var(--text-main) !important;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cart-rect-btn:hover:not(:disabled) {
  background: rgba(242, 153, 12, 0.1) !important;
  border-color: var(--accent) !important;
  color: var(--text-main) !important;
}

.cart-rect-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.cart-rect-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.swipe-indicator-hint {
  font-size: 0.6rem;
  color: var(--text-muted-dark);
  margin-top: 2px;
}

/* Categories Modal Items List - Taller with Solid Opaque Background for easy tapping */
.category-modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px; /* Increased vertical padding to make it a taller tap target */
  background: #1a2236; /* Solid opaque color, no transparency */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; /* Slightly larger text for readability */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px; /* Increased spacing between items to prevent misclicks */
}

.category-modal-item:hover {
  background: var(--border-color);
  border-color: var(--accent);
  color: var(--accent);
}

.category-modal-item:active {
  transform: scale(0.98);
}

/* Custom Select Search-and-Select Dropdown styling */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 18px 20px; /* 1.7x taller padding */
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  min-height: 62px; /* Ensure 1.7x height */
  box-sizing: border-box;
}

.custom-select-trigger::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.custom-select-container.open .custom-select-trigger::after {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #161e30; /* Solid opaque color, slightly darker than modal background for depth */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  z-index: 600;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  max-height: 250px;
  overflow: hidden;
}

.custom-select-container.open .custom-select-dropdown {
  display: flex;
}

.custom-select-search {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 18px;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.custom-select-options {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 190px;
}

.custom-select-option {
  padding: 14px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.custom-select-option:hover {
  background: var(--border-color);
  color: var(--accent);
}

.custom-select-option.selected {
  background: rgba(242, 153, 12, 0.15);
  color: var(--accent-light);
  font-weight: 700;
}

/* Custom tall inputs for Want and Exclude fields */
.custom-input-tall {
  width: 100%;
  font-size: 0.9rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 18px 20px; /* 1.7x taller padding */
  border-radius: var(--border-radius-md);
  box-sizing: border-box;
  min-height: 62px; /* Ensure 1.7x height */
  outline: none;
  transition: border-color 0.2s ease;
}
.custom-input-tall:focus {
  border-color: var(--accent);
}

.reviews-btn-large {
  transition: all 0.2s ease;
}
.reviews-btn-large:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Photo Uploader Style */
.photo-tab-btn {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
}

.photo-tab-btn:hover:not(.disabled) {
  border-color: var(--accent) !important;
  color: var(--text-main) !important;
  background: var(--bg-card-hover) !important;
}

.photo-tab-btn.active {
  background: var(--accent) !important;
  color: var(--bg-main) !important;
  border-color: var(--accent) !important;
}

.photo-tab-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Audio Buttons Style */
.audio-action-btn {
  transition: var(--transition-smooth);
}

.audio-action-btn:hover:not(.disabled) {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--bg-card-hover) !important;
}

.audio-action-btn:active:not(.disabled) {
  transform: scale(0.96);
}

.audio-action-btn.recording {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Ingredients Editor Grid System */
.ingredients-table-header {
  display: grid;
  grid-template-columns: 40px 1.5fr 1fr 1fr 40px;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  box-sizing: border-box;
}

.ingredient-row {
  display: grid;
  grid-template-columns: 40px 1.5fr 1fr 1fr 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  box-sizing: border-box;
}

/* Responsive layouts for admin panels (Activated on tablets and narrow screens) */
@media (max-width: 1024px) {
  .admin-form-grid {
    grid-template-columns: 1fr !important;
  }
  #dish-form-overlay {
    padding: 1rem !important;
  }

  .desktop-header {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .desktop-header div {
    width: 100%;
    justify-content: space-between;
  }

  .desktop-content {
    flex-direction: column !important;
    height: auto !important;
  }

  .admin-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.5rem !important;
    box-sizing: border-box;
  }

  .admin-nav-item {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0;
  }

  .admin-main-section {
    padding: 1rem !important;
    height: auto !important;
    overflow-y: visible !important;
  }
}

/* Ecosystem Switcher (Shell Header) responsiveness */
@media (max-width: 768px) {
  .shell-header {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0.75rem 1rem !important;
    align-items: center !important;
  }
  .shell-logo {
    font-size: 1.25rem !important;
  }
  .shell-nav {
    width: 100% !important;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start !important;
    border-radius: 12px !important;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
  }
  .shell-nav::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbars */
  }
  .shell-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }

  /* Fullscreen mobile view overrides for phone mockup frames */
  .app-container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .phone-mockup {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  
  .phone-notch {
    display: none !important;
  }
  
  .phone-screen {
    padding-top: 0 !important;
  }

  .desktop-view-container {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .restaurant-title {
    max-width: 220px !important;
  }
}

/* Ultra-mobile responsive layout for ingredients editor */
@media (max-width: 500px) {
  .ingredients-table-header {
    display: none !important;
  }

  #ingredients-table-container {
    border-top: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
  }

  .ingredient-row {
    display: grid !important;
    grid-template-columns: 30px 1fr 1fr 40px !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 8px !important;
  }

  .ingredient-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0 !important;
  }

  .ingredient-row div:first-child {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 3 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ingredient-row .ing-name {
    grid-column: 2 / 4 !important;
    grid-row: 1 / 2 !important;
  }

  .ingredient-row .ing-weight {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
  }

  .ingredient-row .ing-calories {
    grid-column: 3 / 4 !important;
    grid-row: 2 / 3 !important;
  }

  .ingredient-row .delete-ing-row-btn {
    grid-column: 4 / 5 !important;
    grid-row: 1 / 3 !important;
    height: 100% !important;
  }
}

/* ==========================================
   PUBLIC FOOD BLOG & REVIEWS VIEW PANEL
   ========================================== */
.blog-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}

.blog-card-image-container {
  width: 160px;
  min-width: 160px;
  background: #1e293b;
  position: relative;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-info {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-card-author-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.verified-badge {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-dish-restaurant {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-card-dish-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.blog-card-restaurant {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-restaurant strong {
  color: var(--text-main);
}

.blog-card-rating {
  color: var(--accent);
  font-size: 0.95rem;
}

.blog-card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
  font-style: italic;
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Mobile responsive adjustments for blog card */
@media (max-width: 600px) {
  .blog-card {
    flex-direction: column;
  }
  
  .blog-card-image-container {
    width: 100%;
    height: 180px;
  }
}

/* --- Card Action Buttons --- */
.blog-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 0.5rem;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

.blog-action-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

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

.blog-action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-main);
}

.blog-action-btn.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg-main);
  box-shadow: 0 4px 12px rgba(242, 153, 12, 0.25);
}

/* --- Author Profile Card in Modal --- */
.author-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
}

.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-main);
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.author-profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.author-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-light);
}

.author-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Author reviews list */
.author-reviews-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-review-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
}

.author-review-card:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.01);
}

.author-review-dish {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-review-restaurant {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.author-review-text {
  font-size: 0.75rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-main);
  margin-top: 4px;
}

/* --- Toast Notifications --- */
.toast {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--success);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* --- Shared Review Deep-Link Highlight --- */
.blog-card.highlight-glow {
  animation: glowEffect 2.5s ease-out;
}

@keyframes glowEffect {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 153, 12, 0.8);
    border-color: var(--accent);
  }
  30% {
    box-shadow: 0 0 25px 5px rgba(242, 153, 12, 0.9);
    border-color: var(--accent-light);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--border-color);
  }
}


/* --- Social Login Buttons --- */
.social-login-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.social-login-btn.google {
  background: #ea4335;
  box-shadow: 0 4px 10px rgba(234, 67, 53, 0.2);
}
.social-login-btn.google:hover {
  background: #f06356;
}

.social-login-btn.apple {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.social-login-btn.apple:hover {
  background: #222222;
}

.social-login-btn.telegram {
  background: #24a1de;
  box-shadow: 0 4px 10px rgba(36, 161, 222, 0.2);
}
.social-login-btn.telegram:hover {
  background: #46b3e6;
}

/* --- Interactive Star Input --- */
.star-rating-input .star-btn {
  transition: transform 0.2s ease, color 0.2s ease;
}
.star-rating-input .star-btn:hover {
  transform: scale(1.25);
}
.star-rating-input .star-btn.active {
  color: var(--accent);
}

/* --- Photo Presets Selector --- */
.food-preset-btn {
  transition: var(--transition-smooth);
  position: relative;
}
.food-preset-btn:hover {
  transform: scale(1.08);
}
.food-preset-btn.active::after {
  content: '✓';
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--success);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ==========================================================================
   MAP VIEW & SEARCH RADIUS STYLES
   ========================================================================== */
#blog-leaflet-map {
  z-index: 10;
}

/* Custom dark styling for Leaflet elements */
.leaflet-container {
  background: var(--bg-main) !important;
  font-family: 'Inter', sans-serif !important;
}

.leaflet-bar {
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
}

.leaflet-bar a {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.leaflet-bar a:hover {
  background-color: var(--accent) !important;
  color: var(--bg-main) !important;
}

.leaflet-bar a.leaflet-disabled {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-muted-dark) !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--shadow-premium) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-content h3 {
  margin: 0 0 6px 0 !important;
  color: var(--accent-light) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.leaflet-popup-content p {
  margin: 0 !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

/* Custom styles for Leaflet attribution */
.leaflet-container .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: var(--text-muted-dark) !important;
  font-size: 0.6rem !important;
}

.leaflet-container .leaflet-control-attribution a {
  color: var(--accent-light) !important;
}

/* Customized range input slider matching gold accent */
#blog-radius-slider {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 6px;
  outline: none;
}

#blog-radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--accent);
  border: 2px solid var(--bg-main);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#blog-radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-light);
}

#blog-radius-slider::-moz-range-thumb {
  background: var(--accent);
  border: 2px solid var(--bg-main);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#blog-radius-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-light);
}

/* ==========================================================================
   ADVANCED FILTER CHIPS & VALIDATION STYLES
   ========================================================================== */
.blog-tag-chip {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.blog-tag-chip.want {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  color: var(--success-light);
}

.blog-tag-chip.exclude {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

.blog-tag-chip span {
  cursor: pointer;
  font-weight: 800;
  color: inherit;
  transition: opacity 0.15s ease;
}

.blog-tag-chip span:hover {
  opacity: 0.7;
}

.blog-tag-input {
  transition: var(--transition-smooth);
}

.blog-tag-input:focus {
  border-color: var(--accent) !important;
  background: rgba(255,255,255,0.01) !important;
}

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important;
  animation: shakeError 0.35s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.custom-select-option.cuisine-group-header {
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  padding: 8px 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid var(--border-color) !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Customized range input slider matching gold accent for calories */
#blog-calories-slider {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 6px;
  outline: none;
}

#blog-calories-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--accent);
  border: 2px solid var(--bg-main);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#blog-calories-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-light);
}

#blog-calories-slider::-moz-range-thumb {
  background: var(--accent);
  border: 2px solid var(--bg-main);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#blog-calories-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-light);
}







