/* Client Web App (Mobile-First) - Menudería Yahualica Light & Vibrant Breakfast Theme */
.client-app {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 16px 45px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-primary);
}

/* Brand Header */
.brand-header {
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-container {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border-radius: 24px;
  padding: 4px;
  box-shadow: 
    0 8px 24px rgba(67, 20, 7, 0.12),
    0 0 0 3px var(--accent-orange),
    0 0 20px var(--accent-orange-glow);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-orange-subtle);
  border: 1.5px solid var(--accent-orange-border);
  border-radius: var(--radius-full);
  color: var(--accent-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Service Mode Switcher Tabs */
.service-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f0e9df;
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  margin-bottom: 22px;
}

.service-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

.service-tab-btn.active {
  background: #ffffff;
  color: var(--accent-orange-dark);
  border: 1px solid var(--accent-orange-border);
  box-shadow: 0 3px 10px rgba(67, 20, 7, 0.08);
}

/* Form Styles */
.form-card {
  padding: 26px 22px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.35s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent-orange);
  margin-left: 4px;
}

.form-label .optional {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
}

.input-text,
.input-textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fcfbf9;
  border: 1.5px solid #dcd3c7;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.input-text:focus,
.input-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
  background: #ffffff;
}

.input-textarea {
  resize: vertical;
  min-height: 75px;
}

/* Privacy Checkbox Container */
.privacy-group {
  background: #fffaf4;
  border: 1.5px solid var(--accent-orange-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
}

.checkbox-label {
  display: flex;
  flex-direction: column;
}

.checkbox-label strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.checkbox-label small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Date & Time Slot Selectors for Reservations */
.date-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.date-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: #faf7f2;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-fast);
}

.date-chip strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.date-chip:hover {
  border-color: var(--accent-orange);
  background: #ffffff;
}

.date-chip.active {
  background: var(--accent-orange-subtle);
  border-color: var(--accent-orange);
  color: var(--accent-orange-dark);
}
.date-chip.active strong {
  color: var(--accent-orange-dark);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot-btn {
  padding: 10px 6px;
  background: #faf7f2;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.time-slot-btn:hover {
  border-color: var(--accent-orange);
  background: #ffffff;
}

.time-slot-btn.active {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  border-color: var(--accent-orange-dark);
  box-shadow: 0 3px 10px var(--accent-orange-glow);
}

/* Party Size Selector */
.party-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.party-btn {
  padding: 12px 6px;
  background: #faf7f2;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.party-btn span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.party-btn:hover {
  border-color: var(--accent-orange);
  background: #ffffff;
}

.party-btn.active {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: #ffffff;
  border-color: var(--accent-orange-dark);
  box-shadow: 0 4px 12px var(--accent-orange-glow);
}
.party-btn.active span {
  color: #ffffff;
  opacity: 0.9;
}

/* Chips Grid */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #faf7f2;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  font-weight: 600;
}

.chip:hover {
  background: #ffffff;
  border-color: var(--accent-orange);
  color: var(--text-main);
}

.chip.active {
  background: var(--accent-orange-subtle);
  border-color: var(--accent-orange);
  color: var(--accent-orange-dark);
  font-weight: 800;
}

.chip-allergy.active {
  background: #fef2f2;
  border-color: var(--accent-rose);
  color: #b91c1c;
}

/* Submit Button */
.btn-submit-queue {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Digital Ticket & Reservation Confirmation */
.ticket-screen {
  animation: fadeIn 0.4s ease;
}

.ticket-card {
  background: #ffffff;
  border: 2px solid var(--accent-orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(67, 20, 7, 0.14), 0 0 25px var(--accent-orange-glow);
  position: relative;
}

.ticket-header {
  padding: 26px 20px 22px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-orange-subtle) 0%, #ffffff 100%);
  border-bottom: 1.5px dashed var(--border-card);
  position: relative;
}

.ticket-number-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange-dark);
  margin-bottom: 4px;
}

.ticket-number {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 6px 0;
  text-shadow: 0 2px 10px var(--accent-orange-glow);
}

