:root {
  --bg: #f5f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --border: #e2e8f0;
}

/* Ensure Bootstrap modals work properly - CRITICAL FIX */
.modal {
  z-index: 1055 !important;
}
.modal.show {
  display: block !important;
}
.modal-backdrop {
  z-index: 1050 !important;
}
.modal-backdrop.show {
  opacity: 0.5;
}
.modal-dialog {
  z-index: 1060 !important;
  pointer-events: auto !important;
}
.modal-content {
  pointer-events: auto !important;
  background-color: #fff !important;
  position: relative;
  z-index: 1061 !important;
}
.modal-header,
.modal-body,
.modal-footer {
  pointer-events: auto !important;
  background-color: #fff !important;
  position: relative;
  z-index: 1062 !important;
}
.modal-header {
  border-bottom: 1px solid #dee2e6;
}
.modal-header .modal-title {
  color: #212529 !important;
}
.modal-header .btn-close {
  pointer-events: auto !important;
  z-index: 1063 !important;
}
.modal-footer {
  border-top: 1px solid #dee2e6;
}
.modal-footer .btn {
  pointer-events: auto !important;
  z-index: 1063 !important;
  cursor: pointer !important;
}
.modal-body input,
.modal-body select,
.modal-body textarea,
.modal-body button {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  background-color: #fff !important;
  color: #212529 !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1063 !important;
  cursor: text !important;
}
.modal-body button {
  cursor: pointer !important;
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}
.modal-body .form-control {
  background-color: #fff !important;
  color: #212529 !important;
}
.modal-body .form-control::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
.modal-body .form-label {
  color: #212529 !important;
}
.modal-body .form-text {
  color: #6c757d !important;
}
.modal-body p.text-muted {
  color: #6c757d !important;
}
.modal-body .mb-3 {
  position: relative;
  z-index: 1063 !important;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  margin-bottom: 60px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, #dbeafe, transparent 40%),
    radial-gradient(circle at top left, #ccfbf1, transparent 40%),
    var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Respect iOS notch safe areas */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

* {
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.app-shell {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.navbar {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(6px);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.main-nav {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.admin-nav-strip {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.admin-nav-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  margin-right: 0.25rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.nav-link {
  border-radius: 8px;
  padding: 0.45rem 0.75rem !important;
  font-weight: 500;
}

.nav-link:hover {
  background: #ecfeff;
}

.section-card,
.card,
.table-responsive {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.section-card:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.product-card img {
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.table-responsive {
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: #334155;
  font-weight: 600;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-success {
  background: #15803d;
  border-color: #15803d;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #cbd5e1;
}

.btn {
  border-radius: 10px;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.2);
  border-color: #14b8a6;
}

.hero {
  padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #155e75);
  color: #fff;
}

.hero .lead {
  color: #cffafe;
}

.chip-list .badge {
  font-size: 0.78rem;
  padding: 0.45rem 0.6rem;
}

.kitchen-feed {
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  background: #f8fafc;
}

.feed-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
  animation: fadeSlideIn 260ms ease;
}

.chat-container {
  height: 420px;
  overflow-y: auto;
  padding: 14px;
  background: #ece5dd;
  border-radius: 12px;
  border: 1px solid #d4d4d4;
}

.message {
  max-width: 74%;
  padding: 10px 12px;
  margin: 7px 0;
  border-radius: 12px;
}

.message audio {
  width: 100%;
  max-width: 260px;
}

.tick {
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.customer {
  background: #dcf8c6;
  margin-left: auto;
}

.admin {
  background: #fff;
  margin-right: auto;
}

.status-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ecfeff;
  color: #155e75;
}

.customer-hero {
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: #fff;
  background: linear-gradient(130deg, #0f766e, #0f5d93);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.2);
}

.stat-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.stat-label {
  color: #64748b;
  font-size: 0.86rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f172a;
}

/* Role dashboard hero */
.role-hero {
  position: relative;
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

.role-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.25), transparent 55%),
              radial-gradient(circle at 10% 110%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.role-hero > * { position: relative; z-index: 1; }

.role-hero h2 { font-weight: 700; letter-spacing: 0.2px; }

.role-hero .hero-sub { color: rgba(255, 255, 255, 0.88); margin-bottom: 0; }

.role-hero .hero-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  backdrop-filter: blur(4px);
}

.role-hero.hero-customer { background: linear-gradient(130deg, #0f766e, #0369a1); }
.role-hero.hero-vendor   { background: linear-gradient(130deg, #b45309, #7c2d12); }
.role-hero.hero-rider    { background: linear-gradient(130deg, #1d4ed8, #0ea5e9); }
.role-hero.hero-admin    { background: linear-gradient(130deg, #4338ca, #0f172a); }

/* Metric card (icon + label + value + delta) */
.metric-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 96px;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.metric-icon.bg-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.metric-icon.bg-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.metric-icon.bg-amber  { background: linear-gradient(135deg, #f59e0b, #b45309); }
.metric-icon.bg-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.metric-icon.bg-rose   { background: linear-gradient(135deg, #f43f5e, #be123c); }
.metric-icon.bg-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.metric-label {
  color: #64748b;
  font-size: 0.82rem;
  margin: 0 0 0.15rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
}

.metric-delta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.1rem;
}

/* Semantic status pills */
.status-pill.pill-success { background: #dcfce7; color: #166534; }
.status-pill.pill-warn    { background: #fef3c7; color: #92400e; }
.status-pill.pill-danger  { background: #fee2e2; color: #991b1b; }
.status-pill.pill-info    { background: #dbeafe; color: #1e40af; }
.status-pill.pill-neutral { background: #e2e8f0; color: #334155; }

/* Quick action card */
.quick-action-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.quick-action-card .qa-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfeff;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Empty state */
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.empty-state .es-icon {
  font-size: 28px;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

/* Data table polish */
.dashboard-table thead th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  color: #475569;
}

.dashboard-table tbody tr {
  transition: background-color 0.15s ease;
}

.dashboard-table tbody tr:hover {
  background: #f8fafc;
}

.customer-action-card h5 {
  font-weight: 700;
}

.dashboard-last-order hr {
  margin: 0.8rem 0 0.95rem;
}

.toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-toast {
  min-width: 260px;
  max-width: 360px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
  animation: fadeSlideIn 260ms ease;
}

.app-toast.success {
  border-left-color: #16a34a;
}

.app-toast.warn {
  border-left-color: #f59e0b;
}

.app-toast.info {
  border-left-color: #0284c7;
}

.skeleton {
  display: block;
  height: 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f1f5f9 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}

/* =====================================================
   MOBILE-FIRST RESPONSIVE LAYOUT
   ===================================================== */

/* Horizontally scrollable admin nav on small screens */
.admin-nav-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.admin-nav-scroll::-webkit-scrollbar { height: 4px; }
.admin-nav-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.admin-nav-scroll .btn { flex-shrink: 0; }
.admin-nav-scroll .admin-nav-title { flex-shrink: 0; }

/* Bottom Nav Bar (mobile only) */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav .mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.5rem 0.25rem;
  min-height: 58px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.mobile-bottom-nav .mbn-item .mbn-icon { font-size: 20px; line-height: 1; }
.mobile-bottom-nav .mbn-item .mbn-label { letter-spacing: 0.2px; }
.mobile-bottom-nav .mbn-item.active { color: var(--primary); }
.mobile-bottom-nav .mbn-item.active .mbn-icon { transform: translateY(-1px); }
.mobile-bottom-nav .mbn-item:active { background: #f1f5f9; }

/* When mobile bottom nav is visible, push footer up */
@media (max-width: 767.98px) {
  body { padding-bottom: 64px; margin-bottom: 0; }
  .footer { padding-bottom: 70px !important; }
  .toast-wrap { bottom: 74px; }

  /* Tighter app-shell padding on phones */
  .app-shell { padding-top: 0.5rem; padding-bottom: 1rem; }
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Navbar compact on phones */
  .navbar { border-radius: 12px; padding: 0.4rem 0.6rem; }
  .navbar-brand { font-size: 1rem; }
  .brand-logo { width: 28px; height: 28px; border-radius: 8px; }

  /* Hero shrinks on phones */
  .role-hero { padding: 1rem 1.1rem; border-radius: 14px; }
  .role-hero h2 { font-size: 1.25rem; }
  .role-hero .hero-sub { font-size: 0.86rem; }
  .role-hero .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.55rem; }
  .customer-hero { padding: 1rem 1.1rem; }

  /* Metric card tuned for phone */
  .metric-card { padding: 0.75rem; min-height: 80px; gap: 0.65rem; }
  .metric-card .metric-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
  .metric-value { font-size: 1.15rem; }
  .metric-label { font-size: 0.7rem; }
  .metric-delta { font-size: 0.7rem; }

  /* Section cards tighter */
  .section-card { border-radius: 12px; }
  .card { border-radius: 12px; }

  /* Bigger tap targets for inputs and buttons */
  .btn { min-height: 40px; padding-left: 0.85rem; padding-right: 0.85rem; }
  .btn-sm { min-height: 36px; }
  .form-control, .form-select { min-height: 40px; font-size: 16px; /* prevents iOS zoom */ }

  /* Tables become horizontally scrollable without horizontal page scroll */
  .table-responsive { border-radius: 12px; }
  .dashboard-table thead th { font-size: 0.68rem; letter-spacing: 0.3px; white-space: nowrap; }
  .dashboard-table tbody td { white-space: nowrap; }

  /* Mobile status pill slightly smaller */
  .status-pill { font-size: 0.72rem; padding: 0.25rem 0.5rem; }

  /* Quick action cards: vertical icons */
  .quick-action-card { padding: 0.85rem; }
  .quick-action-card h5 { font-size: 1rem; }

  /* Chat container full-width fit */
  .chat-container { height: 60vh; }

  /* Product cards: single column spacing */
  .product-card img { max-height: 160px; object-fit: cover; }

  /* Kitchen feed fits phone */
  .kitchen-feed { max-height: 420px; }
}

/* Very small phones (iPhone SE, etc) */
@media (max-width: 380px) {
  .role-hero h2 { font-size: 1.1rem; }
  .metric-value { font-size: 1rem; }
  .mobile-bottom-nav .mbn-label { font-size: 0.65rem; }
  .admin-nav-title { display: none; }
  .admin-strip-name { display: none; }
  .admin-strip-sep { display: none; }
}

/* Hide mobile bottom nav when virtual keyboard is likely open (focus on input) */
body.keyboard-open .mobile-bottom-nav { display: none; }

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

/* Branding: chat header, receipts, vendor splash, admin strip */
.chat-header-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  flex-shrink: 0;
}

.receipt-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.receipt-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

.admin-strip-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.admin-strip-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  white-space: nowrap;
}

.vendor-powered-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: #64748b;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid var(--border);
}

.vendor-powered-logo {
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.vendor-page-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f766e 0%, #0c4a6e 55%, #0f172a 100%);
  color: #fff;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.vendor-page-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vendor-page-splash-inner {
  text-align: center;
  padding: 2rem;
  max-width: 320px;
}

.vendor-page-splash-logo {
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  background: #fff;
  object-fit: cover;
}

.vendor-page-splash-title {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  margin-top: 1rem;
}

.vendor-page-splash-sub {
  font-size: 0.9rem;
  opacity: 0.88;
  margin-top: 0.35rem;
}

.vendor-page-splash-spinner {
  width: 36px;
  height: 36px;
  margin: 1.25rem auto 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vendorSplashSpin 0.75s linear infinite;
}

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

/* Faint security watermark (admin, payment / cart, mock gateway) */
body.page-watermark > header,
body.page-watermark > .container,
body.page-watermark > footer,
body.page-watermark > nav.mobile-bottom-nav {
  position: relative;
  z-index: 1;
}

body.page-watermark::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/images/scandine.png") center 38% / min(300px, 52vw) no-repeat;
  opacity: 0.065;
}

@media (min-width: 768px) {
  body.page-watermark::before {
    background-size: min(360px, 40vw);
    opacity: 0.055;
  }
}

/* POS-style digital menu / vendor partner header */
.digital-menu-header {
  border-radius: 14px;
  border: 1px solid #0f3d3a;
  background: linear-gradient(135deg, #0f766e 0%, #0a4f5c 48%, #134e4a 100%);
  color: #f8fafc;
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.28);
}

.digital-menu-header--vendor {
  background: linear-gradient(135deg, #115e59 0%, #0f3d4c 50%, #1e293b 100%);
  border-color: rgba(15, 23, 42, 0.35);
}

.digital-menu-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.digital-menu-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.digital-menu-header-title {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.digital-menu-header-sub {
  font-size: 0.82rem;
  opacity: 0.88;
  margin-top: 0.15rem;
}

.digital-menu-header-powered {
  font-size: 0.72rem;
  opacity: 0.92;
}

.digital-menu-header-powered-logo {
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.digital-menu-header-powered strong {
  font-weight: 700;
}

.digital-menu-header-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  line-height: 1.2;
  text-align: right;
  max-width: 38%;
}

@media (max-width: 576px) {
  .digital-menu-header-inner {
    flex-wrap: wrap;
  }

  .digital-menu-header-badge {
    max-width: none;
    width: 100%;
    text-align: center;
  }

  /* Signup form mobile fixes */
  .card .card.bg-light {
    padding: 0.75rem !important;
    border-radius: 10px;
  }

  .card .card.bg-light h6 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem !important;
  }

  .card .card.bg-light .form-label {
    font-size: 0.85rem;
  }

  /* Admin strip mobile improvements */
  .admin-strip-brand {
    min-width: auto;
  }

  /* Form check labels on mobile */
  .form-check-label {
    font-size: 0.9rem;
  }

  /* Ensure select dropdowns don't overflow */
  .form-select option {
    white-space: normal;
    word-wrap: break-word;
  }
}

/* Fix for iOS input zoom - ensure 16px font size */
@media (max-width: 767.98px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Admin nav strip mobile scroll fix */
@media (max-width: 767.98px) {
  .admin-nav-strip {
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .admin-nav-strip .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }

  .admin-strip-logo {
    width: 24px;
    height: 24px;
  }
}