.ticket-guest-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.ticket-status-bar {
  padding: 14px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-waiting {
  background: #fefce8;
  color: #b45309;
  border-bottom: 1.5px solid #fde68a;
}

.status-confirmed-res {
  background: #eff6ff;
  color: #1e40af;
  border-bottom: 1.5px solid #bfdbfe;
}

.status-called {
  background: #f0fdf4;
  color: #15803d;
  border-bottom: 1.5px solid #86efac;
  box-shadow: 0 0 20px var(--color-success-glow);
  animation: pulseGlowSuccess 1.5s infinite alternate;
}

@keyframes pulseGlowSuccess {
  from { box-shadow: 0 0 8px rgba(22, 163, 74, 0.2); }
  to { box-shadow: 0 0 24px rgba(var(--accent-orange-rgb), 0.35), 0 0 12px rgba(22, 163, 74, 0.4); }
}

.ticket-body {
  padding: 24px 20px;
}

.live-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-box {
  background: #faf7f2;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1.5px solid var(--border-card);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-orange-dark);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.called-hero-box {
  background: linear-gradient(135deg, var(--accent-orange-subtle) 0%, #ffffff 100%);
  border: 2.5px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}

.called-table-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.called-table-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-orange);
  margin: 4px 0 8px;
}

.called-instruction {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.ticket-details-list {
  background: #faf7f2;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  border: 1.5px solid var(--border-card);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  color: var(--text-secondary);
}
.detail-value {
  font-weight: 800;
  color: var(--text-main);
  text-align: right;
}

.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cancel-ticket {
  background: #ffffff;
  color: var(--text-muted);
  border: 1.5px solid var(--border-card);
  font-size: 0.85rem;
  padding: 10px;
}
.btn-cancel-ticket:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.footer-note {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Client Daily Menu Section */
.client-daily-menu-section {
  margin-top: 20px;
}

.client-menu-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--accent-orange);
}

.client-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.client-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-menu-title h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.client-menu-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-orange-dark);
  background: var(--accent-orange-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-orange-border);
}

.client-menu-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.35;
}

.client-dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-dish-card {
  background: #faf7f2;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.client-dish-card.dish-avail {
  border-color: #bbf7d0;
  background: #ffffff;
}

.client-dish-card.dish-soldout {
  border-color: #fecaca;
  background: #fef2f2;
  opacity: 0.6;
}

.client-dish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.client-dish-category {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-dish-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-orange-dark);
}

.client-dish-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.client-dish-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.dish-strike {
  text-decoration: line-through;
  color: var(--text-muted) !important;
}

.client-dish-badge-row {
  margin-top: auto;
}

.badge-avail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #86efac;
}

.badge-soldout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   GOOGLE REVIEW MODAL & NOTIFICATION STYLES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.modal-overlay.open {
  display: flex !important;
}

.review-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(249, 115, 22, 0.15);
  overflow: hidden;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid var(--accent-orange-border);
}

@keyframes modalPop {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0 20px;
}

.review-logo-box {
  width: 130px;
  height: 48px;
  display: flex;
  align-items: center;
}

.btn-close-modal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.review-modal-body {
  padding: 12px 24px 24px 24px;
  text-align: center;
}

.review-celebration-emoji {
  font-size: 2.2rem;
  margin-bottom: 6px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.review-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 900;
  color: #1e3a8a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.review-subtitle {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 18px;
}

.review-stars-box {
  background: #fffbf5;
  border: 1.5px solid var(--accent-orange-border);
  border-radius: 16px;
  padding: 14px 12px;
  margin-bottom: 20px;
}

.review-stars-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7c2d12;
  margin-bottom: 8px;
}

.review-stars-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0 2px;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.review-feedback-text {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-google-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-google-review:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.google-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.review-floating-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 440px;
  width: calc(100% - 32px);
  background: #1e293b;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 9000;
  animation: slideUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpToast {
  0% { transform: translate(-50%, 30px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-text strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.toast-text small {
  font-size: 0.74rem;
  color: #94a3b8;
}

.toast-btn {
  background: #f59e0b;
  color: #78350f;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.toast-btn:hover {
  background: #fbbf24;
  transform: scale(1.04);
}

.status-completed {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
  font-weight: 900 !important;
  letter-spacing: 0.04em;
}

.review-ticket-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 2px solid #bfdbfe !important;
  text-align: center;
  padding: 18px 16px !important;
}

